SDL2: Only check for SDL_CONTROLLERTOUCHPAD* and SDL_CONTROLLERSENSORUPDATE updates on versions greater than or equal 2.0.14
This commit is contained in:
parent
ee25319621
commit
d293a2021a
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue