SDL: Fix SDL 1.2 build

This commit is contained in:
Jeffrey Pfau 2016-02-17 23:04:03 -08:00
parent 3c31ae1260
commit fec583d9b2
1 changed files with 3 additions and 1 deletions

View File

@ -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
};