Hej

I created demo project where I have gtk+directfb on a target with a 
touch screen and no keyboard.
It is properly not the optimal way, what I did.
But here is something as far as I remember.

I removed the keyboard
/*
  ret=directfb->GetInputDevice (directfb, DIDID_KEYBOARD, &keyboard);

  if (ret != DFB_OK){
      DirectFBError ("gdk_display_open: KEYBOARD", ret);
        return NULL;
  }
*/
and inserted a mouse instead
ret=directfb->GetInputDevice (directfb, DIDID_MOUSE, &mouse);

//_gdk_display->keyboard=keyboard;

Then in the gdkkeys file under

_gdk_directfb_keyboard_init (void)
{

I removed a lot of stuff and set these one to a fixed value.

directfb_min_keycode = 0;
directfb_max_keycode = 127;


Hope that could give you an idea, what to do.
/Søren



Jorge Berzosa wrote:
> Hi,
>
> I cross compiled GTK+-2.10.10 with Directfb-1.0.0 for an embedded  board 
> without  keyboard. When I tun the gtk-demo program I get:
> (#) DirectFBError [gdk_display_open: GetInputDevice]: Requested ID not 
> found!
>
> I have changed the code like this with the hope that the program wont 
> crass:
> ret=directfb->GetInputDevice (directfb, DIDID_KEYBOARD, &keyboard);
>
>  if (ret != DFB_OK){
>      //DirectFBError ("gdk_display_open: GetDisplayLayer", ret);
>    DirectFBError ("gdk_display_open: GetInputDevice", ret);
>    //layer->Release (layer);
>    //directfb->Release (directfb);
>       //return NULL;
>  }
> But as I expected this trick didnt work. I get the error:
> Gdk-DirectFB-ERROR **: file ../../../gdk/directfb/gdkkeys-directfb.c: 
> line 1980 (gdk_keymap_get_for_display): assertion fail)
>
> Is there posible to have gtk+directfb without keyboard if you  arent 
> going to use it?
>
> Thanks in advance , and sorry for my English
> Jorge
>
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>   


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

Reply via email to