AOA/UHID Gamepad Issues. (original) (raw)
Environment
- Scrcpy 2.7 (prebuilt) on Windows 11.
- samsung A52s 5G running A14 OneUI.
Describe the bug
the way the UHID/AOA gamepad shows up messes up the input in some games.
on UHID it shows up as:
- Name: "scrcpy: Xbox One Controller"
- Product: "Vendor_0000_Product_0000"
and on AOA:
- Name: blank, it has no name.
- Product: "Vendor_ffff_Product_ffff"
so far ive had these issues in 2 games, Wuthering Waves and Human Fall Flat:
in human fall flat it straight up doesnt work, the inputs get ignored.
and in wuthering waves the triggers dont work (the game probably sees it as a generic controller).
but if i use LHLaurini's old controller build, it works just fine in both games, probably because it shows up as an actual Xbox controller:
- Name: "Microsoft X-Box 360 Pad"
- Product: "Vendor_045e_Product_028e"
so, what if you emulated an Xbox 360 or an Xbox One controller for Xinput and a PS4 controller for DInput?
after a lot of digging, i found bool SDL_IsJoystickXInput(SDL_GUID guid), idk if its gonna be of any use to you though.