docs.unity3d.com
    Show / Hide Table of Contents

    Struct DeltaStateEvent

    Partial state update for an input device.

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

    Avoids having to send a full state memory snapshot when only a small part of the state has changed.

    Fields

    baseEvent

    Declaration
    public InputEvent baseEvent
    Field Value
    Type Description
    InputEvent

    stateFormat

    Declaration
    public FourCC stateFormat
    Field Value
    Type Description
    FourCC

    stateOffset

    Declaration
    public uint stateOffset
    Field Value
    Type Description
    UInt32

    Type

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

    Properties

    deltaState

    Declaration
    public readonly void *deltaState { get; }
    Property Value
    Type Description
    Void*

    deltaStateSizeInBytes

    Declaration
    public readonly uint deltaStateSizeInBytes { get; }
    Property Value
    Type Description
    UInt32

    typeStatic

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

    Methods

    From(InputControl, out InputEventPtr, Allocator)

    Declaration
    public static NativeArray<byte> From(InputControl control, out InputEventPtr eventPtr, Allocator allocator = Allocator.Temp)
    Parameters
    Type Name Description
    InputControl control
    InputEventPtr eventPtr
    Allocator allocator
    Returns
    Type Description
    NativeArray<Byte>

    From(InputEventPtr)

    Declaration
    public static DeltaStateEvent*From(InputEventPtr ptr)
    Parameters
    Type Name Description
    InputEventPtr ptr
    Returns
    Type Description
    DeltaStateEvent*

    ToEventPtr()

    Declaration
    public InputEventPtr ToEventPtr()
    Returns
    Type Description
    InputEventPtr
    In This Article
    • Fields
      • baseEvent
      • stateFormat
      • stateOffset
      • Type
    • Properties
      • deltaState
      • deltaStateSizeInBytes
      • typeStatic
    • Methods
      • From(InputControl, out InputEventPtr, Allocator)
      • From(InputEventPtr)
      • 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