input-system

input-system is a skill for Claude Code, Codex from vchelaru/FlatRedBall2. It costs 86 tokens per session (2,206 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 2,206 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.02206
Opus 5.5 $0.00034 $0.00882
Sonnet 5.5 $0.00017 $0.00441
Haiku 4.5 $0.00009 $0.00221

Measured 7d ago against content hash ee6293073759, 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 · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 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

Mouse vs touch per press: cursor.LastInputDevice (Gum's Gum.Wireframe.InputDevice) says which device drove this press, e.g. fire on PrimaryPressed for Mouse but on PrimaryClick for TouchScreen. Don't use TouchPanel.GetCapabilities().IsConnected; it's device-wide and wrong on touchscreen laptops. Reads Mouse before any input.

Read the full file on GitHub · 183 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 · +6 lines ee6293073759
  2. 1mo ago Changed · +5 lines 5d12668bce4f
  3. 1mo ago Changed · +1 lines 6e7483bcb745
  4. 3mo 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 (17 stars, last pushed yesterday), licensed MIT. It adds 86 tokens to every session and 2,206 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

input-system compared with skills from other repositories

input-system next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
input-systemvchelaru/FlatRedBall2Skill17yesterdayMITA86Claude Code, Codex
playtest-reportDonchitos/Claude-Code-Game-StudiosSkill42k26d agoMITA20Claude Code
godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skillsSkill14kyesterdayApache-2.0A93Claude Code
scenario-unreal-gameplayscenario-labs/skillsSkill4.8kyesterdayMITA121Claude Code
texture-workflowarjun988/blender-skillsSkill6.0k1mo agoMITA41Claude Code
motionOpenDCAI/GameFactory-3ASkill1.6ktodayApache-2.0A0Claude Code, Codex
threejs-exposure-color-gradingscottstts/Threejs-Awesome-Graphics-Agent-SkillsSkill1.1kyesterdayMITA91Codex