pad_button
Check whether a controller button is held.
Available as pad_button after import_globals() or mv.input.pad_button.
Parameters
slot— A controller slot from 0 to 3.name— A button name such as"a"or"start".
if pad_button(0, "a") then jump()endRelated: pad_connected, pad_axis.
See the keyboard guide for more examples and limits.