I'd like to get some keyboard event in my epplet. To do so, i've
followed the same principle that the one used for the Desktop observer (
add a notify in the key_up & down in view.c, new event in observer.h ...
) But i've encountered a very annoying problem. In the notification
system, i can make a call to notify_observer with , the observee and the
type of the event. But for a Key_UP and Key_Down event, i'd like to pass
wich touch has been pressed ... To make it work, i simply add a
Ecore_event *last_event in the _E_View struct but i'm not sure it's very
"clean" even if the single threaded environment of e17 ensure that there
will be no conflicts.
And also, i've been forced to turn the E_View into an Observee ( by
replacing the E_Object o by an E_Observee obs in view.h
What i'd like to know is if there is another solution than adding this
last_event field in E_View. And also, are this modification ( adding a
new Observer-Observee system for the Key events in the view ) in the
'e17 spirit' or am i completly wrong ?
PS: May be you want to know why i need the key event of View ? Just
because i'd like to make an epplet that allow you to just put your mouse
pointer anywhere on you background, type some command, press enter and
they will be executed. ( Very like the behavior of efm ).