send_joypad_button
Send a gamepad button event to a running Godot project, simulating press or release on a chosen controller for input testing.
Instructions
Send a gamepad button event (A, B, X, Y, shoulders, dpad, start, etc.) to a running project. For input actions, prefer send_input. Requires run_interactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | The gamepad button name. Standard buttons: "a", "b", "x", "y", "lb"/"left_shoulder", "rb"/"right_shoulder", "lt"/"left_stick", "rt"/"right_stick", "dpad_up", "dpad_down", "dpad_left", "dpad_right", "start", "back"/"select", "guide". Additional: "misc1", "paddle1"-"paddle4", "touchpad". | |
| device | No | Controller device index (default: 0). Use for multi-controller testing. | |
| pressed | No | Whether the button is pressed (true) or released (false). Default: true. |