docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Device commands

    Send data to Devices from script—for rumble, HID output reports, and other backend features.

    Unlike input events, which flow from hardware into the Input System, commands flow out to the Device. Send built-in command types or define your own for custom hardware.

    Topic Description
    Send a command to a device Call InputDevice.ExecuteCommand and monitor commands with InputSystem.onDeviceCommand.
    Add a custom device command Define IInputDeviceCommandInfo structs to send custom data to a Device backend.

    Additional resources

    • Input events
    • Human Interface Device specification
    • Gamepad haptics
    • Step 6 Device Commands (Optional)
    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)