HTC VIVE input

DevRifter
Regular

HTC VIVE input

I would  like to know  how to  Input controllers.

Accesing vive controlers  by SteamVR  =quite confusing

Accesing controlers  via OpenVR, even more confusing

isn't  there something simple  like,

if(Input.GetDown(ViveControler.Left.Trigger)

or

if(Input.GetDown(ViveControler.Left.touchpad.axes.y)

 

could  sombody write simple sample code for accesing vive controllers  with

A)steam vr

B)Open Vr

c).. something else

 I need to update my game for  vive https://www.youtube.com/watch?v=E7cVmHQIiG4&t=186s

 but when I think of using SteamVR sdk once again, Iam geting vomiting impulse

 

Vive Staff

Re: HTC VIVE input

The Vive Input Utility will probably help. 


@Dario, do you have any other resources that can help? 


David R

Technical Specialist - San Francisco, CA; Monday-Friday

Click here to send me a PM

Highlighted
Moderator

Re: HTC VIVE input

Hi, ha that's exactly why we made VIU available. It's exactly as the code you described and with the prefabs even easier. Also you can target openvr, oculus runtime, daydream, wave, windows mr and more with the same code.

 

And in addition to the asset store, it's open sourced on GitHub:

 

https://github.com/ViveSoftware/ViveInputUtility-Unity/releases