Skip to content

Commit

Permalink
Rename select to alt-left and start to alt-right
Browse files Browse the repository at this point in the history
  • Loading branch information
BenG49 committed Feb 18, 2024
1 parent 9973c08 commit fdb42fb
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;
}

// Start / Select / Option //
/** @return If the select button is pressed */
public boolean getRawSelectButton() {
// Alt-Left / Alt-Right //
/** @return If the alt-left button is pressed */
public boolean getRawAltLeftButton() {
return false;
}

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

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

// Select / Start / Option //
/** @return Trigger that activates with {@link #getRawSelectButton()} */
public final Trigger getSelectButton() {
return new Trigger(this::getRawSelectButton);
// Alt-Left / Alt-Right //
/** @return Trigger that activates with {@link #getRawAltLeftButton()} */
public final Trigger getAltLeftButton() {
return new Trigger(this::getRawAltLeftButton);
}

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

// 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 -> {});

// Start / Select / Option
builder.addBooleanProperty("Button Select", this::getRawSelectButton, x -> {});
builder.addBooleanProperty("Button Start", this::getRawStartButton, x -> {});
// Alt-Left / Alt-Right //
builder.addBooleanProperty("Button Alt Left", this::getRawAltLeftButton, x -> {});
builder.addBooleanProperty("Button Alt Right", this::getRawAltRightButton, 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();
}

// Start / Select //
public boolean getRawSelectButton() {
return getDetectedGamepad().getRawSelectButton();
// Alt-Left / Alt-Right //
public boolean getRawAltLeftButton() {
return getDetectedGamepad().getRawAltLeftButton();
}

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

// 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);
}

// Start / Select //
// Alt-Left / Alt-Right //
@Override
public boolean getRawSelectButton() {
public boolean getRawAltLeftButton() {
return getRawButton(9);
}

@Override
public boolean getRawStartButton() {
public boolean getRawAltRightButton() {
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);
}

// Start / Select //
// Alt-Left / Alt-Right //
@Override
public boolean getRawSelectButton() {
public boolean getRawAltLeftButton() {
return getRawButton(9);
}

@Override
public boolean getRawStartButton() {
public boolean getRawAltRightButton() {
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();
}

// Start / Select //
// Alt-Left / Alt-Right //
@Override
public boolean getRawSelectButton() {
public boolean getRawAltLeftButton() {
return getJoystick().getBackButton();
}

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

Expand Down

0 comments on commit fdb42fb

Please sign in to comment.