docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Devices (scripting)

    This section explains how to work with InputDevice instances from script.

    If you only need to get a device reference and read control values, refer to Read devices directly. For hardware support by platform, refer to Supported devices reference.

    Topic Description
    Device descriptions Learn about InputDeviceDescription and how devices are reported when they are discovered.
    Device capabilities Learn about capability strings attached to device descriptions.
    Device matching Learn to match descriptions to layouts using InputDeviceMatcher.
    Device lifecycle Learn to manage devices throughout their life.
    Native devices Learn how to tell native backend devices apart from devices you create from script, and supply layouts when hardware is discovered.
    Device IDs Learn about session-unique IDs.
    Device usages Learn to set and query device usages.
    Device commands Learn to send commands to devices.
    Device states Monitor and synthesize a device state change.
    Working with devices Learn to monitor connected devices, and add or remove devices manually.

    Additional resources

    • Devices
    • Layouts
    • Architecture
    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)