src/video/cocoa_v.mm
changeset 6289 9f468eccc674
parent 6248 e4a2ed7e5613
child 6317 70f4e9e52eb1
--- a/src/video/cocoa_v.mm	Sun Mar 11 02:53:44 2007 +0000
+++ b/src/video/cocoa_v.mm	Sun Mar 11 10:55:35 2007 +0000
@@ -68,6 +68,7 @@
 #include "../debug.h"
 #include "../macros.h"
 #include "../os/macosx/splash.h"
+#include "../variables.h"
 #include "cocoa_v.h"
 #include "cocoa_keys.h"
 
@@ -653,6 +654,10 @@
 			} else if ([ event deltaY ] < 0.0) { /* Scroll down */
 				_cursor.wheel++;
 			} /* else: deltaY was 0.0 and we don't want to do anything */
+
+			/* Set the scroll count for scrollwheel scrolling */
+			_cursor.h_wheel -= (int)([ event deltaX ]* 5 * _patches.scrollwheel_multiplier);
+			_cursor.v_wheel -= (int)([ event deltaY ]* 5 * _patches.scrollwheel_multiplier);
 			break;
 
 		default: