InputMap
A class in Root.Township, the global namespace.
Unity Input System wrapper generated from the game's input actions asset. It has four action maps: Playing (per-device bindings for Oculus, Vive, WMR and Index), PlayingBase, PlayingGeneric (generic XR controller) and PlayingPico. The OpenXR input controller holds one shared instance.
- Listed in Global namespace: I to L
- Inherits or implements
IInputActionCollection2,IInputActionCollection,IEnumerable<InputAction>,IEnumerable,IDisposable - Nested types
IPlayingActions,IPlayingBaseActions,IPlayingGenericActions,IPlayingPicoActions,PlayingActions,PlayingBaseActions,PlayingGenericActions,PlayingPicoActions
Constructors
| Member | What it is |
|---|---|
InputMap() | Creates an InputMap with default values. |
Fields
91 private and internal fields
| Member | What it is |
|---|---|
private readonly InputActionMap m_Playing | The Playing action map, looked up from the asset in the constructor. |
private readonly InputAction m_Playing_AngularVelocity | Cached AngularVelocity action from the Playing map. Read it through Playing.AngularVelocity. |
private readonly InputAction m_Playing_AssistGrab | Cached AssistGrab action from the Playing map. Read it through Playing.AssistGrab. |
private readonly InputAction m_Playing_Gestures | Cached Gestures action from the Playing map. Read it through Playing.Gestures. |
private readonly InputAction m_Playing_GrabStrength | Cached GrabStrength action from the Playing map. Read it through Playing.GrabStrength. |
private readonly InputAction m_Playing_Interact | Cached Interact action from the Playing map. Read it through Playing.Interact. |
private readonly InputAction m_Playing_JoystickDpad | Cached JoystickDpad action from the Playing map. Read it through Playing.JoystickDpad. |
private readonly InputAction m_Playing_MetaMenu | Cached MetaMenu action from the Playing map. Read it through Playing.MetaMenu. |
private readonly InputAction m_Playing_Pose | Cached Pose action from the Playing map. Read it through Playing.Pose. |
private readonly InputAction m_Playing_Position | Cached Position action from the Playing map. Read it through Playing.Position. |
private readonly InputAction m_Playing_ReleaseToggleGrab | Cached ReleaseToggleGrab action from the Playing map. Read it through Playing.ReleaseToggleGrab. |
private readonly InputAction m_Playing_Rotation | Cached Rotation action from the Playing map. Read it through Playing.Rotation. |
private readonly InputAction m_Playing_SmoothLocomotion | Cached SmoothLocomotion action from the Playing map. Read it through Playing.SmoothLocomotion. |
private readonly InputAction m_Playing_SmoothRotation | Cached SmoothRotation action from the Playing map. Read it through Playing.SmoothRotation. |
private readonly InputAction m_Playing_Squeeze | Cached Squeeze action from the Playing map. Read it through Playing.Squeeze. |
private readonly InputAction m_Playing_SwipeMotion | Cached SwipeMotion action from the Playing map. Read it through Playing.SwipeMotion. |
private readonly InputAction m_Playing_SwipeTouch | Cached SwipeTouch action from the Playing map. Read it through Playing.SwipeTouch. |
private readonly InputAction m_Playing_TakeScreenShotLong | Cached TakeScreenShotLong action from the Playing map. Read it through Playing.TakeScreenShotLong. |
private readonly InputAction m_Playing_Teleport | Cached Teleport action from the Playing map. Read it through Playing.Teleport. |
private readonly InputAction m_Playing_ToggleGrab | Cached ToggleGrab action from the Playing map. Read it through Playing.ToggleGrab. |
private readonly InputAction m_Playing_ToggleRun | Cached ToggleRun action from the Playing map. Read it through Playing.ToggleRun. |
private readonly InputAction m_Playing_TouchingIndexAxis | Cached TouchingIndexAxis action from the Playing map. Read it through Playing.TouchingIndexAxis. |
private readonly InputAction m_Playing_TouchingThumb | Cached TouchingThumb action from the Playing map. Read it through Playing.TouchingThumb. |
private readonly InputAction m_Playing_TouchingTriggerButton | Cached TouchingTriggerButton action from the Playing map. Read it through Playing.TouchingTriggerButton. |
private readonly InputAction m_Playing_TriggerAxis | Cached TriggerAxis action from the Playing map. Read it through Playing.TriggerAxis. |
private readonly InputAction m_Playing_Velocity | Cached Velocity action from the Playing map. Read it through Playing.Velocity. |
private InputMap.IPlayingActions m_PlayingActionsCallbackInterface | The callback object last passed to Playing.SetCallbacks, so it can be unhooked when replaced. |
private readonly InputActionMap m_PlayingBase | The PlayingBase action map, looked up from the asset in the constructor. |
private readonly InputAction m_PlayingBase_AngularVelocity | Cached AngularVelocity action from the PlayingBase map. Read it through PlayingBase.AngularVelocity. |
private readonly InputAction m_PlayingBase_DirectionInput | Cached DirectionInput action from the PlayingBase map. Read it through PlayingBase.DirectionInput. |
private readonly InputAction m_PlayingBase_GrabStrength | Cached GrabStrength action from the PlayingBase map. Read it through PlayingBase.GrabStrength. |
private readonly InputAction m_PlayingBase_Interact | Cached Interact action from the PlayingBase map. Read it through PlayingBase.Interact. |
private readonly InputAction m_PlayingBase_MetaMenu | Cached MetaMenu action from the PlayingBase map. Read it through PlayingBase.MetaMenu. |
private readonly InputAction m_PlayingBase_Pose | Cached Pose action from the PlayingBase map. Read it through PlayingBase.Pose. |
private readonly InputAction m_PlayingBase_Position | Cached Position action from the PlayingBase map. Read it through PlayingBase.Position. |
private readonly InputAction m_PlayingBase_Rotation | Cached Rotation action from the PlayingBase map. Read it through PlayingBase.Rotation. |
private readonly InputAction m_PlayingBase_SecondaryInteract | Cached SecondaryInteract action from the PlayingBase map. Read it through PlayingBase.SecondaryInteract. |
private readonly InputAction m_PlayingBase_Squeeze | Cached Squeeze action from the PlayingBase map. Read it through PlayingBase.Squeeze. |
private readonly InputAction m_PlayingBase_TakeScreenShotLong | Cached TakeScreenShotLong action from the PlayingBase map. Read it through PlayingBase.TakeScreenShotLong. |
private readonly InputAction m_PlayingBase_Teleport | Cached Teleport action from the PlayingBase map. Read it through PlayingBase.Teleport. |
private readonly InputAction m_PlayingBase_ToggleRun | Cached ToggleRun action from the PlayingBase map. Read it through PlayingBase.ToggleRun. |
private readonly InputAction m_PlayingBase_TouchingIndexAxis | Cached TouchingIndexAxis action from the PlayingBase map. Read it through PlayingBase.TouchingIndexAxis. |
private readonly InputAction m_PlayingBase_TouchingThumb | Cached TouchingThumb action from the PlayingBase map. Read it through PlayingBase.TouchingThumb. |
private readonly InputAction m_PlayingBase_TouchingTriggerButton | Cached TouchingTriggerButton action from the PlayingBase map. Read it through PlayingBase.TouchingTriggerButton. |
private readonly InputAction m_PlayingBase_TriggerAxis | Cached TriggerAxis action from the PlayingBase map. Read it through PlayingBase.TriggerAxis. |
private readonly InputAction m_PlayingBase_Velocity | Cached Velocity action from the PlayingBase map. Read it through PlayingBase.Velocity. |
private InputMap.IPlayingBaseActions m_PlayingBaseActionsCallbackInterface | The callback object last passed to PlayingBase.SetCallbacks, so it can be unhooked when replaced. |
private readonly InputActionMap m_PlayingGeneric | The PlayingGeneric action map, looked up from the asset in the constructor. |
private readonly InputAction m_PlayingGeneric_AngularVelocity | Cached AngularVelocity action from the PlayingGeneric map. Read it through PlayingGeneric.AngularVelocity. |
private readonly InputAction m_PlayingGeneric_AssistGrab | Cached AssistGrab action from the PlayingGeneric map. Read it through PlayingGeneric.AssistGrab. |
private readonly InputAction m_PlayingGeneric_Gestures | Cached Gestures action from the PlayingGeneric map. Read it through PlayingGeneric.Gestures. |
private readonly InputAction m_PlayingGeneric_Interact | Cached Interact action from the PlayingGeneric map. Read it through PlayingGeneric.Interact. |
private readonly InputAction m_PlayingGeneric_MetaMenu | Cached MetaMenu action from the PlayingGeneric map. Read it through PlayingGeneric.MetaMenu. |
private readonly InputAction m_PlayingGeneric_Pose | Cached Pose action from the PlayingGeneric map. Read it through PlayingGeneric.Pose. |
private readonly InputAction m_PlayingGeneric_Position | Cached Position action from the PlayingGeneric map. Read it through PlayingGeneric.Position. |
private readonly InputAction m_PlayingGeneric_ReleaseToggleGrab | Cached ReleaseToggleGrab action from the PlayingGeneric map. Read it through PlayingGeneric.ReleaseToggleGrab. |
private readonly InputAction m_PlayingGeneric_Rotation | Cached Rotation action from the PlayingGeneric map. Read it through PlayingGeneric.Rotation. |
private readonly InputAction m_PlayingGeneric_SmoothLocomotion | Cached SmoothLocomotion action from the PlayingGeneric map. Read it through PlayingGeneric.SmoothLocomotion. |
private readonly InputAction m_PlayingGeneric_SmoothRotation | Cached SmoothRotation action from the PlayingGeneric map. Read it through PlayingGeneric.SmoothRotation. |
private readonly InputAction m_PlayingGeneric_Squeeze | Cached Squeeze action from the PlayingGeneric map. Read it through PlayingGeneric.Squeeze. |
private readonly InputAction m_PlayingGeneric_TakeScreenShotLong | Cached TakeScreenShotLong action from the PlayingGeneric map. Read it through PlayingGeneric.TakeScreenShotLong. |
private readonly InputAction m_PlayingGeneric_Teleport | Cached Teleport action from the PlayingGeneric map. Read it through PlayingGeneric.Teleport. |
private readonly InputAction m_PlayingGeneric_ToggleGrab | Cached ToggleGrab action from the PlayingGeneric map. Read it through PlayingGeneric.ToggleGrab. |
private readonly InputAction m_PlayingGeneric_ToggleRun | Cached ToggleRun action from the PlayingGeneric map. Read it through PlayingGeneric.ToggleRun. |
private readonly InputAction m_PlayingGeneric_TouchingThumb | Cached TouchingThumb action from the PlayingGeneric map. Read it through PlayingGeneric.TouchingThumb. |
private readonly InputAction m_PlayingGeneric_TouchingTriggerButton | Cached TouchingTriggerButton action from the PlayingGeneric map. Read it through PlayingGeneric.TouchingTriggerButton. |
private readonly InputAction m_PlayingGeneric_TriggerAxis | Cached TriggerAxis action from the PlayingGeneric map. Read it through PlayingGeneric.TriggerAxis. |
private readonly InputAction m_PlayingGeneric_Velocity | Cached Velocity action from the PlayingGeneric map. Read it through PlayingGeneric.Velocity. |
private InputMap.IPlayingGenericActions m_PlayingGenericActionsCallbackInterface | The callback object last passed to PlayingGeneric.SetCallbacks, so it can be unhooked when replaced. |
private readonly InputActionMap m_PlayingPico | The PlayingPico action map, looked up from the asset in the constructor. |
private readonly InputAction m_PlayingPico_AngularVelocity | Cached AngularVelocity action from the PlayingPico map. Read it through PlayingPico.AngularVelocity. |
private readonly InputAction m_PlayingPico_Gestures | Cached Gestures action from the PlayingPico map. Read it through PlayingPico.Gestures. |
private readonly InputAction m_PlayingPico_Interact | Cached Interact action from the PlayingPico map. Read it through PlayingPico.Interact. |
private readonly InputAction m_PlayingPico_MetaMenu | Cached MetaMenu action from the PlayingPico map. Read it through PlayingPico.MetaMenu. |
private readonly InputAction m_PlayingPico_PicoAssistGrab | Cached PicoAssistGrab action from the PlayingPico map. Read it through PlayingPico.PicoAssistGrab. |
private readonly InputAction m_PlayingPico_Pose | Cached Pose action from the PlayingPico map. Read it through PlayingPico.Pose. |
private readonly InputAction m_PlayingPico_Position | Cached Position action from the PlayingPico map. Read it through PlayingPico.Position. |
private readonly InputAction m_PlayingPico_ReleaseToggleGrab | Cached ReleaseToggleGrab action from the PlayingPico map. Read it through PlayingPico.ReleaseToggleGrab. |
private readonly InputAction m_PlayingPico_Rotation | Cached Rotation action from the PlayingPico map. Read it through PlayingPico.Rotation. |
private readonly InputAction m_PlayingPico_SmoothLocomotion | Cached SmoothLocomotion action from the PlayingPico map. Read it through PlayingPico.SmoothLocomotion. |
private readonly InputAction m_PlayingPico_SmoothRotation | Cached SmoothRotation action from the PlayingPico map. Read it through PlayingPico.SmoothRotation. |
private readonly InputAction m_PlayingPico_Squeeze | Cached Squeeze action from the PlayingPico map. Read it through PlayingPico.Squeeze. |
private readonly InputAction m_PlayingPico_TakeScreenShotLong | Cached TakeScreenShotLong action from the PlayingPico map. Read it through PlayingPico.TakeScreenShotLong. |
private readonly InputAction m_PlayingPico_Teleport | Cached Teleport action from the PlayingPico map. Read it through PlayingPico.Teleport. |
private readonly InputAction m_PlayingPico_ToggleGrab | Cached ToggleGrab action from the PlayingPico map. Read it through PlayingPico.ToggleGrab. |
private readonly InputAction m_PlayingPico_ToggleRun | Cached ToggleRun action from the PlayingPico map. Read it through PlayingPico.ToggleRun. |
private readonly InputAction m_PlayingPico_TouchingThumb | Cached TouchingThumb action from the PlayingPico map. Read it through PlayingPico.TouchingThumb. |
private readonly InputAction m_PlayingPico_TouchingTriggerButton | Cached TouchingTriggerButton action from the PlayingPico map. Read it through PlayingPico.TouchingTriggerButton. |
private readonly InputAction m_PlayingPico_TriggerAxis | Cached TriggerAxis action from the PlayingPico map. Read it through PlayingPico.TriggerAxis. |
private readonly InputAction m_PlayingPico_Velocity | Cached Velocity action from the PlayingPico map. Read it through PlayingPico.Velocity. |
private InputMap.IPlayingPicoActions m_PlayingPicoActionsCallbackInterface | The callback object last passed to PlayingPico.SetCallbacks, so it can be unhooked when replaced. |
Properties
| Member | What it is |
|---|---|
InputActionAsset asset { get; } | The InputActionAsset built from the embedded JSON. |
InputBinding? bindingMask { get; set; } | Binding mask applied to the whole asset. |
IEnumerable<InputBinding> bindings { get; } | Every binding in the asset. |
ReadOnlyArray<InputControlScheme> controlSchemes { get; } | The asset's control schemes (none are defined). |
ReadOnlyArray<InputDevice>? devices { get; set; } | Devices the asset is limited to, or null for all. |
InputMap.PlayingActions Playing { get; } | The main map, with bindings per controller type (Oculus Touch, Vive, WMR, Index). |
InputMap.PlayingBaseActions PlayingBase { get; } | A smaller map with per-device bindings and a single DirectionInput stick action. |
InputMap.PlayingGenericActions PlayingGeneric { get; } | Map bound to the generic XR controller layout. |
InputMap.PlayingPicoActions PlayingPico { get; } | Map for Pico, like the generic one but reading the trigger from the Pico controller. |
Methods
1 private and internal method
Used in
Members of other types that take, return or hold a InputMap:
InputMap.PlayingActions.m_Wrapper, InputMap.PlayingActions.PlayingActions, InputMap.PlayingBaseActions.m_Wrapper, InputMap.PlayingBaseActions.PlayingBaseActions, InputMap.PlayingGenericActions.m_Wrapper, InputMap.PlayingGenericActions.PlayingGenericActions, InputMap.PlayingPicoActions.m_Wrapper, InputMap.PlayingPicoActions.PlayingPicoActions, OpenXRInputController.inputMap.