[824] in java-interest

home help back first fref pref prev next nref lref last post

Re: Mouse Buttons

daemon@ATHENA.MIT.EDU (Kevin Krom)
Fri Jul 21 11:03:47 1995

Date: Fri, 21 Jul 1995 09:26:55 +0500
From: krom@cgi.com (Kevin Krom)
To: hotjava-interest@java.sun.com
Cc: java-interest@java.sun.com


> > What about the portability argument - some boxes (e.g. the Mac)
> > have single buttton mice. You could end up with a problem if
> > you programmed different actions on buttons 1, 2 (std 
> > DOS/Windows), 3 (std UNIX), 4 or 5 (esoteric X).
> > 
> 
> so? Thats the problem of mac users. They just dont get the extra
> functionality.

Don't limit your thinking to the physical device -- instead of looking
at "right mouse click", "left mose click", et. al., think more in terms
of "click event 1", "click event 2", etc.

The logical event can then be locally mapped to physical events, which
is under the control of the user -- if the user wants to swap left and
right buttons, that should be fine.  For our Mac friends, this is just
one possible set of events:

     Event #          Physical Mapping
     -------          ----------------
        1             Single click
        2             Double click
        3             <SHIFT> + single click
        4             <SHIFT> + double click
        5             <CONTROL> + single click
       ...            ...

The point is, and this isn't even java-specific, that neither the user
nor the developer should be limited by the choice (or lack thereof) of
the pointing device.

--
Kevin M. Krom, Software Engineer         Phone:  (412) 642-6900 x242
Carnegie Group, Inc.                     Fax:    (412) 642-6906
5 PPG Place, Pittsburgh PA 15222         Email:  krom@cgi.com

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post