SOLVED: Can't seem to detect button presses in Unity - probably a noob error! :(

Highlighted
dt1000
Contributor

SOLVED: Can't seem to detect button presses in Unity - probably a noob error! :(

Hi there,

I am trying to detect button presses in Unity. I had alook at the sample scenes and have used the following code...

buttonPressed = WaveVR_Controller.Input(WaveVR_Controller.EDeviceType.Dominant).GetPressDown(WVR_InputId.WVR_InputId_Alias1_Trigger);

...but it does nothing.

Is there a set-up step I've missed for my scene?
Thanks,
Dan

dt1000
Contributor

Re: Can't seem to detect button presses in Unity - probably a noob error! :(

Ah-ha!

All I had to do was add the WaveVRButtons prefab (and check it was configure correctly).

https://hub.vive.com/storage/app/doc/en-us/WaveVR_ButtonList.html

Nice.
:D

 

 

Vive Staff

Re: Can't seem to detect button presses in Unity - probably a noob error! :(

Hi @dt1000 ,

 

Yes, it's the way we suggest.

Thanks for confirmation.