First post, by philpem
Hi,
I noticed that "make DOSBox pause when it loses input focus" is on the to-do list, so I figured I'd have a go at implementing it. Turns out it wasn't a particularly hard thing to implement, but adding the "spit and polish" is proving a little difficult.
What I want to do is add a key shortcut to DOSBox (like the Alt-Fx keys used for tweaking CPU cycles and frameskip) so I can disable the feature if I need to, and also add an entry to the config file so I can have auto-pause enabled or disabled when DOSBox is started up.
Can someone tell me what bits of code I should look at to figure out how to go about doing this? I had a quick look at /src/gui/sdl_mapper.cpp and sdl_main.cpp but I can't see how to go about doing what I want to do... I think I'm probably looking at the wrong bit of code 😀
Finally, what's the procedure for submitting code to the DOSBox project? Do I need to apply for developer status or do I just post the patches here? (I'm registered with Sourceforge, username 'philpem').
Thanks,
Phil.