Public Types

enum
Button {
Button.None = 0, Button.One = 0x00000001, Button.Two = 0x00000002, Button.Three = 0x00000004, Button.Four = 0x00000008, Button.Start = 0x00000100, Button.Back = 0x00000200, Button.PrimaryShoulder = 0x00001000, Button.PrimaryIndexTrigger = 0x00002000, Button.PrimaryHandTrigger = 0x00004000, Button.PrimaryThumbstick = 0x00008000, Button.PrimaryThumbstickUp = 0x00010000, Button.PrimaryThumbstickDown = 0x00020000, Button.PrimaryThumbstickLeft = 0x00040000, Button.PrimaryThumbstickRight = 0x00080000, Button.PrimaryTouchpad = 0x00000400, Button.SecondaryShoulder = 0x00100000, Button.SecondaryIndexTrigger = 0x00200000, Button.SecondaryHandTrigger = 0x00400000, Button.SecondaryThumbstick = 0x00800000, Button.SecondaryThumbstickUp = 0x01000000, Button.SecondaryThumbstickDown = 0x02000000, Button.SecondaryThumbstickLeft = 0x04000000, Button.SecondaryThumbstickRight = 0x08000000, Button.SecondaryTouchpad = 0x00000800, Button.DpadUp = 0x00000010, Button.DpadDown = 0x00000020, Button.DpadLeft = 0x00000040, Button.DpadRight = 0x00000080, Button.Up = 0x10000000, Button.Down = 0x20000000, Button.Left = 0x40000000, Button.Right = unchecked((int)0x80000000), Button.Any = ~None
}
Virtual button mappings that allow the same input bindings to work across different controllers.
enum
RawButton {
RawButton.None = 0, RawButton.A = 0x00000001, RawButton.B = 0x00000002, RawButton.X = 0x00000100, RawButton.Y = 0x00000200, RawButton.Start = 0x00100000, RawButton.Back = 0x00200000, RawButton.LShoulder = 0x00000800, RawButton.LIndexTrigger = 0x10000000, RawButton.LHandTrigger = 0x20000000, RawButton.LThumbstick = 0x00000400, RawButton.LThumbstickUp = 0x00000010, RawButton.LThumbstickDown = 0x00000020, RawButton.LThumbstickLeft = 0x00000040, RawButton.LThumbstickRight = 0x00000080, RawButton.LTouchpad = 0x40000000, RawButton.RShoulder = 0x00000008, RawButton.RIndexTrigger = 0x04000000, RawButton.RHandTrigger = 0x08000000, RawButton.RThumbstick = 0x00000004, RawButton.RThumbstickUp = 0x00001000, RawButton.RThumbstickDown = 0x00002000, RawButton.RThumbstickLeft = 0x00004000, RawButton.RThumbstickRight = 0x00008000, RawButton.RTouchpad = unchecked((int)0x80000000), RawButton.DpadUp = 0x00010000, RawButton.DpadDown = 0x00020000, RawButton.DpadLeft = 0x00040000, RawButton.DpadRight = 0x00080000, RawButton.Any = ~None
}
Raw button mappings that can be used to directly query the state of a controller.
enum
Touch {
Touch.None = 0, Touch.One = Button.One, Touch.Two = Button.Two, Touch.Three = Button.Three, Touch.Four = Button.Four, Touch.PrimaryIndexTrigger = Button.PrimaryIndexTrigger, Touch.PrimaryThumbstick = Button.PrimaryThumbstick, Touch.PrimaryThumbRest = 0x00001000, Touch.PrimaryTouchpad = Button.PrimaryTouchpad, Touch.SecondaryIndexTrigger = Button.SecondaryIndexTrigger, Touch.SecondaryThumbstick = Button.SecondaryThumbstick, Touch.SecondaryThumbRest = 0x00100000, Touch.SecondaryTouchpad = Button.SecondaryTouchpad, Touch.Any = ~None
}
Virtual capacitive touch mappings that allow the same input bindings to work across different controllers with capacitive touch support.
enum
RawTouch {
RawTouch.None = 0, RawTouch.A = RawButton.A, RawTouch.B = RawButton.B, RawTouch.X = RawButton.X, RawTouch.Y = RawButton.Y, RawTouch.LIndexTrigger = 0x00001000, RawTouch.LThumbstick = RawButton.LThumbstick, RawTouch.LThumbRest = 0x00000800, RawTouch.LTouchpad = RawButton.LTouchpad, RawTouch.RIndexTrigger = 0x00000010, RawTouch.RThumbstick = RawButton.RThumbstick, RawTouch.RThumbRest = 0x00000008, RawTouch.RTouchpad = RawButton.RTouchpad, RawTouch.Any = ~None
}
Raw capacitive touch mappings that can be used to directly query the state of a controller.
enum
NearTouch {
}
Virtual near touch mappings that allow the same input bindings to work across different controllers with near touch support.
enum
RawNearTouch {
}
Raw near touch mappings that can be used to directly query the state of a controller.
enum
Axis1D {
}
Virtual 1-dimensional axis (float) mappings that allow the same input bindings to work across different controllers.
enum
RawAxis1D {
}
Raw 1-dimensional axis (float) mappings that can be used to directly query the state of a controller.
enum
Axis2D {
}
Virtual 2-dimensional axis (Vector2) mappings that allow the same input bindings to work across different controllers.
enum
RawAxis2D {
}
Raw 2-dimensional axis (Vector2) mappings that can be used to directly query the state of a controller.
enum
Controller {
Controller.None = OVRPlugin.Controller.None, Controller.LTouch = OVRPlugin.Controller.LTouch, Controller.RTouch = OVRPlugin.Controller.RTouch, Controller.Touch = OVRPlugin.Controller.Touch, Controller.Remote = OVRPlugin.Controller.Remote, Controller.Gamepad = OVRPlugin.Controller.Gamepad, Controller.Touchpad = OVRPlugin.Controller.Touchpad, Controller.LTrackedRemote = OVRPlugin.Controller.LTrackedRemote, Controller.RTrackedRemote = OVRPlugin.Controller.RTrackedRemote, Controller.Active = OVRPlugin.Controller.Active, Controller.All = OVRPlugin.Controller.All
}
Identifies a controller which can be used to query the virtual or raw input state.
enum
Handedness {
Handedness.Unsupported = OVRPlugin.Handedness.Unsupported, Handedness.LeftHanded = OVRPlugin.Handedness.LeftHanded, Handedness.RightHanded = OVRPlugin.Handedness.RightHanded
}

Private Static Fields

static readonly float
static readonly float
static List< OVRControllerBase >
static Controller
static Controller
static OVRPlugin.Step
static int
static bool
static bool
static System.Version

Properties

static bool

Object Data

static static
Creates an instance of OVRInput.
static bool
GetResolvedButton ( Button virtualMask, RawButton rawMask, Controller controllerMask )
static bool
GetResolvedButtonDown ( Button virtualMask, RawButton rawMask, Controller controllerMask )
static bool
GetResolvedButtonUp ( Button virtualMask, RawButton rawMask, Controller controllerMask )
static bool
GetResolvedTouch ( Touch virtualMask, RawTouch rawMask, Controller controllerMask )
static bool
GetResolvedTouchDown ( Touch virtualMask, RawTouch rawMask, Controller controllerMask )
static bool
GetResolvedTouchUp ( Touch virtualMask, RawTouch rawMask, Controller controllerMask )
static bool
GetResolvedNearTouch ( NearTouch virtualMask, RawNearTouch rawMask, Controller controllerMask )
static bool
GetResolvedNearTouchDown ( NearTouch virtualMask, RawNearTouch rawMask, Controller controllerMask )
static bool
GetResolvedNearTouchUp ( NearTouch virtualMask, RawNearTouch rawMask, Controller controllerMask )
static float
GetResolvedAxis1D ( Axis1D virtualMask, RawAxis1D rawMask, Controller controllerMask )
static Vector2
GetResolvedAxis2D ( Axis2D virtualMask, RawAxis2D rawMask, Controller controllerMask )
static Vector2
CalculateAbsMax ( Vector2 a, Vector2 b )
static float
CalculateAbsMax ( float a, float b )
static Vector2
CalculateDeadzone ( Vector2 a, float deadzone )
static float
CalculateDeadzone ( float a, float deadzone )
static bool
ShouldResolveController ( Controller controllerType, Controller controllerMask )

Static Public Member Functions

static void
Update ( )
Updates the internal state of OVRInput.
static void
Updates the internal physics state of OVRInput.
static bool
Returns true if the given Controller's orientation is currently tracked.
static bool
Returns true if the given Controller's position is currently tracked.
static Vector3
Gets the position of the given Controller local to its tracking space.
static Vector3
Gets the linear velocity of the given Controller local to its tracking space.
static Vector3
Gets the linear acceleration of the given Controller local to its tracking space.
static Quaternion
Gets the rotation of the given Controller local to its tracking space.
static Vector3
Gets the angular velocity of the given Controller local to its tracking space in radians per second around each axis.
static Vector3
Gets the angular acceleration of the given Controller local to its tracking space in radians per second per second around each axis.
static Handedness
Gets the dominant hand that the user has specified in settings, for mobile devices.
static bool
Get ( Button virtualMask, Controller controllerMask )
Gets the current state of the given virtual button mask with the given controller mask.
static bool
Get ( RawButton rawMask, Controller controllerMask )
Gets the current state of the given raw button mask with the given controller mask.
static bool
GetDown ( Button virtualMask, Controller controllerMask )
Gets the current down state of the given virtual button mask with the given controller mask.
static bool
GetDown ( RawButton rawMask, Controller controllerMask )
Gets the current down state of the given raw button mask with the given controller mask.
static bool
GetUp ( Button virtualMask, Controller controllerMask )
Gets the current up state of the given virtual button mask with the given controller mask.
static bool
GetUp ( RawButton rawMask, Controller controllerMask )
Gets the current up state of the given raw button mask with the given controller mask.
static bool
Get ( Touch virtualMask, Controller controllerMask )
Gets the current state of the given virtual touch mask with the given controller mask.
static bool
Get ( RawTouch rawMask, Controller controllerMask )
Gets the current state of the given raw touch mask with the given controller mask.
static bool
GetDown ( Touch virtualMask, Controller controllerMask )
Gets the current down state of the given virtual touch mask with the given controller mask.
static bool
GetDown ( RawTouch rawMask, Controller controllerMask )
Gets the current down state of the given raw touch mask with the given controller mask.
static bool
GetUp ( Touch virtualMask, Controller controllerMask )
Gets the current up state of the given virtual touch mask with the given controller mask.
static bool
GetUp ( RawTouch rawMask, Controller controllerMask )
Gets the current up state of the given raw touch mask with the given controller mask.
static bool
Get ( NearTouch virtualMask, Controller controllerMask )
Gets the current state of the given virtual near touch mask with the given controller mask.
static bool
Get ( RawNearTouch rawMask, Controller controllerMask )
Gets the current state of the given raw near touch mask with the given controller mask.
static bool
GetDown ( NearTouch virtualMask, Controller controllerMask )
Gets the current down state of the given virtual near touch mask with the given controller mask.
static bool
GetDown ( RawNearTouch rawMask, Controller controllerMask )
Gets the current down state of the given raw near touch mask with the given controller mask.
static bool
GetUp ( NearTouch virtualMask, Controller controllerMask )
Gets the current up state of the given virtual near touch mask with the given controller mask.
static bool
GetUp ( RawNearTouch rawMask, Controller controllerMask )
Gets the current up state of the given raw near touch mask with the given controller mask.
static float
Get ( Axis1D virtualMask, Controller controllerMask )
Gets the current state of the given virtual 1-dimensional axis mask on the given controller mask.
static float
Get ( RawAxis1D rawMask, Controller controllerMask )
Gets the current state of the given raw 1-dimensional axis mask on the given controller mask.
static Vector2
Get ( Axis2D virtualMask, Controller controllerMask )
Gets the current state of the given virtual 2-dimensional axis mask on the given controller mask.
static Vector2
Get ( RawAxis2D rawMask, Controller controllerMask )
Gets the current state of the given raw 2-dimensional axis mask on the given controller mask.
static Controller
Returns a mask of all currently connected controller types.
static bool
Returns true if the specified controller type is currently connected.
static Controller
Returns the current active controller type.
static void
SetControllerVibration ( float frequency, float amplitude, Controller controllerMask )
Activates vibration with the given frequency and amplitude with the given controller mask.
static void
RecenterController ( Controller controllerMask )
Triggers a recenter to realign the specified controller's virtual pose with the user's real-world pose.
static bool
Returns true if the specified controller was recentered this frame.
static byte
Returns the number of times the controller has been recentered this session.
static byte
Returns the battery percentage remaining for the specified controller.

Member Enumeration Documentation

enum OVRInput.Button
Virtual button mappings that allow the same input bindings to work across different controllers.
Enumerator
None
Maps to RawButton: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
One
Maps to RawButton: [Gamepad, Touch, RTouch: A], [LTouch: X], [LTrackedRemote: LTouchpad], [RTrackedRemote: RTouchpad], [Touchpad, Remote: Start].
Two
Maps to RawButton: [Gamepad, Touch, RTouch: B], [LTouch: Y], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: Back].
Three
Maps to RawButton: [Gamepad, Touch: X], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Four
Maps to RawButton: [Gamepad, Touch: Y], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Start
Maps to RawButton: [Gamepad: Start], [Touch, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: Start], [RTouch: None].
Back
Maps to RawButton: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: Back], [Touch, LTouch, RTouch: None].
PrimaryShoulder
Maps to RawButton: [Gamepad: LShoulder], [Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryIndexTrigger
Maps to RawButton: [Gamepad, Touch, LTouch, LTrackedRemote: LIndexTrigger], [RTouch, RTrackedRemote: RIndexTrigger], [Touchpad, Remote: None].
PrimaryHandTrigger
Maps to RawButton: [Touch, LTouch: LHandTrigger], [RTouch: RHandTrigger], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbstick
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstick], [RTouch: RThumbstick], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbstickUp
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstickUp], [RTouch: RThumbstickUp], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbstickDown
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstickDown], [RTouch: RThumbstickDown], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbstickLeft
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstickLeft], [RTouch: RThumbstickLeft], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbstickRight
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstickRight], [RTouch: RThumbstickRight], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryTouchpad
Maps to RawButton: [LTrackedRemote, Touchpad: LTouchpad], [RTrackedRemote: RTouchpad], [Gamepad, Touch, LTouch, RTouch, Remote: None].
SecondaryShoulder
Maps to RawButton: [Gamepad: RShoulder], [Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryIndexTrigger
Maps to RawButton: [Gamepad, Touch: RIndexTrigger], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryHandTrigger
Maps to RawButton: [Touch: RHandTrigger], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryThumbstick
Maps to RawButton: [Gamepad, Touch: RThumbstick], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryThumbstickUp
Maps to RawButton: [Gamepad, Touch: RThumbstickUp], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryThumbstickDown
Maps to RawButton: [Gamepad, Touch: RThumbstickDown], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryThumbstickLeft
Maps to RawButton: [Gamepad, Touch: RThumbstickLeft], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryThumbstickRight
Maps to RawButton: [Gamepad, Touch: RThumbstickRight], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryTouchpad
Maps to RawButton: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
DpadUp
Maps to RawButton: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadUp], [Touch, LTouch, RTouch: None].
DpadDown
Maps to RawButton: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadDown], [Touch, LTouch, RTouch: None].
DpadLeft
Maps to RawButton: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadLeft], [Touch, LTouch, RTouch: None].
DpadRight
Maps to RawButton: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadRight], [Touch, LTouch, RTouch: None].
Up
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstickUp], [RTouch: RThumbstickUp], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadUp].
Down
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstickDown], [RTouch: RThumbstickDown], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadDown].
Left
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstickLeft], [RTouch: RThumbstickLeft], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadLeft].
Right
Maps to RawButton: [Gamepad, Touch, LTouch: LThumbstickRight], [RTouch: RThumbstickRight], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadRight].
Any
Maps to RawButton: [Gamepad, Touch, LTouch, RTouch: Any].
enum OVRInput.RawButton
Raw button mappings that can be used to directly query the state of a controller.
Enumerator
None
Maps to Physical Button: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
A
Maps to Physical Button: [Gamepad, Touch, RTouch: A], [LTrackedRemote: LIndexTrigger], [RTrackedRemote: RIndexTrigger], [LTouch, Touchpad, Remote: None].
B
Maps to Physical Button: [Gamepad, Touch, RTouch: B], [LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
X
Maps to Physical Button: [Gamepad, Touch, LTouch: X], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Y
Maps to Physical Button: [Gamepad, Touch, LTouch: Y], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Start
Maps to Physical Button: [Gamepad, Touch, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: Start], [RTouch: None].
Back
Maps to Physical Button: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: Back], [Touch, LTouch, RTouch: None].
LShoulder
Maps to Physical Button: [Gamepad: LShoulder], [Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LIndexTrigger
Maps to Physical Button: [Gamepad, Touch, LTouch, LTrackedRemote: LIndexTrigger], [RTouch, RTrackedRemote, Touchpad, Remote: None].
LHandTrigger
Maps to Physical Button: [Touch, LTouch: LHandTrigger], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbstick
Maps to Physical Button: [Gamepad, Touch, LTouch: LThumbstick], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbstickUp
Maps to Physical Button: [Gamepad, Touch, LTouch: LThumbstickUp], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbstickDown
Maps to Physical Button: [Gamepad, Touch, LTouch: LThumbstickDown], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbstickLeft
Maps to Physical Button: [Gamepad, Touch, LTouch: LThumbstickLeft], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbstickRight
Maps to Physical Button: [Gamepad, Touch, LTouch: LThumbstickRight], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LTouchpad
Maps to Physical Button: [LTrackedRemote: LTouchpad], [Gamepad, Touch, LTouch, RTouch, RTrackedRemote, Touchpad, Remote: None].
RShoulder
Maps to Physical Button: [Gamepad: RShoulder], [Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RIndexTrigger
Maps to Physical Button: [Gamepad, Touch, RTouch, RTrackedRemote: RIndexTrigger], [LTouch, LTrackedRemote, Touchpad, Remote: None].
RHandTrigger
Maps to Physical Button: [Touch, RTouch: RHandTrigger], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RThumbstick
Maps to Physical Button: [Gamepad, Touch, RTouch: RThumbstick], [LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RThumbstickUp
Maps to Physical Button: [Gamepad, Touch, RTouch: RThumbstickUp], [LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RThumbstickDown
Maps to Physical Button: [Gamepad, Touch, RTouch: RThumbstickDown], [LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RThumbstickLeft
Maps to Physical Button: [Gamepad, Touch, RTouch: RThumbstickLeft], [LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RThumbstickRight
Maps to Physical Button: [Gamepad, Touch, RTouch: RThumbstickRight], [LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RTouchpad
Maps to Physical Button: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
DpadUp
Maps to Physical Button: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadUp], [Touch, LTouch, RTouch: None].
DpadDown
Maps to Physical Button: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadDown], [Touch, LTouch, RTouch: None].
DpadLeft
Maps to Physical Button: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadLeft], [Touch, LTouch, RTouch: None].
DpadRight
Maps to Physical Button: [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: DpadRight], [Touch, LTouch, RTouch: None].
Any
Maps to Physical Button: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: Any].
enum OVRInput.Touch
Virtual capacitive touch mappings that allow the same input bindings to work across different controllers with capacitive touch support.
Enumerator
None
Maps to RawTouch: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
One
Maps to RawTouch: [Touch, RTouch: A], [LTouch: X], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Two
Maps to RawTouch: [Touch, RTouch: B], [LTouch: Y], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Three
Maps to RawTouch: [Touch: X], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Four
Maps to RawTouch: [Touch: Y], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryIndexTrigger
Maps to RawTouch: [Touch, LTouch: LIndexTrigger], [RTouch: RIndexTrigger], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbstick
Maps to RawTouch: [Touch, LTouch: LThumbstick], [RTouch: RThumbstick], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbRest
Maps to RawTouch: [Touch, LTouch: LThumbRest], [RTouch: RThumbRest], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryTouchpad
Maps to RawTouch: [LTrackedRemote, Touchpad: LTouchpad], [RTrackedRemote: RTouchpad], [Gamepad, Touch, LTouch, RTouch, Remote: None].
SecondaryIndexTrigger
Maps to RawTouch: [Touch: RIndexTrigger], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryThumbstick
Maps to RawTouch: [Touch: RThumbstick], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryThumbRest
Maps to RawTouch: [Touch: RThumbRest], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryTouchpad
Maps to RawTouch: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Any
Maps to RawTouch: [Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad: Any], [Gamepad, Remote: None].
enum OVRInput.RawTouch
Raw capacitive touch mappings that can be used to directly query the state of a controller.
Enumerator
None
Maps to Physical Touch: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
A
Maps to Physical Touch: [Touch, RTouch: A], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
B
Maps to Physical Touch: [Touch, RTouch: B], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
X
Maps to Physical Touch: [Touch, LTouch: X], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Y
Maps to Physical Touch: [Touch, LTouch: Y], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LIndexTrigger
Maps to Physical Touch: [Touch, LTouch: LIndexTrigger], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbstick
Maps to Physical Touch: [Touch, LTouch: LThumbstick], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbRest
Maps to Physical Touch: [Touch, LTouch: LThumbRest], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LTouchpad
Maps to Physical Touch: [LTrackedRemote, Touchpad: LTouchpad], [Gamepad, Touch, LTouch, RTouch, RTrackedRemote, Remote: None].
RIndexTrigger
Maps to Physical Touch: [Touch, RTouch: RIndexTrigger], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RThumbstick
Maps to Physical Touch: [Touch, RTouch: RThumbstick], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RThumbRest
Maps to Physical Touch: [Touch, RTouch: RThumbRest], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RTouchpad
Maps to Physical Touch: [RTrackedRemote: RTouchpad], [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, Touchpad, Remote: None].
Any
Maps to Physical Touch: [Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad: Any], [Gamepad, Remote: None].
enum OVRInput.NearTouch
Virtual near touch mappings that allow the same input bindings to work across different controllers with near touch support.
Enumerator
None
Maps to RawNearTouch: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryIndexTrigger
Maps to RawNearTouch: [Touch, LTouch: LIndexTrigger], [RTouch: RIndexTrigger], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbButtons
Maps to RawNearTouch: [Touch, LTouch: LThumbButtons], [RTouch: RThumbButtons], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryIndexTrigger
Maps to RawNearTouch: [Touch: RIndexTrigger], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryThumbButtons
Maps to RawNearTouch: [Touch: RThumbButtons], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Any
Maps to RawNearTouch: [Touch, LTouch, RTouch: Any], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
enum OVRInput.RawNearTouch
Raw near touch mappings that can be used to directly query the state of a controller.
Enumerator
None
Maps to Physical NearTouch: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LIndexTrigger
Maps to Physical NearTouch: [Touch, LTouch: Implies finger is in close proximity to LIndexTrigger.], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbButtons
Maps to Physical NearTouch: [Touch, LTouch: Implies thumb is in close proximity to LThumbstick OR X/Y buttons.], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RIndexTrigger
Maps to Physical NearTouch: [Touch, RTouch: Implies finger is in close proximity to RIndexTrigger.], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RThumbButtons
Maps to Physical NearTouch: [Touch, RTouch: Implies thumb is in close proximity to RThumbstick OR A/B buttons.], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Any
Maps to Physical NearTouch: [Touch, LTouch, RTouch: Any], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
enum OVRInput.Axis1D
Virtual 1-dimensional axis (float) mappings that allow the same input bindings to work across different controllers.
Enumerator
None
Maps to RawAxis1D: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryIndexTrigger
Maps to RawAxis1D: [Gamepad, Touch, LTouch: LIndexTrigger], [RTouch: RIndexTrigger], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryHandTrigger
Maps to RawAxis1D: [Touch, LTouch: LHandTrigger], [RTouch: RHandTrigger], [Gamepad, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryIndexTrigger
Maps to RawAxis1D: [Gamepad, Touch: RIndexTrigger], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryHandTrigger
Maps to RawAxis1D: [Touch: RHandTrigger], [Gamepad, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Any
Maps to RawAxis1D: [Gamepad, Touch, LTouch, RTouch: Any], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
enum OVRInput.RawAxis1D
Raw 1-dimensional axis (float) mappings that can be used to directly query the state of a controller.
Enumerator
None
Maps to Physical Axis1D: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LIndexTrigger
Maps to Physical Axis1D: [Gamepad, Touch, LTouch: LIndexTrigger], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LHandTrigger
Maps to Physical Axis1D: [Touch, LTouch: LHandTrigger], [Gamepad, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RIndexTrigger
Maps to Physical Axis1D: [Gamepad, Touch, RTouch: RIndexTrigger], [LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RHandTrigger
Maps to Physical Axis1D: [Touch, RTouch: RHandTrigger], [Gamepad, LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Any
Maps to Physical Axis1D: [Gamepad, Touch, LTouch, RTouch: Any], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
enum OVRInput.Axis2D
Virtual 2-dimensional axis (Vector2) mappings that allow the same input bindings to work across different controllers.
Enumerator
None
Maps to RawAxis2D: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryThumbstick
Maps to RawAxis2D: [Gamepad, Touch, LTouch: LThumbstick], [RTouch: RThumbstick], [LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
PrimaryTouchpad
Maps to RawAxis2D: [LTrackedRemote, Touchpad: LTouchpad], RTrackedRemote: RTouchpad], [Gamepad, Touch, LTouch, RTouch, Remote: None].
SecondaryThumbstick
Maps to RawAxis2D: [Gamepad, Touch: RThumbstick], [LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
SecondaryTouchpad
Maps to RawAxis2D: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
Any
Maps to RawAxis2D: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad: Any], [Remote: None].
enum OVRInput.RawAxis2D
Raw 2-dimensional axis (Vector2) mappings that can be used to directly query the state of a controller.
Enumerator
None
Maps to Physical Axis2D: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LThumbstick
Maps to Physical Axis2D: [Gamepad, Touch, LTouch: LThumbstick], [RTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
LTouchpad
Maps to Physical Axis2D: [LTrackedRemote, Touchpad: LTouchpad], [Gamepad, Touch, LTouch, RTouch, RTrackedRemote, Remote: None].
RThumbstick
Maps to Physical Axis2D: [Gamepad, Touch, RTouch: RThumbstick], [LTouch, LTrackedRemote, RTrackedRemote, Touchpad, Remote: None].
RTouchpad
Maps to Physical Axis2D: [RTrackedRemote: RTouchpad], [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, Touchpad, Remote: None].
Any
Maps to Physical Axis2D: [Gamepad, Touch, LTouch, RTouch, LTrackedRemote, RTrackedRemote: Any], [Touchpad, Remote: None].
enum OVRInput.Controller
Identifies a controller which can be used to query the virtual or raw input state.
Enumerator
None
Null controller.
LTouch
Left Oculus Touch controller. Virtual input mapping differs from the combined L/R Touch mapping.
RTouch
Right Oculus Touch controller. Virtual input mapping differs from the combined L/R Touch mapping.
Touch
Combined Left/Right pair of Oculus Touch controllers.
Remote
Oculus Remote controller.
Gamepad
Xbox 360 or Xbox One gamepad on PC. Generic gamepad on Android.
Touchpad
GearVR touchpad on Android.
LTrackedRemote
Left GearVR tracked remote on Android.
RTrackedRemote
Right GearVR tracked remote on Android.
Active
Default controller. Represents the controller that most recently registered a button press from the user.
All
Represents the logical OR of all controllers.
enum OVRInput.Handedness
Enumerator
Unsupported= OVRPlugin.Handedness.Unsupported
LeftHanded= OVRPlugin.Handedness.LeftHanded
RightHanded= OVRPlugin.Handedness.RightHanded

Private Static Field Documentation

readonly float OVRInput.AXIS_AS_BUTTON_THRESHOLD ( )
readonly float OVRInput.AXIS_DEADZONE_THRESHOLD ( )
List<OVRControllerBase> OVRInput.controllers ( )
Controller OVRInput.activeControllerType ( )
Controller OVRInput.connectedControllerTypes ( )
OVRPlugin.Step OVRInput.stepType ( )
int OVRInput.fixedUpdateCount ( )
bool OVRInput._pluginSupportsActiveController ( )
bool OVRInput._pluginSupportsActiveControllerCached ( )
System.Version OVRInput._pluginSupportsActiveControllerMinVersion ( )

Property Documentation

bool OVRInput.pluginSupportsActiveController ( )

Object Data Documentation

static OVRInput.OVRInput ( )
Creates an instance of OVRInput.
static bool OVRInput.GetResolvedButton ( Button virtualMask, RawButton rawMask, Controller controllerMask )
static bool OVRInput.GetResolvedButtonDown ( Button virtualMask, RawButton rawMask, Controller controllerMask )
static bool OVRInput.GetResolvedButtonUp ( Button virtualMask, RawButton rawMask, Controller controllerMask )
static bool OVRInput.GetResolvedTouch ( Touch virtualMask, RawTouch rawMask, Controller controllerMask )
static bool OVRInput.GetResolvedTouchDown ( Touch virtualMask, RawTouch rawMask, Controller controllerMask )
static bool OVRInput.GetResolvedTouchUp ( Touch virtualMask, RawTouch rawMask, Controller controllerMask )
static bool OVRInput.GetResolvedNearTouch ( NearTouch virtualMask, RawNearTouch rawMask, Controller controllerMask )
static bool OVRInput.GetResolvedNearTouchDown ( NearTouch virtualMask, RawNearTouch rawMask, Controller controllerMask )
static bool OVRInput.GetResolvedNearTouchUp ( NearTouch virtualMask, RawNearTouch rawMask, Controller controllerMask )
static float OVRInput.GetResolvedAxis1D ( Axis1D virtualMask, RawAxis1D rawMask, Controller controllerMask )
static Vector2 OVRInput.GetResolvedAxis2D ( Axis2D virtualMask, RawAxis2D rawMask, Controller controllerMask )
static Vector2 OVRInput.CalculateAbsMax ( Vector2 a, Vector2 b )
static float OVRInput.CalculateAbsMax ( float a, float b )
static Vector2 OVRInput.CalculateDeadzone ( Vector2 a, float deadzone )
static float OVRInput.CalculateDeadzone ( float a, float deadzone )
static bool OVRInput.ShouldResolveController ( Controller controllerType, Controller controllerMask )

Static Member Function Documentation

static void OVRInput.Update ( )
Updates the internal state of OVRInput.
Must be called manually if used independently from OVRManager.
static void OVRInput.FixedUpdate ( )
Updates the internal physics state of OVRInput.
Must be called manually if used independently from OVRManager.
static bool OVRInput.GetControllerOrientationTracked ( OVRInput.Controller controllerType )
Returns true if the given Controller's orientation is currently tracked.
Only supported for Oculus LTouch and RTouch controllers. Non-tracked controllers will return false.
static bool OVRInput.GetControllerPositionTracked ( OVRInput.Controller controllerType )
Returns true if the given Controller's position is currently tracked.
Only supported for Oculus LTouch and RTouch controllers. Non-tracked controllers will return false.
static Vector3 OVRInput.GetLocalControllerPosition ( OVRInput.Controller controllerType )
Gets the position of the given Controller local to its tracking space.
Only supported for Oculus LTouch and RTouch controllers. Non-tracked controllers will return Vector3.zero.
static Vector3 OVRInput.GetLocalControllerVelocity ( OVRInput.Controller controllerType )
Gets the linear velocity of the given Controller local to its tracking space.
Only supported for Oculus LTouch and RTouch controllers. Non-tracked controllers will return Vector3.zero.
static Vector3 OVRInput.GetLocalControllerAcceleration ( OVRInput.Controller controllerType )
Gets the linear acceleration of the given Controller local to its tracking space.
Only supported for Oculus LTouch and RTouch controllers. Non-tracked controllers will return Vector3.zero.
static Quaternion OVRInput.GetLocalControllerRotation ( OVRInput.Controller controllerType )
Gets the rotation of the given Controller local to its tracking space.
Only supported for Oculus LTouch and RTouch controllers. Non-tracked controllers will return Quaternion.identity.
static Vector3 OVRInput.GetLocalControllerAngularVelocity ( OVRInput.Controller controllerType )
Gets the angular velocity of the given Controller local to its tracking space in radians per second around each axis.
Only supported for Oculus LTouch and RTouch controllers. Non-tracked controllers will return Vector3.zero.
static Vector3 OVRInput.GetLocalControllerAngularAcceleration ( OVRInput.Controller controllerType )
Gets the angular acceleration of the given Controller local to its tracking space in radians per second per second around each axis.
Only supported for Oculus LTouch and RTouch controllers. Non-tracked controllers will return Vector3.zero.
static Handedness OVRInput.GetDominantHand ( )
Gets the dominant hand that the user has specified in settings, for mobile devices.
static bool OVRInput.Get ( Button virtualMask, Controller controllerMask )
Gets the current state of the given virtual button mask with the given controller mask.
Returns true if any masked button is down on any masked controller.
static bool OVRInput.Get ( RawButton rawMask, Controller controllerMask )
Gets the current state of the given raw button mask with the given controller mask.
Returns true if any masked button is down on any masked controllers.
static bool OVRInput.GetDown ( Button virtualMask, Controller controllerMask )
Gets the current down state of the given virtual button mask with the given controller mask.
Returns true if any masked button was pressed this frame on any masked controller and no masked button was previously down last frame.
static bool OVRInput.GetDown ( RawButton rawMask, Controller controllerMask )
Gets the current down state of the given raw button mask with the given controller mask.
Returns true if any masked button was pressed this frame on any masked controller and no masked button was previously down last frame.
static bool OVRInput.GetUp ( Button virtualMask, Controller controllerMask )
Gets the current up state of the given virtual button mask with the given controller mask.
Returns true if any masked button was released this frame on any masked controller and no other masked button is still down this frame.
static bool OVRInput.GetUp ( RawButton rawMask, Controller controllerMask )
Gets the current up state of the given raw button mask with the given controller mask.
Returns true if any masked button was released this frame on any masked controller and no other masked button is still down this frame.
static bool OVRInput.Get ( Touch virtualMask, Controller controllerMask )
Gets the current state of the given virtual touch mask with the given controller mask.
Returns true if any masked touch is down on any masked controller.
static bool OVRInput.Get ( RawTouch rawMask, Controller controllerMask )
Gets the current state of the given raw touch mask with the given controller mask.
Returns true if any masked touch is down on any masked controllers.
static bool OVRInput.GetDown ( Touch virtualMask, Controller controllerMask )
Gets the current down state of the given virtual touch mask with the given controller mask.
Returns true if any masked touch was pressed this frame on any masked controller and no masked touch was previously down last frame.
static bool OVRInput.GetDown ( RawTouch rawMask, Controller controllerMask )
Gets the current down state of the given raw touch mask with the given controller mask.
Returns true if any masked touch was pressed this frame on any masked controller and no masked touch was previously down last frame.
static bool OVRInput.GetUp ( Touch virtualMask, Controller controllerMask )
Gets the current up state of the given virtual touch mask with the given controller mask.
Returns true if any masked touch was released this frame on any masked controller and no other masked touch is still down this frame.
static bool OVRInput.GetUp ( RawTouch rawMask, Controller controllerMask )
Gets the current up state of the given raw touch mask with the given controller mask.
Returns true if any masked touch was released this frame on any masked controller and no other masked touch is still down this frame.
static bool OVRInput.Get ( NearTouch virtualMask, Controller controllerMask )
Gets the current state of the given virtual near touch mask with the given controller mask.
Returns true if any masked near touch is down on any masked controller.
static bool OVRInput.Get ( RawNearTouch rawMask, Controller controllerMask )
Gets the current state of the given raw near touch mask with the given controller mask.
Returns true if any masked near touch is down on any masked controllers.
static bool OVRInput.GetDown ( NearTouch virtualMask, Controller controllerMask )
Gets the current down state of the given virtual near touch mask with the given controller mask.
Returns true if any masked near touch was pressed this frame on any masked controller and no masked near touch was previously down last frame.
static bool OVRInput.GetDown ( RawNearTouch rawMask, Controller controllerMask )
Gets the current down state of the given raw near touch mask with the given controller mask.
Returns true if any masked near touch was pressed this frame on any masked controller and no masked near touch was previously down last frame.
static bool OVRInput.GetUp ( NearTouch virtualMask, Controller controllerMask )
Gets the current up state of the given virtual near touch mask with the given controller mask.
Returns true if any masked near touch was released this frame on any masked controller and no other masked near touch is still down this frame.
static bool OVRInput.GetUp ( RawNearTouch rawMask, Controller controllerMask )
Gets the current up state of the given raw near touch mask with the given controller mask.
Returns true if any masked near touch was released this frame on any masked controller and no other masked near touch is still down this frame.
static float OVRInput.Get ( Axis1D virtualMask, Controller controllerMask )
Gets the current state of the given virtual 1-dimensional axis mask on the given controller mask.
Returns the value of the largest masked axis across all masked controllers. Values range from 0 to 1.
static float OVRInput.Get ( RawAxis1D rawMask, Controller controllerMask )
Gets the current state of the given raw 1-dimensional axis mask on the given controller mask.
Returns the value of the largest masked axis across all masked controllers. Values range from 0 to 1.
static Vector2 OVRInput.Get ( Axis2D virtualMask, Controller controllerMask )
Gets the current state of the given virtual 2-dimensional axis mask on the given controller mask.
Returns the vector of the largest masked axis across all masked controllers. Values range from -1 to 1.
static Vector2 OVRInput.Get ( RawAxis2D rawMask, Controller controllerMask )
Gets the current state of the given raw 2-dimensional axis mask on the given controller mask.
Returns the vector of the largest masked axis across all masked controllers. Values range from -1 to 1.
static Controller OVRInput.GetConnectedControllers ( )
Returns a mask of all currently connected controller types.
static bool OVRInput.IsControllerConnected ( Controller controller )
Returns true if the specified controller type is currently connected.
static Controller OVRInput.GetActiveController ( )
Returns the current active controller type.
static void OVRInput.SetControllerVibration ( float frequency, float amplitude, Controller controllerMask )
Activates vibration with the given frequency and amplitude with the given controller mask.
Ignored on controllers that do not support vibration. Expected values range from 0 to 1.
static void OVRInput.RecenterController ( Controller controllerMask )
Triggers a recenter to realign the specified controller's virtual pose with the user's real-world pose.
Only applicable to controllers that require recentering, such as the GearVR Controller. Ignored for controllers that do not require recentering.
static bool OVRInput.GetControllerWasRecentered ( Controller controllerMask )
Returns true if the specified controller was recentered this frame.
Only applicable to controllers that require recentering, such as the GearVR Controller. Returns false for controllers that do not require recentering.
static byte OVRInput.GetControllerRecenterCount ( Controller controllerMask )
Returns the number of times the controller has been recentered this session.
Useful for detecting recenter events and resetting state such as arm model simulations, etc. Wraps around to 0 after 255. Only applicable to controllers that require recentering, such as the GearVR Controller. Returns 0 for controllers that do not require recentering.
static byte OVRInput.GetControllerBatteryPercentRemaining ( Controller controllerMask )
Returns the battery percentage remaining for the specified controller.
Values range from 0 to 100. Only applicable to controllers that report battery level, such as the GearVR Controller. Returns 0 for controllers that do not report battery level.
The documentation for this class was generated from the following file: Oculus/VR/Scripts/OVRInput.cs