Merge pull request #20 from petr666/feature/turning-as-mappable-command

Turning as mappable command
This commit is contained in:
Simon 2022-03-15 22:52:37 +00:00 committed by GitHub
commit 4c8719b9b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1061,6 +1061,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;
}
@ -1106,8 +1107,6 @@ static void IN_VRButtons( qboolean isRightController, uint32_t buttons )
IN_SendButtonAction(action, qfalse, qfalse, 0);
}
}
controller->buttons = buttons;
}
void IN_VRInputFrame( void )