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
@@ -13,7 +13,7 @@ glm::vec2 Events::cursor = {};
bool Events::cursor_drag = false;
bool Events::_cursor_locked = false;
std::vector<uint> Events::codepoints;
std::vector<int> Events::pressedKeys;
std::vector<keycode> Events::pressedKeys;
std::unordered_map<std::string, Binding> Events::bindings;
bool Events::pressed(keycode keycode) {