On Wed, May 12, 2010 at 2:04 AM, rui kou <[email protected]> wrote: > 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?
No, delayed action is an action that is not executed immediately, instead it will let the EFL go back to main loop and dispatch the action from there. This is required in some cases, that's why it exists. I'm not aware of long press in E17, but they exist in Elementary, you could base on it. Basically you need to start a timer with ecore_timer_add() on the mouse-down, delete it on mouse-up. When the timer callback is called, you know you have been pressed long enough, otherwise it was deleted and thus never called. Just remember to keep track of Ecore_Timer and never leak it ;-) -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
