GetControllerButtonHit
This function is used to tell if the user has pressed a button.
Syntax
- bool GetControllerButtonHit(const int index, const int button)
Parameters
- index: The index of the controller, either Left or Right.
- button: The button to retrieve the input for. This can be TouchpadButton, MenuButton, GripButton, TriggerButton, AButton, or BButton.
Returns
Returns true if the specified button has been pressed, otherwise false is returned.