Godot Input logo

Godot Input

Community
EL4CTEO
godot-input

Input in Godot 4.7 for keyboard/mouse, gamepads and touch - InputMap actions, _input vs _unhandled_input, analog movement with deadzones, runtime rebinding with save/load, button prompts per device, gamepad vibration, gyro/accelerometer aiming (4.7), touch gestures and VirtualJoystick (4.7), mouse capture. Use for controls, key bindings, controller support or mobile touch input.

Overview

PublisherEL4CTEO
Repositorygodot-skills
Skill namegodot-input
Stars
60
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by EL4CTEO on GitHub. Read the source before you install it.

Installation

Install the Godot Input AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-input
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-input .claude/skills/godot-input
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Input in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Input on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Input is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Input (4.7)

See the project's actions with python ../godot-core/scripts/project_inspect.py → input. Reuse those action names.

Actions, not keys

  • Define actions in Project Settings → Input Map (stored in project.godot [input]). Bind every action to keyboard and gamepad from day one. Use physical keycodes (physical_keycode) so WASD works on AZERTY.
  • Polling in _physics_process/_process: Input.is_action_pressed, is_action_just_pressed and is_action_just_released. Analog values: Input.get_vector(&"move_left", &"move_right", &"move_up", &"move_down") returns a circular deadzone and a normalized length. get_axis(neg, pos) and get_action_strength cover the rest.
  • Events: _unhandled_input(event) handles gameplay (UI gets first chance in _gui_input). _input sees everything first, so use it only for global hotkeys and mark them handled with get_viewport().set_input_as_handled(). _shortcut_input is for menus' shortcuts.
  • event.is_action_pressed(&"jump") inside event callbacks. Add allow_echo for key repeat, and exact_match to require exactly those modifiers.
  • 4.7: keyboard and mouse events report event.device == InputEvent.DEVICE_ID_KEYBOARD / DEVICE_ID_MOUSE, no longer 0. Gamepads keep 0..N. Don't compare device == 0 to mean "keyboard".
  • In C#, cache action names: static readonly StringName Jump = "jump";.

Gamepads

  • Hot-plug: Input.joy_connection_changed(device, connected), Input.get_connected_joypads(), Input.get_joy_name(device), Input.get_joy_info(device) (vendor and product IDs). SDL3 drives gamepads since 4.5.
  • Rumble: Input.start_joy_vibration(device, weak, strong, duration) and stop_joy_vibration. On phones, Input.vibrate_handheld(ms).
  • Motion sensors (4.7): has_joy_motion_sensors(d), set_joy_motion_sensors_enabled(d, true), then get_joy_gyroscope(d) (rad/s), get_joy_accelerometer(d) and get_joy_gravity(d). Calibrate with start_joy_motion_sensors_calibration/stop_.... Supported on Windows, Linux, macOS and iOS. Gyro aiming is in the reference.
  • Lights (DualShock/DualSense): has_joy_light, set_joy_light(device, color).
  • 4.7 setting input_devices/joypads/ignore_joypad_on_unfocused_application (default off) stops background controller input.
  • Several local players: give each player a device ID and read events filtered by event.device. The Input.* polling functions merge all devices, so poll per device with Input.get_joy_axis(device, axis) or route events yourself.

Rebinding

Change bindings at runtime with InputMap.action_erase_events/action_add_event, and save them yourself (ConfigFile with serialized events, see the reference). Load them at startup. InputMap.load_from_project_settings() resets to defaults. For button prompts, show event.as_text() for keys, or map JoyButton to your own icon set per controller family (detect it from get_joy_name).

Mouse

  • FPS look: Input.mouse_mode = Input.MOUSE_MODE_CAPTURED and InputEventMouseMotion.relative in _unhandled_input. Never use _process mouse deltas. Release the mouse on pause or Escape.
  • Input.use_accumulated_input = false (C#: UseAccumulatedInput) gives raw per-event motion for drawing apps. The default accumulation is fine for games.

Touch and mobile

  • InputEventScreenTouch (index, pressed, double_tap) and InputEventScreenDrag (relative, velocity). Gestures: InputEventMagnifyGesture and InputEventPanGesture.
  • input_devices/pointing/emulate_mouse_from_touch is on by default, so buttons work with touch. Turn emulate_touch_from_mouse on to test touch on desktop.
  • VirtualJoystick (4.7): set joystick_mode (FIXED, DYNAMIC or FOLLOWING), action_left/right/up/down (it feeds those actions, so get_vector just works), deadzone_ratio and visibility_mode = VISIBILITY_WHEN_TOUCHED. Signals: pressed, released, tapped, flicked.
  • TouchScreenButton (CanvasItem) triggers an action and supports multitouch. Regular Button is fine for menus.
  • Show touch controls only when touch is present: DisplayServer.is_touchscreen_available().

Testing input headless

Inject events in tests: Input.parse_input_event(ev), or Input.action_press(&"jump") / action_release. See godot-testing-debug.

Rebinding with persistence, device-aware prompts, gyro aim, touch camera (compiled by the tests): references/patterns.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot Input AI skill do?

Input in Godot 4.7 for keyboard/mouse, gamepads and touch - InputMap actions, _input vs _unhandled_input, analog movement with deadzones, runtime rebinding with save/load, button prompts per device, gamepad vibration, gyro/accelerometer aiming (4.7), touch gestures and VirtualJoystick (4.7), mouse capture. Use for controls, key bindings, controller support or mobile touch input.

Why use Godot Input on TypingMind?

Because you install it once and use it with any model. Godot Input is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Input in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-input. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot Input?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Input?

As many as you like. As long as a model supports skills, you can use Godot Input with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Input AI skill free?

Yes. It is published on GitHub by EL4CTEO under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇