src/events/SDL_events.c
changeset 6753 332c36fd0fd7
parent 6690 9548c8a58103
child 6885 700f1b25f77f
equal deleted inserted replaced
6752:8de11011eb1f 6753:332c36fd0fd7
    68 
    68 
    69 static __inline__ SDL_bool
    69 static __inline__ SDL_bool
    70 SDL_ShouldPollJoystick()
    70 SDL_ShouldPollJoystick()
    71 {
    71 {
    72 #if !SDL_JOYSTICK_DISABLED
    72 #if !SDL_JOYSTICK_DISABLED
    73     if (SDL_PrivateJoystickNeedsPolling() &&
    73     if ((!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
    74         (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
    74          SDL_JoystickEventState(SDL_QUERY)) &&
    75          SDL_JoystickEventState(SDL_QUERY))) {
    75         SDL_PrivateJoystickNeedsPolling()) {
    76         return SDL_TRUE;
    76         return SDL_TRUE;
    77     }
    77     }
    78 #endif
    78 #endif
    79     return SDL_FALSE;
    79     return SDL_FALSE;
    80 }
    80 }