changeset 711:a250ae05bbf7

fix: wrong type
author sam <sam@basx.dev>
date Tue, 23 May 2023 18:17:15 +0700
parents e1a789902e4f
children 7a7fb1a42811
files src/semicongine/platform/windows/window.nim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)