equal
deleted
inserted
replaced
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 } |