First post, by simonkay
Hi
For DOSBox on Mac, the pause key is F16. But, my Mac Book Pro laptop only goes up to F12. I believe F13-F16 only exist on Mac desktops.
I only actually care about pause to break into the debugger, not pause in general.
So, as a workaround, I edited src/debug/debug.cpp, looked for line in DEBUG_Init:
MAPPER_AddHandler(DEBUG_Enable,MK_pause,MMOD2,"debugger","Debugger");
and changed it to use another key. I picked Alt+F2 instead:
MAPPER_AddHandler(DEBUG_Enable,MK_f2,MMOD2,"debugger","Debugger");
Recompiled it and it works fine for me. (I am using latest SVN, r4003).
Now, maybe Alt+F2 is not the best key combination. (does it conflict with keyboard layout switching??? I don't use that myself.) But anyway, some better mapping than F16 should be found for pause key, for the benefit of those using Mac laptops who don't have a pause key and don't have F16 either. (I guess actually fixing this would mean modifying the mapping table in src/gui/sdl_mapper.cpp somehow, but I don't really know what I am doing there, and the above workaround is sufficient for me for now.)
Thanks
Simon