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.

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

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

Reply via email to