Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix double mouse motion in OS X

Simply ignore the event handler for Windowed mode in fullscreen.
  • Loading branch information
jjgod committed Jan 20, 2011
1 parent 8b901db commit 21e988d9a97ca79884977a16504e35af5dcc78ca
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/cocoa/SDL_cocoawindow.m
@@ -232,6 +232,9 @@ - (void)mouseMoved:(NSEvent *)theEvent
SDL_Window *window = _data->window;
NSPoint point;

if (window->flags & SDL_WINDOW_FULLSCREEN)
return;

point = [theEvent locationInWindow];
point.y = window->h - point.y;
if ( point.x < 0 || point.x >= window->w ||

0 comments on commit 21e988d

Please sign in to comment.