Working with devices
Observe and manage the set of connected Input Devices from script.
React when devices are added or removed at runtime, or create and destroy devices yourself—for example for tests, virtual input, or on-screen controls.
| Topic | Description |
|---|---|
| Monitor devices | Subscribe to InputSystem.onDeviceChange to detect when devices are added or removed. |
| Manually add and remove devices | Create or remove devices with InputSystem.AddDevice() and InputSystem.RemoveDevice(). |
| Input simulation methods | Compare the ways to send input to a device without its hardware, for example to test your input code, drive a virtual device, or replay input that you recorded. |