diff options
| author | a1xd <[email protected]> | 2021-04-08 02:30:01 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-04-08 02:30:01 -0400 |
| commit | c55d1bfd01147fa014ac07d4b03ef3cad8427ae6 (patch) | |
| tree | 39ffa4a79bc6b019443521f10203f787c4b98698 /common/rawaccel-base.hpp | |
| parent | unmark fill as const (diff) | |
| download | rawaccel-c55d1bfd01147fa014ac07d4b03ef3cad8427ae6.tar.xz rawaccel-c55d1bfd01147fa014ac07d4b03ef3cad8427ae6.zip | |
optimize a bit/refactor modify
Diffstat (limited to 'common/rawaccel-base.hpp')
| -rw-r--r-- | common/rawaccel-base.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/rawaccel-base.hpp b/common/rawaccel-base.hpp index 6ce4468..dde56f5 100644 --- a/common/rawaccel-base.hpp +++ b/common/rawaccel-base.hpp @@ -17,6 +17,9 @@ namespace rawaccel { inline constexpr size_t LUT_CAPACITY = 1025; + inline constexpr double MAX_NORM = 16; + inline constexpr double PI = 3.14159265358979323846; + enum class accel_mode { classic, jump, @@ -79,7 +82,7 @@ namespace rawaccel { vec2<accel_args> argsv; vec2d sens = { 1, 1 }; - vec2d dir_multipliers = {}; + vec2d dir_multipliers = { 1, 1 }; domain_args dom_args = {}; vec2d range_weights = { 1, 1 }; |