ons, 19,.07.2006 kl. 17.09 +0200, skrev Denis Oliver Kropp:
> Nils Magnus Larsgard wrote:
> > read(fd, buf, 4);
> > if(~buf[0]&0x02) {
> > evt.key_code=9; //button 0 pushed, keycode=9 for 'tab'
> > evt.type= DIET_KEYPRESS;
> > evt.flags=DIEF_KEYCODE;
> > evt.key_code &= 0x7f;
> > dfb_input_dispatch( data->device, &evt );
> > }
>
> You can use evt.key_symbol instead, it's ASCII and even Latin1
> compatible as it's Unicode :)
>
> You also have to change DIEF_KEYCODE to DIEF_KEYSYMBOL.
>
Thanks a lot!
--
Kind regards,
Vennlig hilsen,
Nils Magnus Larsgård
Summer intern - AVR APPS Group
Atmel Norway
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users