Fixes a bug with how the calibrater handled button DPads.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user