ChrisNZL / Tallowmere2

Changelog, issue tracker, and development knowledge for Tallowmere 2.
https://tallowmere2.com
13 stars 0 forks source link

Android: PS4 and PS5 gamepads use the same internal name #1117

Closed ChrisNZL closed 1 year ago

ChrisNZL commented 1 year ago

Issue on Android with PS4 and PS5 gamepad support:

PlayStation4AndroidUnityProfile.cs

Matchers = new[]
{
    //new InputDeviceMatcher { NameLiteral = "Wireless Controller" }, <-- commenting out due to PlayStation 5 controller using the same NameLiteral
    new InputDeviceMatcher { NameLiteral = "Sony Computer Entertainment Wireless Controller" },
    new InputDeviceMatcher { NameLiteral = "Sony Interactive Entertainment Wireless Controller" }
};

PlayStation5AndroidUnityProfile.cs

Matchers = new[]
{
    new InputDeviceMatcher { NameLiteral = "Wireless Controller" }
};

Related task:

Or possibly:

ChrisNZL commented 1 year ago

In 0.3.7h, player can now create Custom Gamepad profiles, which will let the player map their own buttons, triggers, and sticks (issue #1116).