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: Joystick buttons not working in MAME games  (Read 5756 times)

0 Members and 1 Guest are viewing this topic.

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:March 05, 2024, 10:55:50 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Joystick buttons not working in MAME games
« on: November 27, 2017, 12:12:24 pm »
I'm using a u360 in "input mode" with 6 buttons as inputs.  I can map all of the buttons in the MAME configuration screen, so MAME is definitely able to see them, but they are non-responsive in the games.  I can get them working through joytokey, but I would rather avoid having to launch joytokey if it is not necessary.  Any ideas?

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13999
  • Last login:April 09, 2024, 07:27:18 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Joystick buttons not working in MAME games
« Reply #1 on: November 27, 2017, 01:46:02 pm »
so are you assigning the input in mame globally or per game?

fire up a game like MKII and hit F2 to go to the operator menu, then go to the switch test, see if anything works. Check the mapping for "this game" when MKII is running and map a few buttons and see what happens.
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.

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:March 05, 2024, 10:55:50 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Joystick buttons not working in MAME games
« Reply #2 on: November 27, 2017, 11:36:29 pm »
I am trying to map globally.  Using SF2 as a test.  If I map it in the "this game" config menu it will work, but for some reason the global map settings aren't applying over.  :dunno

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9401
  • Last login:Today at 04:19:05 pm
  • Designated spam hunter
Re: Joystick buttons not working in MAME games
« Reply #3 on: November 28, 2017, 06:29:58 am »
If I map it in the "this game" config menu it will work, but for some reason the global map settings aren't applying over.  :dunno
Yes, custom "this game" settings stored in the game's .ini file override the global (default) settings.

To go back to the default settings you can delete the game's .ini file or manually set each input to the current default:
- Highlight input
- Press Enter
- Press ESC (sets input to "none")
- Press Enter
- Press ESC (sets input to current default)


Scott

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:March 05, 2024, 10:55:50 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Joystick buttons not working in MAME games
« Reply #4 on: November 29, 2017, 12:10:17 am »
I only mapped the "this game" menu as a test.  I have not individually mapped any of the games.  I am only mapping the global settings.  The weird thing is that MAME seems to be transferring over the global settings on some of the games but not on others.  For example, MKII and NBA Jam work fine but SFII and Centipede do not.  The joystick itself (directional controls) transfers over but the buttons do not.  Does this make any sense?  I am baffled...

Hopefully some screen shots will explain better:

Here are my global settings (for Player 1):


And here are the SFII game settings.  Note the directional controls are transferred over but not the buttons:


And the same in Centipede:


But then in NBA Jam, the buttons are transferred over...



It seems sort of hit and miss...

gumby510

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 121
  • Last login:November 17, 2022, 09:19:44 pm
  • SR-20 NX 2000
Re: Joystick buttons not working in MAME games
« Reply #5 on: November 29, 2017, 12:51:09 am »
Maybe try hitting escape so it says none and then set it so it only sees one setting and not the OR which is two different buttons for one action.


Sent from my iPhone using Tapatalk

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13999
  • Last login:April 09, 2024, 07:27:18 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: Joystick buttons not working in MAME games
« Reply #6 on: November 29, 2017, 06:56:21 am »
Delete all the cfg and in files from their respective folders
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.

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 468
  • Last login:March 05, 2024, 10:55:50 pm
    • forum.arcadecontrols.com/index.php/topic,149265.120.html
Re: Joystick buttons not working in MAME games
« Reply #7 on: November 30, 2017, 12:12:19 am »
Thanks to all who chimed in.  I learned some things today.  I now understand a little better how the 2 configs interact.  It did help to delete the .cfg files.  I apologize PL1, I did not fully understand what was going on.  As it turns out, the only games giving me problems were ones where I had tweaked the "this game" settings.  I did not even remember I had done it (long, long ago).  As a result, MAME ignored the global settings.

I'm all good now, but I do have to re-do any custom mappings I had done in the past, which kind of sucks but I am glad I did not do too many before the switch over.

As a side note:  I had set up LEDblinky to use the keymapped settings and when I switched over to joystick button inputs, the buttons would not light.  This was easily fixed by keeping the keyboard mappings alongside the joystick button mappings in global.  The only pain in the ass is if I customize a game map, I need to map both the keyboard and the joystick buttons, but not a big deal.

Thanks again!   :cheers: