From 1a233ca4aa49492bcd1eec82b51d143281460e08 Mon Sep 17 00:00:00 2001 From: loki Date: Sun, 26 Apr 2020 15:24:36 +0200 Subject: [PATCH] Remove incorrect warning --- sunshine/platform/windows/input.cpp | 8 -------- 1 file changed, 8 deletions(-) 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;