I am currently working on a 2D game in Unity3D with an option to play with a gamepad/controller. I would like the PS4/dualshock 4 controller to vibrate. I am on mac. I have looked into Xinput but I think it is only for Windows, I may be wrong.

  • \$\begingroup\$ Yes, XInput is Windows. Controllers are far from standardized, that's why you're best off using an existing library that offers controller support instead of spending months on your own implementation. One that supports Dualshock 4 vibration on OS X is guavaman.com/projects/rewired/docs/SupportedControllers.html \$\endgroup\$ – Peter Mar 29 '17 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.