Results 1 to 5 of 5

Thread: Question about Qt Embedded keyboard drivers

  1. #1
    Join Date
    Mar 2009
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default 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!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default 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!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2009
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default 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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.