14 #include "frc/ErrorBase.h"
25 enum RumbleType { kLeftRumble, kRightRumble };
32 kXInputArcadeStick = 3,
33 kXInputFlightStick = 4,
39 kXInputArcadePad = 19,
47 enum JoystickHand { kLeftHand = 0, kRightHand = 1 };
52 virtual double GetX(JoystickHand hand = kRightHand)
const = 0;
53 virtual double GetY(JoystickHand hand = kRightHand)
const = 0;
102 int GetPOV(
int pov = 0)
const;
130 GenericHID::HIDType
GetType()
const;
159 void SetOutput(
int outputNumber,
bool value);
176 void SetRumble(RumbleType type,
double value);
182 uint16_t m_leftRumble = 0;
183 uint16_t m_rightRumble = 0;
Definition: SPIAccelerometerSim.h:18
bool GetRawButtonReleased(int button)
Whether the button was released since the last check.
bool GetRawButton(int button) const
Get the button value (starting at button 1).
int GetAxisCount() const
Get the number of axes for the HID.
int GetAxisType(int axis) const
Get the axis type of a joystick axis.
bool GetRawButtonPressed(int button)
Whether the button was pressed since the last check.
Provide access to the network communication data to / from the Driver Station.
Definition: DriverStation.h:33
int GetButtonCount() const
Get the number of buttons for the HID.
void SetRumble(RumbleType type, double value)
Set the rumble output for the HID.
GenericHID::HIDType GetType() const
Get the type of the HID.
void SetOutput(int outputNumber, bool value)
Set a single HID output value for the HID.
int GetPOVCount() const
Get the number of POVs for the HID.
double GetRawAxis(int axis) const
Get the value of the axis.
Base class for most objects.
Definition: ErrorBase.h:74
std::string GetName() const
Get the name of the HID.
GenericHID Interface.
Definition: GenericHID.h:23
int GetPort() const
Get the port number of the HID.
void SetOutputs(int value)
Set all output values for the HID.
int GetPOV(int pov=0) const
Get the angle in degrees of a POV on the HID.