Month of Code 7 – Input

Today I wrote a quick little input chart. The x-axis is time as it passes, and the y-axis is change in cursor position (using Euclidean distance). Rather than reinvent the wheel, I used Smoothie Charts to handle the graphing aspect. All I did was track the mouse position and generate the data to throw onto the chart.

There’s an interesting bug that I’m working on. Currently, it’s working properly for a few seconds (about 5), and then it seems to zero out the change value every other data point, generating a very noisy graph. I’ll be taking a look at this later tonight in more depth to try to fix it.

Demo here.

Leave a Reply