So this will be explained for first time
program used
DOSBOX 0.74 (this can be done with older versions too)
1.So start your
DOSBOX and press
ctrl and
F1 keys to activate the keymapper
2.Now you must see virtual keyboard with keys like real one
3.Now I will give an example
"These virtual devices correspond to the keys and events DOSBox will report to the DOS applications. If you click on a button with your mouse, you can see in the lower left corner with which event it is associated (EVENT) and to what events it is currently bound.
Event: EVENT
BIND: BIND (the real key/button/axis you push with your finger/hand)"
(this was from orig. manual)
And now the example
If you wish to drive with WASD keys like me
do this
press with your mouse "A" key and then click on
Add and press your real key "W" for acceleration
Do the same things for the other keys too (Z=S ,=A .=D).And now you can play with WASD keys not with AZ,.
And for the
joystick users I will copy the manual explanation here
"You have a joystick attached, it is working fine under DOSBox and you want to play some keyboard-only game with the joystick (it is assumed that the game is controlled by the arrows on the keyboard):
1. Start the mapper, then click on one of the left keyboard arrow. EVENT should be key_left. Now click on Add and move your joystick in the respective direction, this should add an event to the BIND.
2. Repeat the above for the missing three directions, additionally the buttons of the joystick can be remapped as well (fire/jump).
3. Click on Save, then on Exit and test it with some game.
You want to swap the y-axis of the joystick because some flightsim uses the up/down joystick movement in a way you don't like, and it is not configurable in the game itself:
1. Start the mapper and click on Y- in the first joystick field. EVENT should be jaxis_0_1-.
2. Click on Del to remove the current binding, then click Add and move your joystick downwards. A new bind should be created.
3. Repeat this for Y+, save the layout and finally test it with some game.
If you want to remap anything to your d-pad/hat you will have to change 'joysticktype=auto' to 'joysticktype=fcs' in configuration file. Maybe this will be improved in the next dosbox version.
If you change the default mapping, you can save your changes by clicking on "Save". DOSBox will save the mapping to a location specified in the configuration file (the mapperfile= entry). At startup, DOSBox will load your mapperfile, if it is present in the DOSBox configuration file."
Thtas all if you have questions ask it here
I hope this tutorial was helpful
POST EDITED