Page 1 of 1

How to change the keyboard device?

Posted: 01.09.2010, 09:21
by RacerBG
Hello again :) I want to change the keyboard device (I mean A,Z and ,.) :?
I want to make them WASD if its possible because in the menu they're locked for editing :(

Re: How to change the keyboard device?

Posted: 01.09.2010, 14:40
by Peze
Isn't AZ,. & space keyboard setting (since first GP) the best possible there is? With other racing sims or games I've always been trying to set keyboard first in GP's way if possible (usually not, and no gear changes with one button) :D

Re: How to change the keyboard device?

Posted: 01.09.2010, 15:25
by RacerBG
Peze wrote:Isn't AZ,. & space keyboard setting (since first GP) the best possible there is? With other racing sims or games I've always been trying to set keyboard first in GP's way if possible (usually not, and no gear changes with one button) :D
Yes but it is possible to change this keys :?:

Re: How to change the keyboard device?

Posted: 01.09.2010, 17:43
by Life Racing Engines
I don't know if it's possible but I'm sure driving wouldn't be any easier with WASD...

Re: How to change the keyboard device?

Posted: 02.09.2010, 23:58
by AAS
With DosBox / D-Fend Reloaded you can try to change to WASD with the KeyMapper. :-k
http://www.dosbox.com/DOSBoxManual.html#KeyMapper

I don't know how it works. Never tested here.

Re: How to change the keyboard device?

Posted: 03.09.2010, 10:42
by RacerBG
I will try that thanks 8)

Re: How to change the keyboard device?

Posted: 03.09.2010, 11:08
by RacerBG
Its really works \:D/ Thank you you are a genius :wink: Now I have one free hand (right hand) \:D/ Its very easy and if you wish I can explain how its works what you think :?:

Re: How to change the keyboard device?

Posted: 03.09.2010, 11:13
by AAS
RacerBG wrote:Its very easy and if you wish I can explain how its works what you think :?:
Good idea. Go ahead!

Re: How to change the keyboard device?

Posted: 03.09.2010, 18:10
by RacerBG
So this will be explained for first time :)

program used :arrow: 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 :arrow:

"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 :arrow: If you wish to drive with WASD keys like me :) do this :arrow: 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,. \:D/

And for the joystick users I will copy the manual explanation here :arrow: "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 8) I hope this tutorial was helpful :)

POST EDITED

Re: How to change the keyboard device?

Posted: 03.09.2010, 23:22
by AAS

Code: Select all

press with your mouse "A" key and then press your real key "W" for acceleration
Does it work for you in this way? Not for me. :?

For me it works when I
-press with the mouse the "A" key
-press with the mouse the "Add" button
-press the real key "W"

Now it works with WASD.
The "A" key has now two functions. The new function "left" and still "acceleration"
I think I can fix that whit the keymapper.

Re: How to change the keyboard device?

Posted: 04.09.2010, 10:09
by RacerBG
AAS wrote:

Code: Select all

press with your mouse "A" key and then press your real key "W" for acceleration
Does it work for you in this way? Not for me. :?

For me it works when I
-press with the mouse the "A" key
-press with the mouse the "Add" button
-press the real key "W"

Now it works with WASD.
The "A" key has now two functions. The new function "left" and still "acceleration"
I think I can fix that whit the keymapper.
Yes I forgot to add this :lol: Sorry for that and this is true now the key have two functions but this is no problem for example W have function A if you have written something in DOSOBOX :roll:

I had edited my post now 8)