-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
event_type
is defined only when EVENTS are enabled.
SDL/src/joystick/SDL_joystick.c
Lines 2734 to 2736 in dfbe1f7
#if !SDL_EVENTS_DISABLED | |
Uint32 event_type; | |
#endif |
But there is one section (right outside of an ifdef block) that makes use of the variable despite this
SDL/src/joystick/SDL_joystick.c
Lines 2780 to 2795 in dfbe1f7
#if !SDL_EVENTS_DISABLED | |
if (state == finger_info->state) { | |
event_type = SDL_CONTROLLERTOUCHPADMOTION; | |
} else if (state) { | |
event_type = SDL_CONTROLLERTOUCHPADDOWN; | |
} else { | |
event_type = SDL_CONTROLLERTOUCHPADUP; | |
} | |
#endif | |
/* We ignore events if we don't have keyboard focus, except for touch release */ | |
if (SDL_PrivateJoystickShouldIgnoreEvent()) { | |
if (event_type != SDL_CONTROLLERTOUCHPADUP) { | |
return 0; | |
} | |
} |
I am unsure if this is an error or not, but it is preventing a project I work on from building with events disabled
Metadata
Metadata
Assignees
Labels
No labels