Playstation controller appears as Wireless Controller instead of Dualshock

Hi, I’m trying to identify a Dualshock controller on Windows to be able to change the glyphs accordingly. On action.gamepad_name I get “Wireless Controller”.

I found this about the Switch controller on Github: “Gdc reports the name of the gamepad as ‘Wireless Gamepad’, and the defold gamepad tester example project stops recognizing input if you change the name to anything else.” and this, on the same issue: “Could you please add a comment here? Like this: device: ‘Wireless Gamepad’ # Nintendo Switch Pro”

I think the same is happenning with Playstation controllers. There are also many third party controllers that appear as Xbox 360.

The question is, can the comment be added to a gamepad_model field so we can retrieve the correct gamepad name. Should I open a ticket for this?

1 Like

It seems this issue has been overlooked for quite a long time. If it’s a problem that we can solve, I would certainly be happy to help.

1 Like

The gamepad list included in builtins has no comments. But if there is a list with the correct names as comments, it should be fairly easy to add them to a new property.

I opened a ticket: Get correct gamepad names from gamepad_connected action · Issue #12066 · defold/defold · GitHub