VOGONS


Multi-key remapping

Topic actions

First post, by zorrobandito

User metadata
Rank Newbie
Rank
Newbie

I saw another poster on here that was bothered by the shallow instructions for the DOSBox keymapper. His issue was resolved by another means but mine remains.

It seems like a simple enough request but how do you map Alt-Q to Esc? In fact how do you map any button combo to another key?

I understand the principles (destination key -> Add -> Source key) and have successfully mapped single keys without a problem but the multi-key aspect escapes me.

Can anyone help?

Reply 1 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The mapper is NOT intended to remap key combinations but to exchange
physical keys. Depending on the game it may work to add (means pressing
it on your real keyboard) escape to the two keys on the mapper display
(alt and q).

Last edited by wd on 2010-11-13, 21:40. Edited 1 time in total.

Reply 2 of 6, by zorrobandito

User metadata
Rank Newbie
Rank
Newbie

Ah, that would explain it. Thanks.

And thanks for a great program!

Reply 3 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Did you get it working that way?

Reply 4 of 6, by zorrobandito

User metadata
Rank Newbie
Rank
Newbie

Nope, I can't work it out and I've tried both directions in case I was getting mixed up. Take Prince of Persia 2 for instance. It uses Alt-L to open the Load menu.

So, pressing Ctrl-F1, I bring up the mapper
I press 'L' on the virtual keyboard and then press the bottom-left mod2 button, believing it to be the alt-key.
I then press the Add button and press 'a'.

In theory, I press 'a' on my keyboard and I get the load game screen.

So I tried it the other way:

I press 'A' and the virtual keyboard and then the Add button. I then press Alt-L. However, the mapper only recognises one of those keys no matter how close together I press them.

I could always use AHK with DOSBox for its re-mapping capabilities but it does seem a shame as I get unreliable results with AHK.

Reply 5 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

So, pressing Ctrl-F1, I bring up the mapper
I press 'L' on the virtual keyboard and then press the bottom-left mod2 button, believing it to be the alt-key.
I then press the Add button and press 'a'.

Try this: choose some free combination (like f1 if prince doesn't use that)
which will be your shortcut.
Click on L on the mapper keyboard (that should be mapped to "key l" only
at the moment) and hit ADD, then press your hotkey (f1 or something).
With the NEXT button you can see what the virtual L is being generated from.
Now click on the alt key (not the MOD one) and repeat, same hotkey f1.

Now if you press F1, three keys are sent to the emulated application:
L, ALT and F1. You can remove the last by clicking on the F1 button on the
virtual keyboard and removing the bind.

Reply 6 of 6, by zorrobandito

User metadata
Rank Newbie
Rank
Newbie

Though I wanted it to, it didn't work. It just seems to send 'L' alone without the alt. It's a shame but I'll workaround it.

Thanks for the suggestion.