X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ed892f3f2be3ec8f96583772757aecc00bbee30..439ddeba9dcb2bb020ba70da81dab76746dc0081:/src/unix/utilsx11.cpp diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 2a6eaf0deb..d4b4d521a3 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -506,27 +506,5 @@ void wxSetFullScreenStateX11(WXDisplay* display, WXWindow rootWindow, } } -bool wxGetKeyState(wxKeyCode key) -{ - Display *pDisplay = wxApp::GetDisplay(); - int iKey = wxCharCodeWXToX(key); - int iKeyMask = 0; - Window wDummy1, wDummy2; - int iDummy3, iDummy4, iDummy5, iDummy6; - unsigned int iMask; - XModifierKeymap* map = XGetModifierMapping(pDisplay); - KeyCode keyCode = XKeysymToKeycode(pDisplay,iKey); - if(keyCode == NoSymbol) return false; - for(int i = 0; i < 8; ++i) { - if( map->modifiermap[map->max_keypermod * i] == keyCode) { - iKeyMask = 1 << i; - } - } - XQueryPointer(pDisplay, DefaultRootWindow(pDisplay), &wDummy1, &wDummy2, - &iDummy3, &iDummy4, &iDummy5, &iDummy6, &iMask ); - XFreeModifiermap(map); - return (iMask & iKeyMask) != 0; -} - #endif