--- id: input-bind_pad name: Input.bind_pad category: input kind: namespace-method tokens: Input.bind_pad sig: Input.bind_pad(action: str, button: int) -> void tip: Also fire a named action from a gamepad button (device-agnostic). order: 32 ns: Input member: bind_pad --- 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. ```ludic program Pad { entry { Input.action("fire", 'j') Input.bind_pad("fire", 0) if Input.active("fire") { print(1) } } } ```