Windows Input Capture (#100)

initial support for windows input capture.
Some things need fixing;
- scrolling
- mouse buttons > 2
This commit is contained in:
Ferdinand Schober
2024-04-11 03:55:42 +02:00
committed by GitHub
parent 9ca7e2378c
commit f9eeb254d3
4 changed files with 743 additions and 22 deletions

View File

@@ -32,6 +32,7 @@ adw = { package = "libadwaita", version = "0.6.0", features = ["v1_1"], optional
async-channel = { version = "2.1.1", optional = true }
keycode = "0.4.0"
once_cell = "1.19.0"
num_enum = "0.7.2"
[target.'cfg(unix)'.dependencies]
libc = "0.2.148"
@@ -49,7 +50,15 @@ reis = { version = "0.2", features = [ "tokio" ], optional = true }
core-graphics = { version = "0.23", features = ["highsierra"] }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.54.0", features = [ "Win32_UI_Input_KeyboardAndMouse" ] }
windows = { version = "0.54.0", features = [
"Win32_System_LibraryLoader",
"Win32_System_Threading",
"Win32_Foundation",
"Win32_Graphics",
"Win32_Graphics_Gdi",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_WindowsAndMessaging",
] }
[build-dependencies]
glib-build-tools = "0.19.0"