[cmd3,wpilib] Add CommandGamepad for V3 commands (#8311)

Also fix typo.

Co-authored-by: Dan Katzuv <31829093+katzuv@users.noreply.github.com>
This commit is contained in:
Thad House
2025-11-01 16:24:22 +00:00
committed by GitHub
parent bd2cecbb1a
commit 4da2511638
10 changed files with 852 additions and 39 deletions

View File

@@ -228,21 +228,21 @@ class Gamepad : public GenericHID,
*
* @return The state of the button.
*/
bool GetNorthFacenButton() const;
bool GetNorthFaceButton() const;
/**
* Whether the North Face button was pressed since the last check.
*
* @return Whether the button was pressed since the last check.
*/
bool GetNorthFacenButtonPressed();
bool GetNorthFaceButtonPressed();
/**
* Whether the North Face button was released since the last check.
*
* @return Whether the button was released since the last check.
*/
bool GetNorthFacenButtonReleased();
bool GetNorthFaceButtonReleased();
/**
* Constructs an event instance around the North Face button's
@@ -252,7 +252,7 @@ class Gamepad : public GenericHID,
* @return an event instance representing the North Face button's
* digital signal attached to the given loop.
*/
BooleanEvent NorthFacen(EventLoop* loop) const;
BooleanEvent NorthFace(EventLoop* loop) const;
/**
* Read the value of the Back button on the controller.
@@ -945,7 +945,7 @@ class Gamepad : public GenericHID,
/// West Face button.
static constexpr int kWestFace = 2;
/// North Face button.
static constexpr int kNorthFacen = 3;
static constexpr int kNorthFace = 3;
/// Back button.
static constexpr int kBack = 4;
/// Guide button.

View File

@@ -99,7 +99,7 @@ class GamepadSim : public GenericHIDSim {
*
* @param value the new value
*/
void SetNorthFacenButton(bool value);
void SetNorthFaceButton(bool value);
/**
* Change the value of the Back button on the controller.