mirror of https://github.com/snes9xgit/snes9x.git
Lua: oops, fix input.get()
This commit is contained in:
parent
78278c8049
commit
ee99d9080f
|
@ -3912,7 +3912,7 @@ int input_getcurrentinputstatus(lua_State* L, bool reportUp, bool reportDown)
|
|||
const char* name = s_keyToName[i];
|
||||
if(name)
|
||||
{
|
||||
lua_pushboolean(L, true);
|
||||
lua_pushboolean(L, active);
|
||||
lua_setfield(L, -2, name);
|
||||
}
|
||||
}
|
||||
|
@ -3933,7 +3933,7 @@ int input_getcurrentinputstatus(lua_State* L, bool reportUp, bool reportDown)
|
|||
active = GetAsyncKeyState(i) & 0x8000;
|
||||
if((active && reportDown) || (!active && reportUp))
|
||||
{
|
||||
lua_pushboolean(L, true);
|
||||
lua_pushboolean(L, active);
|
||||
lua_setfield(L, -2, name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue