Is there any way to detect when the vive tracker button has been pressed? I would like to implement some functionality based on that button press.
Hello,
what exactly is the button you call the "vive tracker button" There is a way to track all the buttons and retrieve the parameters.
Tell me which button exactly we are talking about and I will help you
Have a good day
Hello,
I do not have this device at my fingertips, so I could not provide a solution all in hand.
However, the Vred API provides a function
GenericTracker0 = vrOpenVRController ("GenericTracker0")
GenericTracker0.connectSignal ("buttonPressed", MyPressedFunction)
The two HTC controllers are controller0 for the right and controller1 for the left. And GenericTracker0 GenericTracker1 etc ... for trackers
def MyPressedFunction (Id):
print (Id)
And this function gives the id of the button pressed. This allows you to filter and above all to assign relative functions.
I hope helped you. Regards,
Good day
Hi,
can't get this to run. Is this the current best practice solution?
Best regards Marc
The buttons you want to use should be on the Tracker? If not, I have a better idea.
Just use a laser pointer. You could buy a laser pointer, which has at least two buttons.
You could do a lot of things with it in VRED.
Can't find what you're looking for? Ask the community or share your knowledge.