@ name
Definition base.h:690
POVDirection
A controller POV direction.
Definition DriverStation.hpp:62
Handle input from standard HID devices connected to the Driver Station.
Definition GenericHID.hpp:26
RumbleType
Represents a rumble output on the Joystick.
Definition GenericHID.hpp:31
HIDType
USB HID interface type.
Definition GenericHID.hpp:63
SupportedOutputs
Represents the various outputs that a HID may support.
Definition GenericHID.hpp:45
void SetPOV(int pov, DriverStation::POVDirection value)
Set the value of a given POV.
GenericHIDSim(const GenericHID &joystick)
Constructs from a GenericHID object.
void SetButtonsMaximumIndex(int maximumIndex)
void SetRawButton(int button, bool value)
Set the value of a given button.
void SetButtonsAvailable(uint64_t count)
Set the button count of this device.
GenericHIDSim(int port)
Constructs from a joystick port number.
int32_t GetLeds()
Get the value of set LEDs.
double GetRumble(GenericHID::RumbleType type)
Get the joystick rumble.
void SetName(const char *name)
Set the name of this device.
void SetAxesAvailable(int count)
Set the axis count of this device.
void SetPOVsAvailable(int count)
Set the POV count of this device.
int m_port
GenericHID port.
Definition GenericHIDSim.hpp:133
void SetRawAxis(int axis, double value)
Set the value of a given axis.
void SetSupportedOutputs(GenericHID::SupportedOutputs supportedOutputs)
void SetPOV(DriverStation::POVDirection value)
Set the value of the default POV (port 0).
void SetPOVsMaximumIndex(int maximumIndex)
void NotifyNewData()
Updates joystick data so that new values are visible to the user program.
void SetGamepadType(GenericHID::HIDType type)
Set the type of this device.
void SetAxesMaximumIndex(int maximumIndex)
Definition CTREPCMSim.hpp:13
Definition CvSource.hpp:15