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: xbox360 controller order confusing me  (Read 1173 times)

0 Members and 1 Guest are viewing this topic.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 06:12:23 am
  • ...
xbox360 controller order confusing me
« on: June 30, 2014, 10:54:39 pm »
Finally getting around to remapping everything in my cab to use hacked xbox360 fightpads instead of my usual keyboard encoder.
They are pluged directly in the usb slots on the mobo, no usb hubs.

They aren't changing positions or anything, but steam games are reporting them in a different order than MAME and other emulators.
I plugged my player 1 side in first, waited until it was completely installed, then plugged P2 side in.
Mapped MAME, P1 shows as Joy1, P2 shows as Joy2.  Model 2 emulator goes the same way, so I assume everything is good.

Then I go to remap some steam games and I notice that the controllers are showing as reversed.
It doesn't affect much until I get to DuckTales, which apparently only accepts input from controller #1 so it only works from the player 2 side.  Either one  worked for most 1 player games and for SSFIVAE, but when setting up a vs match it managed to confuse me.

Anyone else run into this?
Is there a way to change their order?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: xbox360 controller order confusing me
« Reply #1 on: July 01, 2014, 12:28:45 am »
I'm not sure about how to fix it, but I can tell you what is going on. 

360 controllers support both Xinput and Direct Input. 

Older games use direct input which orders your gamepads along with all of your usb input devices.  Newer games use Xinput which is 360 controller specific and uses the sync order (the first 360 pad is #1, the second is #2, ect...)

You can't really alter the xinput order, but there are utilities that can sometimes force the direct input priority... so try to reverse those. 

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 06:12:23 am
  • ...
Re: xbox360 controller order confusing me
« Reply #2 on: July 01, 2014, 07:10:25 am »
Thanks man.  I figured as such, but wanted to make sure there wasn't another way to reassign the xinput devices before going to the trouble of swapping the pcbs between P1 and P2 sides.  I wish I'd used molex connectors instead of barrier strips.  :lol

Before rewiring, I swapped which usb ports that the controllers were plugged into just to see what would happen.  As expected it didn't do anything for the xinput order, but after rewiring the pcbs to fix the xinput order I went back into MAME and discovered the dinput order had changed in my favor.  So the controllers now show in the correct order for both protocols and I didn't have to redo MAME.   :applaud: