[wpilib,cmd] Rename gamepad shoulder to bumper (#8573)

Both programs used bumper, so we shouldn't rename it. There's no reason
to change it, and we don't need to match SDL.
This commit is contained in:
Thad House
2026-02-07 10:39:22 -08:00
committed by GitHub
parent 19c61cc419
commit 4aa21e947d
24 changed files with 179 additions and 182 deletions

View File

@@ -170,21 +170,21 @@ public class GamepadSim extends GenericHIDSim {
}
/**
* Change the value of the right shoulder button on the controller.
* Change the value of the right bumper button on the controller.
*
* @param value the new value
*/
public void setLeftShoulderButton(boolean value) {
setRawButton(Gamepad.Button.kLeftShoulder.value, value);
public void setLeftBumperButton(boolean value) {
setRawButton(Gamepad.Button.kLeftBumper.value, value);
}
/**
* Change the value of the right shoulder button on the controller.
* Change the value of the right bumper button on the controller.
*
* @param value the new value
*/
public void setRightShoulderButton(boolean value) {
setRawButton(Gamepad.Button.kRightShoulder.value, value);
public void setRightBumperButton(boolean value) {
setRawButton(Gamepad.Button.kRightBumper.value, value);
}
/**