[AD] GUI double clicks and presses

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


At the moment, the GUI code sends a MSG_*PRESS when you press a
mouse button, but then goes into a double-click checking state,
where it won't pass through any further MSG_*PRESS until it's
sure the event wasn't a double-click.  Even then, it sends a
MSG_DCLICK message but not a MSG_*PRESS, it seems.

IMHO the system should pass through all mouse presses with
MSG_*PRESS messages, even if they're part of a double-click.  To
me the press and release messages feel lower-level than the
click/dclick messages.

On 5 May 1999, when Vincent offered to implement the press and
release events, he and Shawn were discussing this, but I can't
see a conclusion back then.  What do other people feel about
this?  I'd like to rework the doubleclick system so that it
doesn't have this side-effect (I think this could be as simple
as just moving the lower-level press/release tests to occur
before the double click tests).

If anyone wants to look, here are some details of Vincent's
message:

    Subject: [AD]  Two small modifications I am willing to share
    Date: Wed, 5 May 1999 09:06:32 +0100

George

-- 
Random project update:
22/06/2000: AllegroGL alpha 8 released at http://allegrogl.sourceforge.net/
        Improved Windows support.  New directory structure.
        Fixed OpenGL coding mistake in `tex.c'.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/