diff options
author | Ken Moore <ken@ixsystems.com> | 2017-07-07 15:11:22 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-07-07 15:11:22 -0400 |
commit | 70cf0e8b4ef74d35f798c92634ecc129298a1d3b (patch) | |
tree | 8a97e00ff1d032310a995124a4f70504ed478171 /src-qt5/core/libLumina | |
parent | Commit a work-in-progress for converting an X11 keycode into a Qt::Key defini... (diff) | |
download | lumina-70cf0e8b4ef74d35f798c92634ecc129298a1d3b.tar.gz lumina-70cf0e8b4ef74d35f798c92634ecc129298a1d3b.tar.bz2 lumina-70cf0e8b4ef74d35f798c92634ecc129298a1d3b.zip |
A bit more keyboard mapping debugging/parsing
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r-- | src-qt5/core/libLumina/NativeWindowSystem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp index 6f737b27..ab264db5 100644 --- a/src-qt5/core/libLumina/NativeWindowSystem.cpp +++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp @@ -256,6 +256,13 @@ Qt::Key NativeWindowSystem::KeycodeToQt(int keycode){ xcb_keysym_t symbol = xcb_key_symbols_get_keysym(SYM, keycode,0); //not sure about the "column" input - we want raw keys though so ignore the "modified" key states (columns) for now qDebug() << "Try to convert keycode to Qt::Key:" << keycode << symbol; + if(xcb_is_keypad_key(symbol)){ qDebug() << "Keypad Key"; } + else if(xcb_is_private_keypad_key(symbol)){ qDebug() << "Private Keypad Key"; } + else if(xcb_is_cursor_key(symbol)){ qDebug() << "Cursor Key"; } + else if(xcb_is_pf_key(symbol)){ qDebug() << "PF Key"; } + else if(xcb_is_function_key(symbol)){ qDebug() << "Function Key"; } + else if(xcb_is_misc_function_key(symbol)){ qDebug() << "Misc Function Key"; } + else if(xcb_is_modifier_key(symbol)){ qDebug() << "Modifier Key"; } //Now map this symbol to the appropriate Qt::Key enumeration qDebug() << " -- Simple Qt Map:" << (Qt::Key)(symbol); qDebug() << " - Not implemented yet"; |