irrlicht 1.8.1 numpad fix

From Pitriss, 10 Years ago, written in Diff-output, viewed 305 times.
URL http://minetest.wjake.com/stikked/view/5751b267 Embed
Download Paste or View Raw
  1. --- ../backup/irrlicht-1.8.1/source/Irrlicht/CIrrDeviceLinux.cpp        2012-11-24 19:25:10.000000000 +0100
  2. +++ irrlicht-1.8.1/source/Irrlicht/CIrrDeviceLinux.cpp  2014-01-18 19:08:03.000000000 +0100
  3. @@ -1049,7 +1049,7 @@
  4.                                         irrevent.KeyInput.Control = (event.xkey.state & ControlMask) != 0;
  5.                                         irrevent.KeyInput.Shift = (event.xkey.state & ShiftMask) != 0;
  6.  
  7. -                                       event.xkey.state = 0; // ignore shift-ctrl states for figuring out the key
  8. +                                       event.xkey.state &= ~(ControlMask|ShiftMask); // ignore shift-ctrl states for figuring out the key
  9.                                         XLookupString(&event.xkey, buf, sizeof(buf), &mp.X11Key, NULL);
  10.                                         const s32 idx = KeyMap.binary_search(mp);
  11.                                         if (idx != -1)
  12.  

Reply to "irrlicht 1.8.1 numpad fix"

Here you can reply to the paste above