docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DeviceRemoveEvent

    Notifies about the removal of an input device.

    Implements
    IInputEventTypeInfo
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.LowLevel
    Assembly: Unity.InputSystem.dll
    Syntax
    public struct DeviceRemoveEvent : IInputEventTypeInfo
    Remarks

    Device that got removed is the one identified by deviceId of baseEvent.

    Fields

    Type

    Declaration
    public const int Type = 1146242381
    Field Value
    Type Description
    int

    baseEvent

    Common event data.

    Declaration
    public InputEvent baseEvent
    Field Value
    Type Description
    InputEvent

    Properties

    typeStatic

    Declaration
    public FourCC typeStatic { get; }
    Property Value
    Type Description
    FourCC

    Methods

    Create(int, double)

    Declaration
    public static DeviceRemoveEvent Create(int deviceId, double time = -1)
    Parameters
    Type Name Description
    int deviceId
    double time
    Returns
    Type Description
    DeviceRemoveEvent

    ToEventPtr()

    Declaration
    public InputEventPtr ToEventPtr()
    Returns
    Type Description
    InputEventPtr

    Implements

    IInputEventTypeInfo
    In This Article
    Back to top
    Copyright © 2024 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)