Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: JudgeRob on November 27, 2017, 12:12:24 pm

Title: Joystick buttons not working in MAME games
Post by: JudgeRob 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?
Title: Re: Joystick buttons not working in MAME games
Post by: Malenko 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.
Title: Re: Joystick buttons not working in MAME games
Post by: JudgeRob 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
Title: Re: Joystick buttons not working in MAME games
Post by: PL1 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
Title: Re: Joystick buttons not working in MAME games
Post by: JudgeRob 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):
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=149895.0;attach=363875;image)

And here are the SFII game settings.  Note the directional controls are transferred over but not the buttons:
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=149895.0;attach=363873;image)

And the same in Centipede:
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=149895.0;attach=363879;image)

But then in NBA Jam, the buttons are transferred over...
(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=149895.0;attach=363877;image)


It seems sort of hit and miss...
Title: Re: Joystick buttons not working in MAME games
Post by: gumby510 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
Title: Re: Joystick buttons not working in MAME games
Post by: Malenko on November 29, 2017, 06:56:21 am
Delete all the cfg and in files from their respective folders
Title: Re: Joystick buttons not working in MAME games
Post by: JudgeRob 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: