Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: markronz on December 06, 2010, 08:52:57 pm

Title: MAME Default config X / Y Axis question
Post by: markronz on December 06, 2010, 08:52:57 pm
Ok, I've been working on creating my own custom mame config file lately.  I have a question about setting up the X and Y axis for some of the controls.    As an example, is the player 2 trackball.  Now, I only have one trackball, so I am trying to just set this up so that the player 2 trackball would be controlled by using the player 2 joystick.   Below you will see the section I have made.   What I get confused about is the "standard" section.   You can see I put in my own controls in the decrement and increment spots, but what would I put in the standard section?


   <port type="P2_TRACKBALL_X">
                <newseq type="standard">
                    MOUSECODE_1_XAXIS
                </newseq>
                <newseq type="decrement">
                    KEYCODE_G
                </newseq>
                <newseq type="increment">
                    KEYCODE_D
                </newseq>
            </port>
            <port type="P2_TRACKBALL_Y">
                <newseq type="standard">
                    MOUSECODE_1_YAXIS
                </newseq>
                <newseq type="decrement">
                    KEYCODE_F
                </newseq>
                <newseq type="increment">
                    KEYCODE_R
                </newseq>
            </port>

Would I put something like KEYCODE_F OR KEYCODE_R in there?  Or would I set it to NONE?   Or what should I do here?

Thanks!
Title: Re: MAME Default config X / Y Axis question
Post by: markronz on December 06, 2010, 08:57:42 pm
Also, to piggy back another question on my own post...

Is it correct that I do not need to set the diagonal controls?   Ex: "P1_JOYSTICKRIGHT_DOWN"   I have the Up, Down, Left and Right directions set up, but am I correct in thinking that I don't need to set up the diags?  If I do need to set them up, what would I put in them?
Title: Re: MAME Default config X / Y Axis question
Post by: newmanfamilyvlogs on December 06, 2010, 10:20:00 pm
I think that's the right joysticks down in a two joystick configuration,  not as in southwest.
Title: Re: MAME Default config X / Y Axis question
Post by: markronz on December 07, 2010, 10:17:10 am
That makes sense!  Especially since I thought about it a little more and see that there's like a P1_JOYSTICKRIGHT_RIGHT.  Why else would there be a RIGHT_RIGHT!  So thank you!

Still looking for an answer to the trackball question for the "standard" section if anyone has any guesses!