summaryrefslogtreecommitdiff
path: root/common/rawaccel.hpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-03-30 18:27:02 -0400
committera1xd <[email protected]>2021-03-30 18:27:02 -0400
commitfa3ebfb1eb054ba88824a908c996094bb98e85c5 (patch)
treebf52cf6d5de16714dba11e96719ce1434a686779 /common/rawaccel.hpp
parentput utility in namespace (diff)
downloadrawaccel-fa3ebfb1eb054ba88824a908c996094bb98e85c5.tar.xz
rawaccel-fa3ebfb1eb054ba88824a908c996094bb98e85c5.zip
refactor lut/motivity
Diffstat (limited to 'common/rawaccel.hpp')
-rw-r--r--common/rawaccel.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/rawaccel.hpp b/common/rawaccel.hpp
index f6bc0fd..5d3ee15 100644
--- a/common/rawaccel.hpp
+++ b/common/rawaccel.hpp
@@ -145,7 +145,7 @@ namespace rawaccel {
vec2d sensitivity = { 1, 1 };
vec2d directional_multipliers = {};
- mouse_modifier(const settings& args, vec2<si_pair*> luts = {}) :
+ mouse_modifier(const settings& args) :
by_component(!args.combine_mags),
dpi_factor(1000 / args.dpi),
speed_cap(args.speed_cap)
@@ -172,8 +172,8 @@ namespace rawaccel {
return;
}
- accels.x = accel_variant(args.argsv.x, luts.x);
- accels.y = accel_variant(args.argsv.y, luts.y);
+ accels.x = accel_variant(args.argsv.x);
+ accels.y = accel_variant(args.argsv.y);
distance = weighted_distance(args.dom_args);
directional = direction_weight(args.range_weights);
@@ -243,4 +243,9 @@ namespace rawaccel {
mouse_modifier() = default;
};
+ struct io_t {
+ settings args;
+ mouse_modifier mod;
+ };
+
} // rawaccel