Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #663
Browse files Browse the repository at this point in the history
Fixed mouse wheel direction
  • Loading branch information
slouken committed Jan 3, 2009
1 parent 804ca93 commit ba63640
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/video/win32/SDL_win32events.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit ba63640

Please sign in to comment.