Skip to content

Commit

Permalink
fix(SDK): handle touch and classic controller plugged in - fixes #1866
Browse files Browse the repository at this point in the history
  • Loading branch information
TMaloteaux committed Aug 31, 2018
1 parent 863cdec commit aa10e66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/VRTK/Source/SDK/Oculus/SDK_OculusController.cs
Original file line number Diff line number Diff line change
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 aa10e66

Please sign in to comment.