Skip to content

Commit

Permalink
Fixed Xbox360 controller left/right trigger detection on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcashman committed Aug 30, 2018
1 parent 595fed8 commit a35bbf2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ public boolean axisMoved(Controller controller, int axisCode, float value) {
case AXIS_RIGHT_STICK_Y:
return notifyRightStickYMoved(value);
case AXIS_RIGHT_TRIGGER:
return notifyRightTriggerMoved(value);
if(value > 0f) {
return notifyLeftTriggerMoved(value);
} else {
return notifyRightTriggerMoved(value);
}
}
return false;
}
Expand Down

0 comments on commit a35bbf2

Please sign in to comment.