From: Mikko Rasa Date: Wed, 25 Jul 2012 19:47:55 +0000 (+0300) Subject: XKeycodeToKeysym is deprecated X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=commitdiff_plain;h=23905f11162e395b3e984329fd41256e586f7cea XKeycodeToKeysym is deprecated --- diff --git a/source/input/keyboard.cpp b/source/input/keyboard.cpp index 0f4d4ab..ab2f9ea 100644 --- a/source/input/keyboard.cpp +++ b/source/input/keyboard.cpp @@ -63,7 +63,7 @@ void Keyboard::input_event(const Graphics::Window::Event &event) case KeyPress: case KeyRelease: { - KeySym keysym = XKeycodeToKeysym(window.get_display().get_private().display, event.xevent.xkey.keycode, 0); + KeySym keysym = XLookupKeysym(const_cast(&event.xevent.xkey), 0); if(keysym!=NoSymbol) if(unsigned key = key_from_sys(keysym)) set_button_state(key, event.xevent.type==KeyPress, true);