How to use Joysticks and A, B, X, Y buttons of VR controllers in Oculus Quest 2 (ThreeJS VR)

I am new to ThreeJS VR, and I would love to know how to control the joysticks of vr controller.
Please help me if anyone knows this.
Thank you.