Nidhi,
here is my problem:
a)normally an application can get key value just like the following function
calls in the no embeded directFB if the Linux has a PS interface keybaord:
1)CreateInputEventBuffer( dfb, DICAPS_KEYS|DICAPS_BUTTONS|DICAPS_AXES,
DFB_TRUE, &eventBuffer);
2)eventBuffer->WaitForEvent(eventBuffer);
3)eventBuffer->GetEvent(eventBuffer, &event);
4)keyvalue=event.input.type;
b)however in my embedded Linux system, I have a remote controler which is
connected to the target board through RS232 cable with embedded Linux on which
the directFB is running.
1) first I press a key on remote(for example "1" key") control ,
2) because the remote controller is connected to the target board with
RS232 cable, the firmware on the remote controller will send 0x31('1'
character) to the UART2 port of the target directly.
3) Linux UART driver will receive the byte( 0x31) save it into a buffer. a
simple application can get the key value into the user space memory.
now I hope DirectFB can detect there is a key press event happened in this
case, and DirectFB can get the key value(0x31) with the same function
call(GetEvent), just like the event is caused by the pressing the '1' key on
the local keyboard.
Can I express my meaning now? anyone can give me some hints to do it?
Regards,
Yunfeng
----- Original Message -----
From: "Nidhi Srivastava" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, May 12, 2006 7:55 PM
Subject: [directfb-users] Qt library on DirectFB
> Lu,
>
>
>
> Could you please elaborate the problem.
>
>
>
> Nidhi.
>
>
--------------------------------------------------------------------------------
> _______________________________________________
> 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