mirror of
https://github.com/DrBeef/Doom3Quest.git
synced 2024-11-23 12:22:20 +00:00
Don't apply non-linerar distribution to feet
This commit is contained in:
parent
fd23ff3a77
commit
17ba19b924
1 changed files with 3 additions and 3 deletions
|
@ -459,10 +459,10 @@ void HandleInput_Default( int controlscheme, int switchsticks, ovrInputStateGame
|
|||
|
||||
{
|
||||
//Apply a filter and quadratic scaler so small movements are easier to make
|
||||
float dist = length(pSecondaryJoystick->x + (pFootTrackingNew->LeftJoystick.x), pSecondaryJoystick->y - (pFootTrackingNew->LeftJoystick.y));
|
||||
float dist = length(pSecondaryJoystick->x, pSecondaryJoystick->y);
|
||||
float nlf = nonLinearFilter(dist);
|
||||
float x = nlf * (pSecondaryJoystick->x + (pFootTrackingNew->LeftJoystick.x));
|
||||
float y = nlf * (pSecondaryJoystick->y - (pFootTrackingNew->LeftJoystick.y));
|
||||
float x = (nlf * pSecondaryJoystick->x) + pFootTrackingNew->LeftJoystick.x;
|
||||
float y = (nlf * pSecondaryJoystick->y) - pFootTrackingNew->LeftJoystick.y;
|
||||
|
||||
pVRClientInfo->player_moving = (fabs(x) + fabs(y)) > 0.05f;
|
||||
|
||||
|
|
Loading…
Reference in a new issue