mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Fix Input.repeat?
Also, Xcode-formatted Input.cpp because I can and no one can stop me
This commit is contained in:
parent
a00ba982fc
commit
c7ee8804ad
1 changed files with 563 additions and 560 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue