Enum HeldHotkeyButtons
Controller button inputs that can be held as direct hotkeys during simulation.
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[Flags]
public enum HeldHotkeyButtons
Remarks
Uses FlagsAttribute to support detecting multiple simultaneous button presses (e.g. grip and trigger held at the same time).
Fields
| Name | Description |
|---|---|
| Grip | The grip button on a simulated controller. |
| Menu | The menu button on a simulated controller. |
| None | No buttons are currently held. |
| Primary2DAxisClick | The click of the primary thumbstick or touchpad on a simulated controller. |
| Primary2DAxisTouch | The touch of the primary thumbstick or touchpad on a simulated controller. |
| PrimaryButton | The primary face button on a simulated controller. |
| PrimaryTouch | The touch sensor on the primary face button of a simulated controller. |
| Secondary2DAxisClick | The click of the secondary thumbstick or touchpad on a simulated controller. |
| Secondary2DAxisTouch | The touch of the secondary thumbstick or touchpad on a simulated controller. |
| SecondaryButton | The secondary face button on a simulated controller. |
| SecondaryTouch | The touch sensor on the secondary face button of a simulated controller. |
| Trigger | The trigger button on a simulated controller. |