Class InputStateHistory<TValue>
Records value changes of a given control over time.
Inheritance
InputStateHistory<TValue>
Syntax
public class InputStateHistory<TValue> : InputStateHistory, IEnumerable<InputStateHistory.Record>, IInputStateChangeMonitor, IReadOnlyList<InputStateHistory<TValue>.Record> where TValue : struct
Type Parameters
Constructors
InputStateHistory(Nullable<Int32>)
Declaration
public InputStateHistory(int? maxStateSizeInBytes = null)
Parameters
InputStateHistory(String)
Declaration
public InputStateHistory(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
InputStateHistory(InputControl<TValue>)
Declaration
public InputStateHistory(InputControl<TValue> control)
Parameters
Properties
Item[Int32]
Declaration
public InputStateHistory<TValue>.Record this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Methods
AddRecord(InputStateHistory<TValue>.Record)
Declaration
public InputStateHistory<TValue>.Record AddRecord(InputStateHistory<TValue>.Record record)
Parameters
Returns
Finalize()
Declaration
protected void Finalize()
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 = null)
Parameters
Returns