# Bevy input actions

> Bevy input actions is an open-source agent skill for developer tools. Guides Bevy 0.20 games through rebindable input actions, gamepads and fixed-step input. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/shinyobjectz/raea-skills/tree/main/skills/bevy/pack/bevy-input-actions
- **Repository:** https://github.com/shinyobjectz/raea-skills
- **GitHub stars:** 38
- **License:** MIT
- **Skill name:** bevy-input-actions
- **Collection:** https://github.com/shinyobjectz/raea-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives an AI coding agent a structured approach to input handling in Bevy 0.20 games. It describes translating raw keyboard, mouse and gamepad state, run after Bevy's InputSystems set in PreUpdate, into stable logical action IDs that gameplay, menus and prompts consume instead of hard-coded keys or controller entities.

The guidance covers the entity-based Gamepad model, connection messages, per-device GamepadSettings for deadzones and calibration, and how to keep active-player assignment separate from bindings. It also explains bridging frame-scoped input into FixedUpdate so presses, releases and accumulated mouse motion are delivered once and in order, even when a frame runs zero or several fixed ticks.

The skill includes a review checklist and pointers to deeper reference files on action models and rebinding, gamepads and platforms, and fixed-step buffering. It targets Bevy 0.20 specifically and lists version-specific API changes to watch for.

## When your agent uses it

> Use when building Bevy 0.20 input with `InputSystems`, entity-based `Gamepad`/`GamepadSettings`, `AccumulatedMouseMotion`, or `CursorOptions`: rebindable actions, hot-plugging, deadzones, Steam Deck, accessibility controllers, and correct transfer into `FixedUpdate`.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-input-actions)
- [License: MIT](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-input-actions)

## Features

- **Stable action identifiers:** Explains naming actions with persistent IDs so bindings, prompts and save data survive code reordering.
- **Gamepad entity handling:** Covers querying Gamepad components, connection messages and keeping player assignment apart from device identity.
- **Deadzone and calibration rules:** Describes applying a single filtering pipeline through GamepadSettings rather than stacking deadzones in gameplay code.
- **Fixed-tick input bridge:** Shows how to queue transitions and mouse motion so each fixed simulation tick receives them exactly once.
- **Mouse capture and focus policy:** Covers cursor locking through CursorOptions and releasing held actions when the window loses focus.
- **Bevy 0.20 migration notes:** Lists API changes such as the GamepadButton::Other type, cursor module moves and flat pointer events.

## Good for

- Make jump and attack bindable so players can rebind them in settings
- Handle a controller disconnecting mid-game without moving its player to another pad
- Stop mouse look from getting stuck when the window loses focus
- Feed button presses into FixedUpdate without losing quick taps
- Show button prompts that match the player's active binding and device

## Install

### Claude Code

This skill ships in the `raea` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add shinyobjectz/raea-skills
/plugin install raea@raea
```

Or copy only this skill to `~/.claude/skills/bevy-input-actions`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bevy-input-actions &&
cp -R "$tmp/skills/bevy/pack/bevy-input-actions" ~/.claude/skills/bevy-input-actions &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/bevy-input-actions` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/bevy-input-actions` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bevy-input-actions &&
cp -R "$tmp/skills/bevy/pack/bevy-input-actions" ~/.agents/skills/bevy-input-actions &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/bevy-input-actions` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/bevy-input-actions` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bevy-input-actions &&
cp -R "$tmp/skills/bevy/pack/bevy-input-actions" ~/.cursor/skills/bevy-input-actions &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/bevy-input-actions` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/shinyobjectz/raea-skills.git --path skills/bevy/pack/bevy-input-actions
```

Or copy the folder to `~/.gemini/skills/bevy-input-actions` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/bevy-input-actions`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bevy-input-actions &&
cp -R "$tmp/skills/bevy/pack/bevy-input-actions" ~/.copilot/skills/bevy-input-actions &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/bevy-input-actions` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git
```

Then copy `raea-skills/skills/bevy/pack/bevy-input-actions` into your agent's skills folder as `bevy-input-actions`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What Bevy version does Bevy input actions target?

It targets Bevy 0.20, and its notes also call out changes from 0.18 and 0.19 that affect input code.

### Why are gamepads treated as entities here?

In Bevy 0.20 each gamepad is an entity with a Gamepad component, so the skill says to use the entity as a live device handle only and store stable assignments separately.

### How are input presses kept correct when fixed ticks vary?

Press and release transitions are kept in an ordered queue and drained once on the first fixed tick, while held buttons and axes are copied to every tick.

### Does the skill include scripts?

No, the skill folder contains instructions and reference documents only, with no scripts.

### How do I install Bevy input actions in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/bevy-input-actions to use it in all your projects, or to .claude/skills/bevy-input-actions in one project. Or install the raea plugin, which includes it: /plugin marketplace add shinyobjectz/raea-skills, then /plugin install raea@raea.

### Does Bevy input actions run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Bevy input actions?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Bevy input actions?

The closest alternatives to Bevy input actions are Bevy a11y, Bevy porting, Bevy ecs components, Bevy core concepts and Bevy testing.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Bevy a11y](https://ai-powered.com/skills/bevy-a11y): Bevy a11y is an open-source agent skill for developer tools.
- [Bevy porting](https://ai-powered.com/skills/bevy-porting): Bevy porting is an open-source agent skill for developer tools.
- [Bevy ecs components](https://ai-powered.com/skills/bevy-ecs-components): Bevy ecs components is an open-source agent skill for developer tools.
- [Bevy core concepts](https://ai-powered.com/skills/bevy-core-concepts): Bevy core concepts is an open-source agent skill for developer tools.
- [Bevy testing](https://ai-powered.com/skills/bevy-testing): Bevy testing is an open-source agent skill for developer tools.
- [Bevy](https://ai-powered.com/skills/bevy-shinyobjectz): Bevy is an open-source agent skill for developer tools.
- [Bevy migration 0 17 to 0 18](https://ai-powered.com/skills/bevy-migration-0-17-to-0-18): Bevy migration 0 17 to 0 18 is an open-source agent skill for developer tools.
- [Bevy audio](https://ai-powered.com/skills/bevy-audio): Bevy audio is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/bevy-input-actions
