Support Forum G3D Web Page |
Inherits Controller.
Classes | |
class | Button |
class | Stick |
Public Member Functions | |
virtual float | angleDelta (JoystickIndex s) const override |
virtual bool | currentlyDown (GKey k) const override |
virtual Vector2 | delta (JoystickIndex s) const override |
virtual bool | hasPhysicalJoystick () const |
virtual bool | hasTouchpad () const |
bool | isLeft () const |
bool | isRight () const |
virtual bool | justPressed (GKey k) const override |
virtual bool | justReleased (GKey k) const override |
String | modelFilename () const |
virtual Vector2 | stickPosition (JoystickIndex s) const override |
Static Public Member Functions | |
static shared_ptr< EmulatedXRController > | create (EmulatedXR *xr, int index, int nativeAPIIndex, const String &name, bool isRight) |
Public Attributes | |
int | openVRIndex = -1 |
Protected Member Functions | |
EmulatedXRController (EmulatedXR *xr, int index, int nativeAPIIndex, const String &name, bool isRight) | |
const Button & | button (GKey k) const |
Performs range checking. More... | |
const Stick & | stick (JoystickIndex s) const |
Performs range checking. More... | |
Protected Attributes | |
friend | EmulatedXR |
Button | m_buttonArray [NUM_BUTTONS] |
bool | m_hasTouchpad = false |
bool | m_isRight = true |
False for the left... More... | |
Stick | m_stickArray [NUM_STICKS] |
EmulatedXR * | m_xr |
Static Protected Attributes | |
static const int | NUM_BUTTONS = GKey::CONTROLLER_RIGHT_TRIGGER - GKey::CONTROLLER_A + 1 |
static const int | NUM_STICKS = 6 |
|
inlineprotected |
|
inlineoverridevirtual |
Performs range checking.
Referenced by currentlyDown(), justPressed(), and justReleased().
|
inlinestatic |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
Referenced by create().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
|
inlineprotected |
Performs range checking.
Referenced by delta(), and stickPosition().
|
inlineoverridevirtual |
|
protected |
|
protected |
|
protected |
|
protected |
False for the left...
Referenced by isLeft(), isRight(), and modelFilename().
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
int G3D::EmulatedXR::EmulatedXRController::openVRIndex = -1 |