Fixed mouse wheel direction

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403437
This commit is contained in:
Sam Lantinga 2009-01-03 06:12:05 +00:00
parent dd23674bb7
commit e5796d2a53

View file

@ -286,10 +286,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2);
}
if (flags & RI_MOUSE_WHEEL) {
if (raw->data.mouse.usButtonData != 0) {
SDL_SendMouseWheel(index, 0,
raw->data.mouse.usButtonData);
}
SDL_SendMouseWheel(index, 0,
(short)raw->data.mouse.usButtonData);
}
SDL_stack_free(lpb);
}