From afe5f0b8dbf2a020ed3abf687038ed188c987bab Mon Sep 17 00:00:00 2001 From: AdamJedl <100023363+AdamJedl@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:45:41 +0100 Subject: [PATCH] fix windows input capture not releasing keys (#241) --- input-capture/src/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input-capture/src/windows.rs b/input-capture/src/windows.rs index 408f790..9455a09 100644 --- a/input-capture/src/windows.rs +++ b/input-capture/src/windows.rs @@ -218,7 +218,7 @@ unsafe fn to_key_event(wparam: WPARAM, lparam: LPARAM) -> Option WPARAM(p) if p == WM_SYSKEYUP as usize => Some(KeyboardEvent::Key { time: 0, key: scan_code, - state: 1, + state: 0, }), _ => None, }