Mercurial > sdl-ios-xcode
changeset 4698:52697090c967
Fix a compile error when SDL_JOYSTICK_DISABLED is set
author | Paul Hunkin <paul@bieh.net> |
---|---|
date | Sun, 23 May 2010 15:12:41 +1200 |
parents | a5c4ded0c979 |
children | 925008931501 |
files | src/events/SDL_events.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/events/SDL_events.c Sun May 23 15:10:18 2010 +1200 +++ b/src/events/SDL_events.c Sun May 23 15:12:41 2010 +1200 @@ -92,11 +92,13 @@ static __inline__ SDL_bool SDL_ShouldPollJoystick() { +#if !SDL_JOYSTICK_DISABLED if (SDL_numjoysticks && (!SDL_disabled_events[SDL_JOYAXISMOTION >> 8] || SDL_JoystickEventState(SDL_QUERY))) { return SDL_TRUE; } +#endif return SDL_FALSE; }