From 4d2de70f45ed63c9ec2e9f300b53e8f399e55a41 Mon Sep 17 00:00:00 2001 From: camthehaxman Date: Thu, 18 Jan 2024 19:13:52 -0600 Subject: [PATCH] increase stick deadzone to 16 --- src/Window_3DS.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Window_3DS.c b/src/Window_3DS.c index 5652e1992..3ff477d13 100644 --- a/src/Window_3DS.c +++ b/src/Window_3DS.c @@ -101,10 +101,10 @@ static void HandleButtons(u32 mods) { static void ProcessJoystickInput(circlePosition* pos, double delta) { float scale = (delta * 60.0) / 8.0f; - + // May not be exactly 0 on actual hardware - if (Math_AbsI(pos->dx) <= 8) pos->dx = 0; - if (Math_AbsI(pos->dy) <= 8) pos->dy = 0; + if (Math_AbsI(pos->dx) <= 16) pos->dx = 0; + if (Math_AbsI(pos->dy) <= 16) pos->dy = 0; Event_RaiseRawMove(&PointerEvents.RawMoved, pos->dx * scale, -pos->dy * scale); } @@ -148,7 +148,6 @@ void Window_ProcessEvents(double delta) { hidCircleRead(&pos); ProcessJoystickInput(&pos, delta); } - if (Input.RawMode && irrst_result == 0) { circlePosition pos; irrstScanInput();