diff options
| author | Jacob Palecki <[email protected]> | 2020-09-03 19:36:44 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-03 19:36:44 -0700 |
| commit | 01f870a493378a62ab76dcbf5dc37c0390ca7afe (patch) | |
| tree | b3dac41f6c0fa67b6c62c6643145f01b464c1a46 /common/accel-logarithmic.hpp | |
| parent | Change classic, natural, naturalgain to use gain offset (diff) | |
| download | rawaccel-01f870a493378a62ab76dcbf5dc37c0390ca7afe.tar.xz rawaccel-01f870a493378a62ab76dcbf5dc37c0390ca7afe.zip | |
Refactor for nice gain offset
Diffstat (limited to 'common/accel-logarithmic.hpp')
| -rw-r--r-- | common/accel-logarithmic.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/accel-logarithmic.hpp b/common/accel-logarithmic.hpp index c7991c7..1ab0e53 100644 --- a/common/accel-logarithmic.hpp +++ b/common/accel-logarithmic.hpp @@ -16,6 +16,9 @@ namespace rawaccel { //f(x) = log(m*x+1) return log(accel * speed + 1); } + + // incorrect but this style is slated for removal + inline double legacy_offset(double speed) const { return operator()(speed); } }; using accel_logarithmic = additive_accel<logarithmic_impl>; |