🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by La Monte Yarroll Tue, 12 Jan 1993 22:53
Epoch mouse clicks broken; proposed fix
#464
Author: La Monte Yarroll
Date: Tue, 12 Jan 1993 22:53
45 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads