mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
increase stick deadzone to 16
This commit is contained in:
parent
7ec019cd45
commit
4d2de70f45
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user