# HG changeset patch # User sam # Date 1684840635 -25200 # Node ID 93bdbb969708e389dd7d7ba93e310007a0e98b14 # Parent 0ec43b857a7e1e2c2c788afaa7cdaced169f7a9c fix: wrong type diff -r 0ec43b857a7e -r 93bdbb969708 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)