FWGS / xash3d-fwgs

Xash3D FWGS engine.
1.51k stars 225 forks source link

DualShock 4 controllers are totally busted #850

Open AshleighTheCutie opened 2 years ago

AshleighTheCutie commented 2 years ago

Hello, I just tried to use a DualShock 4 with the latest Android build available on here, and discovered that it is totally nonfunctional. It seems to think that 0,0 X,Y is -0.5,0.5 on all analog axis.

Device is a BLU G91 Pro, running Android 11. I used Minecraft and a joystick testing app to verify that the controller itself is working, and it is fine.

GitHub will not let me attach a file, so I cannot supply the engine.log. However, I looked through it, and nothing relating to this bug is shown.

It's real simple to reproduce, just try to use a DualShock 4 controller with Xash3D on Android 11.

a1batross commented 2 years ago

That's weird. Thanks for the report, though I don't have any DualShock controllers around, so I can't check it.

But Android code for controller definitely needs revisiting.

AshleighTheCutie commented 2 years ago

Okay, a lot has changed since I opened this bug report, mainly in the area of "phone rootage". I will begin trying to actually find the source of the bug, assuming it's actually in Xash3D. As you likely know, DS4 controllers on Android have been notoriously buggy in / because of the OS itself, and I also now have a Xbox Series X controller I can sanity check with.

(Side note: Sony actually supplied the Linux kernel with the DualShock 4 drivers about 6 months after the PS4 released. Why in the hell did it take Android / Google until about late 2020 to put them in? And, Microsoft hasn't supplied any drivers at all, but the Xbox controllers that support Bluetooth work perfectly with whatever native driver Android ships with. What the frick?)