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–
Max Horn
International C/C++/Internet Development
email: mailto:Max_Horn
web: http://www.quendi.de
phone: (+49) 6151-494890