Skip to main content

InputMap.IPlayingBaseActions

An interface in Root.Township, the global namespace.

Callbacks for the core VR controller actions in the generated InputMap. OpenXRWrapper implements it to fill in each hand's input.

Methods​

MemberWhat it is
void OnAngularVelocity(InputAction.CallbackContext context)Controller angular velocity.
void OnDirectionInput(InputAction.CallbackContext context)Thumbstick or touchpad direction.
void OnGrabStrength(InputAction.CallbackContext context)Grip strength; over half sets hard grab.
void OnInteract(InputAction.CallbackContext context)Grab button. Sets grab and release-toggle-grab.
void OnMetaMenu(InputAction.CallbackContext context)Meta menu button.
void OnPose(InputAction.CallbackContext context)Full controller pose.
void OnPosition(InputAction.CallbackContext context)Controller position.
void OnRotation(InputAction.CallbackContext context)Controller rotation.
void OnSecondaryInteract(InputAction.CallbackContext context)Secondary button. Drives double-tap and grab assist.
void OnSqueeze(InputAction.CallbackContext context)Grip squeeze amount, stored as the grab axis.
void OnTakeScreenShotLong(InputAction.CallbackContext context)Long-press screenshot button.
void OnTeleport(InputAction.CallbackContext context)Teleport button.
void OnToggleRun(InputAction.CallbackContext context)Run toggle button.
void OnTouchingIndexAxis(InputAction.CallbackContext context)Whether the index finger is on the trigger.
void OnTouchingThumb(InputAction.CallbackContext context)Whether the thumb is resting on the controller.
void OnTouchingTriggerButton(InputAction.CallbackContext context)Whether the index finger is on the trigger button.
void OnTriggerAxis(InputAction.CallbackContext context)Trigger amount, stored as the secondary axis.
void OnVelocity(InputAction.CallbackContext context)Controller velocity.

Used in​

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