MozillaReality / unity-webxr-export

INACTIVE - Assets for creating WebXR-enabled Unity3D projects.
https://mixedreality.mozilla.org/unity-webxr-export/Build/
Apache License 2.0
626 stars 127 forks source link

Remapping OpenVR inputs #364

Closed alessiograncini closed 4 months ago

alessiograncini commented 5 years ago

Creating the inputs for OpenVR from the unity documentations and mapping them to the Gamepad Ids of the WebVR templates, as suggested in the WebVR repo documentation, I successfully play the scene in Unity having the right response from the controller.

Unfortunately on the Web the controller inputs are not recognized - I still can see them. [in my scene there are no components referencing VIU when it plays correctly in Unity].

The demo from the repo deos exactly what I did and differently it works. I don't get it.

Do you guys know how to map OpenVR inputs and get them to work properly ?

sc1 sc2 sc3

alessiograncini commented 5 years ago

Further update. Got rid of VIU. Indeed, I don't need it. my only goal was mapping the OpenVR inputs on the webVR inputs. Success on Unity at runtime. Not the same on the web. Is there any specific way to do it ? Thank you.

CollinCunningham commented 4 years ago

I'm having the same issue using Oculus inputs - did you ever find a solution?

DanhuaZhang commented 4 years ago

Same issue here for Windows Mixed Reality. The input from the grip buttons in Unity seems to be touchpad-press in WebXR.