fix windows + rename to dx/dy everywhere

This commit is contained in:
Ferdinand Schober
2024-07-09 18:58:01 +02:00
parent 306e0e6a60
commit eaa3d9d5b3
5 changed files with 12 additions and 23 deletions

View File

@@ -145,10 +145,11 @@ fn to_mouse_event(wparam: WPARAM, lparam: LPARAM) -> Option<PointerEvent> {
let (x, y) = (mouse_low_level.pt.x, mouse_low_level.pt.y);
let (ex, ey) = ENTRY_POINT;
let (dx, dy) = (x - ex, y - ey);
let (dx, dy) = (dx as f64, dy as f64);
Some(PointerEvent::Motion {
time: 0,
relative_x: dx as f64,
relative_y: dy as f64,
dx: dx as f64,
dy: dy as f64,
})
},
WPARAM(p) if p == WM_MOUSEWHEEL as usize => Some(PointerEvent::AxisDiscrete120 {