From 9a18b391143166e89c5d5b90ce6f7cbc2dbd2e0e Mon Sep 17 00:00:00 2001 From: Jaime Moreira Date: Fri, 14 Apr 2023 18:16:16 -0400 Subject: [PATCH] Simplified definition of NATIVE_SDL_GYRO It is being used as a "boolean" anyway; the code only checks its existence. --- src/client/input/sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/input/sdl.c b/src/client/input/sdl.c index d3effd64..d65170c5 100644 --- a/src/client/input/sdl.c +++ b/src/client/input/sdl.c @@ -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