Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

HTC Vive: trigger or grip button keeps being pressed

$
0
0
I used to use the following two lines in Update() to find out if the user has pressed the trigger:

Code (CSharp):
  1. device.GetPressDown(SteamVR_Controller.ButtonMask.Trigger)
  2. device.GetPressUp(SteamVR_Controller.ButtonMask.Trigger)
Most of the time this works pretty well, but sometimes the button seems to be stuck: after releasing the trigger or grip, device.GetPressUp stays false in every frame (even calling this in FixedUpdate didn't help).

So I changed my code to only use this:...

HTC Vive: trigger or grip button keeps being pressed

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>