Thanks.  Using df_input, I was able to grab the events from a real keyboard
off DFB running on my laptop (with X11 as system).  My key handler now uses
the same event information that a regular keyboard does.  I still don't see
any buttons being pressed in a simple GTK test program.

I created a very simple hello world with 1 button on it, and then attached a
callback to the window for any key press event:
g_signal_connect (G_OBJECT(window), "key-press-event",
G_CALLBACK(keypressCallback), NULL);

The callback is never called.

The GTK window is a GTK_WINDOW_TOPLEVEL.

Do DFB keyboard events trigger gtk keyboard events?




On Wed, Mar 11, 2009 at 12:11 PM, Sven Neumann <s...@gimp.org> wrote:

> Hi,
>
> On Tue, 2009-03-10 at 22:55 -0700, eccamacho wrote:
>
> > When I compile some sample GTK test apps (the ones packaged with GTK
> 2.12.12
> > for example), I don't see my keystrokes being recognized.  As I have no
> > mouse or keyboard, is it an issue of focus or am I missing something
> which
> > "bubbles" the DFB events up to GTK?
>
> Have a look at gdk_directfb_translate_key_event(), perhaps add some
> debug output there. There's a comment that refers explicitly to remote
> controls. My guess is that you don't have a keymap.
>
>
> Sven
>
>
>
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to