Hi
take a look to "src/core/input_driver.h"

to declare your input driver use the macro:

DFB_INPUT_DRIVER(shortname)

for the lirc for example :
it's done in the file inputdrivers/lirc/lirc.c

DFB_INPUT_DRIVER( lirc )

then you have to implement the fuctions :

driver_get_available( )
driver_get_info( )
driver_open_device( )
driver_get_keymap_entry( );
driver_close_device( )

when linked your input driver module should be named
"libdirectfb_#shortname#.so

#shortname# is the same one you used with the DFB_INPUT_DRIVER

once done copy it under "/usr/lib/directfb-1.0-0/inputdrivers"
and that's it.

regards.

2010/5/6 Ariel segal <[email protected]>

>  Hi,
> How do I add an input device to directfb?
> I have a device driver loaded into the linux kernel, and a node for it in
> '/dev':
> '/dev/mydevice'.
> Regards,
> Ariel
>
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>


-- 
Say: He is God, the One and Only;
God, the Eternal, Absolute;
He begetteth not, nor is He begotten;
And there is none like unto Him.
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to