Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix a compile error when SDL_JOYSTICK_DISABLED is set

  • Loading branch information
bieh committed May 23, 2010
1 parent 8706b81 commit 0781a76fafb0698a3826ec7e0ac6a7deddce514d
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/events/SDL_events.c
@@ -92,11 +92,13 @@ SDL_Unlock_EventThread(void)
static __inline__ SDL_bool
SDL_ShouldPollJoystick()
{
#if !SDL_JOYSTICK_DISABLED
if (SDL_numjoysticks &&
(!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
SDL_JoystickEventState(SDL_QUERY))) {
return SDL_TRUE;
}
#endif
return SDL_FALSE;
}

0 comments on commit 0781a76

Please sign in to comment.