diff --git a/sunshine/platform/windows/input.cpp b/sunshine/platform/windows/input.cpp index ba0c2338..60120738 100755 --- a/sunshine/platform/windows/input.cpp +++ b/sunshine/platform/windows/input.cpp @@ -240,18 +240,10 @@ void scroll(input_t &input, int distance) { } void keyboard(input_t &input, uint16_t modcode, bool release) { - constexpr SHORT KEY_STATE_DOWN = 0x8000; - if(modcode == VK_RMENU) { modcode = VK_LWIN; } - auto key_state = GetAsyncKeyState(modcode); - bool key_state_down = (key_state & KEY_STATE_DOWN) != 0; - if(key_state_down != release) { - 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 {}; i.type = INPUT_KEYBOARD; auto &ki = i.ki;