Fix issue with non-working mapping of smooth turn on buttons

This commit is contained in:
Petr Bartos 2022-03-15 23:37:54 +01:00
parent bebce8bfa6
commit a6b6046e74

View file

@ -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 )