summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2014-07-07 11:44:14 -0700
committerSam Lantinga <slouken@libsdl.org>2014-07-07 11:44:14 -0700
commit5c4bb7a3cfc0ba8d10e19287bbf5810875ed65e7 (patch)
treebe34313edd8dd79b4a343d276f6f3fc61b151ab9
parent8c76c1efb7d0d66771690e3ebeab57bc2da21f02 (diff)
SDL_SYS_IsXInputGamepad_DeviceIndex() is only available if SDL_JOYSTICK_XINPUT is true.
-rw-r--r--src/joystick/SDL_sysjoystick.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/joystick/SDL_sysjoystick.h b/src/joystick/SDL_sysjoystick.h
index 84efe69aa8..a39869575c 100644
--- a/src/joystick/SDL_sysjoystick.h
+++ b/src/joystick/SDL_sysjoystick.h
@@ -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 */