Struct DeltaStateEvent
Partial state update for an input device.
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 = null
Field Value
Type | Description |
---|---|
Int32 |
Properties
deltaState
Declaration
public void *deltaState { get; }
Property Value
Type | Description |
---|---|
Void* |
deltaStateSizeInBytes
Declaration
public uint deltaStateSizeInBytes { get; }
Property Value
Type | Description |
---|---|
UInt32 |
typeStatic
Declaration
public FourCC typeStatic { get; }
Property Value
Type | Description |
---|---|
FourCC |
Implements
Methods
From(InputControl, out InputEventPtr, Allocator)
Declaration
public static NativeArray<byte> From(InputControl control, out InputEventPtr eventPtr, Allocator allocator = null)
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 |