mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 07:01:27 +02:00
'character' is always 0 in sdl keyup event, so just send 'key' instead to lua keyup events
This commit is contained in:
@@ -3333,7 +3333,7 @@ bool LuaScriptInterface::OnKeyRelease(int key, Uint16 character, bool shift, boo
|
|||||||
modifiers |= 0x040;
|
modifiers |= 0x040;
|
||||||
if(alt)
|
if(alt)
|
||||||
modifiers |= 0x100;
|
modifiers |= 0x100;
|
||||||
return luacon_keyevent(key, character, modifiers, LUACON_KUP);
|
return luacon_keyevent(key, key < 256 ? key : 0, modifiers, LUACON_KUP);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LuaScriptInterface::OnMouseTick()
|
bool LuaScriptInterface::OnMouseTick()
|
||||||
|
Reference in New Issue
Block a user