Prevent unnecessary copies of entire frames on Windows

This commit is contained in:
loki
2020-03-27 21:57:29 +01:00
parent 55705af922
commit 94181fd047
9 changed files with 333 additions and 212 deletions

View File

@@ -249,9 +249,7 @@ void keyboard(input_t &input, uint16_t modcode, bool release) {
auto key_state = GetAsyncKeyState(modcode);
bool key_state_down = (key_state & KEY_STATE_DOWN) != 0;
if(key_state_down != release) {
BOOST_LOG(warning) << "Key state of vkey ["sv << util::hex(modcode).to_string_view() << "] does not match the desired state ["sv << (release ? "on]"sv : "off]"sv);
return;
BOOST_LOG(debug) << "Key state of vkey ["sv << util::hex(modcode).to_string_view() << "] does not match the desired state ["sv << (release ? "on]"sv : "off]"sv);
}
INPUT i {};