method
Input.bind_pad
Input.bind_pad(action: str, button: int) -> void
Maps a gamepad button (on pad 0) to a named action, so the action fires from the keyboard or the pad. The same action can carry both keyboard keys (Input.bind / Input.action) and pad buttons; Input.active and its edges fire on either device — one action, any input.
Example
program Pad {
entry {
Input.action("fire", 'j')
Input.bind_pad("fire", 0)
if Input.active("fire") { print(1) }
}
}