mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 03:22:35 +00:00
Use JOYAXISRANGE for digital detection
This commit is contained in:
parent
889f4dfc9f
commit
a805847086
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ class TiccmdBuilder
|
|||
// ugly with the current abstractions, though, and there's a fortunate trick here:
|
||||
// if you can input full strength turns on both axes, either you're using a fucking
|
||||
// square gate, or you're not on an analog device.
|
||||
if (joystickvector.yaxis > 1020 && abs(cmd->turning) == KART_FULLTURN) // My keyboard hits 1024 but my keyboard only hits 1023, video games
|
||||
if (joystickvector.yaxis >= JOYAXISRANGE && abs(cmd->turning) == KART_FULLTURN) // >= beacuse some analog devices can go past JOYAXISRANGE (?!)
|
||||
cmd->turning /= 2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue