Skip to content

Commit

Permalink
Fix default Xbox axis orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
BenG49 committed Jan 8, 2024
1 parent 636f285 commit 89f2ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/stuypulse/stuylib/input/gamepads/Xbox.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Xbox extends Gamepad {

// Constructor //
public Xbox(XboxController joystick) {
this(joystick, false);
this(joystick, true);
}

protected Xbox(XboxController joystick, boolean flipped) {
Expand Down Expand Up @@ -162,6 +162,6 @@ public void setRumble(double intensity) {
}

public Xbox flipped() {
return new Xbox(mJoystick, true);
return new Xbox(mJoystick, !flipped);
}
}

0 comments on commit 89f2ffd

Please sign in to comment.