Jump to content

HTC VIVE input


DevRifter

Recommended Posts

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 

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...