Question by
unclearfusion · Aug 23, 2020 at 12:36 PM ·
scripting probleminputgamepad
[Help Wanted]How to control Gamepad Vibration with New Input System?
I have struggled with the Gamepad Vibration (PS4 or Xbox controller with Windows Computer).
Tried the code Gamepad.current.SetMotorSpeed() but the gamepad doesn't react at all. At same time all InputActions work well.
Maybe a sample example script is what I need, thanks!
More details:
Windows10 Computer
PS4 DualShock4 Controller
Unity Input System 1.0
Comment
Answer by Dragon-Magic-Studio · Apr 12, 2021 at 09:21 AM
Using UnityEngine.Input;
and set 2 floats in the motorspeeds would just work fine.