summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-08-20 12:51:33 -0700
committerJacob Palecki <[email protected]>2020-08-20 12:51:33 -0700
commitfe17d04e571d180e663c7014e803ce790693f4b1 (patch)
treec2e026ab79b73d3e48cc71aebde90b095771587c /common
parentAdd empty active labels for all options (diff)
downloadrawaccel-fe17d04e571d180e663c7014e803ce790693f4b1.tar.xz
rawaccel-fe17d04e571d180e663c7014e803ce790693f4b1.zip
Display active values
Diffstat (limited to 'common')
-rw-r--r--common/rawaccel.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/rawaccel.hpp b/common/rawaccel.hpp
index 7e72f20..23a8214 100644
--- a/common/rawaccel.hpp
+++ b/common/rawaccel.hpp
@@ -185,6 +185,8 @@ namespace rawaccel {
vec2<accel_scale_clamp> clamp;
velocity_gain_cap gain_cap = velocity_gain_cap();
+
+ accel_args impl_args;
accel_function(const accel_fn_args& args) {
if (args.time_min <= 0) bad_arg("min time must be positive");
@@ -192,6 +194,7 @@ namespace rawaccel {
accel.tag = args.accel_mode;
accel.visit([&](auto& impl) { impl = { args.acc_args }; });
+ impl_args = args.acc_args;
time_min = args.time_min;
speed_offset = args.acc_args.offset;