- Home /
How to get input of PS3 controller's R2 or L2 buttons?
I'm using the SCP driver to make the Dualshock 3 controller work as if it were a XBOX 360 controller and I can get all of the inputs properly (I'm going according to this: http://wiki.unity3d.com/index.php?title=Xbox360Controller) except for the R2 and L2 buttons. The two triggers are mapped to the 3rd axis (-1 to 1) but I want to be able to know when each button is being pressed separately. The Wiki says that the 9th & 10th axis should correspond to the triggers separately but I can't get it to work.
There were similar questions like this before but there wasn't any good answers. Does anyone know any fixes? Thanks!
Answer by ramXVI · Aug 01, 2016 at 02:21 PM
well.. it worked for me :o
in the input manager i set up an input named "R2" and i said 1.5 for the gravity 0.3 for the dead zone and 1.1 for the sensivity then "Joystick Axis" for the type and "10th Axis (Joystick)" for the Axis
and it works fine, i will change sensivity but it works in my script's Update() function i wrote "Debug.Log(R2);" and it works in the runtime i dont know what makes your input goes wrong but here is mine who is fine just in case it can resolves your problem :x
Could you please explain me how to configure the L2 and R2 buttons?
Your answer
Follow this Question
Related Questions
How To Add Button Images To GUIText? 1 Answer
How to know if finger is on joystick if it is at horizontal & vertical zero 0 Answers
Help!!! PS3/XBox Button Maps 0 Answers
Easy way to use and xbox/ps3 with a PC? 1 Answer
The value of Input.GetAxis("Horizontal") gets stuck when Xbox controller is disconnected... 0 Answers