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
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 343 times)

0 Members and 1 Guest are viewing this topic.

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 250
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: 12339
  • Shun Goku Satsu
    • 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.
2014 Standup UCA Runner Up
2015 Restoration UCA Winner
2016 thomas_surles choice award
2017 International Evil Buddhist Award

Latest project - Dayclona USA 2 :
http://forum.arcadecontrols.com/index.php/topic,155515.0.html

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 250
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: 6474
  • 2013 UCA Awardee
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: 250
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: 105
  • 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: 12339
  • Shun Goku Satsu
    • 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
2014 Standup UCA Runner Up
2015 Restoration UCA Winner
2016 thomas_surles choice award
2017 International Evil Buddhist Award

Latest project - Dayclona USA 2 :
http://forum.arcadecontrols.com/index.php/topic,155515.0.html

JudgeRob

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 250
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:
 

  
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31