Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 691 Bytes

File metadata and controls

9 lines (6 loc) · 691 Bytes
uid input-system-manually-add-remove-devices

Manually add and remove devices

To manually add and remove Devices through the API, use InputSystem.AddDevice() and InputSystem.RemoveDevice().

This allows you to create your own Devices, which can be useful for testing purposes, or for creating virtual Input Devices which synthesize input from other events. As an example, see the on-screen Controls that the Input System provides. The Input Devices used for on-screen Controls are created entirely in code and have no native representation.