• Show log

    Commit

  • Hash : f0cee3ed
    Author : Zack Middleton
    Date : 2019-12-22T13:15:11

    Fix shutting down HIDAPI device with multiple joysticks
    Using Wii U GameCube USB adapter with multiple controllers attached and
    restarting SDL input in a game results in extra joysticks with NULL name.
    
    HIDAPI_CleanupDeviceDriver() shut down joysticks by iterating through
    device->num_joysticks but each HIDAPI_JoystickDisconnected() decreases
    device->num_joysticks and shifts joysticks array down. Resulting in only
    half of controllers being shutdown. It worked with only 1 controller
    attached though.
    
    Disconnect HIDAPI device joystick 0 until there are none left.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags