added scrolling to win32 demo

This commit is contained in:
Micha Mettke 2015-10-08 09:51:16 -07:00
parent f49a83c7d2
commit c28075cce1

View File

@ -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);
}