mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
remove redundant static_cast by changing Events::pressedKeys template parameter from int to keycode
This commit is contained in:
parent
659a2610aa
commit
77b36f45f2
4 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue