summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-09-26 02:10:29 -0400
committerGitHub <[email protected]>2020-09-26 02:10:29 -0400
commit9353f5b9adc50456fefc2e55aab5e57029e89682 (patch)
tree5d28926aee87c077ffc4ed7222469bbf2f28bd2c /common
parentMerge pull request #22 from JacobPalecki/GUI (diff)
parentSetActive changes field default, bugs fixed (diff)
downloadrawaccel-9353f5b9adc50456fefc2e55aab5e57029e89682.tar.xz
rawaccel-9353f5b9adc50456fefc2e55aab5e57029e89682.zip
Merge pull request #23 from JacobPalecki/GUI
Settings writer; GUI performance enhancement and touchups
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;
};
}