Dear Enlightenment Users,

I've made some progress, but seem to have hit a wall and would appreciate some 
help.

I'm using the genlist_example_02 program from Elementary as a starting point 
(no particular reason, I just had it open in an editor).

I was able to use software buffer engine, by adding the following changes:

    ee = ecore_evas_new("buffer", 0, 0, WIDTH, HEIGHT, NULL);
    win = elm_win_fake_add(ee);
   // win = elm_win_util_standard_add("genlist", "Genlist - simple");
   // elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
   // elm_win_autodel_set(win, EINA_TRUE);

(Is this even the right way to do it??)

I can save a PPM format image from the ee canvas contents. The 
genlist_example_02 output appears in the image.

Next, with some custom code, I'm reading key down/up events from Linux 
/dev/input/* devices, converting them to Ecore_Event_Key objects, and then 
sending them using:

ecore_event_add(ECORE_EVENT_KEY_DOWN, e, NULL, NULL);
    and
ecore_event_add(ECORE_EVENT_KEY_UP, e, NULL, NULL);

However, the key strokes do not have any effect on the GUI widgets in the 
genlist_example_02 program.
If I revert to the original code (not use buffer engine) then the key strokes 
work fine.

To verify the keycodes were correct, I added some callbacks like this:

    ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, keyEventHandlerCb, &ctx);
    ecore_event_handler_add(ECORE_EVENT_KEY_UP, keyEventHandlerCb, &ctx);

Everything matches, except the window, event_window and root_window fields of 
the Ecore_Event_Key object are different from my generated events.

Using efl-1.17.2 and elementary-1.17.1


What am I doing wrong??

Basically, I want to manipulate the GUI widgets with the keyboard as usual, but 
have the graphics rendered in a memory buffer.

Any help appreciated.
Thank you,
Markus





----- Original Message -----
From: "msvilans" <msvil...@aeonyx.ca>
To: "enlightenment-users" <enlightenment-users@lists.sourceforge.net>
Sent: Sunday, July 3, 2016 2:35:45 PM
Subject: [e-users] Elementary program / generating keyboard input events

Dear Enlightenment Users, 

Is it possible to manually generate keyboard input events? 

In my case, keyboard events are received via a pipe from an external 
application. The standard Linux input events are not available. Instead I would 
like to take the keyboard events and feed them into the Elementary event loop 
somehow. 

I am new to Elementary and Enlightenment. Any guidance would be much 
appreciated. 

Thank you and best wishes, 
Markus 

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to