#484 key api always should return bool value

This commit is contained in:
BADIM-PC\Vadim
2017-12-29 19:11:52 +03:00
parent 375df9ba81
commit 16ba85425d
4 changed files with 10 additions and 12 deletions

View File

@@ -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
{