Device lifecycle
Manage how Input Devices are created, updated, and torn down at runtime and in the Editor.
Use these topics when you need to add or remove devices, reset or sync state, control whether devices process input, or understand focus and domain reload behavior.
| Topic | Description |
|---|---|
| Create a device | Add devices with InputSystem.AddDevice and understand automatic layout instantiation. |
| Remove a device | Remove disconnected or manual devices and handle onDeviceChange notifications. |
| Reset a device | Reset controls to default state with InputSystem.ResetDevice. |
| Sync a device | Request current hardware state with RequestSyncCommand when the platform supports it. |
| Enable and disable devices | Control whether a device processes input using enabled state and commands. |
| Device background and focus changes | Handle focus loss, regain, and background execution settings for device state. |
| Devices and domain reloads | Understand how Editor domain reloads recreate devices and reset state. |