summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-04-14 00:13:19 -0400
committera1xd <[email protected]>2021-04-14 00:13:19 -0400
commit7a08f3e261b7799cbc1daad54c1fbc2d5ec363a4 (patch)
tree8f2ff8915e8e9cf84b3038f474e4edd4d7b39055 /common
parentmove arbitrary input into settings (diff)
downloadrawaccel-7a08f3e261b7799cbc1daad54c1fbc2d5ec363a4.tar.xz
rawaccel-7a08f3e261b7799cbc1daad54c1fbc2d5ec363a4.zip
fix arbitrary output starting from 0 in sens mode
Diffstat (limited to 'common')
-rw-r--r--common/accel-lookup.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/accel-lookup.hpp b/common/accel-lookup.hpp
index 4e8354f..2ca387f 100644
--- a/common/accel-lookup.hpp
+++ b/common/accel-lookup.hpp
@@ -265,7 +265,7 @@ namespace rawaccel {
range = fp_rep_range{ start, end, num };
last_log_lookup_index = end > start ? num * (end - start) - 1 : 0;
- vec2<float> current = {0, 0};
+ vec2<float> current = {0, velocity_points ? 0.0f : 1.0f };
vec2<float> next;
int log_index = 0;
double log_inner_iterator = range.start;