O'Reilly logo

Virtual Reality Blueprints by John Williamson, Charles Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mapping touch controller buttons

Although we used the X and A buttons, feel free to use whichever button combination works for your situation. The Unity documentation has a complete mapping for the Oculus, Gear VR and Vive controllers at https://docs.unity3d.com/Manual/OculusControllers.html. The mapping contains the name, interaction type, and ID of each button. These values are needed to tell Unity how to handle button inputs.

Depending on your version of the OVRPlugin or Unity, the Teleporter script may not work as expected. You may also have to add input settings for the controller buttons. Perform the following steps below to map the controller inputs:

  1. Select Edit | Project Settings | Input from the main menu.
  2. The Inspector panel now ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required