summaryrefslogtreecommitdiff
path: root/common/rawaccel-settings.h
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-09-27 23:04:29 -0400
committera1xd <[email protected]>2020-09-27 23:04:29 -0400
commit85aefb4ba131521595e48fe1a25f4db9a69e71e6 (patch)
treef1c73a42b369f362a40ea251281d98ee02bf0a98 /common/rawaccel-settings.h
parentadd os detection to installer (diff)
downloadrawaccel-85aefb4ba131521595e48fe1a25f4db9a69e71e6.tar.xz
rawaccel-85aefb4ba131521595e48fe1a25f4db9a69e71e6.zip
add arg checks in wrapper
minor changes to settings shape, requires driver reinstall add error handling to writer grapher changes: add prettier serialization + comments add elements for scale and separated limit/exp reset irrelevant (invisible) arg input before checks/write
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;
};
}