PDA

View Full Version : Key mapping for my target device



Charvi
11th July 2012, 10:49
Hi,

I have a target device which gives numeric (key_0, Key_1, etc.) key events to the Linux kernel. Now I want to enable texting on my Qt Gui for the device. This means I want to be able to type text in my line edits, text edits, etc.. Is there present any generic keymapping function where I can start from?

The function should be such which maps the numeric events to the alphabets and also detects successive key presses for multiple alphabets on same events (like Key_1 -> a, b, c).

Please guide how to start.

Thanks in advance.
Charvi.

amleto
11th July 2012, 10:59
"Is there present any generic keymapping function where I can start from?"
QMap QHash QMultiMap

you will have to code your own algorithm if you can't use somebody else's

Charvi
11th July 2012, 11:01
you will have to code your own algorithm if you can't use somebody else's

Where do I get already developed algorithms ?