Skip to main content
Up and Coming
November 18, 2015

Oculus utilities and Xbox controller vibration

Hello,

I'm trying to understand how to add vibration using the OVRInput.SetControllerVibration() method (https://developer.oculus.com/doc/0.8.0. ... bdd79c26e9)

If I run the following command : OVRInput.SetControllerVibration(1f, 1f);, my controller start vibrating and won't stop (not even after I stop the Unity scene !, I have to re-start the scene on Unity to make it stop).

I've tried OVRInput.SetControllerVibration(0f, 0f);, but it doesn't seems to stop the vibration as well. Am I missing something ?

Thanks !
    This topic has been closed for replies.

    4 replies

    InpuAuthor
    Up and Coming
    November 20, 2015
    So, I'm the only one having this issue ? Am I that stupid ? :P
    Inspiring
    November 20, 2015
    We haven't been able to reproduce this yet. Are you calling SetControllerVibration every frame? The theory is that the runtime may be getting backlogged with the requests. For now, you could try only calling SetControllerVibration when the value you want actually changes. There's no need to repeatedly call it with the same values.
    InpuAuthor
    Up and Coming
    November 20, 2015
    Damn, good catch, that was it, I was trying to trigger a vibration using an Input, but I used the "InputDown" function, so It was called several time, thanks a lot ! :D
    Inspiring
    November 20, 2015
    Awesome. Thanks, vrdaveb.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV