Commit 51220879 authored by hybrid's avatar hybrid

Hotfix for some better character support.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1556 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 93947151
...@@ -844,7 +844,8 @@ bool CIrrDeviceLinux::run() ...@@ -844,7 +844,8 @@ bool CIrrDeviceLinux::run()
} }
irrevent.EventType = irr::EET_KEY_INPUT_EVENT; irrevent.EventType = irr::EET_KEY_INPUT_EVENT;
irrevent.KeyInput.PressedDown = (event.type == KeyPress); irrevent.KeyInput.PressedDown = (event.type == KeyPress);
mbtowc(&irrevent.KeyInput.Char, buf, sizeof(buf)); // mbtowc(&irrevent.KeyInput.Char, buf, sizeof(buf));
irrevent.KeyInput.Char = ((wchar_t*)(buf))[0];
irrevent.KeyInput.Control = (event.xkey.state & ControlMask) != 0; irrevent.KeyInput.Control = (event.xkey.state & ControlMask) != 0;
irrevent.KeyInput.Shift = (event.xkey.state & ShiftMask) != 0; irrevent.KeyInput.Shift = (event.xkey.state & ShiftMask) != 0;
postEventFromUser(irrevent); postEventFromUser(irrevent);
......
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