Logo: Godot Input Patterns

Godot Input Patterns

Communautéit
MRCalderon3D
godot-input-patterns

Implement Godot input through InputMap actions with correct event propagation, device support, and rebinding.

Iwwersiicht

EditeurMRCalderon3D
Repositoryeverything-game-dev-code
Skill-Nummgodot-input-patterns
Stären
85
Forks
13
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    MRCalderon3D huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Godot Input Patterns an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/MRCalderon3D/everything-game-dev-code/tree/main/skills/godot/godot-input-patterns
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MRCalderon3D/everything-game-dev-code.git /tmp/everything-game-dev-code
mkdir -p .claude/skills
cp -r /tmp/everything-game-dev-code/skills/godot/godot-input-patterns .claude/skills/godot-input-patterns
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Godot Input Patterns an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Godot Input Patterns automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Godot Input Patterns net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Godot Input Patterns

Purpose

Implement Godot input through InputMap actions with correct event propagation, device support, and rebinding.

Use When

  • adding or unifying input handling for a Godot game
  • gameplay scripts read raw keycodes, scancodes, or joypad button indices directly
  • input behaves differently between gameplay, UI, and pause states and the propagation order is unclear

Inputs

  • list of gameplay actions (move, jump, fire, pause, confirm)
  • supported devices (keyboard/mouse, joypad, touch) per platform target
  • UI flow and pause/overlay states that consume input
  • rebinding and accessibility requirements

Process

  1. define every action in the InputMap (project settings or at startup) and bind devices to actions; gameplay code calls Input.is_action_* or handles InputEvent actions, never raw keycodes
  2. choose polling versus events deliberately: poll continuous state (movement axes via Input.get_vector) in _physics_process, and handle discrete edges (just pressed/released) through events or is_action_just_pressed
  3. respect the propagation order — _input, then Control _gui_input, then _unhandled_input — and put gameplay input in _unhandled_input so UI consumes events first; call set_input_as_handled() explicitly when a layer swallows an event
  4. handle joypads through actions with deadzone configured per action, listen to joy_connection_changed for hot-plug, and verify mappings on each exported platform
  5. for touch targets, decide between InputEventScreenTouch handling and emulate_mouse_from_touch, and keep on-screen controls as a separate Control layer bound to the same actions
  6. implement rebinding by editing InputMap at runtime (action_erase_events / action_add_event), persist bindings to user settings, and expose them through the accessibility options
  7. define how paused state affects input: which nodes keep processing via process_mode, and which actions (pause/menu) must work while the tree is paused

Outputs

  • InputMap action inventory with device bindings and deadzones
  • propagation rules: which layer handles what, in which callback
  • rebinding and persistence design
  • device and platform test scenarios (hot-plug, focus loss, touch emulation)

Quality Bar

  • no gameplay script references keycodes, scancodes, or joypad indices outside the InputMap setup
  • UI reliably consumes events before gameplay, and nothing double-handles an event after set_input_as_handled()
  • movement uses Input.get_vector (or equivalent) with per-action deadzones, not per-frame keycode checks
  • pause/menu actions keep working while the tree is paused, and nothing else does
  • rebinds survive a restart and are reflected in any input prompts shown to the player

Common Failure Modes

  • mixing _input and _process polling for the same action, double-counting presses across frames
  • gameplay input in _input so UI clicks also fire gameplay actions underneath
  • hardcoded joypad button indices that differ between controller types and platforms
  • pause menus that cannot be closed because their own input stopped processing with the tree
  • touch handled through mouse emulation only, breaking multi-touch (move plus fire) on mobile

Related Agents

  • godot-reviewer
  • gameplay-programmer
  • ui-programmer

Related Commands

  • input-review
  • godot-review
  • verify

Related Skills

  • godot-signals-patterns
  • godot-scene-architecture

Notes

  • Keep this skill aligned with the relevant rules layer and current project documentation.
  • The engine-neutral action-abstraction policy lives in engineering-common/input-abstraction; this skill is the Godot-specific implementation of it.

Heefeg gestallte Froen

Wat mécht de KI-Skill Godot Input Patterns?

Implement Godot input through InputMap actions with correct event propagation, device support, and rebinding.

Firwat Godot Input Patterns op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Godot Input Patterns besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Godot Input Patterns an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/MRCalderon3D/everything-game-dev-code/tree/main/skills/godot/godot-input-patterns an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Godot Input Patterns benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Godot Input Patterns benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Godot Input Patterns domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Godot Input Patterns gratis?

Jo. MRCalderon3D huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇