MouseStateHistory
Maintains a collection of sorted mouse states. This class is not threadsafe, only modify it from the UI thread.
Properties
ContentSpaceDistance
#Gets the distance from the oldest to the youngest state in content space. If there are no states, a distance of zero is returned.
ContentSpaceMaxDistance
#Gets the furthest distance from the oldest state in content space. If there are no states, a distance of zero is returned.
ControlSpaceDistance
#Gets the distance from the oldest to the youngest state in control space. If there are no states, a distance of zero is returned.
ControlSpaceMaxDistance
#Gets the furthest distance from the oldest state in control space. If there are no states, a distance of zero is returned.
Indexers
Methods
Clear
#Remove all states (except the oldest one) older than a specific time.
Parameters:
| time (DateTime) |
Clear
#Remove all states except the N-1 youngest ones and oldest one.
Parameters:
| amount (int) | Amount of states to keep. |