Rename keyHeld to keyDown, too.

This commit is contained in:
The Dax 2014-01-03 00:03:43 -05:00
parent a5873ab7a4
commit 55d716fb19

View File

@ -1560,9 +1560,9 @@ namespace MainWindow
if (key.keyCode) {
NativeKey(key);
auto keyHeld = std::find(keyboardKeysDown.begin(), keyboardKeysDown.end(), key.keyCode);
if (keyHeld != keyboardKeysDown.end())
keyboardKeysDown.erase(keyHeld);
auto keyDown = std::find(keyboardKeysDown.begin(), keyboardKeysDown.end(), key.keyCode);
if (keyDown != keyboardKeysDown.end())
keyboardKeysDown.erase(keyDown);
}
}
} else if (raw->header.dwType == RIM_TYPEMOUSE) {