mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-28 16:58:57 +08:00
mouse wheel input to win32 platform backend
This commit is contained in:
parent
94f25cea88
commit
0a9f825660
|
@ -253,7 +253,11 @@ LRESULT CALLBACK blah_window_procedure(HWND hwnd, UINT msg, WPARAM wParam, LPARA
|
|||
return 0;
|
||||
|
||||
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;
|
||||
|
||||
case WM_KEYDOWN:
|
||||
|
|
Loading…
Reference in New Issue
Block a user