POVDirection
A controller POV direction.
Definition DriverStation.h:55
Handle input from standard HID devices connected to the Driver Station.
Definition GenericHID.h:26
RumbleType
Represents a rumble output on the Joystick.
Definition GenericHID.h:31
HIDType
USB HID interface type.
Definition GenericHID.h:43
Class to control a simulated generic joystick.
Definition GenericHIDSim.h:21
void SetAxisCount(int count)
Set the axis count of this device.
void SetPOV(int pov, DriverStation::POVDirection value)
Set the value of a given POV.
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 SetButtonCount(int count)
Set the button count of this device.
void SetType(GenericHID::HIDType type)
Set the type of this device.
void SetPOV(DriverStation::POVDirection value)
Set the value of the default POV (port 0).
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:141
void SetAxisType(int axis, int type)
Set the type of an axis.
Definition SystemServer.h:9