Skip to content

Commit

Permalink
SDL_SYS_IsXInputGamepad_DeviceIndex() is only available if SDL_JOYSTI…
Browse files Browse the repository at this point in the history
…CK_XINPUT is true.
  • Loading branch information
slouken committed Jul 7, 2014
1 parent c1d2972 commit febc479
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/joystick/SDL_sysjoystick.h
Expand Up @@ -108,8 +108,10 @@ extern SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID(int device_index);
/* Function to return the stable GUID for a opened joystick */
extern SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick);

#if SDL_JOYSTICK_XINPUT
/* Function returns SDL_TRUE if this device is an XInput gamepad */
extern SDL_bool SDL_SYS_IsXInputGamepad_DeviceIndex(int device_index);
#endif

#endif /* _SDL_sysjoystick_h */

Expand Down

0 comments on commit febc479

Please sign in to comment.