home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / epoch / misc / 1245 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.0 KB  |  58 lines

  1. Newsgroups: gnu.epoch.misc
  2. Path: sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!hilbert!piggy
  3. From: piggy@hilbert.cc.utas.edu.au (La Monte Yarroll)
  4. Subject: Epoch mouse clicks broken; proposed fix
  5. Message-ID: <piggy.726879180@newsroom.utas.edu.au>
  6. Summary: epoch counts clicks, but calls routines for each click.
  7. Keywords: mouse clicks
  8. Sender: news@newsroom.utas.edu.au
  9. Organization: University of Tasmania, Australia.
  10. Date: Tue, 12 Jan 1993 22:53:00 GMT
  11. Lines: 45
  12.  
  13. I'm writing a user interface based on epoch in which I need to use
  14. multiple mouse clicks for alternate functionality.
  15.  
  16. If anyone has already solved this problem, I'd like to know--in any
  17. case I'll be coding my proposed solution today.
  18.  
  19. I invite comments on this proposal.  Counter-proposals are welcome.
  20.  
  21. Version:
  22.     Epoch 4.2, mouse.el revision 1.12--multiple click detection
  23.     based on code by Brian L. Kahn.
  24.  
  25.  
  26. BUG:
  27.     Epoch calls the mouse handlers on each up and down click.  It
  28.     should only call an event handler once for a given type of
  29.     click.  I.e. a double click should not first call the code for
  30.     a single click. 
  31.  
  32. Proposed solution:
  33.     Extra modifiers mouse-single-... mouse-quintuple-... will be
  34.     added to the valid modifiers which can be passed to routines
  35.     such as define-mouse.  Note that this allows for notions such
  36.     as mouse-double-down and mouse-triple-up.  The default is to
  37.     assume a single click.
  38.  
  39.     No mouse handler will be called until mouse-interval ms have
  40.     elapsed since a mouse event has been reported by X.
  41.  
  42.     The first mouse-up after a mouse-ORDINAL-down will be treated
  43.     as a mouse-ORDINAL-up.
  44.  
  45. E.g.
  46.  
  47. EVENTS (' ' means < mouse-interval delay)    TREATED AS
  48. down up                  = mouse-up  [This will break some code.]
  49.  
  50. down up down (1 second delay) up  = mouse-double-down, mouse-double-up
  51.  
  52. down (1 second delay) up down up  = mouse-down, mouse-up, mouse-up
  53. --
  54. La Monte H. Yarroll    Home:        piggy@baqaqi.chi.il.us
  55.    Work:        piggy@hilbert.maths.utas.edu.au
  56.    AKA:            piggy@gargoyle.uchicago.edu
  57.    Once upon a time:    postmaster@clout.chi.il.us
  58.