PDA

View Full Version : Help needed for writing a keypad plugin



Benjamin
16th February 2009, 12:54
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/tut-deviceexample.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

Benjamin
17th February 2009, 11:50
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?

wysota
22nd February 2009, 09:46
Does the touchscreen work if you disable the keyboard plugin?