Class InputStateHistory<TValue>
Records value changes of a given control over time.
Inheritance
System.Object
InputStateHistory<TValue>
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(Nullable<Int32>)
Declaration
public InputStateHistory(int? maxStateSizeInBytes = default(int? ))
Parameters
Type |
Name |
Description |
System.Nullable<System.Int32> |
maxStateSizeInBytes |
|
InputStateHistory(String)
Declaration
public InputStateHistory(string path)
Parameters
Type |
Name |
Description |
System.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 |
System.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 = -1)
Parameters
Type |
Name |
Description |
InputControl<TValue> |
control |
|
TValue |
value |
|
System.Double |
time |
|
Returns