input minor refactoring

This commit is contained in:
ChancellorIkseew
2025-04-09 02:48:09 +10:00
parent 6bdf7c9719
commit a16c4fcf8b
3 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -158,7 +158,7 @@ struct Binding {
InputType type;
int code;
bool state = false;
bool justChange = false;
bool justChanged = false;
bool enabled = true;
Binding() = default;
@@ -170,7 +170,7 @@ struct Binding {
}
bool jactive() const {
return state && justChange;
return state && justChanged;
}
void reset(InputType, int);