How to get Button Input

SOLVED
Cadows
Explorer

How to get Button Input

Hi! Im trying to get SImple BUtton Input working after migrating from WaveVr to VIU and I'm not sure how to do it.

 

I tried to use the ControllerManagerSample (based on the script ShowMenuClick) but thats rather complex for simple ButtonInput (e.g. Do something when pressing the Trigger).
ANd WaveVR approach like

WaveVR_Controller.Input(WaveVR_Controller.EDeviceType.Dominant).GetPressDown(WVR_InputId.WVR_InputId_Alias1_Trigger)

 seems not to work. Is there something similiar for VIU or is it jsut the way VIU works?

Cadows
Explorer
Solution

Re: How to get Button Input

Found it, its rather simple, but neither documented nor in the examples (I think)

ViveInput.GetPressDownEx(HandRole.RightHand, ControllerButton.Trigger)

 

Vive Staff

Re: How to get Button Input

@Cadows GetPressDownEx is used in ControllerManagerSample.cs. Sorry for late reply.