Interface IInputStateChangeMonitor | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Interface IInputStateChangeMonitor

    Namespace: UnityEngine.InputSystem.LowLevel
    Syntax
    public interface IInputStateChangeMonitor

    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.

    System.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.

    System.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
    System.Double time
    System.Int64 monitorIndex
    System.Int32 timerIndex
    See Also
    AddStateChangeMonitorTimeout(InputControl, IInputStateChangeMonitor, Double, Int64, Int32)
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX