remove redundant static_cast by changing Events::pressedKeys template parameter from int to keycode
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user