Add enhancement to support scroll wheel for inventory

This commit is contained in:
Parker Hawke
2023-07-31 10:20:16 -04:00
parent cb085a8956
commit 444bc4ae2e
3 changed files with 36 additions and 0 deletions

View File

@@ -135,6 +135,12 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
break;
}
#ifdef ENH_ALLOW_SCROLL_WHEEL
case WM_MOUSEWHEEL:
Mouse::feed(3, GET_WHEEL_DELTA_WPARAM(wParam), g_MousePosX, g_MousePosY);
break;
#endif
case WM_SIZE:
{
UINT width = LOWORD(lParam);