mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
app/internal/window: (Windows) report pressed buttons for Move events
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -185,6 +185,7 @@ func windowProc(hwnd syscall.Handle, msg uint32, wParam, lParam uintptr) uintptr
|
|||||||
Type: pointer.Move,
|
Type: pointer.Move,
|
||||||
Source: pointer.Mouse,
|
Source: pointer.Mouse,
|
||||||
Position: p,
|
Position: p,
|
||||||
|
Buttons: w.pointerBtns,
|
||||||
Time: windows.GetMessageTime(),
|
Time: windows.GetMessageTime(),
|
||||||
})
|
})
|
||||||
case windows.WM_MOUSEWHEEL:
|
case windows.WM_MOUSEWHEEL:
|
||||||
@@ -266,6 +267,7 @@ func (w *window) scrollEvent(wParam, lParam uintptr) {
|
|||||||
Type: pointer.Move,
|
Type: pointer.Move,
|
||||||
Source: pointer.Mouse,
|
Source: pointer.Mouse,
|
||||||
Position: p,
|
Position: p,
|
||||||
|
Buttons: w.pointerBtns,
|
||||||
Scroll: f32.Point{Y: -dist},
|
Scroll: f32.Point{Y: -dist},
|
||||||
Time: windows.GetMessageTime(),
|
Time: windows.GetMessageTime(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user