#include <Joystick.h>
|
enum | AxisID {
L_STICK_H_AXIS,
L_STICK_V_AXIS,
R_STICK_H_AXIS,
R_STICK_V_AXIS,
DIRECTIONAL_PAD_H_AXIS,
DIRECTIONAL_PAD_V_AXIS,
L_TRIGGER_AXIS,
R_TRIGGER_AXIS,
NUM_STD_AXES
} |
|
enum | ButtonID {
A_BUTTON,
B_BUTTON,
X_BUTTON,
Y_BUTTON,
L_BUTTON,
R_BUTTON,
SELECT_BUTTON,
START_BUTTON,
L_STICK_BUTTON,
R_STICK_BUTTON,
LOGO_BUTTON,
NUM_STD_BUTTONS
} |
|
◆ AxisID
Enumerator |
---|
L_STICK_H_AXIS | |
L_STICK_V_AXIS | |
R_STICK_H_AXIS | |
R_STICK_V_AXIS | |
DIRECTIONAL_PAD_H_AXIS | |
DIRECTIONAL_PAD_V_AXIS | |
L_TRIGGER_AXIS | |
R_TRIGGER_AXIS | |
NUM_STD_AXES | |
◆ ButtonID
Enumerator |
---|
A_BUTTON | |
B_BUTTON | |
X_BUTTON | |
Y_BUTTON | |
L_BUTTON | |
R_BUTTON | |
SELECT_BUTTON | |
START_BUTTON | |
L_STICK_BUTTON | |
R_STICK_BUTTON | |
LOGO_BUTTON | |
NUM_STD_BUTTONS | |
◆ Joystick() [1/2]
◆ Joystick() [2/2]
Joystick::Joystick |
( |
const char * |
device | ) |
|
◆ ~Joystick()
◆ device()
std::string Joystick::device |
( |
| ) |
const |
◆ errorMessage()
const char * Joystick::errorMessage |
( |
| ) |
const |
◆ fileDescriptor()
int Joystick::fileDescriptor |
( |
| ) |
const |
◆ getButtonState()
bool Joystick::getButtonState |
( |
int |
button | ) |
const |
|
overridevirtual |
◆ getPosition()
double Joystick::getPosition |
( |
int |
axis | ) |
const |
|
overridevirtual |
◆ isActive()
bool Joystick::isActive |
( |
| ) |
const |
◆ isReady()
bool Joystick::isReady |
( |
| ) |
const |
◆ makeReady()
bool Joystick::makeReady |
( |
| ) |
|
◆ numAxes()
int Joystick::numAxes |
( |
| ) |
const |
|
overridevirtual |
◆ numButtons()
int Joystick::numButtons |
( |
| ) |
const |
|
overridevirtual |
◆ readCurrentState()
bool Joystick::readCurrentState |
( |
| ) |
|
|
overridevirtual |
◆ setAxisEnabled()
void Joystick::setAxisEnabled |
( |
int |
axis, |
|
|
bool |
on |
|
) |
| |
◆ sigAxis()
SignalProxy< void(int id, double position)> Joystick::sigAxis |
( |
| ) |
|
◆ sigButton()
SignalProxy< void(int id, bool isPressed)> Joystick::sigButton |
( |
| ) |
|
◆ JoystickImpl
friend class JoystickImpl |
|
friend |
The documentation for this class was generated from the following files: