The XInput code is only available in the DirectInput joystick driver.

This commit is contained in:
Sam Lantinga 2012-11-26 23:50:12 -08:00
parent 27d81d93e4
commit 86e0e26475
2 changed files with 5 additions and 5 deletions

View file

@ -113,7 +113,7 @@ extern JoystickGUID SDL_SYS_PrivateJoystickGetDeviceGUID( int device_index );
*/
extern JoystickGUID SDL_SYS_PrivateJoystickGetGUID(SDL_Joystick * joystick);
#ifdef __WIN32__
#ifdef SDL_JOYSTICK_DINPUT
/* Function to get the current instance id of the joystick located at device_index */
extern int SDL_SYS_IsXInputDeviceIndex( int device_index );
#endif