summaryrefslogtreecommitdiff
path: root/common/rawaccel-settings.h
diff options
context:
space:
mode:
authorJacobPalecki <[email protected]>2020-09-27 20:54:57 -0700
committerGitHub <[email protected]>2020-09-27 20:54:57 -0700
commit5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b (patch)
treef1c73a42b369f362a40ea251281d98ee02bf0a98 /common/rawaccel-settings.h
parentMerge pull request #25 from JacobPalecki/GUI (diff)
parentadd arg checks in wrapper (diff)
downloadrawaccel-5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b.tar.xz
rawaccel-5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b.zip
Merge pull request #26 from a1xd/argcheck
Accel arg checks
Diffstat (limited to 'common/rawaccel-settings.h')
-rw-r--r--common/rawaccel-settings.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/rawaccel-settings.h b/common/rawaccel-settings.h
index 1a513ac..aeb89e8 100644
--- a/common/rawaccel-settings.h
+++ b/common/rawaccel-settings.h
@@ -7,6 +7,7 @@ namespace rawaccel {
using milliseconds = double;
inline constexpr milliseconds WRITE_DELAY = 1000;
+ inline constexpr milliseconds DEFAULT_TIME_MIN = 0.4;
enum class accel_mode {
linear, classic, natural, naturalgain, power, motivity, noaccel
@@ -18,7 +19,7 @@ namespace rawaccel {
vec2<accel_mode> modes = { accel_mode::noaccel, accel_mode::noaccel };
vec2<accel_args> argsv;
vec2d sens = { 1, 1 };
- milliseconds time_min = 0.4;
+ milliseconds time_min = DEFAULT_TIME_MIN;
};
}