- enabled offhand grip button event whether or not the two handed weapon option is turned on

This commit is contained in:
Emanuele Disco 2022-03-06 04:59:43 +09:00
parent f5d006eb2e
commit bf44809a31

View file

@ -447,8 +447,8 @@ void HandleInput_Default( int control_scheme, ovrInputStateGamepad *pFootTrackin
1, KEY_JOY7);
Joy_GenerateButtonEvents(
((pOffTrackedRemoteOld->Buttons & ovrButton_GripTrigger) != 0) && !dominantGripPushedOld && !vr_twohandedweapons ? 1 : 0,
((pOffTrackedRemoteNew->Buttons & ovrButton_GripTrigger) != 0) && !dominantGripPushedNew && !vr_twohandedweapons ? 1 : 0,
((pOffTrackedRemoteOld->Buttons & ovrButton_GripTrigger) != 0) && !dominantGripPushedOld ? 1 : 0,
((pOffTrackedRemoteNew->Buttons & ovrButton_GripTrigger) != 0) && !dominantGripPushedNew ? 1 : 0,
1, KEY_PAD_RTHUMB);
}