src/SDL_compat.c
changeset 3585 f8816ffa210b
parent 3581 15eea7a1fa97
child 3592 25dc4a86132c
equal deleted inserted replaced
3584:41d01d70659c 3585:f8816ffa210b
   283             if (event->wheel.y == 0) {
   283             if (event->wheel.y == 0) {
   284                 break;
   284                 break;
   285             }
   285             }
   286 
   286 
   287             selected = SDL_SelectMouse(event->wheel.which);
   287             selected = SDL_SelectMouse(event->wheel.which);
   288             SDL_GetMouseState(selected, &x, &y);
   288             SDL_GetMouseState(&x, &y);
   289             SDL_SelectMouse(selected);
   289             SDL_SelectMouse(selected);
   290 
   290 
   291             if (event->wheel.y > 0) {
   291             if (event->wheel.y > 0) {
   292                 button = SDL_BUTTON_WHEELUP;
   292                 button = SDL_BUTTON_WHEELUP;
   293             } else {
   293             } else {