ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.13k stars 1.28k forks source link

HTC Vive tracker / button events on controller/trackers #1082

Open FOKSlab opened 5 years ago

FOKSlab commented 5 years ago

Hi,

It may be a SteamVR update issue, but I had a program working with HTC Vive Trackers & controllers using tracker pogo PINs & controller buttons/touchpad (OpenVR based program polling vr::VREvent_t events)... and it is still working unless I add a HTC Vive tracker (just switching it on, SteamVR adding it in its peripheral list). As soon as a Vive tracker is added no button is detected any more (neither on controller nor on htc vive tracker pogo PINs). I did use 1.0.10.0 release of OpenVR. Could someone help me ? Best regards,

M.

FOKSlab commented 5 years ago

Some more data about this issue.

I tried using XR API of Unity with the last OpenVR release tracing all the joystick buttons and everything works until I connect the HTC Vive tracker ... then controllers events are no more interpreted as joystick buttons. Explanation can be found below I think (but not the way to solve the problem) Tracing in C++ with OpenVR SDK, I can look at the event type when I poll the events, on the trigger of the controller for instance (should be the same for other buttons) the event type code is 200 when no HTC Vive tracker connected, and 1700 as soon as the HTC Vive tracker is connected (and stays 1700 even if I disconnect the HTC Vive tracker using SteamVR UI : HTC Vive Tracker icon displayed in grey).

excenter commented 4 years ago

I've just picked up some trackers, and i'm really interested in using the pogopins to add a button. Did this ever get resolved, or is that not worth my time because the APIs are broken/changed?

FOKSlab commented 4 years ago

Sorry about that, I did not update the thread, if I remember it was because of the controller number limitation in steamVR. I was using the 2 original controllers and Vive trackers. It cannot be used this way if you want to get the pogo pins events. You have to "unpair" one of the controller (or both) in steamVR to add 1 Vive Tracker using pogo pins (or 2 if you have unpaired both controllers). I You may try it to be sure but it should work this way ... I hope.

Quinet-Maxence commented 2 years ago

Hello,

I would like to be able to use the POGO buttons on the back of the Vive Trackers in Unity in VR. The Arduino part of the pogo is already done, I just have to detect my button when I press it. However I can't find any information about this.

I see a lot of people saying that SteamVr broke this possibility with an update. (I guess they are talking about the Unity SteamVR plugin) Is reverting to an older version of the SteamVr plugin the one and only option?

In any case, I would really like someone to help me on this subject please.