mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
[hal] Update DS API to new format (#7977)
This commit is contained in:
@@ -135,7 +135,7 @@ class DriverStation final {
|
||||
* @param stick The joystick port number
|
||||
* @return A boolean that is true if the controller is an xbox controller.
|
||||
*/
|
||||
static bool GetJoystickIsXbox(int stick);
|
||||
static bool GetJoystickIsGamepad(int stick);
|
||||
|
||||
/**
|
||||
* Returns the type of joystick at a given port.
|
||||
|
||||
@@ -323,12 +323,12 @@ class DriverStationSim {
|
||||
static void SetJoystickButtonCount(int stick, int count);
|
||||
|
||||
/**
|
||||
* Sets the value of isXbox for a joystick.
|
||||
* Sets the value of isGamepad for a joystick.
|
||||
*
|
||||
* @param stick The joystick number
|
||||
* @param isXbox The value of isXbox
|
||||
* @param isGamepad The value of isGamepad
|
||||
*/
|
||||
static void SetJoystickIsXbox(int stick, bool isXbox);
|
||||
static void SetJoystickIsGamepad(int stick, bool isGamepad);
|
||||
|
||||
/**
|
||||
* Sets the value of type for a joystick.
|
||||
|
||||
Reference in New Issue
Block a user