From c55d1bfd01147fa014ac07d4b03ef3cad8427ae6 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Thu, 8 Apr 2021 02:30:01 -0400 Subject: optimize a bit/refactor modify --- common/rawaccel-base.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/rawaccel-base.hpp') 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 argsv; vec2d sens = { 1, 1 }; - vec2d dir_multipliers = {}; + vec2d dir_multipliers = { 1, 1 }; domain_args dom_args = {}; vec2d range_weights = { 1, 1 }; -- cgit v1.2.3