From c28075cce1c8fa07d79a7a3c3979c54885c04241 Mon Sep 17 00:00:00 2001 From: Micha Mettke Date: Thu, 8 Oct 2015 09:51:16 -0700 Subject: [PATCH] added scrolling to win32 demo --- demo/win32/win32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demo/win32/win32.c b/demo/win32/win32.c index 83d0252..895661d 100644 --- a/demo/win32/win32.c +++ b/demo/win32/win32.c @@ -423,6 +423,8 @@ WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR lpCmdLine, int shown) input_motion(&gui.input, &msg); else if (msg.message == WM_CHAR) input_text(&gui.input, &msg); + else if (msg.message == WM_MOUSEWHEEL) + zr_input_scroll(&gui.input, GET_WHEEL_DELTA_WPARAM(msg.wParam)/120); TranslateMessage(&msg); DispatchMessage(&msg); }