GetControllerButtonDown
This function is used to retrieve the current input value for controller buttons.
Syntax
- bool GetControllerButtonDown(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, MenuButton, GripButton, AButton, or BButton.
Returns
Returns true if the specified button is pressed, otherwise false is returned.