Subject: Re: wsmouse programming
To: Julio Merino <juli@merino.net>
From: Nathan J. Williams <nathanw@MIT.EDU>
List: netbsd-users
Date: 06/13/2001 12:31:59
Julio Merino <juli@merino.net> writes:

> > Nope, it doesn't. The infrastructure is there (the WSMUX_INJECTEVENT
> > ioctl), but nobody's bothered to write the daemon that reads from the
> > serial port and injects mouse events into the wsmouse stream.
> > 
> 
> A daemon? Should that be done in user space? And what does it have to
> do? Get serial port data and pass to the wsmouse? When I get more
> used to NetBSD and that... I would try to write this :)

Yes. Read from the serial port, interpret the mouse protocol,
construct and insert wscons_event structures.

> BTW... can I use the serial port device directly (/dev/tty00 ?) and
> interpret the microsoft mouse events?

Sure. "It's just data".

        - Nathan