# HG changeset patch # User Sam # Date 1684599977 -25200 # Node ID 4f17d04b8291b2f40df4e4b86fc4c96511819852 # Parent f05497ef8fd2f4809f60d3e1fed7f6ffbb30a7e0 add: mouse wheel in windows (untested) diff -r f05497ef8fd2 -r 4f17d04b8291 src/semicongine/platform/windows/window.nim --- a/src/semicongine/platform/windows/window.nim Sat May 20 23:21:03 2023 +0700 +++ b/src/semicongine/platform/windows/window.nim Sat May 20 23:26:17 2023 +0700 @@ -56,6 +56,8 @@ currentEvents.add(Event(eventType: MouseReleased, button: MouseButton.Mouse3)) of WM_MOUSEMOVE: currentEvents.add(Event(eventType: events.MouseMoved, x: GET_X_LPARAM(lParam), y: GET_Y_LPARAM(lParam))) + of WM_MOUSEWHEEL: + currentEvents.add(Event(eventType: events.MouseWheel, amount: GET_WHEEL_DELTA_WPARAM(wParam))) else: return DefWindowProc(hwnd, uMsg, wParam, lParam)