Subject: Re: serial mouse emulation for macs w/o adb...
To: None <port-mac68k@NetBSD.ORG>
From: M.R. Zucca <mrz5149@cs.rit.edu>
List: port-mac68k
Date: 05/22/1996 20:24:56
>If someone wanted to work on this, and had mouse-protocall specs, I'd
Check out Charles Rentmeester's serial mouse driver for the Mac. The docs
tell you how the two most popular PC serial mice protocols work.
>be happy to help them. One of the changes in going to the new serial
>drivers is support for "child" drivers on a SCC chip driver. Right
>now, we only have a tty child, but the sun3 port also has a keyboard
>and a mouse driver.
>From experience, the Sun keyboard and mouse ports are well known. They're
serial ports like any other but they happen to be labeled keyboard and mouse :)
> The advantage is that the code is much cleaner.
>No if (this port == mouse port) stuff. The disadvantage is that the
>connection of the mouse has to be done in the kernel config.
Smarter still would be to pass in the tty of the mouse from the booter.
It's important not to hard code this kind of thing to only tty00 and tty01
since one of the things on my "crazy wish list of functionality to add"(TM) is
support for my Applied Engineering 4 port serial board. :)
>But it should be possable to write a driver to take mouse actions
>and turn them into actions for the rest of the kernel. Like
>maybe making fake adb events, but I'm not sure if the current adb system
>would handle mouse events if there's no adb init.
It's too bad we don't have a /dev/mouse and /dev/keyboard like some systems.
This way, you could configure what each does.
>I thought we had working 3-button mice? Ken Nakata figured out the multi-
>button protocall, and (I thought) most non-three-button-protocall
>mice used a fake keyboard for option-left-arrow and option-right-arrow
>events (mine does).
Those mice are about a million dollars while you can get a PC 3 button mouse
for 20 bucks.
_______________________________________________________________________
Michael Zucca - mrz5149@rit.cs.rit.edu - http://www.rit.edu/~mrz5149/
"I will choose a path that's clear. I will choose Freewill. "
--Rush, Freewill
_______________________________________________________________________