summaryrefslogtreecommitdiff
path: root/platform_win32.c
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-14 13:04:56 +0200
committerkkard2 <[email protected]>2025-09-14 13:04:56 +0200
commit8af35e5ed10f1b4cbef908948355a2832ea36fbe (patch)
tree39893f071aee046dfad11bdf1494873e9ec49da1 /platform_win32.c
parentd30d4c2c3832c1e4df1d4fb266b04ca4dfdd828b (diff)
uv
Diffstat (limited to 'platform_win32.c')
-rw-r--r--platform_win32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform_win32.c b/platform_win32.c
index be4d478..a8facc4 100644
--- a/platform_win32.c
+++ b/platform_win32.c
@@ -1,5 +1,6 @@
#define UNICODE
#include <windows.h>
+#include <windowsx.h>
#include <assert.h>
#include <stdio.h>
#include <io.h>
@@ -74,6 +75,11 @@ LRESULT __stdcall WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
// TODO(kard): handle properly? (what does that even mean)
assert(update_canvas(&canvas, width, height));
}
+ case WM_MOUSEMOVE: {
+ int32_t x = GET_X_LPARAM(lParam);
+ int32_t y = GET_Y_LPARAM(lParam);
+ mouse_move(x, y);
+ }
default:
return DefWindowProc(hwnd, uMsg, wParam, lParam);
}