src/events/SDL_mouse.c
changeset 9257 6f41196c2d6b
parent 9161 6e34073ef024
child 9334 5eb5ab33286e
     1.1 --- a/src/events/SDL_mouse.c	Wed Dec 03 10:55:23 2014 -0500
     1.2 +++ b/src/events/SDL_mouse.c	Sun Nov 23 21:09:54 2014 -0500
     1.3 @@ -397,7 +397,7 @@
     1.4  }
     1.5  
     1.6  int
     1.7 -SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, int x, int y)
     1.8 +SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, int x, int y, SDL_MouseWheelDirection direction)
     1.9  {
    1.10      SDL_Mouse *mouse = SDL_GetMouse();
    1.11      int posted;
    1.12 @@ -419,6 +419,7 @@
    1.13          event.wheel.which = mouseID;
    1.14          event.wheel.x = x;
    1.15          event.wheel.y = y;
    1.16 +        event.wheel.direction = (Uint32)direction;
    1.17          posted = (SDL_PushEvent(&event) > 0);
    1.18      }
    1.19      return posted;