send_joypad_motion
Send analog gamepad stick or trigger axis events with float precision to simulate controller input in a running Godot game.
Instructions
Send a gamepad analog stick or trigger axis event. Simulates analog input with float precision. For input actions, prefer send_input. Requires run_interactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | The axis name: "left_x", "left_y" (left stick), "right_x", "right_y" (right stick), "trigger_left", "trigger_right" (analog triggers). | |
| value | Yes | Axis value. Sticks: -1.0 to 1.0 (left/up = negative, right/down = positive). Triggers: 0.0 to 1.0. | |
| device | No | Controller device index (default: 0). Use for multi-controller testing. |