LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2007, 09:03 AM   #1
RichardS
Member
 
Registered: Jul 2007
Posts: 33

Rep: Reputation: 15
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
 
Old 08-15-2007, 06:12 PM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
You could start with the source files in /usr/src/linux/drivers/input/mouse. Also, look at the sources for the gpm program.
ta0kira
 
Old 08-16-2007, 02:08 AM   #3
RichardS
Member
 
Registered: Jul 2007
Posts: 33

Original Poster
Rep: Reputation: 15
What is the "gpm program"?
 
Old 08-16-2007, 11:50 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
GPM=general purpose mouse server
 
Old 08-16-2007, 03:56 PM   #5
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reading from /dev/urandom in c djgerbavore Programming 5 10-04-2005 12:54 PM
xwindows trouble -no /dev/mouse /dev/input/mice fatblueduck Linux - General 2 06-05-2005 11:03 PM
Java - Reading /dev/mouse - appears to be empty chakkerz Linux - Hardware 1 08-19-2004 07:48 PM
reading & interpreting data from /dev/gpmdata Zither Programming 1 11-02-2003 07:08 AM
Deleted /dev/mouse & /dev/psaux Inspection Linux - General 1 12-11-2002 08:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration