aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-07-11 00:00:39 +0200
committerkdx <kikoodx@paranoici.org>2023-07-11 00:00:39 +0200
commit7182ece87bace03ef6b4a268b961ae51ee44318c (patch)
tree3d78b6dc617b88c86df1d4bab62592bcc6f99b03
parent53b5a8abe962701b894980c52cc045704cccb2c4 (diff)
downloadtzr-7182ece87bace03ef6b4a268b961ae51ee44318c.tar.gz
increase deadzone
-rw-r--r--sources/TZR_CycleEvents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/TZR_CycleEvents.c b/sources/TZR_CycleEvents.c
index 6a375a9..78a5594 100644
--- a/sources/TZR_CycleEvents.c
+++ b/sources/TZR_CycleEvents.c
@@ -25,7 +25,7 @@ static void
get_axis(SDL_GameController *gc, float *out, SDL_GameControllerAxis axis)
{
const Sint16 v = SDL_GameControllerGetAxis(gc, axis);
- if (v > -8192 && v < 8192)
+ if (v > -16384 && v < 16384)
*out = 0.0f;
else
*out = (float)v / INT16_MAX;