Skip to content

Commit

Permalink
fix(SDK): provide grip axis for oculus touch on steamvr
Browse files Browse the repository at this point in the history
The Oculus Touch controller has a grip axis which was not being
returned via SteamVR, because the HTC Vive wand does not have an
analog grip button. However, SteamVR still returns axis information
for the Oculus Touch grip.

This grip axis is now returned correctly for SteamVR.
  • Loading branch information
thestonefox committed Jun 22, 2017
1 parent 46c3939 commit f6264ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/VRTK/SDK/SteamVR/SDK_SteamVRController.cs
Expand Up @@ -463,6 +463,8 @@ public override Vector2 GetButtonAxis(ButtonTypes buttonType, VRTK_ControllerRef
return device.GetAxis();
case ButtonTypes.Trigger:
return device.GetAxis(EVRButtonId.k_EButton_SteamVR_Trigger);
case ButtonTypes.Grip:
return device.GetAxis(EVRButtonId.k_EButton_Axis2);
}
return Vector2.zero;
}
Expand Down

0 comments on commit f6264ad

Please sign in to comment.