ESC and F1-F12 disabled in game mode

This commit is contained in:
BADIM-PC\Vadim
2018-01-24 19:50:06 +03:00
parent b4c46a29e2
commit dd333baf38
3 changed files with 17 additions and 17 deletions

View File

@@ -795,7 +795,7 @@ static s32 lua_key(lua_State* lua)
{
tic_key key = getLuaNumber(lua, 1);
if(key < tic_keys_count)
if(key < tic_key_escape)
lua_pushboolean(lua, tic->api.key(tic, key));
else
{
@@ -827,7 +827,7 @@ static s32 lua_keyp(lua_State* lua)
{
tic_key key = getLuaNumber(lua, 1);
if(key >= tic_keys_count)
if(key >= tic_key_escape)
{
luaL_error(lua, "unknown keyboard code\n");
}