Re: Thoughts for discussion & info request

From: Dave Hudson <dave_at_nospam.org>
Date: Mon Aug 15 1994 - 09:14:24 PDT

Andrew Valencia wrote:
>
> [Dave Hudson <dave@humbug.demon.co.uk> writes:]
>
> >> The solution would be, to register both servers under a new, different
> >> name....
> >Well, after I did some work on the serial and ps/2 mouse code a couple of
> >months back I think the server handles both 2 and 3 button mice
> >automatically...
>
> And this is why I prefer that the server just be named /dev/mouse. Rather
> than have a boundless number of names for the mouse (Logitech/Microsoft/
> Mouse Systems/..., one- two- and three-button, bus and serial, ...) it'd be
> nice if the mouse server just presented a uniform /dev/mouse and then did
> what was necessary to make it fly. For instance, synthesizing a third
> button if it's missing.

FWIW, I still prefer making the emulation of a 3rd button selectable via the
FS_WSTAT mechanism, with the server reporting the number of buttons via
FS_STAT. I've come across quite a few programs that assume that either the
left or the right button can be pressed at the same time as a middle button
(if it's present) - forcing the emulation can break things under these
circumstances. BTW, I remembered my objection to using multiple names - it
meant adding directory manipulation code to the mouse server where none
previously existed. The fd server already had this code, so the additions
to handle additional "files" was pretty straightforward.

                Regards,
                Dave
Received on Mon Aug 15 08:15:50 1994

This archive was generated by hypermail 2.1.8 : Wed Sep 21 2005 - 21:04:28 PDT