docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Device states

    Observe and change Device control state from script beyond what native backends send.

    Each Device stores control values in memory, usually updated by state events. Use change monitors to react when values change, or synthesize state when you need derived or manual updates.

    Topic Description
    Monitor device state changes Register callbacks with InputState.AddChangeMonitor when control state changes.
    Synthesize a device state change Push state changes with InputState.Change for derived or manual control values.

    Additional resources

    • Controls
    • Read state events
    • Device commands
    • Working with devices
    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)