VZController is our low-level controller and VR interface abstraction. It also supports gamepad and keyboard control for testing when you don't have a bike or HMD.

It's loaded dynamically by VZPlayer, where it can be accessed as VZPlayer.Controller.

It's properties are

These functions describe the state of VZ bike or sensor connection

The above buttons properties have these properties/methods

To get LeftButton and RightButton values with VZ Sensor, you need to use a hand controller that comes with your Rift (Touch), Vive, GearVR, or Daydream. Accessing these with Unity 5.4.2 requires that you separately install the SteamVR plugin, GoogleVR plugin, or OVR plugin for Unity, and enable the code in VZControllerMap.cs that talks to them (with the VZ_GAME build flag for all three, or by editing that file for just the plugins you install).  We'll soon add support for Unity 5.5+ to not require these plugin downloads.

You can test VZController functionality without a VZ bike or sensor when running from the Unity Editor with standard gamepads or keyboard, with the following mappings. Additional devices can be configured in Assets/VZ/Resources/VZControllerMap.xml

Gamepad

Keyboard