From 16dc4df3d438142ae378c9c6983585d06e0c6a33 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Mon, 29 Mar 2021 17:14:49 -0400 Subject: refactor common/settings only driver compiles remove accel-base types merge linear + classic move gain cap logic into classic impl, cap is now set in terms of output use cap/limit to determine negation remove weight, add replacement for power mode only remove legacy offset option remove naturalgain mode add legacy mode flag naturalgain -> natural natural -> natural + legacy flag add dpi setting and more accel args + defaults (prep for ips mode) replace output speed cap with input cap --- common/accel-noaccel.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'common/accel-noaccel.hpp') diff --git a/common/accel-noaccel.hpp b/common/accel-noaccel.hpp index c803c2f..b4f1704 100644 --- a/common/accel-noaccel.hpp +++ b/common/accel-noaccel.hpp @@ -1,6 +1,6 @@ #pragma once -#include "accel-base.hpp" +#include "rawaccel-settings.h" namespace rawaccel { @@ -11,8 +11,6 @@ namespace rawaccel { accel_noaccel() = default; inline double operator()(double) const { return 1; } - - inline double legacy_offset(double speed) const { return operator()(speed); } }; } -- cgit v1.2.3 From ed0bbc22681681a16b7d45b05133c38a0b82006f Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Mon, 29 Mar 2021 18:01:20 -0400 Subject: formatting + file renames --- common/accel-noaccel.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/accel-noaccel.hpp') diff --git a/common/accel-noaccel.hpp b/common/accel-noaccel.hpp index b4f1704..8d1e758 100644 --- a/common/accel-noaccel.hpp +++ b/common/accel-noaccel.hpp @@ -1,6 +1,6 @@ #pragma once -#include "rawaccel-settings.h" +#include "rawaccel-base.hpp" namespace rawaccel { @@ -10,7 +10,7 @@ namespace rawaccel { accel_noaccel(const accel_args&) {} accel_noaccel() = default; - inline double operator()(double) const { return 1; } + double operator()(double) const { return 1; } }; } -- cgit v1.2.3