# HG changeset patch # User sam # Date 1684840635 -25200 # Node ID a250ae05bbf723b7d541cc5a587c57f9d2357d86 # Parent e1a789902e4f45f44798a5cf7b15451c1144ba65 fix: wrong type diff -r e1a789902e4f -r a250ae05bbf7 src/semicongine/platform/windows/window.nim --- a/src/semicongine/platform/windows/window.nim Tue May 23 16:29:01 2023 +0700 +++ b/src/semicongine/platform/windows/window.nim Tue May 23 18:17:15 2023 +0700 @@ -57,7 +57,7 @@ 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))) + currentEvents.add(Event(eventType: events.MouseWheel, amount: float32(GET_WHEEL_DELTA_WPARAM(wParam)))) else: return DefWindowProc(hwnd, uMsg, wParam, lParam)