On Tue, 2006-04-18 at 14:07 +0800, swin wrote:
> hello!
> 
>       I should port directfb to our arm box, but I noticed
> that directfb use VT to support keyboard, but our hardware
> engineer tell me he can only drive our keyboard as a general
> char device, for example, /dev/ldkey.
>       How can I make directfb support such keyboard device?
> anybody hava any idea?

two paths I can think of.

1) Create an kernel input device driver that reads the char device. no
changes needed to DirectFB.
2) Create an input device for DirectFB, that will open the device and
handle all input.

Both solutions require you to deal with keys and key mapping I would
assume. #1 Allows the device to be more generic, #2 less.

I had to take an X touchscreen driver and *port* it to the DirectFB
device type. It took a little for me as I wasn't used to controlling
hardware directly. It wasn't too bad though as I only had to deal with
X/Ys. 
-- 
Nathanael D. Noblet
Gnat Solutions
http://www.gnat.ca/
T 250.385.4613
C 250.893.4613


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

Reply via email to