c# - Getting PS3 controller input in Unity3D -


i want ps3 controller control unity game, , far isn't going well. have plugged computer via usb cable came with. computer did not install drivers when plugged in, did make sound , unity seems have detected it, printing joystick connected (controller name here)

unfortunately, beyond controller absolutely nothing. have gone input menu , have adjusted input according map: http://forum.unity3d.com/threads/ps3-button-map.89288/ enter image description here

but still nothing. not single button anything.

i should mention if helps, how i'm getting input:

void fixedupdate() {     float movehorizontal = input.getaxis("horizontal");     float movevertical = input.getaxis("vertical");     vector3 movement = new vector3(movehorizontal, 0, movevertical);     rb.addforce(movement * speed); } 

you need special driver in order ps3 controller work on pc. highly recommend scptoolkit. it's best 1 out there.


Comments