diff src/video/cocoa/SDL_cocoawindow.m @ 2152:003c1b5b07da

Fixed bug #382 Added horizontal scrolling support
author Sam Lantinga <slouken@libsdl.org>
date Fri, 06 Jul 2007 09:22:18 +0000
parents 4685ccd33d0e
children 44e49d3fa6cf
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 05 06:35:40 2007 +0000
+++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Jul 06 09:22:18 2007 +0000
@@ -274,7 +274,7 @@
     int index;
 
     index = _data->videodata->mouse;
-    SDL_SendMouseWheel(index, (int)([theEvent deltaY]+0.9f));
+    SDL_SendMouseWheel(index, (int)([theEvent deltaX]+0.9f), (int)([theEvent deltaY]+0.9f));
 }
 
 @end