SDL2: Only check for SDL_CONTROLLERTOUCHPAD* and SDL_CONTROLLERSENSORUPDATE updates on versions greater than or equal 2.0.14

This commit is contained in:
Marco Cawthorne 2023-07-05 09:53:50 -07:00
parent ee25319621
commit d293a2021a
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -514,10 +514,12 @@ static void J_ControllerSensor(SDL_JoystickID jid, SDL_SensorType sensor, float
case SDL_SENSOR_GYRO: case SDL_SENSOR_GYRO:
IN_Gyroscope(joy->qdevid, data[0], data[1], data[2]); IN_Gyroscope(joy->qdevid, data[0], data[1], data[2]);
break; break;
/*#if SDL_VERSION_ATLEAST(2,25,0)
case SDL_SENSOR_ACCEL_L: case SDL_SENSOR_ACCEL_L:
case SDL_SENSOR_ACCEL_R: case SDL_SENSOR_ACCEL_R:
case SDL_SENSOR_GYRO_L: case SDL_SENSOR_GYRO_L:
case SDL_SENSOR_GYRO_R: case SDL_SENSOR_GYRO_R:
#endif*/
case SDL_SENSOR_INVALID: case SDL_SENSOR_INVALID:
case SDL_SENSOR_UNKNOWN: case SDL_SENSOR_UNKNOWN:
default: default: