Skip to main content

Input

Events for detecting button presses and player input.

Control Flow​

If Input Just Pressed​

Conditionally run part of the script if the specified joypad button is just pressed.
If Input Just Pressed
Any of
A
B
C
Start
X
Y
Z
Mode
Controller
1
2
True
Add Event
  • Any of: The input buttons to check.
  • Controller: The controller index to check.

If Input Just Released​

Conditionally run part of the script if the specified joypad button is just released.
If Input Just Released
Any of
A
B
C
Start
X
Y
Z
Mode
Controller
1
2
True
Add Event
  • Any of: The input buttons to check.
  • Controller: The controller index to check.

If Input Pressed​

Conditionally run part of the script if the specified joypad button is currently pressed.
If Input Pressed
Any of
A
B
C
Start
X
Y
Z
Mode
Controller
1
2
True
Add Event
  • Any of: The input buttons to check.
  • Controller: The controller index to check.

If Player 2 is Connected​

Conditionally run part of the script if the gamepad for Player 2 is connected.
If Player 2 is Connected
Run if the Player 2 gamepad is connected.
True
Add Event

If Pad Type Is​

Conditionally run part of the script if the gamepad connected to the given controller port is a 3 button or a 6 button pad.
If Pad Type Is
Controller
1
2
Number of Buttons
3
6
True
Add Event
  • Controller: The controller index to check.
  • Number of Buttons: The number of buttons the gamepad must have.

Only available on Mega Drive / Genesis.

Script​

Attach Script To Button​

Run the specified script any time a joypad button is pressed.
Attach Script To Button
Button
A
B
C
Start
X
Y
Z
Mode
Controller
1
2
On Press
On Press
Add Event
  • Button: The joypad button to check.
  • Controller: The controller index to check.
  • On Press: The script to run when the button is pressed.

Pause Script Until Input Pressed​

Pauses the script until one of the specified joypad buttons are pressed.
Pause Script Until Input Pressed
Any of
A
B
C
Start
X
Y
Z
Mode
Controller
1
2
  • Any of: The input buttons to check.
  • Controller: The controller index 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
C
Start
X
Y
Z
Mode
Controller
1
2
  • Remove script attached to input: The joypad button to remove the attached script from.
  • Controller: The controller index to check.