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

File 1 of 1 in 21e988d

@@ -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.