LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Reading from the /dev/mouse (https://www.linuxquestions.org/questions/programming-9/reading-from-the-dev-mouse-576993/)

RichardS 08-14-2007 09:03 AM

Reading from the /dev/mouse
 
Hi All,

Does anyone know how to interpret the return values from:
Code:

fd = open ("/dev/mouse", O_RDONLY);
read (fd, &iData, 1);

How does one interrpret the values in iData?

thanks,
Rich

ta0kira 08-15-2007 06:12 PM

You could start with the source files in /usr/src/linux/drivers/input/mouse. Also, look at the sources for the gpm program.
ta0kira

RichardS 08-16-2007 02:08 AM

What is the "gpm program"?

gnashley 08-16-2007 11:50 AM

GPM=general purpose mouse server

reverse 08-16-2007 03:56 PM

http://linux.schottelius.org/gpm/bro...1.20.2-broken/


All times are GMT -5. The time now is 04:04 PM.