src/events/SDL_events.c
changeset 6753 332c36fd0fd7
parent 6690 9548c8a58103
child 6885 700f1b25f77f
     1.1 --- a/src/events/SDL_events.c	Thu Dec 13 22:26:30 2012 -0500
     1.2 +++ b/src/events/SDL_events.c	Fri Dec 14 09:22:13 2012 -0800
     1.3 @@ -70,9 +70,9 @@
     1.4  SDL_ShouldPollJoystick()
     1.5  {
     1.6  #if !SDL_JOYSTICK_DISABLED
     1.7 -    if (SDL_PrivateJoystickNeedsPolling() &&
     1.8 -        (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
     1.9 -         SDL_JoystickEventState(SDL_QUERY))) {
    1.10 +    if ((!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
    1.11 +         SDL_JoystickEventState(SDL_QUERY)) &&
    1.12 +        SDL_PrivateJoystickNeedsPolling()) {
    1.13          return SDL_TRUE;
    1.14      }
    1.15  #endif