Enum ControllerButton
Button indices for buttons
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
Syntax
public enum ControllerButton
Fields
| Name | Description | Value |
|---|---|---|
| PrimaryButton | 0 | |
| PrimaryTouch | 1 | |
| SecondaryButton | 2 | |
| SecondaryTouch | 3 | |
| GripButton | 4 | |
| TriggerButton | 5 | |
| MenuButton | 6 | |
| Primary2DAxisClick | 7 | |
| Primary2DAxisTouch | 8 | |
| Secondary2DAxisClick | 9 | |
| Secondary2DAxisTouch | 10 | |
| UserPresence | 11 |