AGX Dynamics  2.37.2.0
agxSensor::Joystick::State Class Reference

Class for storing a Joystick state. 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
}
 Bitmasks indicating the state of the POV button. More...
 

Public Member Functions

 State (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 const int NUM_AXES = 4
 

Protected Member Functions

 State ()
 

Detailed Description

Class for storing a Joystick state.

Definition at line 47 of file Joystick.h.

Member Enumeration Documentation

◆ Pov

Bitmasks indicating the state of the POV button.

Enumerator
CENTERED 
NORTH 
SOUTH 
EAST 
WEST 
NORTHEAST 
SOUTHEAST 
NORTHWEST 
SOUTHWEST 

Definition at line 54 of file Joystick.h.

Constructor & Destructor Documentation

◆ State() [1/2]

agxSensor::Joystick::State::State ( const OIS::JoyStickState &  oisState)

Copies state from device driver.

◆ State() [2/2]

agxSensor::Joystick::State::State ( )
protected

Member Data Documentation

◆ axes

agx::Int32Vector agxSensor::Joystick::State::axes

Contains the values for all axes.

Definition at line 70 of file Joystick.h.

◆ buttons

agx::BoolVector agxSensor::Joystick::State::buttons

Contains the state (in/out) of all buttons.

Definition at line 67 of file Joystick.h.

◆ NUM_AXES

const int agxSensor::Joystick::State::NUM_AXES = 4
static

Definition at line 51 of file Joystick.h.

◆ pov

agx::Int32Vector agxSensor::Joystick::State::pov

Represents the value of POV button. Maximum of 4.

Definition at line 73 of file Joystick.h.

◆ slidersX

agx::Int32Vector agxSensor::Joystick::State::slidersX

Contains the values for all sliders X coordinate. Maximum of 4.

Definition at line 76 of file Joystick.h.

◆ slidersY

agx::Int32Vector agxSensor::Joystick::State::slidersY

Contains the values for all sliders Y coordinate. Maximum of 4.

Definition at line 79 of file Joystick.h.


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