input-system

input-system is a skill for Claude Code, Codex from vchelaru/FlatRedBall2. It costs 86 tokens per session (1,994 once invoked), scanned A, original, MIT.

A reference for handling keyboard, mouse or touch, and gamepad input in the FlatRedBall2 2D game engine. It describes the engine interfaces and checks for held, newly pressed, and released input.

In plain words
What is it for?
It is for adding keyboard controls, mouse or touch interaction, gamepad controls, and key bindings to FlatRedBall2 games.
Why use it?
It helps game code read player actions consistently instead of implementing device-state handling from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for adding keyboard controls, mouse or touch interaction, gamepad controls, and key bindings to FlatRedBall2 games.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vchelaru/flatredball2/input-system
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vchelaru/FlatRedBall2 --skill input-system
Clone the repo
git clone --depth 1 https://github.com/vchelaru/FlatRedBall2

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for input-system

README.md
[![agentmods](https://agentmods.dev/badge/skills/vchelaru/flatredball2/input-system/github.svg)](https://agentmods.dev/skills/vchelaru/flatredball2/input-system)
Your own site
<a href="https://agentmods.dev/skills/vchelaru/flatredball2/input-system"><img src="https://agentmods.dev/badge/skills/vchelaru/flatredball2/input-system/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for input-system

Your own site · 80×15
<a href="https://agentmods.dev/skills/vchelaru/flatredball2/input-system"><img src="https://agentmods.dev/badge/skills/vchelaru/flatredball2/input-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.01994
Opus 5.5 $0.00034 $0.00798
Sonnet 5.5 $0.00017 $0.00399
Haiku 4.5 $0.00009 $0.00199

Measured 7d ago against content hash 5d12668bce4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

input-system scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

frb-skills/input-system/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Input System in FlatRedBall2

All input is accessed through Engine.Input from inside any entity or screen. The input manager exposes keyboard, cursor (mouse/touch), and up to four gamepads.

Accessing Input Devices

// Works in Entity.CustomActivity, Screen.CustomActivity, or anywhere Engine is available:
var keyboard = Engine.Input.Keyboard;       // IKeyboard
var cursor   = Engine.Input.Cursor;         // ICursor
var gamepad0 = Engine.Input.GetGamepad(0);  // IGamepad, index 0–3

GetGamepad(int index) throws ArgumentOutOfRangeException for index values outside 0–3.

IKeyboard

IKeyboard kb = Engine.Input.Keyboard;

bool held       = kb.IsKeyDown(Keys.Space);         // true every frame while held
bool pressed    = kb.WasKeyPressed(Keys.Space);     // true only on first frame down
bool released   = kb.WasKeyJustReleased(Keys.Space);// true only on first frame up

ICursor (Mouse / Touch)

ICursor cursor = Engine.Input.Cursor;

bool clicking       = cursor.PrimaryDown;           // left mouse button or touch held
bool justClicked    = cursor.PrimaryPressed;        // left mouse button or touch just started
Vector2 worldPos    = cursor.WorldPosition;         // position in world space (Y+ up)
Vector2 screenPos   = cursor.ScreenPosition;        // position in screen pixels
int wheel           = cursor.ScrollWheelDelta;      // wheel change this frame, + is up; ~120/notch but trackpads send smaller steps, so use the sign; 0 on first frame

bool overShape  = cursor.IsOver(myCircle);          // hit-test against any IShape
bool overEntity = cursor.IsOver(this);              // hit-test against an entity's shapes

IGamepad

IGamepad pad = Engine.Input.GetGamepad(0);

bool held       = pad.IsButtonDown(Buttons.A);
bool justPressed  = pad.WasButtonJustPressed(Buttons.A);
bool justReleased = pad.WasButtonJustReleased(Buttons.A);

float axisValue = pad.GetAxis(GamepadAxis.LeftStickX);  // -1.0 to 1.0

Read the full file on GitHub · 177 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · +5 lines 5d12668bce4f
  2. 13d ago Changed · +1 lines 6e7483bcb745
  3. 1mo ago First seen · 171 lines · 86 tokens per session scan A 8239438b3746

Subscribe to this mod's changes

input-system is a skill published in the GitHub repository vchelaru/FlatRedBall2 (15 stars, last pushed yesterday), licensed MIT. It adds 86 tokens to every session and 1,994 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

playtest-report

Structured playtest report template, or turn existing playtest notes into structured feedback.

Donchitos/Claude-Code-Game-Studios · 20 tokens

godot-signals-groups

Build event-driven, decoupled Godot 4.7 gameplay with signals and node groups: declare and emit custom signals, connect with Callables (incl. bind/one-shot), and broadcast to many nodes via groups and callgroup. Use when wiring node communication in a Godot project, replacing tight references with signals…

gamedev-skills/awesome-gamedev-agent-skills · 95 tokens

motion

Reconstruct a skeleton from calibrated mesh projections and sequential VLM joint annotations, then fit joints and skin weights. Generate motion from joint-position trajectories, rhythm and contact constraints through IK; refine bone orientation against the action, then export, retarget and validate on the target mesh.

OpenDCAI/GameFactory-3A · 0 tokens

unity-addressables

Manage Addressables groups, entries, profiles and content builds (com.unity.addressables, reflection-based).

Besty0728/Unity-Skills · 25 tokens

unity-manual-component

Manually add, configure, reorder, and copy components on GameObjects using Unity Editor UI. For one-off Inspector workflows that do not need REST automation.

Besty0728/Unity-Skills · 36 tokens

threejs-exposure-color-grading

Build a measured exposure and grading path in Three.js. Use for a 64x36 encoded luminance meter, asynchronous readback, weighted log-average exposure, asymmetric adaptation, single tone-map ownership, and a generated 32-cube post-tone-map LUT.

scottstts/Threejs-Awesome-Graphics-Agent-Skills · 60 tokens