Fix compile error
authorJimb Esser <wasteland@gmail.com>
Mon, 16 Mar 2020 16:52:49 -0700
changeset 13639112bdb9abf2c
parent 13638 ca87b62e4e17
child 13640 61956f6019db
Fix compile error
src/joystick/hidapi/SDL_hidapi_steam.c
     1.1 --- a/src/joystick/hidapi/SDL_hidapi_steam.c	Mon Mar 16 19:24:25 2020 -0400
     1.2 +++ b/src/joystick/hidapi/SDL_hidapi_steam.c	Mon Mar 16 16:52:49 2020 -0700
     1.3 @@ -972,7 +972,7 @@
     1.4  static SDL_bool
     1.5  HIDAPI_DriverSteam_InitDevice(SDL_HIDAPI_Device *device)
     1.6  {
     1.7 -    return HIDAPI_JoystickConnected(device, NULL);
     1.8 +    return HIDAPI_JoystickConnected(device, NULL, SDL_FALSE);
     1.9  }
    1.10  
    1.11  static int
    1.12 @@ -1130,7 +1130,7 @@
    1.13  
    1.14          if (r <= 0) {
    1.15              /* Failed to read from controller */
    1.16 -            HIDAPI_JoystickDisconnected(device, device->joysticks[0]);
    1.17 +            HIDAPI_JoystickDisconnected(device, device->joysticks[0], SDL_FALSE);
    1.18              return SDL_FALSE;
    1.19          }
    1.20      }