Skip to content

Commit

Permalink
Merge pull request #267 from pentamassiv/bump_windows
Browse files Browse the repository at this point in the history
Bump `windows` crate
  • Loading branch information
pentamassiv authored Mar 5, 2024
2 parents ecd4688 + b6180eb commit 471aa64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ log = "0.4"
serde = { version = "1", features = ["derive"], optional = true }

[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.51", features = [
windows = { version = "0.54", features = [
"Win32_Foundation",
"Win32_UI_WindowsAndMessaging",
"Win32_UI_Input_KeyboardAndMouse",
Expand Down
3 changes: 2 additions & 1 deletion src/win/win_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ fn mouse_event(flags: MOUSE_EVENT_FLAGS, data: i32, dx: i32, dy: i32) -> INPUT {
mi: MOUSEINPUT {
dx,
dy,
mouseData: data,
mouseData: data as u32, /* mouseData unfortunately is defined as unsigned even
* though we need negative values as well */
dwFlags: flags,
time: 0, /* Always set it to 0 (see https://web.archive.org/web/20231004113147/https://devblogs.microsoft.com/oldnewthing/20121101-00/?p=6193) */
dwExtraInfo: 0,
Expand Down

0 comments on commit 471aa64

Please sign in to comment.