The vrOculusTouchController class is a proxy class for an Oculus Touch
Controller. You only pass the name of the Oculus Touch Controller to the
constructor to connect this proxy class to a controller. The controllers
are named "LeftTouch" for the left hand controller and
"RightTouch" for the right hand controller. Other names are not
valid and will be ignored.
|
__init__(name)
The constructor of the vrOculusTouchController class. |
|
|
|
button0IsPressed()
SIGNAL is emitted while the X or A button is pressed down. |
|
|
|
button0IsTouched()
SIGNAL is emitted while the X or A button is touched. |
|
|
|
button0Pressed()
SIGNAL is emitted when the X or A button is pressed. |
|
|
|
button0Released()
SIGNAL is emitted when the X or A button is released. |
|
|
|
button0Touched()
SIGNAL is emitted when the X or A button is touched. |
|
|
|
button0Untouched()
SIGNAL is emitted when the X or A button is untouched. |
|
|
|
button1IsPressed()
SIGNAL is emitted while the Y or B button is pressed down. |
|
|
|
button1IsTouched()
SIGNAL is emitted while the Y or B button is touched. |
|
|
|
button1Pressed()
SIGNAL is emitted when the Y or B button is pressed. |
|
|
|
button1Released()
SIGNAL is emitted when the Y or B button is is released. |
|
|
|
button1Touched()
SIGNAL is emitted when the Y or B button is touched. |
|
|
|
button1Untouched()
SIGNAL is emitted when the Y or B button is untouched. |
|
|
|
controllerMoved()
SIGNAL is called constantly when the controller moves. |
|
|
vrNodePtr
|
|
int
|
getHandRole()
Get whether this controller is left or right hand. |
|
|
float
|
|
Vec2f
|
|
float
|
|
int
|
|
list of floats (32bit)
|
getWorldMatrix()
Returns the world space transformation matrix of the controller. |
|
|
|
handPoseStarted(poseId)
SIGNAL is called when a hand pose is detected in Hand visualization
mode. |
|
|
|
handPoseStopped(poseId)
SIGNAL is called when a hand pose stops in Hand visualization mode. |
|
|
|
handRoleChanged(role)
SIGNAL is called when the hand role has changed, after the hand model
has been loaded. |
|
|
|
handTouchContinues(touchedNodeId,
fingerId)
SIGNAL is called when the finger continues touching the node. |
|
|
|
handTouchStarted(touchedNodeId,
fingerId)
SIGNAL is called when a finger of this controller's hand has touched
a node in the scene that was made interactable with
setNodeInteractableInVR(node, True). |
|
|
|
handTouchStopped(touchedNodeId,
fingerId)
SIGNAL is called when the finger stops touching the node. |
|
|
|
handTriggerChanged(value)
SIGNAL is called when the value of the hand trigger button (grip
button) is changed. |
|
|
|
handTriggerIsPressed()
SIGNAL is emitted while the hand trigger button (grip button) is
pressed down. |
|
|
|
handTriggerPressed()
SIGNAL is emitted when the hand trigger button (grip button) is
pressed. |
|
|
|
handTriggerReleased()
SIGNAL is emitted when the hand trigger button (grip button) is
released. |
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
isHandAnimationEnabled()
Get whether the finger joints are transfomed when the user pressed or
touches buttons in Hand visualization mode. |
|
|
bool
|
isHandInteractionEnabled()
Get whether the interaction with Web engines and Touch sensors is
enabled in Hand visualization mode. |
|
|
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
isVisible()
Gets the visibility of the visualization (geometry or hands) of this
controller. |
|
|
vrNodePtr
|
pickNode()
Performs a selection along the picking axis of the controller and
returns the nearest node along the picking ray. |
|
|
tuple<vrNodePtr, Pnt3f, Vec3f, Pnt2f>
|
pickNodeEx()
Performs a selection along the picking axis of the controller and
returns the nearest node along the picking ray. |
|
|
tuple<vrNodePtr, Pnt3f, Vec3f, Pnt2f>
|
pickNodeWithFinger(fingerId)
Performs a selection with a ray emenating from the finger tip and
returns the nearest node along the picking ray. |
|
|
|
|
|
setHandAnimationEnabled(enabled)
Enables or disables transformation of finger joints when the user
pressed or touches buttons in Hand visualization mode. |
|
|
|
setHandInteractionEnabled(enabled)
Enables or disables the interaction with Web engines and Touch
sensors in Hand visualization mode. |
|
|
|
|
|
setPickingAxis(axis)
Sets the axis used for picking on this controller. |
|
|
|
setVisible(visible)
Sets the visibility of the visualization (geometry or hands) of this
controller. |
|
|
|
setVisualizationMode(mode)
Sets how the controller should be visualized (controller geometry or
hands). |
|
|
|
|
|
|
|
|
|
|
|
thumbstickChanged(position)
SIGNAL is called when the position on the thumbstick changed. |
|
|
|
thumbstickIsPressed()
SIGNAL is emitted while the thumbstick is pressed down. |
|
|
|
thumbstickIsTouched()
SIGNAL is emitted while the thumbstick button is touched. |
|
|
|
thumbstickPressed()
SIGNAL is emitted when the thumbstick is pressed. |
|
|
|
thumbstickReleased()
SIGNAL is emitted when the thumbstick is released. |
|
|
|
thumbstickTouched()
SIGNAL is emitted when the thumbstick button is touched. |
|
|
|
thumbstickUntouched()
SIGNAL is emitted when the thumbstick button is untouched. |
|
|
|
triggerChanged(value)
SIGNAL is called when the value of the trigger is changed. |
|
|
|
|
|
triggerIsPressed()
SIGNAL is emitted while the trigger button is pressed down. |
|
|
|
triggerIsTouched()
SIGNAL is emitted while the trigger button is touched. |
|
|
|
triggerPressed()
SIGNAL is emitted when the trigger button is pressed. |
|
|
|
triggerReleased()
SIGNAL is emitted when the trigger button is released. |
|
|
|
triggerTouched()
SIGNAL is emitted when the trigger button is touched. |
|
|
|
triggerUntouched()
SIGNAL is emitted when the trigger button is untouched. |
|
|
|
|
Inherited from vrAEBase.vrAEBase :
__reduce__ ,
addLoop ,
callAllConnected ,
connect ,
connectSignal ,
emitSignal ,
getModuleName ,
isActive ,
loop ,
recEvent ,
removeConnections ,
setActive ,
setUpdateGUIEnabled ,
subLoop
Inherited from unreachable.instance :
__new__
|