'character' is always 0 in sdl keyup event, so just send 'key' instead to lua keyup events

This commit is contained in:
jacob1 2016-04-26 22:42:57 -04:00
parent 6b6bd67a9f
commit 57be4ef498

View File

@ -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()