src/video/quartz/SDL_QuartzEvents.m
changeset 631 52864d66d168
parent 624 fb78cadbfeb8
child 664 abfdc08eb289
equal deleted inserted replaced
630:550bccdf04bd 631:52864d66d168
   581                         if ( p.y >= winRect.size.height ) 
   581                         if ( p.y >= winRect.size.height ) 
   582                             p.y = winRect.size.height-1;
   582                             p.y = winRect.size.height-1;
   583                         
   583                         
   584                         QZ_PrivateWarpCursor (this, p.x, p.y);
   584                         QZ_PrivateWarpCursor (this, p.x, p.y);
   585                     }
   585                     }
       
   586                     else
       
   587                     if ( !isInGameWin && (SDL_GetAppState() & SDL_APPMOUSEFOCUS) ) {
       
   588                     
       
   589                         SDL_PrivateAppActive (0, SDL_APPMOUSEFOCUS);
       
   590                     }
       
   591                     else
       
   592                     if ( isInGameWin && !(SDL_GetAppState() & SDL_APPMOUSEFOCUS) ) {
       
   593                     
       
   594                         SDL_PrivateAppActive (1, SDL_APPMOUSEFOCUS);
       
   595                     }
   586                     break;
   596                     break;
   587                 case NSScrollWheel:
   597                 case NSScrollWheel:
   588                     if ( isInGameWin ) {
   598                     if ( isInGameWin ) {
   589                         float dy;
   599                         float dy;
   590                         Uint8 button;
   600                         Uint8 button;