On Wed, Jul 31, 2002 at 03:12:49PM +0100, John Levon wrote:
> > Sure. I'd even thing this is better. But than, we should hand down the
> > ordinary mouse clicks/moves as LFUNs as well...
> 
> That's what Lars wants. But do we really want to encode x,y,state inside
> an string arg ?

What does it cost? A millisecond in respose to a user action?

Actually, I'd even suggest using something like

class Action {
  kb_action  lfun;
  string     arg;
  //double     x;  (?)
  //double     y;  (?)
};

instead of the current (kb_action, string) pairs that are handed down to
the dispatch() functions.

This way we do could (a) declare the  dispatch() functions without pulling
in e.g. the commandtags.h header and we are (b) free to extend that struct
with real numbers is they are really needed.

Comments?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to