mirror of
https://github.com/astromaddie/lambda1-vr.git
synced 2026-10-23 05:00:17 +02:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user