I took a look at the code for key_symbols, but it uses "levt" that
seems to be a too low-level structure for me...

I changed my gdk_directfb_key_translate as I explained (using key_id
instead of key_sym), and it works for "simple" keys (only ciffers).
I have the good keyval in GDK for all keys after my
gdk_directfb_translate_keys, but it does not seems to be enough for
"action" keys (Enter, Delete, Arrows...)

Does anyone have any idea?

Mickael


Mickael Istria wrote:
> Hello,
>
> I am trying to run GTK+ (my test is gtk-demo) over DirectFB using
> linuxinput as a keyboard driver for my phone keypad. By going
> deeper and deeper in gdk-directfb backend, I detected that function
> < gdk_directfb_trtanslate_key > called from <
> gdk_directfb_translate_key_event > always receive 0 as key_symbol
> argument. This argument is directly given by the dfb_event.
>
> I can correct it for my hardware by rewriting a customized
> gdk_directfb_translate_key using only key_id to translate events,
> but you understand it is non-portable and so very ugly.
>
> More interesting, df_input mapping funtion also get 0 as key_symbol
>  for any keypad event. The experiment make me think the problem
> comes from linux_input driver for my keypad - my keypad is actually
> a keyboard for DirectFB, as I corrected it last week.
>
> I will try to take a look at DirectFB code to see if it is easy to
> solve.
>
> Best reagrds Mickael
>
>
>
> _______________________________________________ directfb-users
> mailing list [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users



_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to