summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-25 19:35:54 -0700
committerJacob Palecki <[email protected]>2020-09-25 19:35:54 -0700
commitf2279a5c52d5da43e48133e753514b3806bb7e3c (patch)
tree328830580cf5bb96a317a61bef3e155dc2a17fd5 /common
parentUse log LUT rather than binary search for last mouse move point (diff)
parentadd initial writer (diff)
downloadrawaccel-f2279a5c52d5da43e48133e753514b3806bb7e3c.tar.xz
rawaccel-f2279a5c52d5da43e48133e753514b3806bb7e3c.zip
merge with writer
Diffstat (limited to 'common')
-rw-r--r--common/rawaccel-settings.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/rawaccel-settings.h b/common/rawaccel-settings.h
index 2ba6a98..93f4768 100644
--- a/common/rawaccel-settings.h
+++ b/common/rawaccel-settings.h
@@ -4,6 +4,9 @@
#include "accel-base.hpp"
namespace rawaccel {
+ using milliseconds = double;
+
+ inline constexpr milliseconds WRITE_DELAY = 1000;
enum class accel_mode {
linear, classic, natural, naturalgain, power, logarithm, motivity, noaccel
@@ -15,7 +18,7 @@ namespace rawaccel {
vec2<accel_mode> modes = { accel_mode::noaccel, accel_mode::noaccel };
vec2<accel_args> argsv;
vec2d sens = { 1, 1 };
- double time_min = 0.4;
+ milliseconds time_min = 0.4;
};
}