I'm trying to implement support for gamepads for my app, but it turns out Dualshock 5 gives me really weird values. I also tested it with an external app (Gamepad Tester).
I've tried connecting with both USB-c and Bluetooth, but both connection types work equally bad.
For an example, buttons map to these keycodes:
- Cross -> Button_B, keycode 95
- Circle -> Unknown, keycode 0
- Triangle -> Button_Y, keycode 100 (correct!)
- Square -> Button_A, kecyode 96
Left stick works fine (mapped to AXIS_Y and AXIS_X, value range -1 to 1), but the right stick is mapped to LTRIGGER/BRAKE and RTRIGGER/GAS. And they has value range 0 - 0.9
What's going on here? I'm getting all these wrong values regardless of app or connection type. I'm using Android 12 (beta, I guess?). I thought DS5 was already supported on android? Can anyone confirm if they are getting equally weird values from their DS5 controller?