Prevent unnecessary copies of entire frames on Windows
This commit is contained in:
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user