[138] in java-interest

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

Re: Three things Applets can't do w/ the current API (with proposed fixes)

daemon@ATHENA.MIT.EDU (Dan.Oscarsson@malmo.trab.se)
Mon May 29 17:28:07 1995

From: Dan.Oscarsson@malmo.trab.se
Date: Mon, 29 May 95 08:40:07 +0200
To: java-interest@java.Eng.Sun.COM

>3) Double clicks
>
>  Its currently not possible to do a decent job with double clicks because
>  there is no timing information associated with inputs.  (Timing information 
>  is also very useful in other interactions techniques, but double clicks
>  are the most common.)
>
>  Proposed fix: add timestamps to events, and propagate these up from the 
>  native window system.  Specifically add something like:
>    public int when;
>  to Event. 

An other way is to do what I did in an expremental graphics library. For
each mouse event apart for position and modifiers, a state was included
that indicated the number of clicks pressed. This allowed the click handling
to be handled in the core routines and probably more efficiently.
Also removed the need for every applet to check against time stamps.

    Dan

--
Dan Oscarsson
Telia Research AB                       Email: Dan.Oscarsson@malmo.trab.se
Box 85
201 20  Malmo, Sweden

-
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