gamedev-skills/awesome-gamedev-agent-skills/input-systems
Claude Code and agent skill by gamedev-skills/awesome-gamedev-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Engine-neutral input architecture with Godot InputMap code: named actions, stick deadzones, buffered presses and rebinding with conflict checks. Use for controller support or a rebind menu, or a drifting stick, WASD on AZERTY, or a dropped press. Not for coyote time (`platformer`) or Unity and Unreal input assets (`unity-input-system`, `unreal-enhanced-input`).
Install
npx vskill@latest install gamedev-skills/awesome-gamedev-agent-skills/input-systemsSKILL.md
The same SKILL.md was published earlier as gamedev-skills/awesome-gamedev-agent-skills/input-systems.
Input systems
Gameplay reads named actions (jump, attack, move); bindings from keys, buttons and touch to those actions are data. Rebinding, multi-device support and most input accessibility fall out of that one indirection. This skill is the engine-neutral architecture with Godot 4.7 code. For the engine's own input assets use unity-input-system or unreal-enhanced-input; Godot's InputMap is covered here.
When to use
- Designing an input layer: actions, per-device bindings, device detection and prompts.
- Stick handling: deadzones, response curves, sensitivity.
- Buffering discrete presses (attack during recovery, dodge, combo links, menu confirm).
- A rebinding screen with conflict handling, saved bindings and reset to defaults.
- Accessible controls: full remap, toggle vs hold, no required chords, adjustable windows.
Not this skill: coyote time, jump buffering and variable jump height belong to platformer, which owns the jump controller. Hit-stop and other juice that interact with buffers are game-feel. Writing the bindings file is save-systems. Menu focus and navigation rules are game-ui-ux.
Core workflow
- Inventory before editing. List the existing actions (Godot: the
[input]section of
project.godot; Unity: the .inputactions file; Unreal: IA_/IMC_ assets) and grep gameplay code for raw key reads (is_key_pressed, KEY_, Input.GetKey). Raw reads are the first thing to replace.
- Name actions by intent, not by key, and give each one a keyboard and a gamepad binding.
Touch routes through the same actions.
- Match the read to the action. Edge (pressed this frame or tick) for discrete actions,
held or axis for continuous ones.
- Filter analog input with a radial deadzone and a separate response curve.
- Buffer discrete presses that arrive a little before they are legal, measured in game
time and consumed when they fire.
- Rebinding: capture the next input, bind the physical key, reject or swap conflicts,
save, and offer reset to defaults. Keep a way back to the pause menu that cannot be unbound.
- Check it yourself, then ask for the device test (see "Check it" below).
Patterns
1. Actions over raw keys; edge vs held
Engine equivalents: Unity Input System InputAction and action maps; Unreal Enhanced Input Actions plus Mapping Contexts.
2. Analog deadzone and sensitivity
Keep the response curve (exponent) separate from sensitivity (a gain on the result, usually a camera turn rate) and expose both in settings. Invalid settings report an error and return zero movement. Godot's get_vector already does this deadzone and rescale, using the average of the four actions' deadzones (0.2 per action by default) unless you pass one.
3. Action buffer for discrete presses
Feed it from the input read (if Input.is_action_just_pressed("attack"): buffer.press(&"attack", clock)) and call consume where the action becomes legal, such as the first frame after attack recovery. clock is game time you advance in _physics_process, so the window freezes during pause and hit-stop. When two buffered actions become legal on the same tick, choose by a fixed priority, not by dictionary order. Jump buffering and coyote time use the same idea but belong to platformer.
4. Rebinding with conflict detection
Keyboard bindings use physical_keycode with keycode left at 0, which makes Godot match by key position, so WASD stays in place on AZERTY or Dvorak. Show the player's own label with DisplayServer.keyboard_get_label_from_physical. Reset to defaults with InputMap.load_from_project_settings(). Unity: PerformInteractiveRebinding() and SaveBindingOverridesAsJson()/LoadBindingOverridesFromJson(). Unreal: Enhanced Input User Settings with player-mappable keys.
5. Binding audit (headless, exits 1 on problems)
It reads the project's [input] section. Exact matching matters: with the default loose match, move_left and move_right on the two directions of one stick axis would count as a conflict. Two actions that are never active at the same time (a menu action and a gameplay action) may share a key; list such pairs instead of deleting the check.
Check it
- Run the binding audit and fix every line it prints. In Unity or Unreal, do the same review on
the .inputactions JSON or by listing mapping-context keys.
- Unit-test the pure parts headless with fixed inputs: deadzone outputs at 0, at the deadzone
edge and on a diagonal; a buffered press fires once and expires after the window. Follow godot-gdscript-headless-testing for the runner and exit codes.
- Grep gameplay code for raw key reads again; the count should be zero outside debug tools.
- Ask the user to plug in a gamepad, rebind one action to a face button, restart the game and
report whether the new binding still works, whether prompts switch between keyboard and pad glyphs, and whether a second pad can use the rebound button. You cannot press buttons yourself, so do not report device behaviour you have not had confirmed.
Gotchas
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/disciplines/input-systems/SKILL.md
Popularity
- Repository stars
- 1,071
- Repository forks
- 87
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gamedev-skills/awesome-gamedev-agent-skills/input-systems)