Jump to content
 
Sign in to follow this  
PAKNEKO

How to get Button Input

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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

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

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

FollowUp, because its still related to the question: Which ControllerButtons correspond to which Controller Button on the Vive Focus Controller? The Model in question is IHM 100 (which is the default one when we bought the VIVE Focus in 2018)

@chengnay

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...