mirror of
https://github.com/DrBeef/Doom3Quest.git
synced 2024-11-27 06:13:24 +00:00
Tweaks for CyberShoes
This commit is contained in:
parent
3283e8525c
commit
fd23ff3a77
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 * 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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue