Question about Qt Embedded keyboard drivers
Hi,
I'm having problems to run my application with button input on a mobile device. So I was wondering what the relationship is between the linux kernel keyboard driver and the Qt Embedded keyboard driver. I know my mobile device has a custom made keyboard driver in the linux kernel. But I don't succeed in getting my application to receive correct key events.
So if anybody knows of any information on this, please point me the way :).
Thanks!
Re: Question about Qt Embedded keyboard drivers
It depends on the driver. In general if your kernel module generates input events for the keyboard you can easily implement your own keyboard driver for embedded that will read the events from appropriate device and map them to keys. If the kernel driver is not a standard one (doesn't generate evdev events), it might be more complicated.
Re: Question about Qt Embedded keyboard drivers
The kernel driver appears to write to /dev/event0. I'll try to write a Qt Embedded driver for this. I had hoped that the keyboard drivers would provide some kind of abstraction so that applications would not have to be aware of the driver that is used in the kernel, but apparently this is not the case.
Thanks for your answer!
Re: Question about Qt Embedded keyboard drivers
/dev/event* is such an abstraction.
Here is some more info about the subject: Qt for Embedded Linux Character Input
I would try the tty and usb protocols before doing anything else.
Re: Question about Qt Embedded keyboard drivers
I tried with TTY before, but that generated a lot of incorrect key events. Now I recompiled Qt Embedded with the USB keyboard driver enabled and it works :).
Thanks for your help!