Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzEvents.m @ 683:5d2f027b3349
Date: Sat, 9 Aug 2003 20:14:06 -0400
From: Darrell Walisser
Subject: Re: Updated projects?
>> Did you get a chance to look at my "Custom Cocoa" demo? I have a few
>> minor patches that enable SDL/Cocoa integration, and a project
>> template.
>
> I didn't yet, but go ahead and send me the patches. :)
>
I updated the patch for current CVS. There are a lot of changes, but I
don't think I've broken anything. This patch also improves the behavior
of window minimize/deminimize.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 10 Aug 2003 07:21:43 +0000 |
parents | abfdc08eb289 |
children | c5b2b6d2d1fe |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzEvents.m Sat Aug 09 22:49:28 2003 +0000 +++ b/src/video/quartz/SDL_QuartzEvents.m Sun Aug 10 07:21:43 2003 +0000 @@ -251,6 +251,9 @@ SDL_PrivateKeyboard (state, &key); } } + + if (getenv ("SDL_ENABLEAPPEVENTS")) + [ NSApp sendEvent:event ]; } static void QZ_DoModifiers (_THIS, unsigned int newMods) { @@ -464,7 +467,7 @@ type = [ event type ]; isForGameWin = (qz_window == [ event window ]); - isInGameWin = (mode_flags & SDL_FULLSCREEN) ? true : NSPointInRect([event locationInWindow], winRect); + isInGameWin = (mode_flags & SDL_FULLSCREEN) ? true : NSPointInRect([event locationInWindow], [ window_view frame ]); switch (type) { case NSLeftMouseDown: if ( getenv("SDL_HAS3BUTTONMOUSE") ) {