diff --git a/src/platform/sdl/sdl-events.h b/src/platform/sdl/sdl-events.h index 015868f2e..387871b58 100644 --- a/src/platform/sdl/sdl-events.h +++ b/src/platform/sdl/sdl-events.h @@ -23,11 +23,13 @@ struct GBAVideoSoftwareRenderer; struct Configuration; struct SDL_JoystickCombo { - SDL_JoystickID id; size_t index; SDL_Joystick* joystick; #if SDL_VERSION_ATLEAST(2, 0, 0) SDL_Haptic* haptic; + SDL_JoystickID id; +#else + int id; #endif };