summaryrefslogtreecommitdiff
path: root/common/accel-logarithmic.hpp
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-04 01:15:12 -0700
committerJacob Palecki <[email protected]>2020-09-04 01:15:12 -0700
commit87ee655d3c0ba3cdb0ca71a1b66aeb02c8c6aa70 (patch)
treea2ca5c42352737e3dab48ec854c1cd068a282e46 /common/accel-logarithmic.hpp
parentThe menus mostly work (diff)
parentMerge pull request #19 from JacobPalecki/gainOffset (diff)
downloadrawaccel-87ee655d3c0ba3cdb0ca71a1b66aeb02c8c6aa70.tar.xz
rawaccel-87ee655d3c0ba3cdb0ca71a1b66aeb02c8c6aa70.zip
Merge with master
Diffstat (limited to 'common/accel-logarithmic.hpp')
-rw-r--r--common/accel-logarithmic.hpp3
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>;