From 607d6e1682a37feeaad2e80e709e68255fa7f9ac Mon Sep 17 00:00:00 2001 From: Grant Bagwell Date: Thu, 1 Aug 2019 15:54:34 +0200 Subject: [PATCH] Menu Button fires Escape The menu button now exits the menu as well as enters it. Stopgap for blocked menu issue --- Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c b/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c index 72730af..cdd2cf2 100644 --- a/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c +++ b/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c @@ -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);