remove redundant static_cast by changing Events::pressedKeys template parameter from int to keycode

This commit is contained in:
A-lex-Ra
2024-02-23 20:15:02 +06:00
parent 659a2610aa
commit 77b36f45f2
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ void GUI::act(float delta) {
focus->typed(codepoint);
}
for (auto key : Events::pressedKeys) {
focus->keyPressed(static_cast<keycode>(key)); // temporary solution
focus->keyPressed(key);
}
if (!Events::_cursor_locked) {