add lua function block/unbloc bindings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user