|
AGX Dynamics
2.37.2.0
|
Store the current state of a Joystick/GamePad. More...
#include <Joystick.h>
Public Types | |
| enum | Pov { CENTERED = 0x00000000, NORTH = 0x00000001, SOUTH = 0x00000010, EAST = 0x00000100, WEST = 0x00001000, NORTHEAST = 0x00000101, SOUTHEAST = 0x00000110, NORTHWEST = 0x00001001, SOUTHWEST = 0x00001010 } |
| Bit masks indicating the state of the POV button. More... | |
Public Member Functions | |
| JoystickState (const OIS::JoyStickState &oisState) | |
| Copies state from device driver. More... | |
Public Attributes | |
| agx::Int32Vector | axes |
| Contains the values for all axes. More... | |
| agx::BoolVector | buttons |
| Contains the state (in/out) of all buttons. More... | |
| agx::Int32Vector | pov |
| Represents the value of POV button. Maximum of 4. More... | |
| agx::Int32Vector | slidersX |
| Contains the values for all sliders X coordinate. Maximum of 4. More... | |
| agx::Int32Vector | slidersY |
| Contains the values for all sliders Y coordinate. Maximum of 4. More... | |
Static Public Attributes | |
| static int const | NUM_AXES = Joystick::State::NUM_AXES |
Protected Member Functions | |
| JoystickState () | |
Store the current state of a Joystick/GamePad.
Definition at line 151 of file Joystick.h.
Bit masks indicating the state of the POV button.
| Enumerator | |
|---|---|
| CENTERED | |
| NORTH | |
| SOUTH | |
| EAST | |
| WEST | |
| NORTHEAST | |
| SOUTHEAST | |
| NORTHWEST | |
| SOUTHWEST | |
Definition at line 158 of file Joystick.h.
| agxSensor::JoystickState::JoystickState | ( | const OIS::JoyStickState & | oisState | ) |
Copies state from device driver.
|
protected |
| agx::Int32Vector agxSensor::JoystickState::axes |
Contains the values for all axes.
Definition at line 174 of file Joystick.h.
| agx::BoolVector agxSensor::JoystickState::buttons |
Contains the state (in/out) of all buttons.
Definition at line 171 of file Joystick.h.
|
static |
Definition at line 155 of file Joystick.h.
| agx::Int32Vector agxSensor::JoystickState::pov |
Represents the value of POV button. Maximum of 4.
Definition at line 177 of file Joystick.h.
| agx::Int32Vector agxSensor::JoystickState::slidersX |
Contains the values for all sliders X coordinate. Maximum of 4.
Definition at line 180 of file Joystick.h.
| agx::Int32Vector agxSensor::JoystickState::slidersY |
Contains the values for all sliders Y coordinate. Maximum of 4.
Definition at line 183 of file Joystick.h.