The Vive controller has a different haptics interface. Code (CSharp): viveController.SendImpulse(amplitude, duration);
Mmmh, maybe I'm really unlucky, but wtf xD I just added this line into my GameManager Awake(): Gamepad.current.SetMotorSpeed(0.1f, 0.8f) Just to try. It didn't stopped vibrating after like 3-4 seconds so I panicked a bit and unplugged my controller. My pc froze I had to force shutdown. Has this happened to anyone ?
I cant get Xbox one controller to rumble on pc. Do you have to have it setup as an xbox controller in control schemes or should it also work as a gamepad? edit: my batteries were low. It works now
For reasons completely unrelated to Unity for Android, I've written an Android userspace USB driver for PS4 and Xbox360 protocol-compatible gamepads (though, adding support for other protocols probably wouldn't be too hard with a known specification for the packet structure). This allows complete control over the controller regardless of Android device model or Android version, enabling use of features not supported by the Android InputDevice stack / Linux kernel driver. Namely, controlling the rumble motors and LEDs on these gamepads, as well as reading the unique serial number (perhaps useful for storing a per-controller calibration). I have no experience with Unity, so I'm not sure whether this is something that app devs could easily bolt onto their apps and make use of, or whether it would need to be added to the (closed source?) unity core. Happy to discuss if there's any interest.
The name 'gamepad' does not exist in the current context Do I need any special packages for this? ______________________ Edited because I found it (I hadn't seen this forum was under Input System since I got here from a google search): 1- You have to install the "Input System" (the new one from unity), I did it via package manager 2- Then go to "Project settings" --> "Player" --> "Other Settings" --> "Configuration" 3- Set the option called "Active Input Handling" to "Input System Package (new)" or "Both" 4- Finally in your Script you have to include "using UnityEngine.InputSystem;" at the top.
I read in the docs that the Switch Controller Rumble is not yet supported in the Editor, but will it work if we release the game on steam and someone is playing with a switch controller via their laptop? I would also like to know if editor support for the switch controller is coming - right now I'm lending a ps4 controller from a friend but it's definitely not a long-term solution :') Edit: I should mention I have a switch dev-kit: I know the NDA doesn’t allow to go into detail, but is it at least possible to support switch rumble using it? At least then I won’t go on a witch hunt for it.
Hi, I managed to vibrate my controller with Gamepad.current.setMotorspeeds() but I don't know how to vibrate my t248 thrusmater steering wheel. Can you help me?