Handle input from standard HID devices connected to the Driver Station.
Definition: GenericHID.h:24
RumbleType
Represents a rumble output on the Joystick.
Definition: GenericHID.h:29
HIDType
USB HID interface type.
Definition: GenericHID.h:41
Class to control a simulated generic joystick.
Definition: GenericHIDSim.h:20
void SetAxisCount(int count)
Set the axis count of this device.
GenericHIDSim(const GenericHID &joystick)
Constructs from a GenericHID object.
int64_t GetOutputs()
Get the encoded 16-bit integer that passes button values.
void NotifyNewData()
Updates joystick data so that new values are visible to the user program.
void SetRawButton(int button, bool value)
Set the value of a given button.
GenericHIDSim(int port)
Constructs from a joystick port number.
void SetPOV(int value)
Set the value of the default POV (port 0).
void SetPOV(int pov, int value)
Set the value of a given POV.
void SetButtonCount(int count)
Set the button count of this device.
void SetType(GenericHID::HIDType type)
Set the type of this device.
bool GetOutput(int outputNumber)
Read the output of a button.
void SetRawAxis(int axis, double value)
Set the value of a given axis.
void SetPOVCount(int count)
Set the POV count of this device.
double GetRumble(GenericHID::RumbleType type)
Get the joystick rumble.
void SetName(const char *name)
Set the name of this device.
int m_port
GenericHID port.
Definition: GenericHIDSim.h:140
void SetAxisType(int axis, int type)
Set the type of an axis.
constexpr auto count() -> size_t
Definition: core.h:1203
type
Definition: core.h:556
Definition: AprilTagPoseEstimator.h:15