src/SDL_compat.c
branchgsoc2008_manymouse
changeset 3776 a9c2a7071874
parent 2328 91e601d9df8b
child 2735 204be4fc2726
equal deleted inserted replaced
3775:e5011833348a 3776:a9c2a7071874
   254             if (event->wheel.y == 0) {
   254             if (event->wheel.y == 0) {
   255                 break;
   255                 break;
   256             }
   256             }
   257 
   257 
   258             selected = SDL_SelectMouse(event->wheel.which);
   258             selected = SDL_SelectMouse(event->wheel.which);
   259             SDL_GetMouseState(&x, &y);
   259             SDL_GetMouseState(selected, &x, &y);
   260             SDL_SelectMouse(selected);
   260             SDL_SelectMouse(selected);
   261 
   261 
   262             if (event->wheel.y > 0) {
   262             if (event->wheel.y > 0) {
   263                 button = SDL_BUTTON_WHEELUP;
   263                 button = SDL_BUTTON_WHEELUP;
   264             } else {
   264             } else {