Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
SteamVRControllerState.cs
SteamVRInputRx.cs
ViveInput.cs

README.md

SteamVRInputRx

Input receiver from VR controllers such as Vive controller as Rx Stream

File

Source Code

  • SteamVRControllerState.cs
  • SteamVRInputRx.cs

Sample

  • ViveInput.cs

Requirements

  • UniRx
  • SteamVR Plugin

Usage

SteamVRInputRx is a MonoBehaviour.  
Attach SteamVRInputRx.cs to VR controller.
            var controller = GetComponent<SteamVRInputRx>();

            controller.ControllerState
                .Where(s => s == SteamVRControllerState.TriggerPressDown)
                .Subscribe(_ =>
                {
                	// Trigger Press
                });