Results 1 to 3 of 3

Thread: Help needed for writing a keypad plugin

  1. #1
    Join Date
    Dec 2007
    Posts
    36
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    2

    Default Help needed for writing a keypad plugin

    Hi all,

    I need an information regarding writing a keyboard pluggin for qtopia 4.3. My device has pretty keypad. It has four navigational keys and a center key. I have explored an example of for writing a keypad plugin that I have found on this link http://doc.trolltech.com/qtopia4.3/t...ceexample.html and I pretty much understand how it forks.

    What I do not understand is when QSocketNotifier see that there is some thing on /dev/input/event0 it calls read function. I presume that my driver needs to have a read function implemented or I am wrong. I do not know what I need to put in my driver read function and what I need to return to QSocketNotifier.

    Any example is welcomed.

    Regards,
    Benjamin

  2. #2
    Join Date
    Dec 2007
    Posts
    36
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    2

    Default Re: Help needed for writing a keypad plugin

    I have managed to write keypad pluggin. But now for some reason my touch screen is not working.

    My touch screen is /dev/input/event0 and /dev/input/ts0.
    And QWS_MOUSE_PROTO="linuxtp:/dev/input/ts0"

    My keypad plugin is using /dev/input/event1
    QWS_KEYBOARD="vr41xx:/dev/input/event1"

    I have modified vr41xx keypad plugin to suite my keypad.

    Any idea?

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

    Default Re: Help needed for writing a keypad plugin

    Does the touchscreen work if you disable the keyboard plugin?
    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.


Similar Threads

  1. Plugin implementation question
    By JPNaude in forum Qt Programming
    Replies: 12
    Last Post: 27th August 2008, 21:24
  2. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 15:13

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
  •  
Qt is a trademark of The Qt Company.