Fixed warning "unix_event_emitter.cpp:569:8: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated (declared at /usr/include/X11/Xlib.h:1695)"

hg/feature/sse2
Botanic 12 years ago
parent be0cd80674
commit 4f16007da6

@ -566,7 +566,8 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
} }
else else
{ {
k = XKeycodeToKeysym(_dpy, keyCode, 0); int keysyms_per_keycode_return;
k = (KeySym)XGetKeyboardMapping(_dpy,keyCode,0,&keysyms_per_keycode_return);
} }
// send CEventKeyDown event only if keyCode is defined // send CEventKeyDown event only if keyCode is defined

Loading…
Cancel
Save