diff src/events/SDL_events.c @ 4698:52697090c967

Fix a compile error when SDL_JOYSTICK_DISABLED is set
author Paul Hunkin <paul@bieh.net>
date Sun, 23 May 2010 15:12:41 +1200
parents 363604b42e84
children 1f7ad083fd3c
line wrap: on
line diff
--- a/src/events/SDL_events.c	Sun May 23 15:10:18 2010 +1200
+++ b/src/events/SDL_events.c	Sun May 23 15:12:41 2010 +1200
@@ -92,11 +92,13 @@
 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;
 }