mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
Simplified definition of NATIVE_SDL_GYRO
It is being used as a "boolean" anyway; the code only checks its existence.
This commit is contained in:
parent
61df6a74d5
commit
9a18b39114
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ static cvar_t *gyro_calibration_z;
|
|||
#if SDL_VERSION_ATLEAST(2, 0, 14) // support for controller sensors (gyro, accelerometer)
|
||||
|
||||
static unsigned int num_samples;
|
||||
#define NATIVE_SDL_GYRO 1 // uses SDL_CONTROLLERSENSORUPDATE to read gyro
|
||||
#define NATIVE_SDL_GYRO // uses SDL_CONTROLLERSENSORUPDATE to read gyro
|
||||
|
||||
#else // for SDL < 2.0.14, gyro can be read as a "secondary joystick" exposed by dkms-hid-nintendo
|
||||
|
||||
|
|
Loading…
Reference in a new issue