mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
input minor refactoring
This commit is contained in:
parent
6bdf7c9719
commit
a16c4fcf8b
3 changed files with 8 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue