From 95e55b5ba9c321afb0992cf878188d49d823ca84 Mon Sep 17 00:00:00 2001 From: Petr Bartos Date: Wed, 23 Mar 2022 20:06:17 +0100 Subject: [PATCH] Remove moving of cursor with thumbstick (not working with absolute cursor position) --- android/app/src/main/cpp/code/vr/vr_input.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 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 80e389c3..3e3271b7 100644 --- a/android/app/src/main/cpp/code/vr/vr_input.c +++ b/android/app/src/main/cpp/code/vr/vr_input.c @@ -458,6 +458,7 @@ static void IN_VRController( qboolean isRightController, ovrTracking remoteTrack int y = 240 + tan((vr.weaponangles[PITCH] + vr_weaponPitch->value) * (M_PI*2 / 360)) * 300; *vr.menuCursorX = x; *vr.menuCursorY = y; + Com_QueueEvent(in_vrEventTime, SE_MOUSE, 0, 0, 0, NULL); } } } else { @@ -513,14 +514,7 @@ static void IN_VRJoystick( qboolean isRightController, float joystickX, float jo vr.thumbstick_location[isRightController][0] = joystickX; vr.thumbstick_location[isRightController][1] = joystickY; - if (vr.virtual_screen || - cl.snap.ps.pm_type == PM_INTERMISSION) - { - const float x = joystickX * 5.0; - const float y = joystickY * -5.0; - - Com_QueueEvent(in_vrEventTime, SE_MOUSE, x, y, 0, NULL); - } else + if (!vr.virtual_screen && cl.snap.ps.pm_type != PM_INTERMISSION) { if (isRightController == (vr_switchThumbsticks->integer != 0)) { vec3_t positional;