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: player 2 buttons 6 and 7, what do you use?  (Read 908 times)

0 Members and 1 Guest are viewing this topic.

dkersten

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1472
  • Last login:March 12, 2024, 11:47:30 am
  • If you are gonna do it, do it right..
player 2 buttons 6 and 7, what do you use?
« on: July 31, 2014, 11:50:31 am »
I am running into an issue with my p2b6 somehow reporting from mame to ledblinky that it is the same as the gun or trackball and lighting up that color even when it shouldn't.  I have it set to send the "f" key now, and I think mame defaults to a joystick button for buttons 6 and up for p2.  I am wondering what others use for that button when they have 6, 7, or 8 button configs for mame player 2.  The problem with having 32 buttons on your cp is you can easily end up mapping a button to something you shouldn't.

Here is the long version of the issue I am chasing down:  LEDblinky reads the controls.ini, mame.xml, or a color.ini file to get the controls, the number of buttons, and the colors they should be.  Then it looks at the game config file for that specific game and cross references it to the map for the buttons to determine the color or whether they should even light up.  I found that if you have a keystroke mapped for any of the "mouse" axes (like the inc or dec settings for guns, trackballs, spinners, mouse, paddle, etc), LEDblinky will decide that whatever button is assigned that keystroke will also get that color.   The problem I have is that if there is a gun2 or a trackball, my player2button6 lights up that color.  I also had a couple other buttons lighting up with the trackball that I fixed, but I have scoured the configs in mame and can't find a reference to "f" in any of the settings, but it still lights up for all 2 player gun and trackball games.  I am thinking maybe if I key it to a different keystroke it will go away, but now I have to decide what keystroke to change it to that isn't already being used or won't cause a conflict with anything else?  I am thinking maybe there is something of a standard out there for what to use for those buttons that don't have a default in mame, and that would be a good starting point. 

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14021
  • Last login:August 01, 2025, 09:20:08 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: player 2 buttons 6 and 7, what do you use?
« Reply #1 on: July 31, 2014, 12:06:36 pm »
I'd just wire the power to the LED for that button to a toggle switch.  Betas the possibility of messing with keystrokes and configs in MAME
If you're replying to a troll you are part of the problem.
I also need to follow this advice. Ignore or report, don't reply.

dkersten

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1472
  • Last login:March 12, 2024, 11:47:30 am
  • If you are gonna do it, do it right..
Re: player 2 buttons 6 and 7, what do you use?
« Reply #2 on: July 31, 2014, 02:28:56 pm »
wish it was that simple, lol.  Thing is, the button lights up properly with the right color in every other case. 

One other thing I can try is to modify the controls.ini to say I have 6 buttons for player 2 (for each game), then set buttons 4-6 to 0,0,0 in color.ini so they are off.  The idea is to override the color coming from the trackball or gun2.  Not sure which it will take though, I haven't seen a gun or trackball game with 6 buttons yet.  Problem is, this is a huge pain as I would have to do this for each game, and many games don't have an entry in color.ini so I have to add it, and if it isn't in controls.ini, I have to either edit the mame.xml or manually add it to controls.ini too.  I am holding out for a more universal fix.

Keep in mind, I set my button 6 to 'f' myself, it is not a mame default, so my question still stands, if you have 6 buttons for Player 2, what keystroke did you set it to in your keyboard encoder?