From 5b659e1cfbc4b8fbbd2f2bf41dc716929976c77d Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Sat, 28 Aug 2021 01:19:18 -0400 Subject: add per-device configuration adds input and [in, out] cap for classic mode adds input cap for power mode change wrapper/input, now gets useful device names change (now dev specific) dpi to adjust sensitivity change y sensitivity to y/x ratio remove spaced LUTs grapher and convert do not build --- common/utility.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/utility.hpp') diff --git a/common/utility.hpp b/common/utility.hpp index cbd19e3..63026c3 100644 --- a/common/utility.hpp +++ b/common/utility.hpp @@ -85,4 +85,10 @@ namespace rawaccel { template inline constexpr bool is_same_v = is_same::value; + template struct is_rvalue_ref { static constexpr bool value = false; }; + template struct is_rvalue_ref { static constexpr bool value = true; }; + + template + inline constexpr bool is_rvalue_ref_v = is_rvalue_ref::value; + } -- cgit v1.2.3 From e1397f3edbc0921ec1ff6f8e3501f786231dd2fb Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Sat, 18 Sep 2021 06:31:14 -0400 Subject: inline lerp --- common/utility.hpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'common/utility.hpp') diff --git a/common/utility.hpp b/common/utility.hpp index 63026c3..2587d91 100644 --- a/common/utility.hpp +++ b/common/utility.hpp @@ -35,15 +35,6 @@ namespace rawaccel { return (v < lo) ? lo : (hi < v) ? hi : v; } - constexpr double lerp(double a, double b, double t) - { - double x = a + t * (b - a); - if ((t > 1) == (a < b)) { - return maxsd(x, b); - } - return minsd(x, b); - } - // returns the unbiased exponent of x if x is normal inline int ilogb(double x) { -- cgit v1.2.3