add lua function block/unbloc bindings

This commit is contained in:
ChancellorIkseew
2024-11-02 03:40:35 +10:00
parent e762cf9b23
commit 63304712f3
3 changed files with 26 additions and 0 deletions
+3
View File
@@ -78,6 +78,9 @@ void Events::pollEvents() {
for (auto& entry : bindings) {
auto& binding = entry.second;
if (!binding.enable) {
continue;
}
binding.justChange = false;
bool newstate = false;
+1
View File
@@ -137,6 +137,7 @@ struct Binding {
int code;
bool state = false;
bool justChange = false;
bool enable = true;
Binding() = default;
Binding(inputtype type, int code) : type(type), code(code) {