mirror of
https://github.com/astromaddie/lambda1-vr.git
synced 2026-10-23 09:00:12 +02:00
fixed weapon jammend and non stopping secondary fire bug
This commit is contained in:
1 parent
ceeffa8f67
commit
e4d01f9595
1 file changed
+7
@@ -293,6 +293,13 @@ void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew,
|
||||
firingPrimary = (pDominantTrackedRemoteNew->Buttons & ovrButton_Trigger);
|
||||
sendButtonAction("+attack", firingPrimary);
|
||||
}
|
||||
// we need to release secondary fire if dominantGripPushed has been released before releasing trigger -> should fix the gun jamming and non stop firing secondary attack bug
|
||||
if ((pDominantTrackedRemoteNew->Buttons & ovrButton_Trigger) !=
|
||||
(pDominantTrackedRemoteOld->Buttons & ovrButton_Trigger) &&
|
||||
(pDominantTrackedRemoteNew->Buttons& ovrButton_Trigger) == false)
|
||||
{
|
||||
sendButtonAction("+attack2", false);
|
||||
}
|
||||
}
|
||||
|
||||
//Duck
|
||||
|
||||
Reference in new issue
Block a user