From a6b6046e74a0b57a1fb553978eb04fdfe92a4b61 Mon Sep 17 00:00:00 2001 From: Petr Bartos Date: Tue, 15 Mar 2022 23:37:54 +0100 Subject: [PATCH] Fix issue with non-working mapping of smooth turn on buttons --- android/app/src/main/cpp/code/vr/vr_input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/app/src/main/cpp/code/vr/vr_input.c b/android/app/src/main/cpp/code/vr/vr_input.c index 0c0eab36..52908f34 100644 --- a/android/app/src/main/cpp/code/vr/vr_input.c +++ b/android/app/src/main/cpp/code/vr/vr_input.c @@ -1057,6 +1057,7 @@ static void IN_VRButtons( qboolean isRightController, uint32_t buttons ) { if (cl.snap.ps.pm_flags & PMF_FOLLOW) { + controller->buttons |= ovrButton_X; //Switch follow mode vr.follow_mode = (vr.follow_mode+1) % VRFM_NUM_FOLLOWMODES; } @@ -1102,8 +1103,6 @@ static void IN_VRButtons( qboolean isRightController, uint32_t buttons ) IN_SendButtonAction(action, qfalse, qfalse, 0); } } - - controller->buttons = buttons; } void IN_VRInputFrame( void )