Main > Software Forum
quick mame ini control question
Pages: (1/1)
Shieldwolf:
How do you type the keycode for this command?
P1_JOYSTICKRIGHT_UP
I want the up and right arrow on my keyboard for that command
How does it need to be written exactly so it will work?
Tiger-Heli:
--- Quote from: Shieldwolf on May 12, 2004, 06:37:37 pm ---How do you type the keycode for this command?
P1_JOYSTICKRIGHT_UP
I want the up and right arrow on my keyboard for that command
How does it need to be written exactly so it will work?
--- End quote ---
I'm assuming here that you have ctrlr.ini files set up and working, and that you want the P1_JOYSTICKRIGHT_UP (up right joystick on a 2 joystick game like Robotron or assault) command mapped to "the up and right arrow keys"
Line should read
P1_JOYSTICKRIGHT_UP "KEYCODE_UP KEYCODE RIGHT"
This gets placed in either the default.ini or gamename.ini file in you ctrlr files directory.
See http://www.mameworld.net/easyemu/mamecontrolini.htm for more info.
ErikRuud:
The information above is correct.
However...
You probably do not want to do that for Robotron. If you do, you will have to move the right stick to a diagonal (up and right) to go UP.
P1_JOYSTICKRIGHT_UP is the retting for UP on the righthand stick. It is NOT the setting for the Right Up diagonal direction.
Robotron should be setup like this:
--- Code: ---P1_JOYSTICKLEFT_UP "KEYCODE_UP"
P1_JOYSTICKLEFT_DOWN "KEYCODE_DOWN"
P1_JOYSTICKLEFT_LEFT "KEYCODE_LEFT"
P1_JOYSTICKLEFT_RIGHT "KEYCODE_RIGHT"
P1_JOYSTICKRIGHT_UP "KEYCODE_R"
P1_JOYSTICKRIGHT_DOWN "KEYCODE_F"
P1_JOYSTICKRIGHT_LEFT "KEYCODE_D"
P1_JOYSTICKRIGHT_RIGHT "KEYCODE_G"
--- End code ---
This setup works for Robotron, Crazy Climber, Black Widow, Battle Zone and other 1 player dual joystick games.
Shieldwolf:
do right_up is not diagnol right but rather up on the right control?
ErikRuud:
Exactly!
right_up is up on the right control.
left_up is up on the left control.
Pages: (1/1)