src/events/SDL_mouse.c
changeset 12462 b57435750c5b
parent 12188 f081a5675f93
child 12466 b442834306a8
equal deleted inserted replaced
12461:14205d7f7715 12462:b57435750c5b
   543 
   543 
   544     if (window) {
   544     if (window) {
   545         SDL_SetMouseFocus(window);
   545         SDL_SetMouseFocus(window);
   546     }
   546     }
   547 
   547 
   548     if (!x && !y) {
   548     if (x == 0. && y == 0.) {
   549         return 0;
   549         return 0;
   550     }
   550     }
   551 
   551 
   552     mouse->accumulated_wheel_x += x;
   552     mouse->accumulated_wheel_x += x;
   553     if (mouse->accumulated_wheel_x > 0) {
   553     if (mouse->accumulated_wheel_x > 0) {