[Qt-interest] Transforming Qt Keycodes to SDL like keycodes
Nathan Hüsken
nathan.huesken at posteo.de
Mon Nov 29 15:42:02 CET 2010
Hey,
I have an application that deals with SDL Keyboard input, but should now
deal with QT Key events.
Now, a key event has the key(), the nativeVirtualKey() e.t.c.
I thought I translate the key() in a big switch/case. But then I realized:
- there is no right control vs. left control
- there is no difference between numpad and non-numpad numbers.
...
So I am wondering:
- What exactly does nativeVirtualKey return?
- Which output of the key event is most useful for this task?
Thanks!
nathan
More information about the Qt-interest-old
mailing list