Use the new SDL_GameControllerRumble() API on SDL 2.0.9 to fix rumble on HIDAPI gamepads

This commit is contained in:
Cameron Gutman
2019-12-07 16:17:01 -08:00
parent 7205242f38
commit c8b887fe32
2 changed files with 22 additions and 2 deletions
+4 -1
View File
@@ -8,10 +8,13 @@
struct GamepadState {
SDL_GameController* controller;
SDL_JoystickID jsId;
short index;
#if !SDL_VERSION_ATLEAST(2, 0, 9)
SDL_Haptic* haptic;
int hapticMethod;
int hapticEffectId;
short index;
#endif
SDL_TimerID mouseEmulationTimer;
uint32_t lastStartDownTime;