docs.unity3d.com
    Show / Hide Table of Contents

    Struct DeviceRemoveEvent

    Notifies about the removal of an input device.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.LowLevel
    Syntax
    public struct DeviceRemoveEvent : IInputEventTypeInfo
    Remarks

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

    Fields

    baseEvent

    Common event data.

    Declaration
    public InputEvent baseEvent
    Field Value
    Type Description
    InputEvent

    Type

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

    Properties

    typeStatic

    Declaration
    public readonly FourCC typeStatic { get; }
    Property Value
    Type Description
    FourCC
    Implements
    IInputEventTypeInfo.typeStatic

    Methods

    Create(Int32, Double)

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

    ToEventPtr()

    Declaration
    public InputEventPtr ToEventPtr()
    Returns
    Type Description
    InputEventPtr
    In This Article
    • Fields
      • baseEvent
      • Type
    • Properties
      • typeStatic
    • Methods
      • Create(Int32, Double)
      • ToEventPtr()
    Back to top
    Terms of use
    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