Input mapping
Related terms: action map, bindings, rebinding, stick dead zone
A layer between physical buttons and game logic. Code asks "was Jump pressed?", never "was Space pressed?". Which key, button or gesture triggers each action is a binding, stored as data.
Controller support, key remapping and several devices at once then come almost for free. A dead zone ignores small stick movement near the center so a worn stick does not drift.
- Further reading
- Godot: InputMap