Interface IInputStateChangeMonitor | Input System | 1.0.2
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IInputStateChangeMonitor

    Interface used to monitor input system state changes.

    Namespace: UnityEngine.InputSystem.LowLevel
    Syntax
    public interface IInputStateChangeMonitor
    Remarks

    Use to install a state change monitor receiving state change callbacks for a specific control.

    Methods

    NotifyControlStateChanged(InputControl, Double, InputEventPtr, Int64)

    Called when the state monitored by a state change monitor has been modified.

    Declaration
    void NotifyControlStateChanged(InputControl control, double time, InputEventPtr eventPtr, long monitorIndex)
    Parameters
    Type Name Description
    InputControl control

    Control that is being monitored by the state change monitor and that had its state memory changed.

    Double time
    InputEventPtr eventPtr

    If the state change was initiated by a state event, this is the pointer to the event. Otherwise it is null.

    Int64 monitorIndex

    NotifyTimerExpired(InputControl, Double, Int64, Int32)

    Called when a timeout set on a state change monitor has expired.

    Declaration
    void NotifyTimerExpired(InputControl control, double time, long monitorIndex, int timerIndex)
    Parameters
    Type Name Description
    InputControl control
    Double time
    Int64 monitorIndex
    Int32 timerIndex
    See Also
    AddChangeMonitorTimeout(InputControl, IInputStateChangeMonitor, Double, Int64, Int32)

    See Also

    AddChangeMonitor(InputControl, IInputStateChangeMonitor, Int64)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023