Fix a compile error when SDL_JOYSTICK_DISABLED is set
authorPaul Hunkin
Sun, 23 May 2010 15:12:41 +1200
changeset 469852697090c967
parent 4697 a5c4ded0c979
child 4699 925008931501
Fix a compile error when SDL_JOYSTICK_DISABLED is set
src/events/SDL_events.c
     1.1 --- a/src/events/SDL_events.c	Sun May 23 15:10:18 2010 +1200
     1.2 +++ b/src/events/SDL_events.c	Sun May 23 15:12:41 2010 +1200
     1.3 @@ -92,11 +92,13 @@
     1.4  static __inline__ SDL_bool
     1.5  SDL_ShouldPollJoystick()
     1.6  {
     1.7 +#if !SDL_JOYSTICK_DISABLED
     1.8      if (SDL_numjoysticks &&
     1.9          (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
    1.10           SDL_JoystickEventState(SDL_QUERY))) {
    1.11          return SDL_TRUE;
    1.12      }
    1.13 +#endif
    1.14      return SDL_FALSE;
    1.15  }
    1.16