Multiple-Mouse-Movement-Data is a project mainly written in ..., it's free.
A small script that allows you to get raw usb mouse data. It is written in Python.