Mercurial > games > semicongine
changeset 250:93bdbb969708
fix: wrong type
author | sam <sam@basx.dev> |
---|---|
date | Tue, 23 May 2023 18:17:15 +0700 |
parents | 0ec43b857a7e |
children | 9289776cd61c |
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)