Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbly committed Mar 16, 2020
1 parent 197b14d commit c2c5d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/hidapi/SDL_hidapi_steam.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ HIDAPI_DriverSteam_GetDeviceName(Uint16 vendor_id, Uint16 product_id)
static SDL_bool static SDL_bool
HIDAPI_DriverSteam_InitDevice(SDL_HIDAPI_Device *device) HIDAPI_DriverSteam_InitDevice(SDL_HIDAPI_Device *device)
{ {
return HIDAPI_JoystickConnected(device, NULL); return HIDAPI_JoystickConnected(device, NULL, SDL_FALSE);
} }


static int static int
Expand Down Expand Up @@ -1130,7 +1130,7 @@ HIDAPI_DriverSteam_UpdateDevice(SDL_HIDAPI_Device *device)


if (r <= 0) { if (r <= 0) {
/* Failed to read from controller */ /* Failed to read from controller */
HIDAPI_JoystickDisconnected(device, device->joysticks[0]); HIDAPI_JoystickDisconnected(device, device->joysticks[0], SDL_FALSE);
return SDL_FALSE; return SDL_FALSE;
} }
} }
Expand Down

0 comments on commit c2c5d0b

Please sign in to comment.