Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 11, 2023
1 parent 181ac68 commit ef6ea1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Windows/RawInput.cpp
Expand Up @@ -275,8 +275,7 @@ namespace WindowsRawInput {

if (key.keyCode) {
NativeKey(key);

auto keyDown = std::find(keyboardKeysDown.begin(), keyboardKeysDown.end(), key.keyCode);
auto keyDown = keyboardKeysDown.find(key.keyCode);
if (keyDown != keyboardKeysDown.end())
keyboardKeysDown.erase(keyDown);
}
Expand Down

0 comments on commit ef6ea1b

Please sign in to comment.