2
\$\begingroup\$

Is there any way to toggle the XBOX controller vibrations in Unity ? I came across Handheld.Vibrate() but it seems like it's not meant for controllers.

\$\endgroup\$
1
  • \$\begingroup\$ In 2019.3.x you can done it using InputSystem : a link \$\endgroup\$
    – SeveneduS
    Commented Mar 3, 2020 at 19:53

1 Answer 1

3
\$\begingroup\$

Yes, you're right: The Handheld class just covers handheld devices but not controllers.

There is a library called XInput which should cover your needs. You'll find it on GitHub: https://github.com/speps/XInputDotNet. It is compatible with Unity 4 and 5.

Specifically for the XBox Controller and how to let it vibrate, this might help you: http://answers.unity3d.com/answers/375451/view.html

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .