Menu Button fires Escape

The menu button now exits the menu as well as enters it. Stopgap for blocked menu issue
This commit is contained in:
Grant Bagwell committed 2019-08-01 15:54:34 +02:00
1 parent 25c1fcdf6b
commit 607d6e1682
1 file changed
+3
@@ -1225,6 +1225,9 @@ static void ovrApp_HandleInput( ovrApp * app )
//Menu control - Uses "touch"
if (useScreenLayer())
{
//Menu button
handleTrackedControllerButton(&leftTrackedRemoteState_new, &leftTrackedRemoteState_old,ovrButton_Enter, K_ESCAPE);
const ovrQuatf quatRemote = dominantRemoteTracking->HeadPose.Pose.Orientation;
float remoteAngles[3];
QuatToYawPitchRoll(quatRemote, remoteAngles);