Jump to content
  • Announcement

    The HyperSpin 2 early access beta is here!

    We’re starting the first public testing phase with Platinum Members to keep the scope manageable while we test the current feature set and begin to add more. In the future, we’ll provide a version for basic members as well.  On behalf of the entire HyperSpin team, we look forward to another exciting adventure with our community.

360 Controller/Joy# Assignment Problem


yeagert

Recommended Posts

Posted

I apologize if this has been addressed elsewhere. I did a search and couldn't find an answer to my exact issue.

I have my entire Hyperspin setup done and working except for one last issue, which is Xbox 360 controller order (joy1, joy2, etc), specifically with regard to use in MAME.

I use Xpadder for everything except MAME, so the Joy# that windows assigns isn't an issue anywhere else.

With MAME, the joy# changes depending on how many controllers I have turned on. If I have all 4 controllers on they are assigned as such:

Controller 1 = Joy3 in MAME

Controller 2 = Joy2 in MAME

Controller 3 = Joy1 in MAME

Controller 4 = Joy4 in MAME

If I have just one controller connected?

Controller 1 = Joy2 in MAME

If I have 2 controllers connected?

Controller 1 = Joy2 in MAME

Controller 2 = Joy3 in MAME

This happens regardless of the order in which I power the controllers on.

So. the problem is that I need controller 1 to launch MAME from Hyperspin, but then technically have to use controller 3 to the "joystick left to write or type OK" portion, and it is crapshoot as to which controller is actually going to be player1

From other research I have done, I understand it is possible to reassign controllers in Hyperpause, but I haven't been able to find that option and I would prefer a more seemless solution so I don't have to go into Hyperpause every time.

Is there a way to force MAME to use the controls mapped in Xpadder and recognize them?

Is there a way to force Windows to assign joystick numbers in the order that you power them on?

I've got dozens of hours into messing with this and I appreciate any help. Thanks so much!

-Jeff

Posted

Welcome to the joys of MAME. I have also struggled to get MAME working predictably with controllers and have never managed it. The best advice I can give you is using CTRLR files rather than the default config file. This way even if you mess something up, your files should still be safe.

The trouble is that MAME doesn't use the standard method for assigning controllers and uses its own arcane method to assign controller numbers. I don't know exactly what the method is, I'm not sure that anyone does. Switching controllers on in different orders makes no difference to MAME. The only way to be certain that your controllers will always be the same is to make sure they are all plugged in and working every time you start MAME.

On the plus side, joy#3 doesn't have to be assigned to player 3. You can assign those controls to player one and vice versa. Sorry I couldn't be more help.

Posted

Thanks for the response Tomkun. Yeah, I have tried assigning joy3 inputs to player 1. That solves my problem for whenever I have all 4 controllers connected. But if I am just playing by myself, then MAME assigns different numbers than if there are 4 controllers connected, so it doesn't solve the bigger problem.

Thanks for the tip about CTRLR. At least that should make things easier.

Anyone else have miracle solution for this? Or a workaround?

Thanks!

Posted

Just checking in to give this a bump.

Anyone have any tips or solutions? I know other people have to have run into this same issue. Thanks for everyones's time.

  • 3 weeks later...
Posted

So I messed around with CTRLR, but I don't think it will solve my issue because I would need a different cntlr file depending on how many controllers were turned on/hooked up. I did some searching to figure out how MAME assigns controller numbers, but couldn't figure it out. See my original post to see how controllers are getting assigned. What I need to do is make it so that when 1 controller is on, MAME sees it as Joy1. Then 2 are hooked up, MAME should see them as Joy1 and Joy2. No matter what order I turn controllers on, MAME assigns them in an incorrect order so the only way I can properly control games is to turn all 4 controllers on, even if I am playing with 1 controller.

Does anyone have any insight into this? Or another workaround? Thanks!

Posted
http://forum.arcadecontrols.com/index.php?topic=100079.0

i used the file from that post and it helped with some of my issues with mame. Are your 4 controllers identical i.e. 4 microsoft wireless controllers?

Ghutch, when I dug into the CTRLR post you linked, the instructions seem to be for an older version of MAME that still uses the mame.ini file to assign CTRLR.cfg files. Do you know how to get this particular CTRLR file to work with newer versions of MAME? I am using 158. Thanks!

Posted
Thanks so much! I'll try that this week and post back.

(edit:) - oh, and yes my controllers are 4 360 controllers.

But are they all wired, all wireless or a mix of the two? Wired controllers always take priority. For example, today I had my two wireless Xbox controllers plugged in and MAME recognized them as joy 1 and 2 respectively. I then plugged in a wired Xbox 360 controller and a wired SNES controller. MAME recognized the wired controller as joy 1, switched the wireless ones to joy 2 and 3 and the SNES controller to joy 4.

Posted
But are they all wired, all wireless or a mix of the two? Wired controllers always take priority. For example, today I had my two wireless Xbox controllers plugged in and MAME recognized them as joy 1 and 2 respectively. I then plugged in a wired Xbox 360 controller and a wired SNES controller. MAME recognized the wired controller as joy 1, switched the wireless ones to joy 2 and 3 and the SNES controller to joy 4.

They are all wireless and all going through the same 360 wireless receiver. No matter which controller I power on, if there is only one powered on, MAME recognizes it as joy2. If I turn another controller on, the first switches to joy 3 and the 2nd becomes joy 1...there is no joy2.

I can't simply remap the controls in MAME, because the controls chang (joy#) depending on how many controllers are powered on. Strange, right?

Posted

I used to have the same issue but all my controllers are wired. I found that if I disconnected a controller and plugged it back in after plugging another controller into a usb port my joy ids would be screwed. My way of dealing with this was to find my joystick/pad ids and number the usb ends and write down which ports on the pc they go 2. I use usb exteneders on my arcade cabinet and I numbered each extender to match which joypad it goes to and this also denotes the order ro plug them in. Now if ever I turn off my arcade pc completely from the mains ( this is when mame would normally redo the ids) or add new controllers I remove all my pads and joysticks and plug them in following their number order to the corresponding extender, I have not had a problem since. It was driving me mad, everytime I unplugged my pc/arcade machine completely from the mains on starting up again all my ids would be screwed in mame but not anymore. I mreally hope this helps

Posted
Why not just use Xpadder for MAME?

Is that possible? I thought MAME only recognizes joystick inputs, even if you have an xpadder profile running? I've never been able to get it to recognize xpadder keyboard inputs. Do you know a way to do that? A google search didn't turn up a viable solution for me. Thanks Yardley!

Posted
But are they all wired, all wireless or a mix of the two? Wired controllers always take priority. For example, today I had my two wireless Xbox controllers plugged in and MAME recognized them as joy 1 and 2 respectively. I then plugged in a wired Xbox 360 controller and a wired SNES controller. MAME recognized the wired controller as joy 1, switched the wireless ones to joy 2 and 3 and the SNES controller to joy 4.

I ordered 4 play n charge cables to try the controllers as wired controllers to see if I can nail down a specific order that way, rather than the receiver/windows assigning them based on the order that I turn them on. I'll report back as to how this works. Thanks!

Posted
I ordered 4 play n charge cables to try the controllers as wired controllers to see if I can nail down a specific order that way, rather than the receiver/windows assigning them based on the order that I turn them on. I'll report back as to how this works. Thanks!

This won't work because they are still seen as wireless all the play & charge cables do is charge the battery. Wired meaning the wire is permanently attached. I heard the xbone controller will go wired if plugged in with a play n charge cable although I haven't been able to verify this.

Posted
This won't work because they are still seen as wireless all the play & charge cables do is charge the battery. Wired meaning the wire is permanently attached. I heard the xbone controller will go wired if plugged in with a play n charge cable although I haven't been able to verify this.

Well that is no good! haha. Oh well. I shouldn't have assumed. Cancelled my order. Thanks for the tip!

Posted

yeah i read somewhere the xboxone controller just turns into standard wired when you leave the USB cable plugged in. I'd rather have one that couldn't get unplugged like the white wired xbox360 controllers, but it's good enough. I like the xboxone controllers, just haven't got one yet.

Posted

Controller remap is am application that changes aitomatically the number of the joystick in mame. You have to configure the controller names and wath mapping they use. Them you can run the program from hyperlaunch on every mame launch to acomodate the config to te controllers you have plugged in in that moment. Is difficult to setup but works

Sent from my Nokia Lumia 520 using Tapatalk

Posted
Is that possible? I thought MAME only recognizes joystick inputs, even if you have an xpadder profile running? I've never been able to get it to recognize xpadder keyboard inputs. Do you know a way to do that? A google search didn't turn up a viable solution for me. Thanks Yardley!

Of course it's possible. Open MAME and map all of the inputs with your keyboard only, then create an Xpadder profile to match that mapping.

  • 1 month later...
Posted

Of course it's possible. Open MAME and map all of the inputs with your keyboard only, then create an Xpadder profile to match that mapping.

 

 

What else have you done on your setup to get it working like this?

 

The strange thing is that I do have one command working while im in game, the ESC key which exits the emulator. Nothing else works. I even went through every setting in mame and unbinded everything that referred to the xbox controller. I replaced it with keyboard keys.

 

 

Setup

xpadder 2013.7.18

xbox 360 wireless controller

mame  .149

 

zGl0EzN.jpg

 

 

 

 

 

EDIT: Got it working. I downloaded Mame Plus with DirectInput already compiled. Thanks guys. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...