#484 key api always should return bool value
This commit is contained in:
1 parent
375df9ba81
commit
16ba85425d
4 files changed
+10
-12
No files matched your search
+2
-2
@@ -789,7 +789,7 @@ static s32 lua_key(lua_State* lua)
|
||||
|
||||
if (top == 0)
|
||||
{
|
||||
lua_pushinteger(lua, tic->api.key(tic, tic_key_unknown));
|
||||
lua_pushboolean(lua, tic->api.key(tic, tic_key_unknown));
|
||||
}
|
||||
else if (top == 1)
|
||||
{
|
||||
@@ -821,7 +821,7 @@ static s32 lua_keyp(lua_State* lua)
|
||||
|
||||
if (top == 0)
|
||||
{
|
||||
lua_pushinteger(lua, tic->api.keyp(tic, tic_key_unknown, -1, -1));
|
||||
lua_pushboolean(lua, tic->api.keyp(tic, tic_key_unknown, -1, -1));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user