From d293a2021adb7b039ed37ac28a68369bbd19d8ef Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Wed, 5 Jul 2023 09:53:50 -0700 Subject: [PATCH] SDL2: Only check for SDL_CONTROLLERTOUCHPAD* and SDL_CONTROLLERSENSORUPDATE updates on versions greater than or equal 2.0.14 --- engine/client/in_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/client/in_sdl.c b/engine/client/in_sdl.c index 34ceffb0e..c2f52ef3e 100644 --- a/engine/client/in_sdl.c +++ b/engine/client/in_sdl.c @@ -514,10 +514,12 @@ static void J_ControllerSensor(SDL_JoystickID jid, SDL_SensorType sensor, float case SDL_SENSOR_GYRO: IN_Gyroscope(joy->qdevid, data[0], data[1], data[2]); break; +/*#if SDL_VERSION_ATLEAST(2,25,0) case SDL_SENSOR_ACCEL_L: case SDL_SENSOR_ACCEL_R: case SDL_SENSOR_GYRO_L: case SDL_SENSOR_GYRO_R: +#endif*/ case SDL_SENSOR_INVALID: case SDL_SENSOR_UNKNOWN: default: