23 typedef enum { kLeftRumble, kRightRumble } RumbleType;
30 kXInputArcadeStick = 3,
31 kXInputFlightStick = 4,
37 kXInputArcadePad = 19,
45 enum JoystickHand { kLeftHand = 0, kRightHand = 1 };
50 virtual double GetX(JoystickHand hand = kRightHand)
const = 0;
51 virtual double GetY(JoystickHand hand = kRightHand)
const = 0;
56 int GetPOV(
int pov = 0)
const;
60 GenericHID::HIDType
GetType()
const;
63 void SetOutput(
int outputNumber,
bool value);
65 void SetRumble(RumbleType type,
double value);
71 uint16_t m_leftRumble = 0;
72 uint16_t m_rightRumble = 0;
int GetPort() const
Get the port number of the HID.
Definition: GenericHID.cpp:68
std::string GetName() const
Get the name of the HID.
Definition: GenericHID.cpp:84
int GetPOV(int pov=0) const
Get the angle in degrees of a POV on the HID.
Definition: GenericHID.cpp:52
Provide access to the network communication data to / from the Driver Station.
Definition: DriverStation.h:28
void SetOutput(int outputNumber, bool value)
Set a single HID output value for the HID.
Definition: GenericHID.cpp:93
int GetPOVCount() const
Get the number of POVs for the HID.
Definition: GenericHID.cpp:61
virtual double GetRawAxis(int axis) const
Get the value of the axis.
Definition: GenericHID.cpp:25
bool GetRawButton(int button) const
Get the button value (starting at button 1)
Definition: GenericHID.cpp:39
void SetOutputs(int value)
Set all output values for the HID.
Definition: GenericHID.cpp:105
GenericHID Interface.
Definition: GenericHID.h:21
GenericHID::HIDType GetType() const
Get the type of the HID.
Definition: GenericHID.cpp:75
void SetRumble(RumbleType type, double value)
Set the rumble output for the HID.
Definition: GenericHID.cpp:118