Inherits G3D::XR::Controller.
|
template<class T , class ... ArgTypes> |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
| Like std::make_shared, but works for protected constructors. More...
|
|
◆ OpenVRController()
G3D::OpenVR::OpenVRController::OpenVRController |
( |
int |
index, |
|
|
int |
openVRIndex, |
|
|
const String & |
name, |
|
|
bool |
isRight, |
|
|
bool |
hasTouchpad, |
|
|
const String & |
modelFilename |
|
) |
| |
|
inlineprotected |
◆ angleDelta()
virtual float G3D::OpenVR::OpenVRController::angleDelta |
( |
JoystickIndex |
s | ) |
const |
|
overridevirtual |
Value of the joystick axis a.
Returns the counter-clockwise angle in radians that the stick has rotated through since the last HMD::submit
Implements G3D::XR::Controller.
◆ button()
const Button& G3D::OpenVR::OpenVRController::button |
( |
GKey |
k | ) |
const |
|
protected |
◆ create() [1/2]
static shared_ptr<Object> G3D::XR::Object::create |
( |
int |
index, |
|
|
int |
nativeAPIIndex, |
|
|
const String & |
name |
|
) |
| |
|
inlinestaticinherited |
◆ create() [2/2]
static shared_ptr<OpenVRController> G3D::OpenVR::OpenVRController::create |
( |
int |
index, |
|
|
int |
openVRIndex, |
|
|
const String & |
name, |
|
|
bool |
isRight, |
|
|
bool |
hasTouchpad, |
|
|
const String & |
modelFilename |
|
) |
| |
|
inlinestatic |
◆ createShared()
template<class T , class ... ArgTypes>
static shared_ptr<T> G3D::ReferenceCountedObject::createShared |
( |
ArgTypes &&... |
args | ) |
|
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
◆ currentlyDown()
virtual bool G3D::OpenVR::OpenVRController::currentlyDown |
( |
GKey |
b | ) |
const |
|
inlineoverridevirtual |
State (true = pressed, false = released) of the button at the end of the frame.
Implements G3D::XR::Controller.
◆ delta()
◆ frame()
const CFrame& G3D::XR::Object::frame |
( |
| ) |
const |
|
inlineinherited |
Where the AR/VR system estimates the object will be at the time of the next HMD::submit() call, in the room coordinate frame.
◆ hasPhysicalJoystick()
virtual bool G3D::OpenVR::OpenVRController::hasPhysicalJoystick |
( |
| ) |
const |
|
inlinevirtual |
◆ hasTouchpad()
virtual bool G3D::OpenVR::OpenVRController::hasTouchpad |
( |
| ) |
const |
|
inlinevirtual |
◆ index()
const int G3D::XR::Object::index |
( |
| ) |
const |
|
inlineinherited |
◆ isController()
virtual bool G3D::XR::Controller::isController |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ isHMD()
virtual bool G3D::XR::Object::isHMD |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ isLeft()
bool G3D::OpenVR::OpenVRController::isLeft |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isRight()
bool G3D::OpenVR::OpenVRController::isRight |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ justPressed()
virtual bool G3D::OpenVR::OpenVRController::justPressed |
( |
GKey |
b | ) |
const |
|
inlineoverridevirtual |
Was this button pressed at least once since the previous simulation frame?
Implements G3D::XR::Controller.
◆ justReleased()
virtual bool G3D::OpenVR::OpenVRController::justReleased |
( |
GKey |
b | ) |
const |
|
inlineoverridevirtual |
Was this button released at least once since the previous simulation frame?
Implements G3D::XR::Controller.
◆ modelFilename()
String G3D::OpenVR::OpenVRController::modelFilename |
( |
| ) |
const |
|
overridevirtual |
Name of an .ArticulatedModel.Any file to use as the 3D representation of this controller.
Implements G3D::XR::Controller.
Referenced by create().
◆ name()
const String& G3D::XR::Object::name |
( |
| ) |
const |
|
inlineinherited |
◆ nativeAPIIndex()
int G3D::XR::Object::nativeAPIIndex |
( |
| ) |
const |
|
inlineinherited |
◆ previousFrame()
const CFrame& G3D::XR::Object::previousFrame |
( |
| ) |
const |
|
inlineinherited |
Frame that was predicted at the previous HMD::submit() time.
◆ stick()
◆ stickPosition()
◆ update()
virtual void G3D::OpenVR::OpenVRController::update |
( |
vr::IVRSystem * |
| ) |
|
|
protectedvirtual |
◆ m_buttonArray
◆ m_frame
CFrame G3D::XR::Object::m_frame |
|
protectedinherited |
◆ m_hasTouchpad
bool G3D::OpenVR::OpenVRController::m_hasTouchpad = false |
|
protected |
◆ m_index
int G3D::XR::Object::m_index |
|
protectedinherited |
◆ m_isRight
bool G3D::OpenVR::OpenVRController::m_isRight = true |
|
protected |
◆ m_modelFilename
String G3D::OpenVR::OpenVRController::m_modelFilename |
|
protected |
◆ m_name
String G3D::XR::Object::m_name |
|
protectedinherited |
◆ m_nativeAPIIndex
int G3D::XR::Object::m_nativeAPIIndex |
|
protectedinherited |
◆ m_previousFrame
CFrame G3D::XR::Object::m_previousFrame |
|
protectedinherited |
◆ m_stickArray
◆ NUM_BUTTONS
◆ NUM_STICKS
const int G3D::OpenVR::OpenVRController::NUM_STICKS = 6 |
|
staticprotected |
◆ OpenVR
friend G3D::OpenVR::OpenVRController::OpenVR |
|
protected |