Programming a USB mouse connected to the Intel Edison Arduino expansion board
Here's a simple introduction to using the USB mouse as an input device. That might be a good starting point.

http://tahmidmc.blogspot.com/2015/12/using-input-device-on-embedded-linux.html