src/video/cocoa/SDL_cocoawindow.m
changeset 6044 35448a5ea044
parent 5873 be86fd8dca58
child 6108 f3c34d321289
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Mon Oct 31 03:06:32 2011 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Oct 31 05:56:58 2011 -0400
     1.3 @@ -20,6 +20,8 @@
     1.4  */
     1.5  #include "SDL_config.h"
     1.6  
     1.7 +#if SDL_VIDEO_DRIVER_COCOA
     1.8 +
     1.9  #include "SDL_syswm.h"
    1.10  #include "SDL_timer.h"  /* For SDL_GetTicks() */
    1.11  #include "../SDL_sysvideo.h"
    1.12 @@ -277,8 +279,6 @@
    1.13  
    1.14  - (void)mouseEntered:(NSEvent *)theEvent
    1.15  {
    1.16 -    SDL_Mouse *mouse = SDL_GetMouse();
    1.17 -
    1.18      SDL_SetMouseFocus(_data->window);
    1.19  
    1.20      SDL_SetCursor(NULL);
    1.21 @@ -991,4 +991,6 @@
    1.22      }
    1.23  }
    1.24  
    1.25 +#endif /* SDL_VIDEO_DRIVER_COCOA */
    1.26 +
    1.27  /* vi: set ts=4 sw=4 expandtab: */