Enum ControllerButton
Button indices for buttons
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
Syntax
public enum ControllerButton
Fields
Name | Description | Value |
---|---|---|
PrimaryButton | The primary face button being pressed on a device, or sole button if only one is available. |
0 |
PrimaryTouch | The primary face button being touched on a device. |
1 |
SecondaryButton | The secondary face button being pressed on a device. |
2 |
SecondaryTouch | The secondary face button being touched on a device. |
3 |
GripButton | A binary measure of whether the device is being gripped. |
4 |
TriggerButton | A binary measure of whether the index finger is activating the trigger. |
5 |
MenuButton | Represents a menu button, used to pause, go back, or otherwise exit gameplay. |
6 |
Primary2DAxisClick | Represents the primary 2D axis being clicked or otherwise depressed. |
7 |
Primary2DAxisTouch | Represents the primary 2D axis being touched. |
8 |
Secondary2DAxisClick | Represents the secondary 2D axis being clicked or otherwise depressed. |
9 |
Secondary2DAxisTouch | Represents the secondary 2D axis being touched. |
10 |
UserPresence | Indicates whether the user is present and interacting with the device. |
11 |