src/events/SDL_events.c
changeset 6690 9548c8a58103
parent 6670 d4883f657288
child 6753 332c36fd0fd7
     1.1 --- a/src/events/SDL_events.c	Mon Nov 26 14:59:07 2012 -0800
     1.2 +++ b/src/events/SDL_events.c	Mon Nov 26 16:37:54 2012 -0800
     1.3 @@ -70,7 +70,7 @@
     1.4  SDL_ShouldPollJoystick()
     1.5  {
     1.6  #if !SDL_JOYSTICK_DISABLED
     1.7 -    if (SDL_numjoysticks &&
     1.8 +    if (SDL_PrivateJoystickNeedsPolling() &&
     1.9          (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
    1.10           SDL_JoystickEventState(SDL_QUERY))) {
    1.11          return SDL_TRUE;