Enum InputHelpers.Button
A list of buttons that can be bound to.
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public enum Button
Fields
Name | Description | Value |
---|---|---|
None | Represents and invalid button. |
0 |
MenuButton | Represents a menu button, used to pause, go back, or otherwise exit gameplay. |
1 |
Trigger | A binary measure of whether the index finger is activating the trigger. |
2 |
Grip | Represents the user's grip on the controller. |
3 |
TriggerButton | A binary measure of whether the index finger is activating the trigger. |
4 |
GripButton | A binary measure of whether the device is being gripped. |
5 |
PrimaryButton | The primary face button being pressed on a device, or sole button if only one is available. |
6 |
PrimaryTouch | The primary face button being touched on a device. |
7 |
SecondaryButton | The secondary face button being pressed on a device. |
8 |
SecondaryTouch | The secondary face button being touched on a device. |
9 |
Primary2DAxisTouch | Represents the primary 2D axis being touched. |
10 |
Primary2DAxisClick | Represents the primary 2D axis being clicked or otherwise depressed. |
11 |
Secondary2DAxisTouch | Represents the primary 2D axis being touched. |
12 |
Secondary2DAxisClick | Represents the secondary 2D axis being clicked or otherwise depressed. |
13 |
PrimaryAxis2DUp | Represents an upwards motion on the primary touchpad or joystick on a device. |
14 |
PrimaryAxis2DDown | Represents a downwards motion on the primary touchpad or joystick on a device. |
15 |
PrimaryAxis2DLeft | Represents a leftwards motion on the primary touchpad or joystick on a device. |
16 |
PrimaryAxis2DRight | Represents a rightwards motion on the primary touchpad or joystick on a device. |
17 |
SecondaryAxis2DUp | Represents an upwards motion on the secondary touchpad or joystick on a device. |
18 |
SecondaryAxis2DDown | Represents a downwards motion on the secondary touchpad or joystick on a device. |
19 |
SecondaryAxis2DLeft | Represents a leftwards motion on the secondary touchpad or joystick on a device. |
20 |
SecondaryAxis2DRight | Represents a rightwards motion on the secondary touchpad or joystick on a device. |
21 |