mirror of
https://github.com/RawAccelOfficial/rawaccel.git
synced 2025-05-11 10:26:58 +02:00
natural legacy algorithm was correct, leave as it was
This commit is contained in:
parent
258fcd3bd2
commit
c06d88e602
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ namespace rawaccel {
|
|||
|
||||
double offset_x = x - offset;
|
||||
double decay = exp(-accel * offset_x);
|
||||
return limit * (1 - (decay)) + 1;
|
||||
return limit * (1 - (decay * offset_x + offset) / x) + 1;
|
||||
}
|
||||
|
||||
using natural_base::natural_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue