Commit e4ea165d authored by cutealien's avatar cutealien

Fix input with numlock-keys on Linux. Thx @zerochen for report and help with bugfixing.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4669 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 94203cd0
......@@ -1061,7 +1061,7 @@ bool CIrrDeviceLinux::run()
irrevent.KeyInput.Control = (event.xkey.state & ControlMask) != 0;
irrevent.KeyInput.Shift = (event.xkey.state & ShiftMask) != 0;
event.xkey.state = 0; // ignore shift-ctrl states for figuring out the key
event.xkey.state &= ~(ControlMask|ShiftMask); // ignore shift-ctrl states for figuring out the key
XLookupString(&event.xkey, buf, sizeof(buf), &mp.X11Key, NULL);
const s32 idx = KeyMap.binary_search(mp);
if (idx != -1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment