Remove moving of cursor with thumbstick (not working with absolute cursor position)

This commit is contained in:
Petr Bartos 2022-03-23 20:06:17 +01:00
parent 5e9a38307b
commit 95e55b5ba9

View file

@ -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; int y = 240 + tan((vr.weaponangles[PITCH] + vr_weaponPitch->value) * (M_PI*2 / 360)) * 300;
*vr.menuCursorX = x; *vr.menuCursorX = x;
*vr.menuCursorY = y; *vr.menuCursorY = y;
Com_QueueEvent(in_vrEventTime, SE_MOUSE, 0, 0, 0, NULL);
} }
} }
} else { } 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][0] = joystickX;
vr.thumbstick_location[isRightController][1] = joystickY; vr.thumbstick_location[isRightController][1] = joystickY;
if (vr.virtual_screen || if (!vr.virtual_screen && cl.snap.ps.pm_type != PM_INTERMISSION)
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 (isRightController == (vr_switchThumbsticks->integer != 0)) { if (isRightController == (vr_switchThumbsticks->integer != 0)) {
vec3_t positional; vec3_t positional;