ESC and F1-F12 disabled in game mode
This commit is contained in:
1 parent
b4c46a29e2
commit
dd333baf38
3 files changed
+17
-17
No files matched your search
+2
-2
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user