From 02ffd5a39bf36fb0fa4a4c068734747185fafcfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Thu, 30 Apr 2020 20:40:24 +0200 Subject: Change names of setting values for powermap. --- src/powermapfilter.cc | 8 +++--- src/settings.h | 70 +++++++++++++++++++++++++-------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) (limited to 'src') diff --git a/src/powermapfilter.cc b/src/powermapfilter.cc index da88482..702a837 100644 --- a/src/powermapfilter.cc +++ b/src/powermapfilter.cc @@ -40,10 +40,10 @@ bool PowermapFilter::filter(event_t& event, size_t pos) if (settings.enable_powermap.load()) { - powermap.setFixed0({settings.fixed0_x.load(), settings.fixed0_y.load()}); - powermap.setFixed1({settings.fixed1_x.load(), settings.fixed1_y.load()}); - powermap.setFixed2({settings.fixed2_x.load(), settings.fixed2_y.load()}); - powermap.setShelf(settings.shelf.load()); + powermap.setFixed0({settings.powermap_fixed0_x.load(), settings.powermap_fixed0_y.load()}); + powermap.setFixed1({settings.powermap_fixed1_x.load(), settings.powermap_fixed1_y.load()}); + powermap.setFixed2({settings.powermap_fixed2_x.load(), settings.powermap_fixed2_y.load()}); + powermap.setShelf(settings.powermap_shelf.load()); event.velocity = powermap.map(event.velocity); } diff --git a/src/settings.h b/src/settings.h index 4755bb2..471d730 100644 --- a/src/settings.h +++ b/src/settings.h @@ -146,13 +146,13 @@ struct Settings // Powermap parameters Atomic enable_powermap; - Atomic fixed0_x{0.}; - Atomic fixed0_y{0.}; - Atomic fixed1_x{.5}; - Atomic fixed1_y{.5}; - Atomic fixed2_x{1.}; - Atomic fixed2_y{1.}; - Atomic shelf{true}; + Atomic powermap_fixed0_x{0.}; + Atomic powermap_fixed0_y{0.}; + Atomic powermap_fixed1_x{.5}; + Atomic powermap_fixed1_y{.5}; + Atomic powermap_fixed2_x{1.}; + Atomic powermap_fixed2_y{1.}; + Atomic powermap_shelf{true}; Atomic audition_counter{0}; Atomic audition_instrument; @@ -220,13 +220,13 @@ struct SettingsGetter SettingRef latency_current; SettingRef enable_powermap; - SettingRef fixed0_x; - SettingRef fixed0_y; - SettingRef fixed1_x; - SettingRef fixed1_y; - SettingRef fixed2_x; - SettingRef fixed2_y; - SettingRef shelf; + SettingRef powermap_fixed0_x; + SettingRef powermap_fixed0_y; + SettingRef powermap_fixed1_x; + SettingRef powermap_fixed1_y; + SettingRef powermap_fixed2_x; + SettingRef powermap_fixed2_y; + SettingRef powermap_shelf; SettingRef audition_counter; SettingRef audition_instrument; @@ -277,13 +277,13 @@ struct SettingsGetter , latency_regain{settings.latency_regain} , latency_current{settings.latency_current} , enable_powermap{settings.enable_powermap} - , fixed0_x{settings.fixed0_x} - , fixed0_y{settings.fixed0_y} - , fixed1_x{settings.fixed1_x} - , fixed1_y{settings.fixed1_y} - , fixed2_x{settings.fixed2_x} - , fixed2_y{settings.fixed2_y} - , shelf{settings.shelf} + , powermap_fixed0_x{settings.powermap_fixed0_x} + , powermap_fixed0_y{settings.powermap_fixed0_y} + , powermap_fixed1_x{settings.powermap_fixed1_x} + , powermap_fixed1_y{settings.powermap_fixed1_y} + , powermap_fixed2_x{settings.powermap_fixed2_x} + , powermap_fixed2_y{settings.powermap_fixed2_y} + , powermap_shelf{settings.powermap_shelf} , audition_counter{settings.audition_counter} , audition_instrument{settings.audition_instrument} , audition_velocity{settings.audition_velocity} @@ -349,13 +349,13 @@ public: Notifier latency_current; Notifier enable_powermap; - Notifier fixed0_x; - Notifier fixed0_y; - Notifier fixed1_x; - Notifier fixed1_y; - Notifier fixed2_x; - Notifier fixed2_y; - Notifier shelf; + Notifier powermap_fixed0_x; + Notifier powermap_fixed0_y; + Notifier powermap_fixed1_x; + Notifier powermap_fixed1_y; + Notifier powermap_fixed2_x; + Notifier powermap_fixed2_y; + Notifier powermap_shelf; Notifier audition_counter; Notifier audition_instrument; @@ -420,13 +420,13 @@ public: EVAL(latency_current); EVAL(enable_powermap); - EVAL(fixed0_x); - EVAL(fixed0_y); - EVAL(fixed1_x); - EVAL(fixed1_y); - EVAL(fixed2_x); - EVAL(fixed2_y); - EVAL(shelf); + EVAL(powermap_fixed0_x); + EVAL(powermap_fixed0_y); + EVAL(powermap_fixed1_x); + EVAL(powermap_fixed1_y); + EVAL(powermap_fixed2_x); + EVAL(powermap_fixed2_y); + EVAL(powermap_shelf); EVAL(audition_counter); EVAL(audition_instrument); -- cgit v1.2.3