Fix Input.repeat?

Also, Xcode-formatted Input.cpp because I can and no one can stop me
This commit is contained in:
Struma 2021-08-09 07:01:28 -04:00 committed by Roza
parent a00ba982fc
commit c7ee8804ad

View file

@ -955,8 +955,11 @@ struct InputPrivate
for (Binding *bind : bindings) {
// Get all binding states
pollBindingPriv(*bind, repeatCand);
}
// Check for released buttons
for (Binding *bind : bindings) {
// Check for released buttons, now that all the bindings
// have been checked
ButtonState &state = getState(bind->target);
ButtonState &oldState = getOldState(bind->target);
if (!state.pressed && oldState.pressed)