Update VrInputDefault.c

This commit is contained in:
Simon 2020-04-23 20:21:00 +01:00
parent 37fc26e239
commit 2a7c5f0b1d

View file

@ -182,9 +182,9 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
//Teleport - only does anything if vr_teleport cvar is true
if (vr_use_teleport) {
if (pSecondaryTrackedRemoteOld->Joystick.y > 0.7f && !ready_teleport) {
if ((pSecondaryTrackedRemoteOld->Joystick.y > 0.7f) && !ready_teleport) {
ready_teleport = true;
} else if (pSecondaryTrackedRemoteOld->Joystick.y < 0.7f & ready_teleport) {
} else if ((pSecondaryTrackedRemoteOld->Joystick.y < 0.7f) && ready_teleport) {
ready_teleport = false;
trigger_teleport = true;
}