summaryrefslogtreecommitdiff
path: root/common/rawaccel-settings.h
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-10-25 23:57:44 -0400
committerGitHub <[email protected]>2020-10-25 23:57:44 -0400
commit1601eaffd7c83888fd804c00eae0b0e8633232ee (patch)
tree72beb1b8b32b82ebfd853c04fe85c1f67e1d4afe /common/rawaccel-settings.h
parentMerge pull request #37 from JacobPalecki/GUI (diff)
parentupdate signed (diff)
downloadrawaccel-1.2.0.tar.xz
rawaccel-1.2.0.zip
Merge pull request #38 from a1xd/1.2v1.2.0-w7v1.2.0
1.2.0
Diffstat (limited to 'common/rawaccel-settings.h')
-rw-r--r--common/rawaccel-settings.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/rawaccel-settings.h b/common/rawaccel-settings.h
index aeb89e8..e9e158c 100644
--- a/common/rawaccel-settings.h
+++ b/common/rawaccel-settings.h
@@ -4,10 +4,12 @@
#include "accel-base.hpp"
namespace rawaccel {
+
using milliseconds = double;
+ inline constexpr int MAX_POLL_RATE_KHZ = 8;
+ inline constexpr milliseconds DEFAULT_TIME_MIN = 1.0 / MAX_POLL_RATE_KHZ * 0.8;
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