Skip to content

Commit

Permalink
dxgi horizontal scrolling support
Browse files Browse the repository at this point in the history
  • Loading branch information
lightmanLP committed Jan 2, 2025
1 parent a3b1674 commit 020bc9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/graphic/Fast3D/gfx_dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,10 @@ static LRESULT CALLBACK gfx_dxgi_wnd_proc(HWND h_wnd, UINT message, WPARAM w_par
on_mouse_button_up(btn);
break;
}
case WM_MOUSEHWHEEL:
dxgi.mouse_wheel[0] = GET_WHEEL_DELTA_WPARAM(w_param) / WHEEL_DELTA;
break;
case WM_MOUSEWHEEL:
dxgi.mouse_wheel[0] = 0;
dxgi.mouse_wheel[1] = GET_WHEEL_DELTA_WPARAM(w_param) / WHEEL_DELTA;
break;
case WM_DROPFILES:
Expand Down

0 comments on commit 020bc9b

Please sign in to comment.