Unity's modern Input System separates physical controls from game actions.
Key concepts:
- Device: keyboard, mouse, gamepad, etc.
- Control: a specific key, button, stick or axis.
- Input Action: a logical action such as Move, Jump or Attack.
- Binding: connects a physical control to an action.
- Action Map: groups related actions.
- Control Scheme: groups devices for a control setup.
Typical structure:
Player
├── Move
├── Look
├── Jump
├── Attack
└── Interact
Namespace:
using UnityEngine.InputSystem;