[Issue]: Nintendo PowerA controllers mappings are messed up in Android
Describe the bug
Nintendo Switch PowerA controllers have some duplicate buttons, or buttons map to A button such as Y and R and thumbstick clicks are messed up.
It seemed similar to #842, but I don't know if powerA Nintendo Switch controller is the same as "Nintendo Pro" controller.
Steps to reproduce
- Use Moonlight client on Android
- Plug in Nintendo Switch PowerA controller into client
- Observe that button mappings are completely messed up and cannot be mapped properly
Affected games
All
Other Moonlight clients
PC
Moonlight adjusted settings
Yes
Moonlight adjusted settings (please complete the following information)
I've tried messing with gamepad settings with no change, but the default configuration reproduces the behavior
Moonlight default settings
Yes
Gamepad-related connection issue
No
Gamepad-related input issue
Yes
Gamepad-related streaming issue
Yes
Android version
Android 11 - 13
Device model
Nvidia Shield and Pixel 7
Server PC OS version
Using Sunlight, but this seems like a Moonlight issue
Server PC GeForce Experience version
n/a
Server PC Nvidia GPU driver version
n/a
Server PC antivirus and firewall software
n/a
Screenshots
No response
Relevant log output
No response
Additional context
I use Sunshine with Moonlight on Nvidia Sheild (Android TV). If I use my Nintendo Switch PowerA controllers, the mapping issue is present (works fine in Steam or direct on PC). I sideloaded the apk in this comment and this comment thinking these controllers should be similar to Nintendo Pro controllers and this would help, but the behavior is still wonky.
These are what I get in CEMU when I try to remap buttons to what they should be:
- Y -> a
- R -> a
- ZL -> leftshoulder
- ZR -> rightshoulder
- + -> Y-Trigger+
- - -> X-Trigger+
- Left Axis click -> back
- Right Axis click -> start
Here is the output from the suggested gamepad tester app. This is from my Android 13 device. The behavior is the same on my Sheild which is running Android 11.
Gamepad tester on Sheild:
Please let me know if a client can be provided as it was in #842.