I need to detect and store time between user input (and probably the input value as well). I would like to be able to store say the last 10 events.
I figure I should use an array that I can then shift the values in, pushing the oldest ones out when new ones come in.
Could someone please show me a good and simple way on how to start experimenting with this?
The purpose is to detect simple patterns in user input and use it as a trigger for things.