diff --git a/src/platform/sdl/sdl-events.h b/src/platform/sdl/sdl-events.h index ea9ea7640..93deefc87 100644 --- a/src/platform/sdl/sdl-events.h +++ b/src/platform/sdl/sdl-events.h @@ -25,11 +25,13 @@ mLOG_DECLARE_CATEGORY(SDL_EVENTS); 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 };