Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed bug #663

Fixed mouse wheel direction
  • Loading branch information
slouken committed Jan 3, 2009
1 parent 804ca93 commit ba6364064fa5d7f7a340d315676c2a90d14ba68c
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/video/win32/SDL_win32events.c
@@ -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);
}

0 comments on commit ba63640

Please sign in to comment.