Tweaks for CyberShoes

This commit is contained in:
Grant Bagwell 2021-01-26 17:44:55 +01:00
parent 3283e8525c
commit fd23ff3a77

View file

@ -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 * 2), pSecondaryJoystick->y - (pFootTrackingNew->LeftJoystick.y * 2));
float dist = length(pSecondaryJoystick->x + (pFootTrackingNew->LeftJoystick.x), pSecondaryJoystick->y - (pFootTrackingNew->LeftJoystick.y));
float nlf = nonLinearFilter(dist);
float x = nlf * (pSecondaryJoystick->x - (pFootTrackingNew->LeftJoystick.x * 2));
float y = nlf * (pSecondaryJoystick->y - (pFootTrackingNew->LeftJoystick.y * 2));
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;