(WIP) Very simple and useless app for recording and visualising mouse events (Linux)
The application uses the /dev/input/mice
input stream.
Future plans:
Mousedev event handler API
PS/2 packet format(s)
Usage: (sudo) mcapt [OPTION]... [DATALOG]
Record mouse movement into a comma-separated data file (DATALOG).
-v, --verbose enable verbose output
-h, --help show this help :)
Mouse movements are stored as comma-separated data. See data/dlog.csv
if DATALOG path was not specified
; time=1711060390 device=/dev/input/mice
; display=0, screenw=1920, screenh=1080, mousex=0, mousey=0
1220632,-11,3,0,0,0
1228569,-9,2,0,0,0
1236311,-5,2,0,0,0
...
data format:
<elapsed microseconds>,<relative x>,<relative y>,<left button>,<right button>,<middle button>
These logs can be exported into an SVG
./vis ./data/dlog.csv
# * writing to './data/dlog.svg'