Minor cleanup

This commit is contained in:
Henrik Rydgård 2023-09-11 11:03:41 +02:00
parent 181ac68939
commit ef6ea1bd23

View File

@ -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);
}