mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-02-26 21:41:05 +00:00
reduce motion trigger threshold slightly
This commit is contained in:
parent
b669eb1ad9
commit
ad90a37aac
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ void HandleInput_Default( ovrInputStateGamepad *pFootTrackingNew, ovrInputStateG
|
||||||
VectorSubtract(vr.secondaryVelocityTriggerLocation, vr.hmdposition, start);
|
VectorSubtract(vr.secondaryVelocityTriggerLocation, vr.hmdposition, start);
|
||||||
VectorSubtract(vr.offhandposition, vr.hmdposition, end);
|
VectorSubtract(vr.offhandposition, vr.hmdposition, end);
|
||||||
float deltaLength = VectorLength(end) - VectorLength(start);
|
float deltaLength = VectorLength(end) - VectorLength(start);
|
||||||
if (fabs(deltaLength) > 0.25f) {
|
if (fabs(deltaLength) > 0.2f) {
|
||||||
if (deltaLength < 0) {
|
if (deltaLength < 0) {
|
||||||
sendButtonActionSimple(va("useGivenForce %i", FP_PULL));
|
sendButtonActionSimple(va("useGivenForce %i", FP_PULL));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue