diff options
author | kdx <kikoodx@paranoici.org> | 2023-07-11 00:00:39 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-07-11 00:00:39 +0200 |
commit | 7182ece87bace03ef6b4a268b961ae51ee44318c (patch) | |
tree | 3d78b6dc617b88c86df1d4bab62592bcc6f99b03 | |
parent | 53b5a8abe962701b894980c52cc045704cccb2c4 (diff) | |
download | tzr-7182ece87bace03ef6b4a268b961ae51ee44318c.tar.gz |
increase deadzone
-rw-r--r-- | sources/TZR_CycleEvents.c | 2 |
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; |