Skip to content

Commit

Permalink
'character' is always 0 in sdl keyup event, so just send 'key' instea…
Browse files Browse the repository at this point in the history
…d to lua keyup events
  • Loading branch information
jacob1 committed Apr 27, 2016
1 parent 6b6bd67 commit 57be4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/LuaScriptInterface.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 57be4ef

Please sign in to comment.