# HG changeset patch # User Ryan C. Gordon # Date 1113733961 0 # Node ID 8e1815fd977732e90e09c19de16465df3ea0d4c3 # Parent b4117292e58755984bbd02756006822cd570634a Holding down shift while moving the mouse's scrollwheel on MacOS X makes the OS report these are "horizontal scrollwheel" events, which confuses gaming apps in several legitimate conditions. Now all scrollwheel events are made to look vertical when passed to the app. Patch by John Knottenbelt. http://www.libsdl.org/pipermail/sdl/2005-March/067978.html diff -r b4117292e587 -r 8e1815fd9777 src/video/quartz/SDL_QuartzEvents.m --- a/src/video/quartz/SDL_QuartzEvents.m Sun Apr 17 10:27:00 2005 +0000 +++ b/src/video/quartz/SDL_QuartzEvents.m Sun Apr 17 10:32:41 2005 +0000 @@ -900,10 +900,11 @@ break; case NSScrollWheel: if ( isInGameWin ) { - float dy; + float dy, dx; Uint8 button; dy = [ event deltaY ]; - if ( dy > 0.0 ) /* Scroll up */ + dx = [ event deltaX ]; + if ( dy > 0.0 || dx > 0.0 ) /* Scroll up */ button = SDL_BUTTON_WHEELUP; else /* Scroll down */ button = SDL_BUTTON_WHEELDOWN;