Permalink
Browse files

'character' is always 0 in sdl keyup event, so just send 'key' instea…

…d to lua keyup events
  • Loading branch information...
jacob1 committed Apr 27, 2016
1 parent 6b6bd67 commit 57be4ef498fcc904c19d13ce92e9deced986dce5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lua/LuaScriptInterface.cpp
@@ -3333,7 +3333,7 @@ bool LuaScriptInterface::OnKeyRelease(int key, Uint16 character, bool shift, boo
modifiers |= 0x040;
if(alt)
modifiers |= 0x100;
return luacon_keyevent(key, character, modifiers, LUACON_KUP);
return luacon_keyevent(key, key < 256 ? key : 0, modifiers, LUACON_KUP);
}
bool LuaScriptInterface::OnMouseTick()

0 comments on commit 57be4ef

Please sign in to comment.