VOGONS


Mapping macros

Topic actions

First post, by Fred8128

User metadata
Rank Newbie
Rank
Newbie

Hi,

I was wondering if it is possible to assign a key combination to a single key using DOSBox's keymapper. To be precise, I would like DOSBox to send a Ctrl+a event when I press the a key on my keyboard.

I have read the keymapper's documentation and tried to remap in a few ways without successfully acheiving the desired result. The reason I want this mapping is to strafe left and right in Wolfenstein 3D using just the a and d keys, without having to manually press the strafe toggle key.

One thing I tried was to just add key_a and key_d as new bindings to the left_ctrl_key event. I would have thought pressing a would then send both a left_ctrl_key and a key_a event. However this does not seem to do the trick in Wolf3d. Is there a way to send an actual Ctrl+a event?

I also tried using the mod1, 2, 3 and hold buttons in the keymapper interface, but I don't quite understand how those are supposed to work.

Thank you!

Reply 1 of 1, by Fred8128

User metadata
Rank Newbie
Rank
Newbie

Hi,

Actually, what I had tried seems to work now. Not sure why it didn't at first. Maybe closing and reopening DOSBox did it.

For anyone else wondering, adding key_a and key_d bindings to the left_ctrl_key event allows me to simulate holding down Ctrl and pressing a or d while actualy only pressing a or d on the keyboard.

Thanks!