VOGONS


First post, by alexey

User metadata
Rank Newbie
Rank
Newbie

Hello!
I'm using dosbox 0.74-4.2+b1 on Debian 9.
I would like to change the default binding for hand_pause from Alt-Pause to Alt-p, so I defined in ~/.dosbox/mapper-0.74.map:

hand_pause "key 112 mod2" 

And after this, pressing Alt-p indeed pauses the emulation, but I cannot resume by pressing this combination again. In fact, it requires pressing Alt-Pause to resume. Is there some hidden 'hand_resume' event which I can define?

Any insight on this issue would be greatly appreciated.

Thanks!

EDIT: minor change

Last edited by alexey on 2017-01-05, 10:40. Edited 1 time in total.

Reply 1 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

yep you are correct.
The pause loop has its own keyboard handling which doesn't use the mapper and thus can't be customized.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 3, by alexey

User metadata
Rank Newbie
Rank
Newbie
Qbix wrote:

The pause loop has its own keyboard handling which doesn't use the mapper and thus can't be customized.

Thanks for the über-quick response! Due to my keyboard's absense of a dedicated PAUSE key, I worked around the issue by performing a quick 'dirty' hack to PauseDOSBox() in sdlmain.cpp.

if(event.key.keysym.sym==SDLK_p) {

paused=false;
GFX_SetTitle(-1,-1,false);
break;
}

Thank you very much for explaining the issue and this wonderful piece of software!