mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilib] Prefix all NI DS specific controller classes (#8596)
Easier then the last one that put everything in a sub namespace. By prefixing the name less things break, and intellisense will be less confusing to new users during the transition.
This commit is contained in:
@@ -67,53 +67,4 @@ public class {{ ConsoleName }}ControllerSim extends GenericHIDSim {
|
||||
setRawButton({{ ConsoleName }}Controller.Button.k{{ capitalize_first(button.name) }}.value, value);
|
||||
}
|
||||
{% endfor -%}
|
||||
{% if ConsoleName == "Xbox" %}
|
||||
/**
|
||||
* Change the value of the left bumper on the joystick.
|
||||
*
|
||||
* @param state the new value
|
||||
* @deprecated Use {@link setLeftBumperButton} instead. This function is deprecated for removal
|
||||
* to make function names consistent to allow the HID classes to be automatically generated.
|
||||
*/
|
||||
@Deprecated(since = "2025", forRemoval = true)
|
||||
public void setLeftBumper(boolean state) {
|
||||
setRawButton(XboxController.Button.kLeftBumper.value, state);
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the value of the right bumper on the joystick.
|
||||
*
|
||||
* @param state the new value
|
||||
* @deprecated Use {@link setRightBumperButton} instead. This function is deprecated for removal
|
||||
* to make function names consistent to allow the HID classes to be automatically generated.
|
||||
*/
|
||||
@Deprecated(since = "2025", forRemoval = true)
|
||||
public void setRightBumper(boolean state) {
|
||||
setRawButton(XboxController.Button.kRightBumper.value, state);
|
||||
}
|
||||
{% elif ConsoleName == "PS4" %}
|
||||
/**
|
||||
* Change the value of the touchpad button on the controller.
|
||||
*
|
||||
* @param value the new value
|
||||
* @deprecated Use {@link setTouchpadButton} instead. This function is deprecated for removal to
|
||||
* make function names consistent to allow the HID classes to be automatically generated.
|
||||
*/
|
||||
@Deprecated(since = "2025", forRemoval = true)
|
||||
public void setTouchpad(boolean value) {
|
||||
setRawButton(PS4Controller.Button.kTouchpad.value, value);
|
||||
}
|
||||
{% elif ConsoleName == "PS5" %}
|
||||
/**
|
||||
* Change the value of the touchpad button on the controller.
|
||||
*
|
||||
* @param value the new value
|
||||
* @deprecated Use {@link setTouchpadButton} instead. This function is deprecated for removal to
|
||||
* make function names consistent to allow the HID classes to be automatically generated.
|
||||
*/
|
||||
@Deprecated(since = "2025", forRemoval = true)
|
||||
public void setTouchpad(boolean value) {
|
||||
setRawButton(PS5Controller.Button.kTouchpad.value, value);
|
||||
}
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user