API reference
API reference
Select your platform
No SDKs available
No versions available

ControllerButtonsMapper Class

Extends MonoBehaviour
A utility class for mapping controller buttons easily.
// Instantiate a new button action
var buttonAction = new ControllerButtonsMapper.ButtonClickAction
{
    Title = "Spawn Object",
    Button = OVRInput.Button.PrimaryIndexTrigger,
    ButtonMode = ControllerButtonsMapper.ButtonClickAction.ButtonClickMode.OnButtonUp,
    Callback = new UnityEvent()
};

Properties

A list of ButtonClickAction to trigger.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon