docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)