Jump to content
LaunchBox Community Forums

How to distinguish between two devices with identical PIDs in MAME


Recommended Posts

Posted (edited)

Hello!

I've been trying to determine how best to configure my cabinet to work with both MAME and Retroarch.  My current iteration is using an I-PAC Ultimate in mixed mode (firmware that allows both joystick controls and keyboard controls in the same config). 

Screenshot2024-03-05122956.thumb.png.a974ea0b8a598d0f4e3cecd9c9740803.png

The "why" is a long story, but here is my problem.  The I-PAC controllers appear with only a single PID, so I have not been able to distinguish between them in MAME via the ctrl remap function. 

 

Screenshot2024-03-05121253.png.0d9d8d3deb0b8dffec2a3a52e61eb41b.png

Below are the full device Ids as MAME reports them.  There is a subtle difference in bold.  I have tried using this entire string in the ctrl remap file.  The logs show it remapping, but the mapping doesn't actually change (Joystick 1 is still player two, and vice versa)

  1. I-PAC Ultimate product_0410d209-0000-0000-0000-504944564944 instance_cb298f50-da88-11ee-8001-444553540000
  2. I-PAC Ultimate product_0410d209-0000-0000-0000-504944564944 instance_cb2b3d00-da88-11ee-8003-444553540000

Retroarch seems to be able to tell a difference, or at least labels the controllers as if it can tell a difference - displaying them with a (1) and (2) suffix.  But when saving the controller config file, they end up sharing a single config file so I cannot set different button configs for player 1 and 2.

Screenshot2024-03-05122210.png.b723bf51bd5a2d97b583ffac9f5a017e.png

 

Here is the only guidance I could find via the Ultimarc site:

This is an alternative firmware version which enables the board to appear as a keyboard and dual standard game controller AT THE SAME TIME (both also with mouse). Note Retropie does not work with this configuration. The standard multiMode version (above) enables one device type at a time on the host (plus mouse) and this is required for Retropie. IMPORTANT: This version also requires a different version of WinIPAC for configuration.
This version does not support Xinput.
Unlike the Multi-Mode, this version automatically allocates each of the 2 game controllers on the respective side of the board so WinIPAC does not refer to player numbers, these are defined by the board markings. 

image.thumb.png.86c7d4385acd3d38442be69ef7435e18.png

If what they mean by board markings for player 1 and player 2 are the button numbering, I have that wired correctly, but the opposite controller is active in MAME.

I've not been able to find any other references to how to distinguish between the two controllers programmatically, and have found no other references online.  Does anyone have some insight they could share on this?  TIA

Edited by TEC75
typo

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...