You gotta do the measurements. It’s probably not even that hard, all you need is a USB mouse emulator (any microcontroller with USB peripheral support can do this and there are tons of examples) and a photodiode.
will absolutely do this, the microcontroller and mouse emulation part is solved for me already so I just need to get an appropriate photodiode and… profit
will absolutely do this, the microcontroller and mouse emulation part is solved for me already so I just need to get an appropriate photodiode and… profit