I need to be able to record the mouse movements every so often (every .2 of a second for example) and have them in a coordinate representation instead of a diff.
I found the following script:
#!/bin/bash while : do cat /dev/input/mice | read -n 1 date sleep 1 done
But it doesn't seem to print anything to the terminal (or perhaps it's all gibberish). Other discussions suggest that /dev/input/mice is deprecated. On top of that, /dev/input/mice wouldn't actually have the data in a friendly format.
Am I going to have to do the conversion manually (from the format in the /dev/input files), or is there an API for this?