From 70cf0e8b4ef74d35f798c92634ecc129298a1d3b Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 7 Jul 2017 15:11:22 -0400 Subject: A bit more keyboard mapping debugging/parsing --- src-qt5/core/libLumina/NativeWindowSystem.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src-qt5/core/libLumina/NativeWindowSystem.cpp') 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"; -- cgit