API reference
API reference
Select your platform
No SDKs available
No versions available

OVRInputModule Class

Extends PointerInputModule
VR extension of PointerInputModule which supports gaze and controller pointing.

Member Enumerations

Enumeration InputMode

Mouse
No description available
Buttons
No description available

Fields

Transform rayTransform[Get]
OVRCursor m_Cursor[Get]
OVRInput.Button joyPadClickButton[Get]
KeyCode gazeClickKey[Get]
bool performSphereCastForGazepointer[Get]
bool useRightStickScroll[Get]
float rightStickDeadZone[Get]
bool useSwipeScroll[Get]
float swipeDragThreshold[Get]
float swipeDragScale[Get]
bool InvertSwipeXAxis[Get]
OVRRaycaster activeGraphicRaycaster[Get]
float angleDragThreshold[Get]

Properties

InputMode inputMode[Get]
bool allowActivationOnMobileDevice[Get]
float inputActionsPerSecond[Get]
Name of the horizontal axis for movement (if axis events are used).
Name of the vertical axis for movement (if axis events are used).
string submitButton[Get]
string cancelButton[Get]
static OVRInputModule instance[Get]

Protected Fields

Dictionary< int, OVRPointerEventData > m_VRRayPointerData[Get]

Protected Functions

OVRInputModule ( )
override void Awake ( )
Convenience function for cloning PointerEventData.
Parameters
from
Copy this value
to
to this object
Convenience function for cloning PointerEventData.
Parameters
from
Copy this value
to
to this object
bool GetPointerData
( int id,
bool create )
Clear pointer state for both types of pointer.
Handle inputs from hands and controllers and parse them in a way unity UI can understand.
Returns
State for a pointer controlled by a world space ray.
E.g. gaze pointer
Returns
Get state for pointer which is a pointer moving in world space across the surface of a world space canvas.
Returns
Vector2 SwipeAdjustedPosition
( Vector2 originalPosition,
PointerEventData pointerEvent )
Exactly the same as the code from PointerInputModule, except that we call our own IsPointerMoving.
This would also not be necessary if PointerEventData.IsPointerMoving was virtual
Parameters
pointerEvent
Get state of button corresponding to gaze pointer.
Returns
Get extra scroll delta from gamepad.
override void OnDestroy ( )

Member Functions

override void UpdateModule ( )
override bool IsModuleSupported ( )
override bool ShouldActivateModule ( )
override void ActivateModule ( )
override void DeactivateModule ( )
Process this InputModule.
Same as the StandaloneInputModule version, except that it calls ProcessMouseEvent twice, once for gaze pointers, and once for mouse pointers.

Static Member Functions

static void TrackInputSource
( InputSource hand )
static void UntrackInputSource
( InputSource hand )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon