mirror of
https://github.com/NoelFB/blah.git
synced 2026-11-10 00:35:14 +08:00
mouse wheel input to win32 platform backend
This commit is contained in:
1 parent
94f25cea88
commit
0a9f825660
1 file changed
+5
-1
@@ -253,7 +253,11 @@ LRESULT CALLBACK blah_window_procedure(HWND hwnd, UINT msg, WPARAM wParam, LPARA
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_MOUSEMOVE:
|
case WM_MOUSEMOVE:
|
||||||
InputBackend::on_mouse_move((u16)(lParam), lParam >> 16);
|
InputBackend::on_mouse_move((float)((u16)lParam), (float)(lParam >> 16));
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
case WM_MOUSEWHEEL:
|
||||||
|
InputBackend::on_mouse_wheel(Point(0, GET_WHEEL_DELTA_WPARAM(wParam) / WHEEL_DELTA));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
|
|||||||
Reference in new issue
Block a user