Skip to content

Commit

Permalink
Rename to left menu and right menu
Browse files Browse the repository at this point in the history
  • Loading branch information
BenG49 committed Feb 19, 2024
1 parent fdb42fb commit d44c430
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
30 changes: 15 additions & 15 deletions src/com/stuypulse/stuylib/input/Gamepad.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ public boolean getRawRightButton() {
return false;
}

// Alt-Left / Alt-Right //
/** @return If the alt-left button is pressed */
public boolean getRawAltLeftButton() {
// Left Menu / Right Menu //
/** @return If the left menu button is pressed */
public boolean getRawLeftMenuButton() {
return false;
}

/** @return If the alt-right button is pressed */
public boolean getRawAltRightButton() {
/** @return If the right menu button is pressed */
public boolean getRawRightMenuButton() {
return false;
}

Expand Down Expand Up @@ -334,15 +334,15 @@ public final Trigger getRightButton() {
return new Trigger(this::getRawRightButton);
}

// Alt-Left / Alt-Right //
/** @return Trigger that activates with {@link #getRawAltLeftButton()} */
public final Trigger getAltLeftButton() {
return new Trigger(this::getRawAltLeftButton);
// Left Menu / Right Menu //
/** @return Trigger that activates with {@link #getRawLeftMenuButton()} */
public final Trigger getLeftMenuButton() {
return new Trigger(this::getRawLeftMenuButton);
}

/** @return Trigger that activates with {@link #getRawAltRightButton()} */
public final Trigger getAltRightButton() {
return new Trigger(this::getRawAltRightButton);
/** @return Trigger that activates with {@link #getRawRightMenuButton()} */
public final Trigger getRightMenuButton() {
return new Trigger(this::getRawRightMenuButton);
}

// Analog Stick Triggers //
Expand Down Expand Up @@ -393,9 +393,9 @@ public final void initSendable(SendableBuilder builder) {
builder.addBooleanProperty("Face Button Left", this::getRawLeftButton, x -> {});
builder.addBooleanProperty("Face Button Right", this::getRawRightButton, x -> {});

// Alt-Left / Alt-Right //
builder.addBooleanProperty("Button Alt Left", this::getRawAltLeftButton, x -> {});
builder.addBooleanProperty("Button Alt Right", this::getRawAltRightButton, x -> {});
// Left Menu / Right Menu //
builder.addBooleanProperty("Button Left Menu", this::getRawLeftMenuButton, x -> {});
builder.addBooleanProperty("Button Right Menu", this::getRawRightMenuButton, x -> {});

// Analog Stick Buttons
builder.addBooleanProperty("Left Stick Button", this::getRawLeftStickButton, x -> {});
Expand Down
10 changes: 5 additions & 5 deletions src/com/stuypulse/stuylib/input/gamepads/AutoGamepad.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ public boolean getRawTopButton() {
return getDetectedGamepad().getRawTopButton();
}

// Alt-Left / Alt-Right //
public boolean getRawAltLeftButton() {
return getDetectedGamepad().getRawAltLeftButton();
// Left Menu / Right Menu //
public boolean getRawLeftMenuButton() {
return getDetectedGamepad().getRawLeftMenuButton();
}

public boolean getRawAltRightButton() {
return getDetectedGamepad().getRawAltRightButton();
public boolean getRawRightMenuButton() {
return getDetectedGamepad().getRawRightMenuButton();
}

// Analog Stick Buttons //
Expand Down
6 changes: 3 additions & 3 deletions src/com/stuypulse/stuylib/input/gamepads/Logitech.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ public boolean getRawTopButton() {
return getRawButton(4);
}

// Alt-Left / Alt-Right //
// Left Menu / Right Menu //
@Override
public boolean getRawAltLeftButton() {
public boolean getRawLeftMenuButton() {
return getRawButton(9);
}

@Override
public boolean getRawAltRightButton() {
public boolean getRawRightMenuButton() {
return getRawButton(10);
}

Expand Down
6 changes: 3 additions & 3 deletions src/com/stuypulse/stuylib/input/gamepads/PS4.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ public boolean getRawTopButton() {
return getRawButton(4);
}

// Alt-Left / Alt-Right //
// Left Menu / Right Menu //
@Override
public boolean getRawAltLeftButton() {
public boolean getRawLeftMenuButton() {
return getRawButton(9);
}

@Override
public boolean getRawAltRightButton() {
public boolean getRawRightMenuButton() {
return getRawButton(10);
}

Expand Down
6 changes: 3 additions & 3 deletions src/com/stuypulse/stuylib/input/gamepads/Xbox.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ public boolean getRawTopButton() {
return getJoystick().getYButton();
}

// Alt-Left / Alt-Right //
// Left Menu / Right Menu //
@Override
public boolean getRawAltLeftButton() {
public boolean getRawLeftMenuButton() {
return getJoystick().getBackButton();
}

@Override
public boolean getRawAltRightButton() {
public boolean getRawRightMenuButton() {
return getJoystick().getStartButton();
}

Expand Down

0 comments on commit d44c430

Please sign in to comment.