Click to See Complete Forum and Search --> : The PS/2 mouse


Muzzafarath
11-12-2000, 06:51 AM
Hello all, I'm trying to figure out how to read data from my PS/2 mouse. Here's a program (http://w1.315.telia.com/~u31504183/mouse.c) I have written which reads from /dev/psaux and then outputs what it gets (don't run it while running X or gpm). Does anyone know how you interpret this data (ie what are all the numbers, the x and y position?)?

Strike
11-12-2000, 04:03 PM
I think it's actually different for different mice, so you'd have to research each different one, really. I don't know where to find this info, though (sorry http://www.linuxnewbie.org/ubb/frown.gif). Try a Google search for "Linux mouse programming" or something like that (or a Linux Google (http://www.google.com/linux) search for just "mouse programming").