Struct InputStateHistory.RecordHeader
State change record header
Namespace: UnityEngine.InputSystem.LowLevel
Assembly: Unity.InputSystem.dll
Syntax
protected struct InputStateHistory.RecordHeader
Remarks
Input State change record header containing the timestamp and other common record data. Stored in the InputStateHistory.
Fields
controlIndex
The index of the record.
Declaration
public int controlIndex
Field Value
| Type | Description |
|---|---|
| int |
Remarks
The index of the record relative to the start of the buffer. See RecordIndexToUserIndex(int) to remap this record index to a user index.
See Also
kSizeWithControlIndex
Size of the state data including the control index.
Declaration
public const int kSizeWithControlIndex = 16
Field Value
| Type | Description |
|---|---|
| int |
Remarks
Size of the data including the control index.
See Also
kSizeWithoutControlIndex
Size of the state data excluding the control index.
Declaration
public const int kSizeWithoutControlIndex = 12
Field Value
| Type | Description |
|---|---|
| int |
Remarks
Size of the data excluding the control index.
See Also
time
The time stamp of the input state record.
Declaration
public double time
Field Value
| Type | Description |
|---|---|
| double |
Remarks
The time stamp of the input state record in the owning container. currentTime
See Also
version
The version of the input state record.
Declaration
public uint version
Field Value
| Type | Description |
|---|---|
| uint |
Remarks
Current version stamp. See version.
See Also
Properties
statePtrWithControlIndex
The state data including the control index.
Declaration
public byte* statePtrWithControlIndex { get; }
Property Value
| Type | Description |
|---|---|
| byte* |
Remarks
The state data including the control index.
See Also
statePtrWithoutControlIndex
The state data excluding the control index.
Declaration
public byte* statePtrWithoutControlIndex { get; }
Property Value
| Type | Description |
|---|---|
| byte* |
Remarks
The state data excluding the control index.