mirror of
https://github.com/DrBeef/RTCWQuest.git
synced 2025-04-22 23:11:02 +00:00
Allow to exit mounted gun also by jump button
This commit is contained in:
parent
1ce9744162
commit
a2b56145af
1 changed files with 5 additions and 2 deletions
|
@ -558,10 +558,13 @@ void HandleInput_Default( ovrInputStateGamepad *pFootTrackingNew, ovrInputStateG
|
|||
|
||||
//Jump (B Button)
|
||||
if (vr.backpackitemactive != 2 && !canUseBackpack) {
|
||||
|
||||
if ((primaryButtonsNew & primaryButton2) != (primaryButtonsOld & primaryButton2))
|
||||
{
|
||||
Sys_QueEvent( 0, SE_KEY, K_SPACE, (primaryButtonsNew & primaryButton2) != 0, 0, NULL );
|
||||
if (vr.mountedgun) {
|
||||
sendButtonAction("+activate", (primaryButtonsNew & primaryButton2) != 0);
|
||||
} else {
|
||||
Sys_QueEvent( 0, SE_KEY, K_SPACE, (primaryButtonsNew & primaryButton2) != 0, 0, NULL );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue