GetControllerButtonTouched
This function is used to tell if the user is currently touching a button.
Syntax
- bool GetControllerButtonTouched(number index, number button)
Parameters
- index: The index of the controller, either Left or Right.
- button: The button to retrieve the input for. This can be TouchpadButton, TriggerButton, AButton, or BButton.
Returns
Returns true if the specified button is touched, otherwise false is returned.