Struct DeltaStateEvent
Partial state update for an input device.
Implements
Namespace: UnityEngine .InputSystem .LowLevel
Assembly: Unity.InputSystem.dll
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
Type
Declaration
public const int Type = 1145852993
Field Value
Type | Description |
---|---|
int |
baseEvent
Declaration
public InputEvent baseEvent
Field Value
Type | Description |
---|---|
Input |
stateFormat
Declaration
public FourCC stateFormat
Field Value
Type | Description |
---|---|
Four |
stateOffset
Declaration
public uint stateOffset
Field Value
Type | Description |
---|---|
uint |
Properties
deltaState
Declaration
public void* deltaState { get; }
Property Value
Type | Description |
---|---|
void* |
deltaStateSizeInBytes
Declaration
public uint deltaStateSizeInBytes { get; }
Property Value
Type | Description |
---|---|
uint |
typeStatic
Declaration
public FourCC typeStatic { get; }
Property Value
Type | Description |
---|---|
Four |
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 |
---|---|---|
Input |
control | |
Input |
eventPtr | |
Allocator | allocator |
Returns
Type | Description |
---|---|
Native |
From(InputEventPtr)
Declaration
public static DeltaStateEvent* From(InputEventPtr ptr)
Parameters
Type | Name | Description |
---|---|---|
Input |
ptr |
Returns
Type | Description |
---|---|
Delta |
ToEventPtr()
Declaration
public InputEventPtr ToEventPtr()
Returns
Type | Description |
---|---|
Input |