mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
keyboard: Replace integer literals by bool when relevant
Recommendation from Clang-Tidy: https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
This commit is contained in:
parent
8a6b5ca71f
commit
66946a83e6
2 changed files with 18 additions and 18 deletions
|
|
@ -73,7 +73,7 @@ void basic_keyboard_handler::keyPressEvent(QKeyEvent* keyEvent)
|
|||
keyEvent->ignore();
|
||||
return;
|
||||
}
|
||||
Key(keyEvent->key(), 1);
|
||||
Key(keyEvent->key(), true);
|
||||
}
|
||||
|
||||
void basic_keyboard_handler::keyReleaseEvent(QKeyEvent* keyEvent)
|
||||
|
|
@ -83,7 +83,7 @@ void basic_keyboard_handler::keyReleaseEvent(QKeyEvent* keyEvent)
|
|||
keyEvent->ignore();
|
||||
return;
|
||||
}
|
||||
Key(keyEvent->key(), 0);
|
||||
Key(keyEvent->key(), false);
|
||||
}
|
||||
|
||||
void basic_keyboard_handler::LoadSettings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue