Class HVRInputManager
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
HVRInputManager
Inherited Members
UnityEngine.MonoBehaviour.IsInvoking()
UnityEngine.MonoBehaviour.CancelInvoke()
UnityEngine.MonoBehaviour.Invoke(System.String, System.Single)
UnityEngine.MonoBehaviour.InvokeRepeating(System.String, System.Single, System.Single)
UnityEngine.MonoBehaviour.CancelInvoke(System.String)
UnityEngine.MonoBehaviour.IsInvoking(System.String)
UnityEngine.MonoBehaviour.StartCoroutine(System.String)
UnityEngine.MonoBehaviour.StartCoroutine(System.String, System.Object)
UnityEngine.MonoBehaviour.StartCoroutine(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StartCoroutine_Auto(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StopCoroutine(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StopCoroutine(UnityEngine.Coroutine)
UnityEngine.MonoBehaviour.StopCoroutine(System.String)
UnityEngine.MonoBehaviour.StopAllCoroutines()
UnityEngine.MonoBehaviour.print(System.Object)
UnityEngine.MonoBehaviour.useGUILayout
UnityEngine.MonoBehaviour.runInEditMode
UnityEngine.Behaviour.enabled
UnityEngine.Behaviour.isActiveAndEnabled
UnityEngine.Component.GetComponent(System.Type)
UnityEngine.Component.GetComponent<T>()
UnityEngine.Component.TryGetComponent(System.Type, UnityEngine.Component)
UnityEngine.Component.TryGetComponent<T>(T)
UnityEngine.Component.GetComponent(System.String)
UnityEngine.Component.GetComponentInChildren(System.Type, System.Boolean)
UnityEngine.Component.GetComponentInChildren(System.Type)
UnityEngine.Component.GetComponentInChildren<T>(System.Boolean)
UnityEngine.Component.GetComponentInChildren<T>()
UnityEngine.Component.GetComponentsInChildren(System.Type, System.Boolean)
UnityEngine.Component.GetComponentsInChildren(System.Type)
UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean)
UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean, System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentsInChildren<T>()
UnityEngine.Component.GetComponentsInChildren<T>(System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentInParent(System.Type)
UnityEngine.Component.GetComponentInParent<T>()
UnityEngine.Component.GetComponentsInParent(System.Type, System.Boolean)
UnityEngine.Component.GetComponentsInParent(System.Type)
UnityEngine.Component.GetComponentsInParent<T>(System.Boolean)
UnityEngine.Component.GetComponentsInParent<T>(System.Boolean, System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentsInParent<T>()
UnityEngine.Component.GetComponents(System.Type)
UnityEngine.Component.GetComponents(System.Type, System.Collections.Generic.List<UnityEngine.Component>)
UnityEngine.Component.GetComponents<T>(System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponents<T>()
UnityEngine.Component.CompareTag(System.String)
UnityEngine.Component.SendMessageUpwards(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessageUpwards(System.String, System.Object)
UnityEngine.Component.SendMessageUpwards(System.String)
UnityEngine.Component.SendMessageUpwards(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessage(System.String, System.Object)
UnityEngine.Component.SendMessage(System.String)
UnityEngine.Component.SendMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessage(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.BroadcastMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.BroadcastMessage(System.String, System.Object)
UnityEngine.Component.BroadcastMessage(System.String)
UnityEngine.Component.BroadcastMessage(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.transform
UnityEngine.Component.gameObject
UnityEngine.Component.tag
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: HurricaneVR.Framework.ControllerInput
Assembly: HurricaneVR.Framework.dll
Syntax
public class HVRInputManager : MonoBehaviour
Fields
| Improve this Doc View SourceControllerOffsets
Declaration
[Tooltip("Device / SDK controller offsets")]
public HVRControllerOffsets ControllerOffsets
Field Value
Type | Description |
---|---|
HVRControllerOffsets |
Cosmos
Declaration
public const string Cosmos = "cosmos"
Field Value
Type | Description |
---|---|
System.String |
CosmosDeadzone
Declaration
[Tooltip("Cosmos device deadzone, if any.")]
public Vector2 CosmosDeadzone
Field Value
Type | Description |
---|---|
UnityEngine.Vector2 |
CosmosInputMap
Declaration
public HVRInputSettings CosmosInputMap
Field Value
Type | Description |
---|---|
HVRInputSettings |
CurrentSDK
Declaration
[Header("Debugging")]
public InputSDK CurrentSDK
Field Value
Type | Description |
---|---|
InputSDK |
DeadzoneOverride
Declaration
[Tooltip("Master deadzone, useful if you want the user to set.")]
public Vector2 DeadzoneOverride
Field Value
Type | Description |
---|---|
UnityEngine.Vector2 |
FingerSettings
Declaration
[Tooltip("Finger Curl Settings, defaults created if not supplied")]
public HVRFingerSettings FingerSettings
Field Value
Type | Description |
---|---|
HVRFingerSettings |
ForceOVRInputUpdate
Declaration
[Tooltip("If using OVRInput for Oculus devices without OVRManager in the scene then set this to true.")]
public bool ForceOVRInputUpdate
Field Value
Type | Description |
---|---|
System.Boolean |
G2
Declaration
public const string G2 = "g2"
Field Value
Type | Description |
---|---|
System.String |
GrabHaptics
Declaration
[Tooltip("Haptics Settings")]
public HVRGrabHaptics GrabHaptics
Field Value
Type | Description |
---|---|
HVRGrabHaptics |
HMDActivated
Declaration
public UnityEvent HMDActivated
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
HMDDeactivated
Declaration
public UnityEvent HMDDeactivated
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
HMDFeatures
Declaration
public List<string> HMDFeatures
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
HMDFirstActivation
Declaration
public UnityEvent HMDFirstActivation
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
HMDManufacturer
Declaration
public string HMDManufacturer
Field Value
Type | Description |
---|---|
System.String |
HMDName
Declaration
public string HMDName
Field Value
Type | Description |
---|---|
System.String |
hmdpos
Declaration
public Vector3 hmdpos
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 |
HMDRecentered
Declaration
public UnityEvent HMDRecentered
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
HTC
Declaration
public const string HTC = "htc"
Field Value
Type | Description |
---|---|
System.String |
InitializeSteamVR
Declaration
[Header("SteamVR - Requires SteamVR + Integration")]
public bool InitializeSteamVR
Field Value
Type | Description |
---|---|
System.Boolean |
InitializeSteamVRActions
Declaration
public bool InitializeSteamVRActions
Field Value
Type | Description |
---|---|
System.Boolean |
Knuckles
Declaration
public const string Knuckles = "knuckles"
Field Value
Type | Description |
---|---|
System.String |
KnucklesDeadzone
Declaration
[Tooltip("Knuckles device deadzone, if any.")]
public Vector2 KnucklesDeadzone
Field Value
Type | Description |
---|---|
UnityEngine.Vector2 |
KnucklesInputMap
Declaration
public HVRInputSettings KnucklesInputMap
Field Value
Type | Description |
---|---|
HVRInputSettings |
KnucklesOpenXR
Declaration
public const string KnucklesOpenXR = "index controller"
Field Value
Type | Description |
---|---|
System.String |
LeftController
Declaration
public HVRController LeftController
Field Value
Type | Description |
---|---|
HVRController |
LeftControllerConnected
Declaration
public HVRControllerEvent LeftControllerConnected
Field Value
Type | Description |
---|---|
HVRControllerEvent |
LeftControllerName
Declaration
public string LeftControllerName
Field Value
Type | Description |
---|---|
System.String |
LeftFeatures
Declaration
public List<string> LeftFeatures
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
LeftInputSystemController
Declaration
public HVRController LeftInputSystemController
Field Value
Type | Description |
---|---|
HVRController |
LeftManufacturer
Declaration
public string LeftManufacturer
Field Value
Type | Description |
---|---|
System.String |
LeftOculusController
Declaration
public HVRController LeftOculusController
Field Value
Type | Description |
---|---|
HVRController |
LeftSteamController
Declaration
public HVRController LeftSteamController
Field Value
Type | Description |
---|---|
HVRController |
LeftXRInputController
Declaration
public HVRController LeftXRInputController
Field Value
Type | Description |
---|---|
HVRController |
LegacyActive
Declaration
public bool LegacyActive
Field Value
Type | Description |
---|---|
System.Boolean |
LegacyNone
Declaration
public const string LegacyNone = "None"
Field Value
Type | Description |
---|---|
System.String |
LegacyOculusName
Declaration
public const string LegacyOculusName = "Oculus"
Field Value
Type | Description |
---|---|
System.String |
LegacyOpenVRName
Declaration
public const string LegacyOpenVRName = "OpenVR"
Field Value
Type | Description |
---|---|
System.String |
Oculus
Declaration
public const string Oculus = "oculus"
Field Value
Type | Description |
---|---|
System.String |
OculusDeadzone
Declaration
[Tooltip("Oculus device deadzone, if any.")]
public Vector2 OculusDeadzone
Field Value
Type | Description |
---|---|
UnityEngine.Vector2 |
OculusInputMap
Declaration
public HVRInputSettings OculusInputMap
Field Value
Type | Description |
---|---|
HVRInputSettings |
OculusLoader
Declaration
public string OculusLoader
Field Value
Type | Description |
---|---|
System.String |
OpenVRController
Declaration
public const string OpenVRController = "openvr"
Field Value
Type | Description |
---|---|
System.String |
OpenVRLoader
Declaration
[Header("XR Plugin Detection Names")]
public string OpenVRLoader
Field Value
Type | Description |
---|---|
System.String |
OpenXR_G2
Declaration
public const string OpenXR_G2 = "hp reverb g2 controller"
Field Value
Type | Description |
---|---|
System.String |
OpenXRLoader
Declaration
public string OpenXRLoader
Field Value
Type | Description |
---|---|
System.String |
OverrideDeadzone
Declaration
[Tooltip("Override provider level deadzone.")]
public bool OverrideDeadzone
Field Value
Type | Description |
---|---|
System.Boolean |
OVRHaptics
Declaration
[Tooltip("If set to true, OVRManager is required to be in your scene")]
public bool OVRHaptics
Field Value
Type | Description |
---|---|
System.Boolean |
Reverb
Declaration
public const string Reverb = "reverb"
Field Value
Type | Description |
---|---|
System.String |
ReverbG2InputMap
Declaration
[FormerlySerializedAs("WMRWithButtonsInputMap")]
public HVRInputSettings ReverbG2InputMap
Field Value
Type | Description |
---|---|
HVRInputSettings |
RightController
Declaration
public HVRController RightController
Field Value
Type | Description |
---|---|
HVRController |
RightControllerConnected
Declaration
public HVRControllerEvent RightControllerConnected
Field Value
Type | Description |
---|---|
HVRControllerEvent |
RightControllerName
Declaration
public string RightControllerName
Field Value
Type | Description |
---|---|
System.String |
RightFeatures
Declaration
public List<string> RightFeatures
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
RightInputSystemController
Declaration
public HVRController RightInputSystemController
Field Value
Type | Description |
---|---|
HVRController |
RightManufacturer
Declaration
public string RightManufacturer
Field Value
Type | Description |
---|---|
System.String |
RightOculusController
Declaration
public HVRController RightOculusController
Field Value
Type | Description |
---|---|
HVRController |
RightSteamController
Declaration
public HVRController RightSteamController
Field Value
Type | Description |
---|---|
HVRController |
RightXRInputController
Declaration
public HVRController RightXRInputController
Field Value
Type | Description |
---|---|
HVRController |
TrackingSpace
Declaration
public TrackingOriginModeFlags TrackingSpace
Field Value
Type | Description |
---|---|
UnityEngine.XR.TrackingOriginModeFlags |
UseNewInputSystem
Declaration
[Header("Input Settings")]
[Tooltip("If true uses the new input system bindings")]
public bool UseNewInputSystem
Field Value
Type | Description |
---|---|
System.Boolean |
UseOVRInputs
Declaration
[Header("Oculus - Requires Oculus Asset + Integration")]
[Tooltip("If true ovrinputs will be used")]
public bool UseOVRInputs
Field Value
Type | Description |
---|---|
System.Boolean |
UserNotSensed
Declaration
public UnityEvent UserNotSensed
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
UserSensed
Declaration
public UnityEvent UserSensed
Field Value
Type | Description |
---|---|
UnityEngine.Events.UnityEvent |
Vive
Declaration
public const string Vive = "vive"
Field Value
Type | Description |
---|---|
System.String |
ViveDeadzone
Declaration
[Tooltip("Vive device deadzone, if any.")]
public Vector2 ViveDeadzone
Field Value
Type | Description |
---|---|
UnityEngine.Vector2 |
ViveInputMap
Declaration
public HVRInputSettings ViveInputMap
Field Value
Type | Description |
---|---|
HVRInputSettings |
VRPlugin
Declaration
public VRMode VRPlugin
Field Value
Type | Description |
---|---|
VRMode |
WindowsMR
Declaration
public const string WindowsMR = "windowsmr"
Field Value
Type | Description |
---|---|
System.String |
WindowsMROpenXR
Declaration
public const string WindowsMROpenXR = "windows mr controller"
Field Value
Type | Description |
---|---|
System.String |
WMRController
Declaration
public const string WMRController = "spatial"
Field Value
Type | Description |
---|---|
System.String |
WMRDeadzone
Declaration
[Header("Deadzones")]
[Tooltip("WMR device deadzone, if any.")]
public Vector2 WMRDeadzone
Field Value
Type | Description |
---|---|
UnityEngine.Vector2 |
WMRInputMap
Declaration
[Header("Device Specific Settings")]
public HVRInputSettings WMRInputMap
Field Value
Type | Description |
---|---|
HVRInputSettings |
WMRLoader
Declaration
public string WMRLoader
Field Value
Type | Description |
---|---|
System.String |
XRPluginActive
Declaration
public bool XRPluginActive
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceHMDActive
Declaration
public bool HMDActive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HMDDevice
Declaration
public InputDevice HMDDevice { get; }
Property Value
Type | Description |
---|---|
UnityEngine.XR.InputDevice |
Instance
Declaration
public static HVRInputManager Instance { get; }
Property Value
Type | Description |
---|---|
HVRInputManager |
IsOpenXR
Declaration
public bool IsOpenXR { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSteamVR
Declaration
public bool IsSteamVR { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsVRInitialized
Declaration
public bool IsVRInitialized { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LeftDevice
Declaration
public InputDevice LeftDevice { get; }
Property Value
Type | Description |
---|---|
UnityEngine.XR.InputDevice |
PreviousHMDActive
Declaration
public bool PreviousHMDActive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
PreviousUserPresent
Declaration
public bool PreviousUserPresent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
RightDevice
Declaration
public InputDevice RightDevice { get; }
Property Value
Type | Description |
---|---|
UnityEngine.XR.InputDevice |
UserPresent
Declaration
public bool UserPresent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
XRPluginLoader
Declaration
public string XRPluginLoader { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceApplyTrackingOrigin()
Declaration
public void ApplyTrackingOrigin()
GetController(HVRHandSide)
Declaration
public HVRController GetController(HVRHandSide side)
Parameters
Type | Name | Description |
---|---|---|
HVRHandSide | side |
Returns
Type | Description |
---|---|
HVRController |
GetDevice(HVRHandSide)
Declaration
public InputDevice GetDevice(HVRHandSide side)
Parameters
Type | Name | Description |
---|---|---|
HVRHandSide | side |
Returns
Type | Description |
---|---|
UnityEngine.XR.InputDevice |
GetSDK()
Declaration
public void GetSDK()
Initialize()
sets up steamvr if necessary, set up controller objects, applies tracking origin
Declaration
public void Initialize()
StartLegacyVR(Action<Boolean>)
Starting requires a coroutine, the callback will be fired with true for success, and false for failure
Declaration
public void StartLegacyVR(Action<bool> callback = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Boolean> | callback |
StartXR()
Declaration
public bool StartXR()
Returns
Type | Description |
---|---|
System.Boolean |
StopXR()
Declaration
public void StopXR()