you will need an analog stick with 10kOhm potentiometer resistance, for example from PS4 Dualshock 4 wireless.
https://imgur.com/a/lqyA6Lw
2. First of all, you have to disassemble the controller, be very careful.
https://imgur.com/a/m8o7DtS
3. on the reverse side of the printed circuit board you need to solder 6 wires and bring them to the top.
https://imgur.com/a/dgfkfcJ
Radio element in the red circle in the photo must be isolated, otherwise there is a possibility of shorting with the contacts of the potentiometer.
4. the contacts of the potentiometers on the analog stick from ps4 will need to be bent up, as well as to remove all unnecessary things that can prevent it from being placed inside the controller, there is not much space inside.
https://imgur.com/a/exnbMAC
5. before fixing the Thumbstick inside, solder the wires to the potentiometers, turn on the controller and check the correctness of the axes in the SteamVR Test controller
https://imgur.com/a/QopzR5B
6. I fixed the Thumbstick with glue, not a very good idea, at first I wanted to print something for fixing on a 3D printer, but there was not enough space inside.
https://imgur.com/a/RjGxfiz
7.and now what most of you probably don’t like, the Thumbstick touch sensor will have to be removed, you will need to modify it to fit on ps4 analog stick, you will have to shorten and drill a 3.8mm diameter hole, it was possible to leave it working by extending the cable but this is not reliable, in games almost never used.
https://imgur.com/a/lEaDyDL
8. Your controller will not look very good, you’ll have to cut a larger hole or print something suitable on a 3D printer, for me personally it doesn’t matter what it looks like, in VR I don’t see it, the main thing for me is that it works without drifts and is much more reliable than the original
https://imgur.com/a/vqBSm7u
I have not finished the model for 3D printing yet to slightly improve the look