increase stick deadzone to 16

This commit is contained in:
camthehaxman 2024-01-18 19:13:52 -06:00
parent 7ec019cd45
commit 4d2de70f45

View File

@ -103,8 +103,8 @@ 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();