mirror of
https://github.com/limyz/573controller
synced 2024-11-27 17:00:58 +01:00
Fixed deadzone axis bug
This commit is contained in:
parent
d197f06628
commit
4acdc52ae2
@ -123,10 +123,10 @@ void loop() {
|
||||
}
|
||||
|
||||
if (turnTable.read() >= 360) {
|
||||
turnTable.write(-360);
|
||||
turnTable.write(-359);
|
||||
}
|
||||
else if (turnTable.read() <= -360) {
|
||||
turnTable.write(360);
|
||||
turnTable.write(359);
|
||||
}
|
||||
|
||||
Joystick.setXAxis(turnTable.read());
|
||||
|
@ -125,10 +125,10 @@ void loop() {
|
||||
}
|
||||
|
||||
if (turnTable.read() >= 360) {
|
||||
turnTable.write(-360);
|
||||
turnTable.write(-359);
|
||||
}
|
||||
else if (turnTable.read() <= -360) {
|
||||
turnTable.write(360);
|
||||
turnTable.write(359);
|
||||
}
|
||||
|
||||
Joystick.setXAxis(turnTable.read());
|
||||
|
Loading…
Reference in New Issue
Block a user