LibDS
Qt-based library for controlling FRC robots
Public Attributes | List of all members
DS::Joystick Struct Reference

Represents a joystick and its respective properties. More...

#include <DS_Common.h>

Public Attributes

int * povs
 
qreal * axes
 
bool * buttons
 
int numAxes = 0
 
int numPOVs = 0
 
int numButtons = 0
 
int realNumAxes = 0
 
int realNumPOVs = 0
 
int realNumButtons = 0
 

Detailed Description

Represents a joystick and its respective properties.

Member Data Documentation

qreal* DS::Joystick::axes

Holds the axis values array

Referenced by DriverStation::registerJoystick().

bool* DS::Joystick::buttons

Holds the button states array

Referenced by DriverStation::registerJoystick().

int DS::Joystick::numAxes = 0

Holds the number of axes used by the DS

Referenced by FRC_2015::getJoystickSize(), and DriverStation::registerJoystick().

int DS::Joystick::numButtons = 0

Holds the number of buttons used by the DS

Referenced by FRC_2015::getJoystickSize(), and DriverStation::registerJoystick().

int DS::Joystick::numPOVs = 0

Holds the number of POVs used by the DS

Referenced by FRC_2015::getJoystickSize(), and DriverStation::registerJoystick().

int* DS::Joystick::povs

Holds the POV angles array

Referenced by DriverStation::registerJoystick().

int DS::Joystick::realNumAxes = 0

Holds the number of axes of the joystick

Referenced by DriverStation::reconfigureJoysticks(), and DriverStation::registerJoystick().

int DS::Joystick::realNumButtons = 0

Holds the number of buttons of the joystick

Referenced by DriverStation::reconfigureJoysticks(), and DriverStation::registerJoystick().

int DS::Joystick::realNumPOVs = 0

Holds the number of POVs of the joystick

Referenced by DriverStation::reconfigureJoysticks(), and DriverStation::registerJoystick().


The documentation for this struct was generated from the following file: