mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[wpilib,cmd] Remove Axis from Gamepad Triggers (#8956)
It's a bit confusing, especially since some controllers will have this be a 0:1 button rather than axis.
This commit is contained in:
@@ -824,22 +824,22 @@ public class CommandGamepad {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the left trigger axis value of the controller. Note that this axis is bound to the range of
|
||||
* [0, 1] as opposed to the usual [-1, 1].
|
||||
* Get the left trigger value of the controller. Note that this axis is bound to the range of [0,
|
||||
* 1] as opposed to the usual [-1, 1].
|
||||
*
|
||||
* @return The axis value.
|
||||
*/
|
||||
public double getLeftTriggerAxis() {
|
||||
return m_gamepad.getLeftTriggerAxis();
|
||||
public double getLeftTrigger() {
|
||||
return m_gamepad.getLeftTrigger();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the right trigger axis value of the controller. Note that this axis is bound to the range
|
||||
* of [0, 1] as opposed to the usual [-1, 1].
|
||||
* Get the right trigger value of the controller. Note that this axis is bound to the range of [0,
|
||||
* 1] as opposed to the usual [-1, 1].
|
||||
*
|
||||
* @return The axis value.
|
||||
*/
|
||||
public double getRightTriggerAxis() {
|
||||
return m_gamepad.getRightTriggerAxis();
|
||||
public double getRightTrigger() {
|
||||
return m_gamepad.getRightTrigger();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user