input-system

Implement Unity New Input System action maps and runtime input handling.

Updated May 6, 2026
One-click install
npx skills add https://github.com/BasarEkinci/memory-card-game --skill input-system-basarekinci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: input-system
Source: https://github.com/BasarEkinci/memory-card-game/tree/main/.claude/skills/core/input-system
Command: npx skills add https://github.com/BasarEkinci/memory-card-game --skill input-system-basarekinci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of wiring Unity gameplay and UI controls cleanly, so actions respond correctly across keyboard, gamepads, and touch while supporting rebinding and buffering.

Core Features & Use Cases

  • Action Map Design: Create Player/UI/Menu action maps with appropriate action types (Button, Value, Pass-Through) for gameplay and menus, including multi-context switching.
  • Typed Input Integration: Generate strongly-typed C# classes from the input action asset and hook callbacks for started/performed/canceled to drive logic reliably.
  • PlayerInput Options: Use the PlayerInput component when you want inspector wiring or C# event callbacks, trading flexibility for convenience.
  • Runtime Rebinding: Provide an interactive rebinding flow that lets players change controls and persist overrides.
  • Input Buffering Pattern: Capture inputs slightly before they can be consumed (e.g., jump) to improve responsiveness.
  • Device Handling: Detect active device schemes to adapt behavior for different input methods.

Quick Start

Generate C# classes from your Input Action Asset, enable the correct action map at runtime, and subscribe to performed/canceled callbacks for your gameplay actions.

Frequently Asked Questions about input-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Unity New Input System action maps for gameplay and UI navigation?

Generate strongly-typed C# classes from your Input Action Asset, enable the correct action map at runtime, and subscribe to performed or canceled callbacks. This reliable event handling ensures your gameplay logic responds correctly across keyboard, gamepad, and touch devices.

How do I implement runtime rebinding and persist binding overrides in Unity?

Runtime rebinding in Unity is implemented through an interactive rebinding flow that lets players change controls and persist binding overrides. This allows users to customize their keyboard and gamepad inputs while saving those preferences for future gameplay sessions.

What is input buffering and how does it improve responsiveness in Unity?

Input buffering is a pattern that captures player inputs slightly before they can be consumed, such as jump commands. By storing these inputs briefly, Unity gameplay remains responsive and prevents missed button presses during fast-paced action sequences.

Does Unity PlayerInput component support event callbacks and action map switching?

The Unity PlayerInput component supports inspector wiring and C# event callbacks for action map switching. It offers convenience by handling started, performed, and canceled callback phases, trading some flexibility for easier setup across different input devices.

Can I detect active device schemes to adapt behavior for different Unity input methods?

Active device scheme detection allows you to adapt behavior for different Unity input methods. By identifying whether a keyboard, gamepad, or touch device is active, you can dynamically switch control schemes to match the player's current hardware.