1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Updated use of deprecated linux keyboard function. Removed some unnecessary GL headers.

This commit is contained in:
jules 2012-04-30 10:16:33 +01:00
parent dc76ef71e9
commit 3ef8be7a42
3 changed files with 3 additions and 53 deletions

View file

@ -96,6 +96,7 @@
#include <X11/Xutil.h>
#include <X11/Xmd.h>
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <unistd.h>

View file

@ -1284,7 +1284,7 @@ public:
keyCode = (int) unicodeChar;
if (keyCode < 0x20)
keyCode = XKeycodeToKeysym (display, keyEvent->keycode, currentModifiers.isShiftDown() ? 1 : 0);
keyCode = XkbKeycodeToKeysym (display, keyEvent->keycode, currentModifiers.isShiftDown() ? 1 : 0, 0);
keyDownChange = (sym != NoSymbol) && ! updateKeyModifiersFromSym (sym, true);
}
@ -1387,7 +1387,7 @@ public:
{
ScopedXLock xlock;
sym = XKeycodeToKeysym (display, keyEvent->keycode, 0);
sym = XkbKeycodeToKeysym (display, keyEvent->keycode, 0, 0);
}
const ModifierKeys oldMods (currentModifiers);