tech-embed archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Grabbing the keyboard and mouse



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 --



Home | Main Index | Thread Index | Old Index