Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Shieldwolf on May 12, 2004, 06:37:37 pm

Title: quick mame ini control question
Post by: 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?
Title: Re:quick mame ini control question
Post by: Tiger-Heli on May 13, 2004, 07:14:43 am
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?
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.
Title: Re:quick mame ini control question
Post by: ErikRuud on May 13, 2004, 10:16:18 am
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: [Select]
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"

This setup works for Robotron, Crazy Climber, Black Widow, Battle Zone and other 1 player dual joystick games.
Title: Re:quick mame ini control question
Post by: Shieldwolf on May 13, 2004, 11:00:33 pm
do right_up is not diagnol right  but rather up on the right control?
Title: Re:quick mame ini control question
Post by: ErikRuud on May 13, 2004, 11:06:41 pm
Exactly!

right_up is up on the right control.

left_up is up on the left control.