OSVR
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | Public Attributes | List of all members
Gestures.TouchController Class Reference

A concrete implementation of the IController class, targeted at the Oculus Rift Touch Controllers More...

Inheritance diagram for Gestures.TouchController:
Gestures.IController

Public Member Functions

override GTransform QueryGTransform ()
 Generate the data representing the position, rotation, velocity, and timing data for the controller More...
 
override bool GestureActive ()
 This method will query the controller to determine whether the gesture activation button is pressed on the correct controller More...
 

Public Attributes

OVRInput.Controller controllerType
 The Touch Controller to use. Typically LTouch or RTouch for left and right hands. More...
 
OVRInput.Button gestureActiveButton
 The controller button which will activate a gesture More...
 
float vibrationFrequency = 0.2f
 The frequency of the controller vibration when the gestureActiveButton is pressed More...
 
float vibrationAmplitude = 0.2f
 The amplitude of the controller vibration when the gestureActiveButton is pressed More...
 

Detailed Description

A concrete implementation of the IController class, targeted at the Oculus Rift Touch Controllers

Member Function Documentation

override bool Gestures.TouchController.GestureActive ( )
inlinevirtual

This method will query the controller to determine whether the gesture activation button is pressed on the correct controller

Returns
Return true if the user is pressing the gesture button, false otherwise

Implements Gestures.IController.

override GTransform Gestures.TouchController.QueryGTransform ( )
inlinevirtual

Generate the data representing the position, rotation, velocity, and timing data for the controller

<remark> Velocity depends on OVRInput.GetLocalControllerVelocity. </remark>

Returns
Returns GTransform instance containing transform data

Implements Gestures.IController.

Member Data Documentation

OVRInput.Controller Gestures.TouchController.controllerType

The Touch Controller to use. Typically LTouch or RTouch for left and right hands.

OVRInput.Button Gestures.TouchController.gestureActiveButton

The controller button which will activate a gesture

float Gestures.TouchController.vibrationAmplitude = 0.2f

The amplitude of the controller vibration when the gestureActiveButton is pressed

float Gestures.TouchController.vibrationFrequency = 0.2f

The frequency of the controller vibration when the gestureActiveButton is pressed


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