Fixes a bug with how the calibrater handled button DPads.

This commit is contained in:
Markil3
2021-02-26 10:44:43 -07:00
parent 0fb384f1a9
commit 399b5a2b81

View File

@@ -260,7 +260,7 @@ public class CalibrateInputScreen extends BaseAppState
case JoystickAxis.POV_X: case JoystickAxis.POV_X:
if (this.focusedJoyElement instanceof JoystickButton) if (this.focusedJoyElement instanceof JoystickButton)
{ {
this.maps.put(this.focusValue > 0 ? DPAD_RIGHT : this.maps.put(this.currentBias ? DPAD_RIGHT :
DPAD_LEFT, this.focusedJoyElement); DPAD_LEFT, this.focusedJoyElement);
} }
else else
@@ -272,7 +272,7 @@ public class CalibrateInputScreen extends BaseAppState
case JoystickAxis.POV_Y: case JoystickAxis.POV_Y:
if (this.focusedJoyElement instanceof JoystickButton) if (this.focusedJoyElement instanceof JoystickButton)
{ {
this.maps.put(this.focusValue > 0 ? DPAD_UP : DPAD_DOWN, this.maps.put(this.currentBias ? DPAD_UP : DPAD_DOWN,
this.focusedJoyElement); this.focusedJoyElement);
} }
else else