On Wed, 12 May 2010 13:04:28 +0800 rui kou <[email protected]> said: > Hi > > I want to add a lang pressed event callback to gadgets, for I am using a > table with touchscreen. > > I have find delayed_action in e_actions.c But how can I use it?
thats a generic binding mechanism - not really for gadgets. your gagdet would handle a mouse press and release. press would start a timer. release delete it. if timer goes off - u held mouse for at least that long and thus u can do the delayed action. as such you may want to handle mouse moves too (it u click and drag then release - different to click and hold - also u may want a minimum amount of movement before it cancels the timer to allow for mouse wobble - or finger wobble) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
