Game dev
Saved & recent

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
Space Jump mapped action stick dead zone
Spacebar and the controller south button feed the same Jump action. Small stick jitter within the dead zone produces no movement.

View in the full Game dev collection