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 };
55 virtual double GetX(JoystickHand hand = kRightHand)
const = 0;
56 virtual double GetY(JoystickHand hand = kRightHand)
const = 0;
105 int GetPOV(
int pov = 0)
const;
133 GenericHID::HIDType
GetType()
const;
162 void SetOutput(
int outputNumber,
bool value);
179 void SetRumble(RumbleType type,
double value);
185 uint16_t m_leftRumble = 0;
186 uint16_t m_rightRumble = 0;
bool GetRawButton(int button) const
Get the button value (starting at button 1).
GenericHID::HIDType GetType() const
Get the type of 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.
int GetButtonCount() const
Get the number of buttons for the HID.
int GetPort() const
Get the port number of the HID.
void SetOutput(int outputNumber, bool value)
Set a single HID output value for the HID.
std::string GetName() const
Get the name of the HID.
Base class for most objects.
Definition: ErrorBase.h:104
void SetRumble(RumbleType type, double value)
Set the rumble output for the HID.
int GetAxisCount() const
Get the number of axes for the HID.
double GetRawAxis(int axis) const
Get the value of the axis.
int GetPOV(int pov=0) const
Get the angle in degrees of a POV on the HID.
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
int GetPOVCount() const
Get the number of POVs for the HID.
Provide access to the network communication data to / from the Driver Station.
Definition: DriverStation.h:33
void SetOutputs(int value)
Set all output values for the HID.
GenericHID Interface.
Definition: GenericHID.h:23
bool GetRawButtonReleased(int button)
Whether the button was released since the last check.