Commit 3634d8ff authored by Paul Hunkin's avatar Paul Hunkin

Fix a compile error when SDL_JOYSTICK_DISABLED is set

parent 26026fcd
...@@ -92,11 +92,13 @@ SDL_Unlock_EventThread(void) ...@@ -92,11 +92,13 @@ SDL_Unlock_EventThread(void)
static __inline__ SDL_bool static __inline__ SDL_bool
SDL_ShouldPollJoystick() SDL_ShouldPollJoystick()
{ {
#if !SDL_JOYSTICK_DISABLED
if (SDL_numjoysticks && if (SDL_numjoysticks &&
(!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] || (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
SDL_JoystickEventState(SDL_QUERY))) { SDL_JoystickEventState(SDL_QUERY))) {
return SDL_TRUE; return SDL_TRUE;
} }
#endif
return SDL_FALSE; return SDL_FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment