src/events/SDL_events.c
changeset 6690 9548c8a58103
parent 6670 d4883f657288
child 6753 332c36fd0fd7
equal deleted inserted replaced
6689:e2fc3ae07582 6690:9548c8a58103
    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_numjoysticks &&
    73     if (SDL_PrivateJoystickNeedsPolling() &&
    74         (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
    74         (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] ||
    75          SDL_JoystickEventState(SDL_QUERY))) {
    75          SDL_JoystickEventState(SDL_QUERY))) {
    76         return SDL_TRUE;
    76         return SDL_TRUE;
    77     }
    77     }
    78 #endif
    78 #endif