mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
win32: account for mouse wheel speed setting
Also adds a method to toggle this behavior during runtime.
This commit is contained in:
@@ -60,6 +60,8 @@ pub(crate) struct WindowState {
|
||||
pub dragging: bool,
|
||||
|
||||
pub skip_taskbar: bool,
|
||||
|
||||
pub use_system_wheel_speed: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
@@ -187,6 +189,8 @@ impl WindowState {
|
||||
dragging: false,
|
||||
|
||||
skip_taskbar: false,
|
||||
|
||||
use_system_wheel_speed: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user