Mercurial > games > semicongine
diff semicongine/platform/windows/window.nim @ 1157:dd757eb5ca86
fix: minimizing window on windows breaks everything, also: do not try to acquire next frame for inifinity
author | sam@sambook-windows.localdomain |
---|---|
date | Sat, 15 Jun 2024 18:17:31 +0700 |
parents | 2ce0c75f5715 |
children |
line wrap: on
line diff
--- a/semicongine/platform/windows/window.nim Sat Jun 15 17:16:06 2024 +0700 +++ b/semicongine/platform/windows/window.nim Sat Jun 15 18:17:31 2024 +0700 @@ -66,6 +66,13 @@ 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: float32(GET_WHEEL_DELTA_WPARAM(wParam)) / WHEEL_DELTA)) + of WM_SIZING: + currentEvents.add(Event(eventType: ResizedWindow)) + of WM_SIZE: + if wParam == SIZE_MINIMIZED: + currentEvents.add(Event(eventType: MinimizedWindow)) + elif wParam == SIZE_RESTORED: + currentEvents.add(Event(eventType: RestoredWindow)) of WM_SETCURSOR: if LOWORD(lParam) == HTCLIENT: SetCursor(currentCursor)