yes,

delayed_action should not be used. it just dispatch the handler to the
next main loop.

anyway ,long key pressed event should controlled by yourself.
for example , in mobile device long pressed timer is
variable,(800ms,2000s ....)
 

On Wed, 2010-05-12 at 23:11 -0300, Gustavo Sverzut Barbieri wrote:
> 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 ;-)
> 
> 

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential 
and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, 
disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this 
communication in error,please 
immediately notify the sender by return e-mail, and delete the original message 
and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------

_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to