Subject: Re: Grabbing the keyboard and mouse
To: Jim DeLisle <jdelisle@swellsoftware.com>
From: David Brownlee <abs@netbsd.org>
List: tech-embed
Date: 04/16/2004 16:44:42
On Fri, 16 Apr 2004, Jim DeLisle wrote:

> Does anyone have a suggestion for the best way to grab mouse and
> keyboard input, much in the same way that X would grab it? Our company
> writes graphics software for embedded systems and one of our new
> customers is running on NetBSD. We've done this sort of thing in the
> past with Unix-like operating systems by simply opening the device and
> reading from it, but I'm not meeting with much success doing the same on
> NetBSD. I'm thinking that I'm just missing something.

	Have youtired opening /dev/wsmouse and /dev/wskbd?

	Certainly you should be able to run 'od /dev/wsmouse' and see
	the output. Be wary about opening /dev/wskbd unless you can login
	remotely and kill the process...
-- 
		David/absolute          -- www.netbsd.org: No hype required --