Input System

Configure Godot 4 Input Map actions and handle input events for keyboard, gamepad, mouse, and touch.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/ftnilsson/agent-cli --skill input-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Input System
Source: https://github.com/ftnilsson/agent-cli/tree/main/godot-development/skills/06-input-system
Command: npx skills add https://github.com/ftnilsson/agent-cli --skill input-system

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of implementing robust and responsive input controls in Godot 4 projects, ensuring a smooth user experience across various devices.

Core Features & Use Cases

  • Action-Based Input: Configure and utilize the Input Map for flexible control schemes.
  • Input Event Processing: Understand and manage the order of input events for UI and gameplay.
  • Device Support: Handle keyboard, gamepad, mouse, and touch inputs effectively.
  • Use Case: Set up player movement and actions for a new game, allowing players to use either a keyboard or a gamepad seamlessly.

Quick Start

Configure the Input Map with actions for player movement and jumping, then implement input polling in _physics_process and event handling in _unhandled_input.

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 gamepad and keyboard controls in Godot 4?

Godot 4 input handling uses the Input Map to configure action-based control schemes, allowing you to support gamepad, keyboard, mouse, and touch inputs simultaneously for responsive gameplay.

What is the difference between input polling and input event handling in Godot 4?

Input polling checks action states continuously during the physics process, while input event handling captures discrete events in functions like `_unhandled_input`, managing the processing order for UI and gameplay interactions.

How do I remap controls and implement input buffering in Godot 4?

Godot 4 input handling supports advanced configurations like input buffering for responsive actions and control remapping, utilizing the Input Map and event processing to dynamically adjust player controls.

How do I process UI and gameplay input events in the correct order in Godot 4?

Godot 4 manages input event processing order by routing events through UI controls first, then gameplay nodes via `_unhandled_input`, ensuring UI interactions take precedence over gameplay actions.

Can I use Godot 4 touch input for mobile game development?

Godot 4 input handling includes device-specific methods for touch input, enabling effective mobile game development by processing touch events alongside keyboard, gamepad, and mouse inputs.

What is the best way to configure player movement and jumping actions in Godot 4?

The best way to configure player movement and jumping in Godot 4 is by defining actions in the Input Map, implementing input polling in `_physics_process`, and handling discrete actions in `_unhandled_input`.