Article View: gnu.epoch.misc
Article #464Epoch mouse clicks broken; proposed fix
From: La Monte Yarroll
Date: Tue, 12 Jan 1993 22:53
Date: Tue, 12 Jan 1993 22:53
45 lines
2076 bytes
2076 bytes
I'm writing a user interface based on epoch in which I need to use
multiple mouse clicks for alternate functionality.
If anyone has already solved this problem, I'd like to know--in any
case I'll be coding my proposed solution today.
I invite comments on this proposal. Counter-proposals are welcome.
Version:
Epoch 4.2, mouse.el revision 1.12--multiple click detection
based on code by Brian L. Kahn.
BUG:
Epoch calls the mouse handlers on each up and down click. It
should only call an event handler once for a given type of
click. I.e. a double click should not first call the code for
a single click.
Proposed solution:
Extra modifiers mouse-single-... mouse-quintuple-... will be
added to the valid modifiers which can be passed to routines
such as define-mouse. Note that this allows for notions such
as mouse-double-down and mouse-triple-up. The default is to
assume a single click.
No mouse handler will be called until mouse-interval ms have
elapsed since a mouse event has been reported by X.
The first mouse-up after a mouse-ORDINAL-down will be treated
as a mouse-ORDINAL-up.
E.g.
EVENTS (' ' means < mouse-interval delay) TREATED AS
down up = mouse-up [This will break some code.]
down up down (1 second delay) up = mouse-double-down, mouse-double-up
down (1 second delay) up down up = mouse-down, mouse-up, mouse-up
--
La Monte H. Yarroll Home: piggy@baqaqi.chi.il.us
Work: piggy@hilbert.maths.utas.edu.au
AKA: piggy@gargoyle.uchicago.edu
Once upon a time: postmaster@clout.chi.il.us
Technical Details
Message-ID:
<piggy.726879180@newsroom.utas.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!hilbert!piggyShow Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!hilbert!piggy From: piggy@hilbert.cc.utas.edu.au (La Monte Yarroll) Subject: Epoch mouse clicks broken; proposed fix Message-ID: <piggy.726879180@newsroom.utas.edu.au> Summary: epoch counts clicks, but calls routines for each click. Keywords: mouse clicks Sender: news@newsroom.utas.edu.au Organization: University of Tasmania, Australia. Date: Tue, 12 Jan 1993 22:53:00 GMT Lines: 45