game controller does nopt see multiple instances of controller type

Peer support for Air Manager desktop users

Moderators: russ, Ralph

Post Reply
Message
Author
navymustang
Posts: 34
Joined: Sat Nov 28, 2020 11:41 pm
Location: Orlando, FL USA

game controller does nopt see multiple instances of controller type

#1 Post by navymustang »

I have three 15 inch screens that have a row of buttons on the bottom similar to the G1000 bezel. Each screen button set is controlled by a Micro Pro (or Leonardo). All three controllers are seen in the device manager and in my joystick test utility. But when I use the game controller list function within AM it only reports seeing one of each type.
For example, if I have 4 Mega 2560, 3 Leonardo, and 4 LeoBodner cards, the list only shows one of each.

How to I add multiple controllers with the exact same name.

Please don't tell me I have to make registry entry changes and rename them :)

Thanks

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: game controller does nopt see multiple instances of controller type

#2 Post by jph »

Oh, you definitely do NOT want to go down the road of changing the USB controller name for Arduino etc. I can attest that it is a freeking nightmare and not as 'simple' as a registry change - far from it. It is possible but life is too short and sanity is too precious :shock:
Been there, done that, got the tee-shirt ;) Ain't ever doing that again :lol:
I would look to AM as windoze is perfectly happy with multiple instances.
Joe
Joe. CISSP, MSc.

navymustang
Posts: 34
Joined: Sat Nov 28, 2020 11:41 pm
Location: Orlando, FL USA

Re: game controller does nopt see multiple instances of controller type

#3 Post by navymustang »

Solution found !!!

Here is a link to a web site that has a solution that works. Please note this is not a perfect solution in that I am creating VID and PID numbers for the controllers that are not registered. Also note that I am changing the display name, not the controller name. So if you do these steps and go look at Windows Device Manager, you won't see the results you want. But fortunately, Air Manager is using a display name and it sees the changes as expected. The good thing - not registry changes required at all. Just changes to your Arduino build code which can be put back to normal in seconds.

http://liveelectronics.musinou.net/MIDIdeviceName.php

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: game controller does nopt see multiple instances of controller type

#4 Post by jph »

Excellent :D

This was basically the solution I used (creating a specific 'boards.txt' file)
All was great until I wanted to use the board for anything else :shock: Huge issue getting it back to standard. It was a bloody nightmare. :lol:
It was a few years ago though but I'll take another look and give it another try.
Out of interest have you actually tried to revert a board to 'standard' after programming ?
Joe
Joe. CISSP, MSc.

navymustang
Posts: 34
Joined: Sat Nov 28, 2020 11:41 pm
Location: Orlando, FL USA

Re: game controller does nopt see multiple instances of controller type

#5 Post by navymustang »

No - and I hope I never have to :)

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: game controller does nopt see multiple instances of controller type

#6 Post by jph »

navymustang wrote: Tue Apr 12, 2022 9:11 pm No - and I hope I never have to :)
:lol:
Joe. CISSP, MSc.

Post Reply