Mercurial > sdl-ios-xcode
comparison src/video/maccommon/SDL_macevents.c @ 168:e92aa316c517
Added Max's patches for building MacOS X apps on command line
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 04 Sep 2001 23:18:45 +0000 |
parents | 2d162219f433 |
children | 49bf25403f5e |
comparison
equal
deleted
inserted
replaced
167:cb384ef627f6 | 168:e92aa316c517 |
---|---|
70 if ( activate ) { | 70 if ( activate ) { |
71 /* Show the current SDL application cursor */ | 71 /* Show the current SDL application cursor */ |
72 SDL_SetCursor(NULL); | 72 SDL_SetCursor(NULL); |
73 | 73 |
74 /* put our mask back case it changed during context switch */ | 74 /* put our mask back case it changed during context switch */ |
75 SetEventMask(everyEvent - autoKeyMask); | 75 SetEventMask(everyEvent & ~autoKeyMask); |
76 } else { | 76 } else { |
77 #if TARGET_API_MAC_CARBON | 77 #if TARGET_API_MAC_CARBON |
78 { Cursor cursor; | 78 { Cursor cursor; |
79 SetCursor(GetQDGlobalsArrow(&cursor)); | 79 SetCursor(GetQDGlobalsArrow(&cursor)); |
80 } | 80 } |
615 | 615 |
616 /* Get rid of spurious events at startup */ | 616 /* Get rid of spurious events at startup */ |
617 FlushEvents(everyEvent, 0); | 617 FlushEvents(everyEvent, 0); |
618 | 618 |
619 /* Allow every event but keyrepeat */ | 619 /* Allow every event but keyrepeat */ |
620 SetEventMask(everyEvent - autoKeyMask); | 620 SetEventMask(everyEvent & ~autoKeyMask); |
621 } | 621 } |
622 | 622 |
623 void Mac_QuitEvents(_THIS) | 623 void Mac_QuitEvents(_THIS) |
624 { | 624 { |
625 ClearMenuBar(); | 625 ClearMenuBar(); |