Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
07200 DIP/Input Minor Always 17 days ago 12 days ago
Tester illando View Status Public Platform
Assigned To Resolution Open OS
Status [?] Driver
Version 0.204 Fixed in Version Build 64-bit
Summary 07200: Stable Controller IDs for 2 controllers of the same brand.
Description The Stable Controller IDs configuration ( https://docs.mamedev.org/advanced/devicemap.html ) is not working using 2 controllers of the same brand.
This configuration is based on the device ID, but if the controllers that have generic names like "PS4Controller" MAME can not disambiguate between these devices.
I.e.
<mapdevice device="PS4Controller" controller="JOYCODE_1" />
<mapdevice device="PS4Controller" controller="JOYCODE_2" />

A solution to this problem can be found at this link (reply #12 by tverona)
http://forum.arcadecontrols.com/index.php?topic=151710.0#3
In his private build he made MAME able to recognise also the "Instance" for each device, so it's possible to write it in the .config file.
I.e.
<mapdevice device="instance_f1641160-a808-11e5-8006-444553540000" controller="JOYCODE_1" />
<mapdevice device="instance_f1641160-a808-11e5-8002-444553540000" controller="JOYCODE_2" />
Steps To Reproduce
Additional Information
Flags
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
3
User avatar
No.16017
Tafoid
Administrator
16 days ago
To my knowledge, such information can be added to the mapdevice entry already:
https://github.com/mamedev/mame/commit/28dfa7ce84e2a5465a30630f656ec7eda06b42f3

The documents, I fear, are not set up to handle the duplicate controller ID scenario, but it should work.
User avatar
No.16019
illando
Tester
15 days ago
edited on: 15 days ago
@Tafoid Yes but this is just for Directinput, so it will work only on Windows. Right?
Is there a way to ask MAME to visualise the instance on MacOs an try adding it to the mapdevice?
Also SDL2 should support InstanceID:
https://wiki.libsdl.org/SDL_JoystickInstanceID
User avatar
No.16022
Tafoid
Administrator
12 days ago
Opened up for some Developer help with this, hopefully