Skip to main content

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.

Constructors​

MemberWhat it is
InputMap()Creates an InputMap with default values.

Fields​

91 private and internal fields
MemberWhat it is
private readonly InputActionMap m_PlayingThe Playing action map, looked up from the asset in the constructor.
private readonly InputAction m_Playing_AngularVelocityCached AngularVelocity action from the Playing map. Read it through Playing.AngularVelocity.
private readonly InputAction m_Playing_AssistGrabCached AssistGrab action from the Playing map. Read it through Playing.AssistGrab.
private readonly InputAction m_Playing_GesturesCached Gestures action from the Playing map. Read it through Playing.Gestures.
private readonly InputAction m_Playing_GrabStrengthCached GrabStrength action from the Playing map. Read it through Playing.GrabStrength.
private readonly InputAction m_Playing_InteractCached Interact action from the Playing map. Read it through Playing.Interact.
private readonly InputAction m_Playing_JoystickDpadCached JoystickDpad action from the Playing map. Read it through Playing.JoystickDpad.
private readonly InputAction m_Playing_MetaMenuCached MetaMenu action from the Playing map. Read it through Playing.MetaMenu.
private readonly InputAction m_Playing_PoseCached Pose action from the Playing map. Read it through Playing.Pose.
private readonly InputAction m_Playing_PositionCached Position action from the Playing map. Read it through Playing.Position.
private readonly InputAction m_Playing_ReleaseToggleGrabCached ReleaseToggleGrab action from the Playing map. Read it through Playing.ReleaseToggleGrab.
private readonly InputAction m_Playing_RotationCached Rotation action from the Playing map. Read it through Playing.Rotation.
private readonly InputAction m_Playing_SmoothLocomotionCached SmoothLocomotion action from the Playing map. Read it through Playing.SmoothLocomotion.
private readonly InputAction m_Playing_SmoothRotationCached SmoothRotation action from the Playing map. Read it through Playing.SmoothRotation.
private readonly InputAction m_Playing_SqueezeCached Squeeze action from the Playing map. Read it through Playing.Squeeze.
private readonly InputAction m_Playing_SwipeMotionCached SwipeMotion action from the Playing map. Read it through Playing.SwipeMotion.
private readonly InputAction m_Playing_SwipeTouchCached SwipeTouch action from the Playing map. Read it through Playing.SwipeTouch.
private readonly InputAction m_Playing_TakeScreenShotLongCached TakeScreenShotLong action from the Playing map. Read it through Playing.TakeScreenShotLong.
private readonly InputAction m_Playing_TeleportCached Teleport action from the Playing map. Read it through Playing.Teleport.
private readonly InputAction m_Playing_ToggleGrabCached ToggleGrab action from the Playing map. Read it through Playing.ToggleGrab.
private readonly InputAction m_Playing_ToggleRunCached ToggleRun action from the Playing map. Read it through Playing.ToggleRun.
private readonly InputAction m_Playing_TouchingIndexAxisCached TouchingIndexAxis action from the Playing map. Read it through Playing.TouchingIndexAxis.
private readonly InputAction m_Playing_TouchingThumbCached TouchingThumb action from the Playing map. Read it through Playing.TouchingThumb.
private readonly InputAction m_Playing_TouchingTriggerButtonCached TouchingTriggerButton action from the Playing map. Read it through Playing.TouchingTriggerButton.
private readonly InputAction m_Playing_TriggerAxisCached TriggerAxis action from the Playing map. Read it through Playing.TriggerAxis.
private readonly InputAction m_Playing_VelocityCached Velocity action from the Playing map. Read it through Playing.Velocity.
private InputMap.IPlayingActions m_PlayingActionsCallbackInterfaceThe callback object last passed to Playing.SetCallbacks, so it can be unhooked when replaced.
private readonly InputActionMap m_PlayingBaseThe PlayingBase action map, looked up from the asset in the constructor.
private readonly InputAction m_PlayingBase_AngularVelocityCached AngularVelocity action from the PlayingBase map. Read it through PlayingBase.AngularVelocity.
private readonly InputAction m_PlayingBase_DirectionInputCached DirectionInput action from the PlayingBase map. Read it through PlayingBase.DirectionInput.
private readonly InputAction m_PlayingBase_GrabStrengthCached GrabStrength action from the PlayingBase map. Read it through PlayingBase.GrabStrength.
private readonly InputAction m_PlayingBase_InteractCached Interact action from the PlayingBase map. Read it through PlayingBase.Interact.
private readonly InputAction m_PlayingBase_MetaMenuCached MetaMenu action from the PlayingBase map. Read it through PlayingBase.MetaMenu.
private readonly InputAction m_PlayingBase_PoseCached Pose action from the PlayingBase map. Read it through PlayingBase.Pose.
private readonly InputAction m_PlayingBase_PositionCached Position action from the PlayingBase map. Read it through PlayingBase.Position.
private readonly InputAction m_PlayingBase_RotationCached Rotation action from the PlayingBase map. Read it through PlayingBase.Rotation.
private readonly InputAction m_PlayingBase_SecondaryInteractCached SecondaryInteract action from the PlayingBase map. Read it through PlayingBase.SecondaryInteract.
private readonly InputAction m_PlayingBase_SqueezeCached Squeeze action from the PlayingBase map. Read it through PlayingBase.Squeeze.
private readonly InputAction m_PlayingBase_TakeScreenShotLongCached TakeScreenShotLong action from the PlayingBase map. Read it through PlayingBase.TakeScreenShotLong.
private readonly InputAction m_PlayingBase_TeleportCached Teleport action from the PlayingBase map. Read it through PlayingBase.Teleport.
private readonly InputAction m_PlayingBase_ToggleRunCached ToggleRun action from the PlayingBase map. Read it through PlayingBase.ToggleRun.
private readonly InputAction m_PlayingBase_TouchingIndexAxisCached TouchingIndexAxis action from the PlayingBase map. Read it through PlayingBase.TouchingIndexAxis.
private readonly InputAction m_PlayingBase_TouchingThumbCached TouchingThumb action from the PlayingBase map. Read it through PlayingBase.TouchingThumb.
private readonly InputAction m_PlayingBase_TouchingTriggerButtonCached TouchingTriggerButton action from the PlayingBase map. Read it through PlayingBase.TouchingTriggerButton.
private readonly InputAction m_PlayingBase_TriggerAxisCached TriggerAxis action from the PlayingBase map. Read it through PlayingBase.TriggerAxis.
private readonly InputAction m_PlayingBase_VelocityCached Velocity action from the PlayingBase map. Read it through PlayingBase.Velocity.
private InputMap.IPlayingBaseActions m_PlayingBaseActionsCallbackInterfaceThe callback object last passed to PlayingBase.SetCallbacks, so it can be unhooked when replaced.
private readonly InputActionMap m_PlayingGenericThe PlayingGeneric action map, looked up from the asset in the constructor.
private readonly InputAction m_PlayingGeneric_AngularVelocityCached AngularVelocity action from the PlayingGeneric map. Read it through PlayingGeneric.AngularVelocity.
private readonly InputAction m_PlayingGeneric_AssistGrabCached AssistGrab action from the PlayingGeneric map. Read it through PlayingGeneric.AssistGrab.
private readonly InputAction m_PlayingGeneric_GesturesCached Gestures action from the PlayingGeneric map. Read it through PlayingGeneric.Gestures.
private readonly InputAction m_PlayingGeneric_InteractCached Interact action from the PlayingGeneric map. Read it through PlayingGeneric.Interact.
private readonly InputAction m_PlayingGeneric_MetaMenuCached MetaMenu action from the PlayingGeneric map. Read it through PlayingGeneric.MetaMenu.
private readonly InputAction m_PlayingGeneric_PoseCached Pose action from the PlayingGeneric map. Read it through PlayingGeneric.Pose.
private readonly InputAction m_PlayingGeneric_PositionCached Position action from the PlayingGeneric map. Read it through PlayingGeneric.Position.
private readonly InputAction m_PlayingGeneric_ReleaseToggleGrabCached ReleaseToggleGrab action from the PlayingGeneric map. Read it through PlayingGeneric.ReleaseToggleGrab.
private readonly InputAction m_PlayingGeneric_RotationCached Rotation action from the PlayingGeneric map. Read it through PlayingGeneric.Rotation.
private readonly InputAction m_PlayingGeneric_SmoothLocomotionCached SmoothLocomotion action from the PlayingGeneric map. Read it through PlayingGeneric.SmoothLocomotion.
private readonly InputAction m_PlayingGeneric_SmoothRotationCached SmoothRotation action from the PlayingGeneric map. Read it through PlayingGeneric.SmoothRotation.
private readonly InputAction m_PlayingGeneric_SqueezeCached Squeeze action from the PlayingGeneric map. Read it through PlayingGeneric.Squeeze.
private readonly InputAction m_PlayingGeneric_TakeScreenShotLongCached TakeScreenShotLong action from the PlayingGeneric map. Read it through PlayingGeneric.TakeScreenShotLong.
private readonly InputAction m_PlayingGeneric_TeleportCached Teleport action from the PlayingGeneric map. Read it through PlayingGeneric.Teleport.
private readonly InputAction m_PlayingGeneric_ToggleGrabCached ToggleGrab action from the PlayingGeneric map. Read it through PlayingGeneric.ToggleGrab.
private readonly InputAction m_PlayingGeneric_ToggleRunCached ToggleRun action from the PlayingGeneric map. Read it through PlayingGeneric.ToggleRun.
private readonly InputAction m_PlayingGeneric_TouchingThumbCached TouchingThumb action from the PlayingGeneric map. Read it through PlayingGeneric.TouchingThumb.
private readonly InputAction m_PlayingGeneric_TouchingTriggerButtonCached TouchingTriggerButton action from the PlayingGeneric map. Read it through PlayingGeneric.TouchingTriggerButton.
private readonly InputAction m_PlayingGeneric_TriggerAxisCached TriggerAxis action from the PlayingGeneric map. Read it through PlayingGeneric.TriggerAxis.
private readonly InputAction m_PlayingGeneric_VelocityCached Velocity action from the PlayingGeneric map. Read it through PlayingGeneric.Velocity.
private InputMap.IPlayingGenericActions m_PlayingGenericActionsCallbackInterfaceThe callback object last passed to PlayingGeneric.SetCallbacks, so it can be unhooked when replaced.
private readonly InputActionMap m_PlayingPicoThe PlayingPico action map, looked up from the asset in the constructor.
private readonly InputAction m_PlayingPico_AngularVelocityCached AngularVelocity action from the PlayingPico map. Read it through PlayingPico.AngularVelocity.
private readonly InputAction m_PlayingPico_GesturesCached Gestures action from the PlayingPico map. Read it through PlayingPico.Gestures.
private readonly InputAction m_PlayingPico_InteractCached Interact action from the PlayingPico map. Read it through PlayingPico.Interact.
private readonly InputAction m_PlayingPico_MetaMenuCached MetaMenu action from the PlayingPico map. Read it through PlayingPico.MetaMenu.
private readonly InputAction m_PlayingPico_PicoAssistGrabCached PicoAssistGrab action from the PlayingPico map. Read it through PlayingPico.PicoAssistGrab.
private readonly InputAction m_PlayingPico_PoseCached Pose action from the PlayingPico map. Read it through PlayingPico.Pose.
private readonly InputAction m_PlayingPico_PositionCached Position action from the PlayingPico map. Read it through PlayingPico.Position.
private readonly InputAction m_PlayingPico_ReleaseToggleGrabCached ReleaseToggleGrab action from the PlayingPico map. Read it through PlayingPico.ReleaseToggleGrab.
private readonly InputAction m_PlayingPico_RotationCached Rotation action from the PlayingPico map. Read it through PlayingPico.Rotation.
private readonly InputAction m_PlayingPico_SmoothLocomotionCached SmoothLocomotion action from the PlayingPico map. Read it through PlayingPico.SmoothLocomotion.
private readonly InputAction m_PlayingPico_SmoothRotationCached SmoothRotation action from the PlayingPico map. Read it through PlayingPico.SmoothRotation.
private readonly InputAction m_PlayingPico_SqueezeCached Squeeze action from the PlayingPico map. Read it through PlayingPico.Squeeze.
private readonly InputAction m_PlayingPico_TakeScreenShotLongCached TakeScreenShotLong action from the PlayingPico map. Read it through PlayingPico.TakeScreenShotLong.
private readonly InputAction m_PlayingPico_TeleportCached Teleport action from the PlayingPico map. Read it through PlayingPico.Teleport.
private readonly InputAction m_PlayingPico_ToggleGrabCached ToggleGrab action from the PlayingPico map. Read it through PlayingPico.ToggleGrab.
private readonly InputAction m_PlayingPico_ToggleRunCached ToggleRun action from the PlayingPico map. Read it through PlayingPico.ToggleRun.
private readonly InputAction m_PlayingPico_TouchingThumbCached TouchingThumb action from the PlayingPico map. Read it through PlayingPico.TouchingThumb.
private readonly InputAction m_PlayingPico_TouchingTriggerButtonCached TouchingTriggerButton action from the PlayingPico map. Read it through PlayingPico.TouchingTriggerButton.
private readonly InputAction m_PlayingPico_TriggerAxisCached TriggerAxis action from the PlayingPico map. Read it through PlayingPico.TriggerAxis.
private readonly InputAction m_PlayingPico_VelocityCached Velocity action from the PlayingPico map. Read it through PlayingPico.Velocity.
private InputMap.IPlayingPicoActions m_PlayingPicoActionsCallbackInterfaceThe callback object last passed to PlayingPico.SetCallbacks, so it can be unhooked when replaced.

Properties​

MemberWhat 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​

MemberWhat it is
bool Contains(InputAction action)True if the action belongs to this asset.
void Disable()Disables every action in every map.
void Dispose()Destroys the underlying input actions asset.
void Enable()Enables every action in every map.
InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)Finds an action by name or id across all maps.
int FindBinding(InputBinding bindingMask, out InputAction action)Finds the first binding matching a mask and returns its index and action.
IEnumerator<InputAction> GetEnumerator()Enumerates every action in the asset.
1 private and internal method
MemberWhat it is
private IEnumerator System.Collections.IEnumerable.GetEnumerator()Enumerates every action in the asset.

Used in​

Members of other types that take, return or hold a InputMap: