Subject: Re: how to use mouse api if any
To: Rishabh Kumar Goel <Rishabh@soc-soft.com>
From: Richard Rauch <rkr@olib.org>
List: port-i386
Date: 07/09/2003 13:41:07
Re. http://mail-index.netbsd.org/port-i386/2003/07/09/0000.html

(This question isn't really i386-specific and probably should have been
asked over on netbsd-help...)

Reading /dev/wsmouse for /dev/wsmouse0 is probably what you want to do,
yes.  (Assuming that you mean that you want to read mouse events from a
text console.)

My suspicion is that you mean that when you did "cat /dev/wsmouse0" from
a text console, then flipped to the X sever (while "cat" was still
running), the X server wasn't able to re-open the mouse event stream.
All that this is telling *me* is that you can't have multiple readers of
the mouse.


If you want to get the mouse events from X, then you should probably be
talking to X rather than digging under X's feet.


-- 
  "I probably don't know what I'm talking about."  http://www.olib.org/~rkr/