Record control state history
If you want to access the history of value changes on a control (for example, in order to compute exit velocity on a touch release), you can record state changes over time with InputStateHistory or InputStateHistory<TValue>. The latter restricts controls to those of a specific value type, which in turn simplifies some of the API.
Warning
It looks like the sample you are looking for does not exist.
For example, if you want to have the last 100 samples of the left stick on the gamepad available, you can use this code:
Warning
It looks like the sample you are looking for does not exist.