mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix SDL 1.2 build
This commit is contained in:
parent
3c31ae1260
commit
fec583d9b2
|
@ -25,11 +25,13 @@ mLOG_DECLARE_CATEGORY(SDL_EVENTS);
|
||||||
struct Configuration;
|
struct Configuration;
|
||||||
|
|
||||||
struct SDL_JoystickCombo {
|
struct SDL_JoystickCombo {
|
||||||
SDL_JoystickID id;
|
|
||||||
size_t index;
|
size_t index;
|
||||||
SDL_Joystick* joystick;
|
SDL_Joystick* joystick;
|
||||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||||
SDL_Haptic* haptic;
|
SDL_Haptic* haptic;
|
||||||
|
SDL_JoystickID id;
|
||||||
|
#else
|
||||||
|
int id;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue