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

This commit is contained in:
Botanic 2013-02-07 03:27:12 -08:00
parent 2dd0bed9d9
commit 08176389af

View file

@ -566,7 +566,8 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
}
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