Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: MAME Default config X / Y Axis question  (Read 2382 times)

0 Members and 1 Guest are viewing this topic.

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
MAME Default config X / Y Axis question
« 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!

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Re: MAME Default config X / Y Axis question
« Reply #1 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?

newmanfamilyvlogs

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1694
  • Last login:June 15, 2022, 05:20:38 pm
    • forum.arcadecontrols.com/index.php/topic,103584.msg1096585.html#msg1096585
    • Newman Family Vlogs
Re: MAME Default config X / Y Axis question
« Reply #2 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.

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Re: MAME Default config X / Y Axis question
« Reply #3 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!