Mouse scroll wheel scrolling is not working while the shift key is
held down. This must be some sort of bug because the exact same code
produces different results on windows than it does on a mac. Command,
Control, and Alt all work fine, but the shift key disables scrolling.
I believe it worked in older versions of SDL (prior to 1.2.13). I
thought I might have been doing something wrong with my program, so I
tried using one of the sample SDL programs linked to from the SDL
tutorials page, SDL and SDL and OpenGL(http://www.meandmark.com/sdlopenglpart1.html
I just modified the EventLoop function.
while((!done) && (SDL_WaitEvent(&event)))
// Scroll doesn’t register while shift key is held down.
if(event.button.button == SDL_BUTTON_WHEELDOWN)
else if(event.button.button == SDL_BUTTON_WHEELUP)
const SDL_version * v = SDL_Linked_Version();// I am using 1.2.13
printf(“Version: %u.%u.%u\n”, v->major, v->minor, v->patch);
printf(“You are holding the SDLK_LSHIFT key down. Scrolling is
printf(“You released the SDLK_LSHIFT key. Scrolling will work
done = true;
} // End switch
} // End while
Does anyone know why this might be occurring?