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).
Just wanted to mention that I’m able to reproduce this on another Vive. So it must be a software or firmware issue and not specifically my Vive.
Does nobody else have this issue?
A very easy way to reproduce this would be this Code:
if (device.GetPressUp(SteamVR_Controller.ButtonMask.Trigger))
Debug.Log("Up");
if (device.GetPressDown(SteamVR_Controller.ButtonMask.Trigger))
Debug.Log("Down");
If you then see the number of “Up” and "Down"s in your log, you’ll see after some clicks that they will get off.
I have this same issues where when i trigger it works fine but some time it stuck and take two or more trigger clicks to reset if some one has any info about this please share
Not sure if this is a good permanent fix (I’m thinking a hardware defect is the root cause here), but I found that starting with the Vive controllers outside the frame of the trackers triggered this problem. Starting (i.e. booting up the game) with the controllers in the gaming area has seemed to fix the problem, at least for now.
There are some issues with the controller button quality, I’ve had issues (others confirmed as well) with the trackpad button and heard of other miscellaneous problems. That may not be the root cause for you but since there are other confirmed issues with buttons I wouldn’t rule out bad hardware.
A good way to test is to try other demos and see if it gives you the same issue.
I can confirm that the problem still exists as of SteamVR 2.0.1
Occasionally the buttons will “stick”, and I haven’t found a way to work around it.
I have noticed that when a button is stuck, it will become corrected if any input is updated. So touching the touchpad will release a stuck grip/trigger button.