Skip to main content

Joypad Input

Attach Script To Button​

Run the specified script any time a joypad button is pressed.

Attach Script To Button
Button
A
B
Start
Select
Override default button action
On Press
On Press
Add Event
  • Button: The joypad button to check.
  • Override default button action: Set if the script should replace the default game action for the specified button.
  • On Press: The script to run when the button is pressed.

Pause Script Until Button Pressed​

Pauses the script until one of the specified joypad buttons are pressed.

Pause Script Until Button Pressed
Any of
A
B
Start
Select
  • Any of: The input buttons to check.

Remove Button Script​

Remove an attached script from a joypad button restoring the default functionality of the button.

Remove Button Script
Remove script attached to input
A
B
Start
Select
  • Remove script attached to input: The joypad button to remove the attached script from.

Control Flow​

If Button Held​

Conditionally run part of the script if the specified joypad button is currently pressed. Will not wait for user input and will only execute once, if you wish to run a script every time a button is pressed use Attach Script To Button instead.

References
/docs/scripting/script-glossary/input#attach-script-to-button

If Button Held
Any of
A
B
Start
Select
True
Add Event
Else
  • Any of: The input buttons to check.
  • True: The script to run if the condition is true.
  • False: The script to run if the condition is false.