src/video/cocoa/SDL_cocoamouse.m
changeset 5058 03db7d4b02b4
parent 5057 bdff53ed6c8b
child 5060 2170edcdfbd0
equal deleted inserted replaced
5057:bdff53ed6c8b 5058:03db7d4b02b4
   106         break;
   106         break;
   107     }
   107     }
   108 }
   108 }
   109 
   109 
   110 void
   110 void
   111 Cocoa_QuitMouse(_THIS)
       
   112 {
       
   113 }
       
   114 
       
   115 void
       
   116 Cocoa_HandleMouseWheel(SDL_Window *window, NSEvent *event)
   111 Cocoa_HandleMouseWheel(SDL_Window *window, NSEvent *event)
   117 {
   112 {
   118     float x = [event deltaX];
   113     float x = [event deltaX];
   119     float y = [event deltaY];
   114     float y = [event deltaY];
   120 
   115 
   129         y -= 0.9f;
   124         y -= 0.9f;
   130     }
   125     }
   131     SDL_SendMouseWheel(window, (int)x, (int)y);
   126     SDL_SendMouseWheel(window, (int)x, (int)y);
   132 }
   127 }
   133 
   128 
       
   129 void
       
   130 Cocoa_QuitMouse(_THIS)
       
   131 {
       
   132 }
       
   133 
   134 /* vi: set ts=4 sw=4 expandtab: */
   134 /* vi: set ts=4 sw=4 expandtab: */