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 |
---|---|
InputEvent |
stateFormat
Declaration
public FourCC stateFormat
Field Value
Type | Description |
---|---|
FourCC |
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 |
---|---|
FourCC |
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 |