Class InputStateHistory<TValue>
Records value changes of a given control over time.
Inheritance
InputStateHistory<TValue>
Assembly: Unity.InputSystem.dll
Syntax
public class InputStateHistory<TValue> : InputStateHistory, IDisposable, IEnumerable<InputStateHistory.Record>, IInputStateChangeMonitor, IReadOnlyList<InputStateHistory<TValue>.Record>, IReadOnlyCollection<InputStateHistory<TValue>.Record>, IEnumerable<InputStateHistory<TValue>.Record>, IEnumerable where TValue : struct
Type Parameters
Constructors
InputStateHistory(int?)
Declaration
public InputStateHistory(int? maxStateSizeInBytes = null)
Parameters
Type |
Name |
Description |
int? |
maxStateSizeInBytes |
|
InputStateHistory(string)
Declaration
public InputStateHistory(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
InputStateHistory(InputControl<TValue>)
Declaration
public InputStateHistory(InputControl<TValue> control)
Parameters
Properties
this[int]
Declaration
public InputStateHistory<TValue>.Record this[int index] { get; set; }
Parameters
Type |
Name |
Description |
int |
index |
|
Property Value
Methods
AddRecord(Record)
Declaration
public InputStateHistory<TValue>.Record AddRecord(InputStateHistory<TValue>.Record record)
Parameters
Returns
~InputStateHistory()
Declaration
protected ~InputStateHistory()
GetEnumerator()
Declaration
public IEnumerator<InputStateHistory<TValue>.Record> GetEnumerator()
Returns
RecordStateChange(InputControl<TValue>, TValue, double)
Declaration
public InputStateHistory<TValue>.Record RecordStateChange(InputControl<TValue> control, TValue value, double time = -1)
Parameters
Returns
Implements