Skip to content

Commit

Permalink
Merge pull request #1886 from TMaloteaux/master
Browse files Browse the repository at this point in the history
fix(SDK): handle touch and classic controller plugged in - fixes #1866
  • Loading branch information
thestonefox committed Sep 2, 2018
2 parents 863cdec + aa10e66 commit f5b30c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/VRTK/Source/SDK/Oculus/SDK_OculusController.cs
Expand Up @@ -822,6 +822,7 @@ protected virtual OVRInput.Controller GetControllerMask(uint index)

switch (activeControllerType)
{
case OVRInput.Controller.Gamepad | OVRInput.Controller.RTouch | OVRInput.Controller.LTouch:
case OVRInput.Controller.Touch:
return (index == 0 ? OVRInput.Controller.LTouch : (index == 1 ? OVRInput.Controller.RTouch : OVRInput.Controller.None));
case OVRInput.Controller.LTouch:
Expand Down

0 comments on commit f5b30c8

Please sign in to comment.