godot-input SKILL.md skillA
godot-input from mindsmaster/godot-claude-code-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mindsmaster/godot-claude-code-skills/godot-input@git:20261024.5ffa874Pins git:20261024.5ffa874 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mindsmaster/godot-claude-code-skills
- Path
skills/godot-input/SKILL.md- Versions recorded
- 4
- Latest version
- git:20261024.5ffa874, committed Oct 24, 2026
- First version recorded
- Oct 21, 2026
- Size
- 8,321 bytes
- Repository stars
- 3
- License
- MIT
写移动 跳跃 攻击 视角控制 改键菜单 手柄支持时用。InputMap 动作代替硬编码按键、get_axis get_vector 死区、键盘手柄双绑定、_unhandled_input 与轮询的选择、运行时改键并存档、鼠标捕获、输入缓冲、手柄震动与热插拔。input map keybinding gamepad.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Godot 输入
玩法输入一律走 InputMap 动作,同一个动作绑键盘与手柄,用 `Input` 的轴和向量接口读值。不管 UI 控件的焦点与点击,也不管按键提示文本,见 `godot-ui`。
## 先查内置
| 需求 | 用这个 | 别自己写 |
|---|---|---|
| 判断按键 | InputMap 动作加 `Input.is_action_pressed` | `event.keycode == KEY_W` |
| 一维轴 二维移动 | `Input.get_axis` `Input.get_vector` | 分别读两个方向再相减拼向量 |
| 摇杆死区 | 动作的 `deadzone`,`get_vector` 取各动作死区平均值做圆形死区,第五个参数 `deadzone` 可覆盖 | `if abs(x) < 0.2` |
| 手柄支持 | 同一动作加 `InputEventJoypadButton` `InputEventJoypadMotion` | 另写一套手柄分支 |
| 改键 | `InputMap.action_erase_event` 加 `action_add_event` | 自己维护按键表 |
| 触屏摇杆 | VirtualJoystick 4.7+,TouchScreenButton | 自己解析 `InputEventScreenTouch` |
| 模拟输入 | `Input.action_press`,`Input.parse_input_event` | 直接改自己的状态 |
## 定义动作
在项目设置 Input Map 页添加,键盘与手柄放进同一个动作:
```ini
[input]
jump={
"deadzone": 0.2,
"events": Array[InputEvent]([Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
…Read the whole file at its exact version.
How to install
mdr add mindsmaster/godot-claude-code-skills/godot-input@sha256:291c2bc0de3236a8The line at the top of this page pins the label git:20261024.5ffa874, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_fhoyjg36cm3wlx6s)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Oct 21, 2026 and Oct 24, 2026, more than one a day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261024.5ffa874 latest | 2026-10-24 | 5ffa874 | 8,321 B | A | view · diff |
| git:20261022.8162298 | 2026-10-22 | 8162298 | 8,559 B | A | view · diff |
| git:20261021.7574bb0 | 2026-10-21 | 7574bb0 | 7,897 B | A | view · diff |
| git:20261021.d57038c | 2026-10-21 | d57038c | 7,660 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8321 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mindsmaster/godot-claude-code-skills · 3 stars · license MIT · pushed 2026-11-06 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_fhoyjg36cm3wlx6s GET https://markdownregistry.com/api/v1/resolve?ref=mindsmaster/godot-claude-code-skills/godot-input GET https://markdownregistry.com/api/v1/blob/291c2bc0de3236a89124d33afc34ea5f177fcdf12cdf718d57e904b00c9baca0
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.