Commit e5796d2a authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #663

Fixed mouse wheel direction

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403437
parent dd23674b
...@@ -286,10 +286,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) ...@@ -286,10 +286,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2); SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2);
} }
if (flags & RI_MOUSE_WHEEL) { if (flags & RI_MOUSE_WHEEL) {
if (raw->data.mouse.usButtonData != 0) { SDL_SendMouseWheel(index, 0,
SDL_SendMouseWheel(index, 0, (short)raw->data.mouse.usButtonData);
raw->data.mouse.usButtonData);
}
} }
SDL_stack_free(lpb); SDL_stack_free(lpb);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment