changeset 2975:317b2f8e5e4f

Fixed bug #663 Fixed mouse wheel direction
author Sam Lantinga <slouken@libsdl.org>
date Sat, 03 Jan 2009 06:12:05 +0000
parents d2f68ec8c1d0
children c250fb52ceb8
files src/video/win32/SDL_win32events.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c	Sat Jan 03 06:03:56 2009 +0000
+++ b/src/video/win32/SDL_win32events.c	Sat Jan 03 06:12:05 2009 +0000
@@ -286,10 +286,8 @@
                 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);
         }