src/video/cocoa/SDL_cocoamouse.m
changeset 8232 8976fb30952f
parent 8149 681eb46b8ac4
child 8260 028ed8da2524
equal deleted inserted replaced
8231:ad3edb1923f2 8232:8976fb30952f
   289 void
   289 void
   290 Cocoa_HandleMouseWheel(SDL_Window *window, NSEvent *event)
   290 Cocoa_HandleMouseWheel(SDL_Window *window, NSEvent *event)
   291 {
   291 {
   292     SDL_Mouse *mouse = SDL_GetMouse();
   292     SDL_Mouse *mouse = SDL_GetMouse();
   293 
   293 
   294     float x = [event deltaX];
   294     float x = -[event deltaX];
   295     float y = [event deltaY];
   295     float y = [event deltaY];
   296 
   296 
   297     if (x > 0) {
   297     if (x > 0) {
   298         x += 0.9f;
   298         x += 0.9f;
   299     } else if (x < 0) {
   299     } else if (x < 0) {