[SDL] Another SDL/MacOS problem

Max Horn max at quendi.de
Fri Jan 12 17:30:58 PST 2001

As was discussed many moons ago here, on MacOS, if you debug SDL 
programs with CodeWarrior, the debugger will change your eventMask 
for his needs. This causes SDL to act wierd for key input.

A simple fix for this is to edit SDL_macevents.c, function 
Mac_HandleActivate(), and add this into the if(activate) {... } part:
   /* put our mask back in case it changed during context switch */
   SetEventMask(everyEvent - autoKeyMask);

Otherwise it is really hard to debug key input properly.

Max Horn
International C/C++/Internet Development

email: <mailto:max at quendi.de>
   web: <http://www.quendi.de>
phone: (+49) 6151-494890

More information about the SDL mailing list