commit a63e0b1a180ede18d88c989d9960d90fd8ad0452
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Fri Jul 1 12:20:22 2022 -0600
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Fri Jul 1 12:20:22 2022 -0600
stub out stat 29 and 30
fix poom weapon switching
---
source/picoluaapi.cpp | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/source/picoluaapi.cpp b/source/picoluaapi.cpp
index 2e1656e..2d49d42 100644
--- a/source/picoluaapi.cpp
+++ b/source/picoluaapi.cpp
@@ -864,6 +864,16 @@ int stat(lua_State *L) {
lua_pushnumber(L, _audioForLuaApi->getMusicTickCount());
return 1;
break;
+ //if SDL scancode is pressed. always false for now
+ case 28:
+ lua_pushboolean(L, false);
+ return 1;
+ break;
+ //unknown. appears to always be 0
+ case 29:
+ lua_pushnumber(L, 0);
+ return 1;
+ break;
//was a key pressed
case 30:
lua_pushboolean(L, _inputForLuaApi->getKeyDown());