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 Controller Inputs - So confusing!  (Read 8643 times)

0 Members and 1 Guest are viewing this topic.

sofakng

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 646
  • Last login:February 18, 2021, 04:19:21 pm
MAME Controller Inputs - So confusing!
« on: August 09, 2004, 03:10:18 pm »
Well, I'm totally confused on configuring MAME inputs.  When I load up a game and hit Tab I get a bunch of different options which include:

Inputs (general)
Inputs (this game)

I'm assuming that if I changed "Inputs (general)" that will change the default inputs for ALL GAMES.  Is this correct?

If I change the "Inputs (this game)" will that OVERRIDE the "Inputs (general)"?

I also notice I have a bunch of files in c:\mame\cfg.  Does MAME create one everytime I change the inputs for an individual game?


simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:MAME Controller Inputs - So confusing!
« Reply #1 on: August 09, 2004, 04:46:03 pm »
Well, I'm totally confused on configuring MAME inputs.  When I load up a game and hit Tab I get a bunch of different options which include:

Inputs (general)
Inputs (this game)

I'm assuming that if I changed "Inputs (general)" that will change the default inputs for ALL GAMES.  Is this correct?

If I change the "Inputs (this game)" will that OVERRIDE the "Inputs (general)"?

I also notice I have a bunch of files in c:\mame\cfg.  Does MAME create one everytime I change the inputs for an individual game?



Yes. :)  Everything you said is correct.

A lot of people suggeest using the ctrlr files to create your own configuration based on your cp.  I tried this and had a lot of problems with it becasue my inputs were apparently different between what win xp said and what mame said.  That's a whole other story.   They are revamping the ctrlr code in the latest versions of mame though.  It's a big mess from what I understand.  I just settled for using the tab menu to set up my games.  It's tedious but it's worth it not to have to fight for a whole night with my machine to get the buttons working like I want them to.  You may have better luck.  BTW, they changed the ctrlr code with version 0.84 so I don't know what version of MAME you're running but if it's before that you may not have a problem.  I'm using 0.82
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 17, 2025, 11:04:07 pm
  • The Bears Still Suck!
Re:MAME Controller Inputs - So confusing!
« Reply #2 on: August 09, 2004, 11:28:05 pm »
Input (Genera)l and Input (game specific) have always been in mame ever since I have used it.  


no, the new ctrlr stuff is an improvement, it was just a mess while they were fine tuning it.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:MAME Controller Inputs - So confusing!
« Reply #3 on: August 10, 2004, 02:22:39 am »
I agree and keep in mind that I was it's biggest critic during the ironing out process.  

sofakng

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 646
  • Last login:February 18, 2021, 04:19:21 pm
Re:MAME Controller Inputs - So confusing!
« Reply #4 on: August 10, 2004, 08:56:23 am »
Are there any tutorials or documentation on these ctrl files?  I'm at work so I don't want to download MAME, but if there is documentation just for the ctrl files please let me know...

Also... why not just use MAME to change the inputs for a particular game?  Wouldn't that be the easiest?
« Last Edit: August 10, 2004, 09:04:36 am by sofakng »

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:MAME Controller Inputs - So confusing!
« Reply #5 on: August 10, 2004, 10:16:22 am »
no, the new ctrlr stuff is an improvement, it was just a mess while they were fine tuning it.

I stand corrected. ;D  Maybe one day I can get that figured out.  It would be very helpful.
-G
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 17, 2025, 11:04:07 pm
  • The Bears Still Suck!
Re:MAME Controller Inputs - So confusing!
« Reply #6 on: August 10, 2004, 11:19:23 am »
I don't know if mame .85 updated the docs yet but take a look in the /mame/docs/ folder....

Also, if you did a search on the forum you'd find many resources, including this: http://www.mameworld.net/easyemu/mamecontrolini.htm
Now, remember, that's the old format.  As of .85 (actually something like .84u5) the files use the xml format.  You go through pretty much the same process but use a different format.  Look at the existing ctrlr files ie hotrod or slikstik to get an idea.

Quote
Also... why not just use MAME to change the inputs for a particular game?  Wouldn't that be the easiest?

ctrlr files can do something the TAB menu can't, it can define controls for a group of games.  You can create aneogeo.ini file to define all the controls for neogeo.  You can define a vector.ini to define the controls for all the vector games.  You can make a trackball.ini file for all the trackball games.  With my hacks which are included in No Name Mame you can make a vector.ini and a horizont.ini so you can remap controls based on orientation (good for cocktail cabs).  Als you could do button#.ini where # is the number of buttons.  So you could remap ALL 6 button games.
Also, before .84 ctrlr files was the only way a frontend would be able to know how your controls are configured.  cfg files were binary.  What made this important is if you used something like HowardC's johnny5 viewer.  The viewer reads your ctrlr files to correctly display the information based on you configuration.
« Last Edit: August 10, 2004, 11:39:22 am by SirPoonga »

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:MAME Controller Inputs - So confusing!
« Reply #7 on: August 10, 2004, 01:07:32 pm »
On a related note... because I would really love to get this working...

I'm using MAME 0.82, MAMEwah 0.97, Win XP with a super dual box Playstation 2 to USB adaptor with 2 MAS systems sticks attached.  These work perfectly by configuring through the tab menu.

Mame sees my configuration as this:

640
312

WIndows XP sees my configuration (through the game controllers in control panel) as this:

751
324
or something like that (at work :P I don't have my notes with me.)

I seems like there is some kind of conflict going on between this.  I set up a ctrlr file called default in a folder called mycabinet.  I did this by taking the file that comes with MAME , deleting all the junk at the top and copying and pasting the joycodes I needed.  I had mame pointing to these files but the controls were all garbled.  It seemed to create a combination of  the two.  I don't know what could be the problem.  I worked on this for a night but got extremely frustrated and just deleted everything I did and went back to using the tab menu.  Any advice would be great. :)
-G
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 17, 2025, 11:04:07 pm
  • The Bears Still Suck!
Re:MAME Controller Inputs - So confusing!
« Reply #8 on: August 10, 2004, 02:20:07 pm »
You have two usb gamepads essentially, right?  They will not always come up in XP in the same order.  The only sure fire way of having USB devises come up in the same order it to plug them in order after a hard reset.

So what is probably happening is it is swapping controllers are player 1.

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:MAME Controller Inputs - So confusing!
« Reply #9 on: August 10, 2004, 02:26:46 pm »
I never unplug them.  They are always plugged in sitting on my dining room table.  Does it reset their location everytime I shut down and restart?  That could prove to be a big problem if I have this in a cab.  I plan on using these sticks because they will retain PS2 and Gamecube support.  I want them removable for that purpose. :-\
-G
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 17, 2025, 11:04:07 pm
  • The Bears Still Suck!
Re:MAME Controller Inputs - So confusing!
« Reply #10 on: August 10, 2004, 02:44:36 pm »
Yeah, that's why, because you left them plugged in.  There's a way around this I think by setting priority on one in the control panel.  Not sure though.

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:MAME Controller Inputs - So confusing!
« Reply #11 on: August 10, 2004, 02:51:18 pm »
Where do I set a priority?  I've never heard of that.  It would make sense to have that but I didn't know it existed for USB devices.  I've heard of that for like IP addresses and stuff.  

So which inputs should I use when I get this figured out?  The one MAME has or the one Win Xp has.  Or will they be the same  once I fix this?
-G
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 17, 2025, 11:04:07 pm
  • The Bears Still Suck!
Re:MAME Controller Inputs - So confusing!
« Reply #12 on: August 10, 2004, 05:10:01 pm »
Control Panel/Game Controllers/Advanced.

you may have something completely different.  I'd like to know what you mean by mame has different controls that XP.  Because is not possible, mame get's it control information from directx.  Directx gets it from the same place the control panel does.

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:MAME Controller Inputs - So confusing!
« Reply #13 on: August 10, 2004, 05:14:16 pm »
I guess I mean that the button have different identifying numbers.  What I want to use as button 1 is seen through the tab menu in mame as button 6 and in the win xp game controllers it is seen as button 7 ( I think... it's definately not 6 but might not be 7.  Again I don't have my notes with me.)  This iand the layouts are the same the same on both controllers.  Joy 1 and Joy 2.  Thanks for trying to help me figure this out SirP.  I really appreciate it.
-G
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 17, 2025, 11:04:07 pm
  • The Bears Still Suck!
Re:MAME Controller Inputs - So confusing!
« Reply #14 on: August 10, 2004, 08:10:09 pm »
Ahhhh.  Does your joys have their own config util?  Or when you open up the properties in the game controlers control panel you get the generic XP thing?  For my logittech when I installed logitech software when you bring up the properties for that controller it uses it's own app with a graphic of the gamepad.  The button numbers it shows does not match what mame sees.  It's weird.

daywane

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2570
  • Last login:December 26, 2024, 11:02:08 am
  • GRRRR!
Re:MAME Controller Inputs - So confusing!
« Reply #15 on: August 11, 2004, 08:34:46 am »
I have Mame 32 ver 56 with windows XP pro
with a usb adapt. to playstation (4 players)
I have a Playstation (2 player CP) (E-bay $25.00) and 2 normal ps1 game pads hooked up for 2 years and I have never had this problem....I would bet your driver is bad for your usb to ps gamepad or not xp compatable.

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:MAME Controller Inputs - So confusing!
« Reply #16 on: August 11, 2004, 10:08:10 am »
Ahhhh.  Does your joys have their own config util?  Or when you open up the properties in the game controlers control panel you get the generic XP thing?  For my logittech when I installed logitech software when you bring up the properties for that controller it uses it's own app with a graphic of the gamepad.  The button numbers it shows does not match what mame sees.  It's weird.

Yes it uses the default win xp properties uitlity.  And like your the button numbers don't match what mame sees.  I forgot to mention that I'm using joytokey as well to run MAMEwah with the sticks.  When I created the ctrlr files I made sure there were no conflicts between that and the buttons I set up though this could still be a source of the problem.  I'm hoping that Minwah's next update will resolve some of these issues.

dawayne:  That's a possibility.  I got my ps2 to usb adapter from electricquarter.com.  It was highly reccommended by people on this board.  It's the super dual box.  It did come with a disk with a driver on it.  maybe I'll try reinstalling that.  If I remember correctly the adapter just popped up as plug and play and I may not have installed the driver that came with it.  Good suggestion.
-G

www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:MAME Controller Inputs - So confusing!
« Reply #17 on: August 11, 2004, 01:31:04 pm »
You have two usb gamepads essentially, right?  They will not always come up in XP in the same order.  The only sure fire way of having USB devises come up in the same order it to plug them in order after a hard reset.

I thought they are auto-arranged into alphabetical order in XP?  They seem to do that on mine anyway, regardless on plug-in-order...

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 17, 2025, 11:04:07 pm
  • The Bears Still Suck!
Re:MAME Controller Inputs - So confusing!
« Reply #18 on: August 11, 2004, 01:37:10 pm »
That could be, but we are talking about two of the SAME controllers.

simplygriff

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:January 10, 2008, 10:05:05 am
    • simplygriff.com
Re:MAME Controller Inputs - So confusing!
« Reply #19 on: August 11, 2004, 01:49:35 pm »
That could be, but we are talking about two of the SAME controllers.

Yes plugged into 1 adapter in 1 USB slot.  They both show up as HIDxxxx  with the x's as numbers.  and the first is player 1 and second player 2.
-G
www.simplygriff.com
art : videogames : transformers : life

Live, but Under Heavy Construction

CrispyXUK2

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:July 26, 2006, 11:49:06 am
  • minty
Re:MAME Controller Inputs - So confusing!
« Reply #20 on: September 02, 2004, 05:41:05 pm »
ctrlr files can do something the TAB menu can't, it can define controls for a group of games.  You can create aneogeo.ini file to define all the controls for neogeo.  You can define a vector.ini to define the controls for all the vector games.  You can make a trackball.ini file for all the trackball games.  With my hacks which are included in No Name Mame you can make a vector.ini and a horizont.ini so you can remap controls based on orientation (good for cocktail cabs).  Als you could do button#.ini where # is the number of buttons.  So you could remap ALL 6 button games.
Also, before .84 ctrlr files was the only way a frontend would be able to know how your controls are configured.  cfg files were binary.  What made this important is if you used something like HowardC's johnny5 viewer.  The viewer reads your ctrlr files to correctly display the information based on you configuration.

Hi,

I'd like to have controls setup for different #buttoned games, how would I go about this? default controls are fine for 1-3 button games but I'd like to set controls universally for 4 button and six button games, can you help me?

Thanks
-----------------------------------------------
"Ambition makes you look pretty ugly,
kicking squeling gucci little piggy"