Support Forum       G3D Web Page     
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
G3D::JoystickIndex Class Reference

Analog controller axes. More...

Public Types

enum  Value {
  LEFT,
  RIGHT,
  LEFT_TRIGGER,
  RIGHT_TRIGGER,
  LEFT_SHOULDER,
  RIGHT_SHOULDER
}
 

Public Member Functions

 JoystickIndex (const G3D::String &x)
 
 JoystickIndex (char v)
 
 JoystickIndex (int v)
 
 JoystickIndex (const G3D::Any &a)
 
 JoystickIndex ()
 
 JoystickIndex (const Value v)
 
void deserialize (G3D::BinaryInput &b)
 
unsigned int hashCode () const
 
 operator int () const
 
bool operator!= (const JoystickIndex ::Value other) const
 
bool operator!= (const JoystickIndex other) const
 
JoystickIndex operator+ (const int x) const
 
JoystickIndexoperator++ ()
 
JoystickIndexoperator+= (const int x)
 
JoystickIndex operator- (const int x) const
 
JoystickIndexoperator-- ()
 
JoystickIndexoperator-= (const int x)
 
bool operator< (const JoystickIndex other) const
 
bool operator< (const Value other) const
 
bool operator<= (const Value other) const
 
bool operator<= (const JoystickIndex other) const
 
JoystickIndexoperator= (const G3D::Any &a)
 
bool operator== (const JoystickIndex ::Value other) const
 
bool operator== (const JoystickIndex other) const
 
bool operator> (const JoystickIndex other) const
 
bool operator> (const Value other) const
 
bool operator>= (const JoystickIndex other) const
 
bool operator>= (const Value other) const
 
void serialize (G3D::BinaryOutput &b) const
 
G3D::Any toAny () const
 
const char * toString () const
 

Static Public Member Functions

static const char * classname ()
 
static int count ()
 
static Value nthValue (int n)
 
static const char * toString (int i, Value &v)
 

Public Attributes

enum G3D::JoystickIndex::Value value
 

Detailed Description

Analog controller axes.

Each is 2D, although the y component is not used for all.

See also
G3D::OSWindow, G3D::GameController, G3D::GKey, G3D::UserInput

Member Enumeration Documentation

◆ Value

Enumerator
LEFT 

Left thumb stick.

RIGHT 

Right thumb stick.

LEFT_TRIGGER 

Only the x axis is used.

RIGHT_TRIGGER 

Only the x axis is used.

LEFT_SHOULDER 

Grip/shoulder/bumper button.

Only the x axis is used

RIGHT_SHOULDER 

Grip/shoulder/bumper button.

Only the x axis is used

Constructor & Destructor Documentation

◆ JoystickIndex() [1/6]

G3D::JoystickIndex::JoystickIndex ( const G3D::String x)
inlineexplicit

◆ JoystickIndex() [2/6]

G3D::JoystickIndex::JoystickIndex ( const G3D::Any a)
inlineexplicit

◆ JoystickIndex() [3/6]

G3D::JoystickIndex::JoystickIndex ( char  v)
inlineexplicit

◆ JoystickIndex() [4/6]

G3D::JoystickIndex::JoystickIndex ( )
inline

◆ JoystickIndex() [5/6]

G3D::JoystickIndex::JoystickIndex ( const Value  v)
inline

◆ JoystickIndex() [6/6]

G3D::JoystickIndex::JoystickIndex ( int  v)
inlineexplicit

Member Function Documentation

◆ classname()

static const char* G3D::JoystickIndex::classname ( )
inlinestatic

◆ count()

static int G3D::JoystickIndex::count ( )
inlinestatic

◆ deserialize()

void G3D::JoystickIndex::deserialize ( G3D::BinaryInput b)
inline

◆ hashCode()

unsigned int G3D::JoystickIndex::hashCode ( ) const
inline

◆ nthValue()

static Value G3D::JoystickIndex::nthValue ( int  n)
inlinestatic

◆ operator int()

G3D::JoystickIndex::operator int ( ) const
inline

◆ operator!=() [1/2]

bool G3D::JoystickIndex::operator!= ( const JoystickIndex  other) const
inline

◆ operator!=() [2/2]

bool G3D::JoystickIndex::operator!= ( const JoystickIndex ::Value  other) const
inline

◆ operator+()

JoystickIndex G3D::JoystickIndex::operator+ ( const int  x) const
inline

◆ operator++()

JoystickIndex& G3D::JoystickIndex::operator++ ( )
inline

◆ operator+=()

JoystickIndex& G3D::JoystickIndex::operator+= ( const int  x)
inline

◆ operator-()

JoystickIndex G3D::JoystickIndex::operator- ( const int  x) const
inline

◆ operator--()

JoystickIndex& G3D::JoystickIndex::operator-- ( )
inline

◆ operator-=()

JoystickIndex& G3D::JoystickIndex::operator-= ( const int  x)
inline

◆ operator<() [1/2]

bool G3D::JoystickIndex::operator< ( const Value  other) const
inline

◆ operator<() [2/2]

bool G3D::JoystickIndex::operator< ( const JoystickIndex  other) const
inline

◆ operator<=() [1/2]

bool G3D::JoystickIndex::operator<= ( const JoystickIndex  other) const
inline

◆ operator<=() [2/2]

bool G3D::JoystickIndex::operator<= ( const Value  other) const
inline

◆ operator=()

JoystickIndex& G3D::JoystickIndex::operator= ( const G3D::Any a)
inline

◆ operator==() [1/2]

bool G3D::JoystickIndex::operator== ( const JoystickIndex ::Value  other) const
inline

◆ operator==() [2/2]

bool G3D::JoystickIndex::operator== ( const JoystickIndex  other) const
inline

◆ operator>() [1/2]

bool G3D::JoystickIndex::operator> ( const JoystickIndex  other) const
inline

◆ operator>() [2/2]

bool G3D::JoystickIndex::operator> ( const Value  other) const
inline

◆ operator>=() [1/2]

bool G3D::JoystickIndex::operator>= ( const JoystickIndex  other) const
inline

◆ operator>=() [2/2]

bool G3D::JoystickIndex::operator>= ( const Value  other) const
inline

◆ serialize()

void G3D::JoystickIndex::serialize ( G3D::BinaryOutput b) const
inline

◆ toAny()

G3D::Any G3D::JoystickIndex::toAny ( ) const
inline

◆ toString() [1/2]

const char* G3D::JoystickIndex::toString ( ) const
inline

◆ toString() [2/2]

static const char* G3D::JoystickIndex::toString ( int  i,
Value v 
)
inlinestatic

Member Data Documentation

◆ value

enum G3D::JoystickIndex::Value G3D::JoystickIndex::value

documentation generated on Wed Nov 24 2021 08:01:57 using doxygen 1.8.15