summaryrefslogtreecommitdiffhomepage
path: root/filter-accela
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-16 01:33:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-16 06:45:48 +0100
commit6a8ee4a563ac7f3adcb9e822232f65b764141239 (patch)
tree39edde818f95a96d2b5c4a406582746783483666 /filter-accela
parent2940121b2cd87e2d259afa2226235561e69b8bd8 (diff)
filter/accela: modernize c++
Diffstat (limited to 'filter-accela')
-rw-r--r--filter-accela/accela-settings.hpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/filter-accela/accela-settings.hpp b/filter-accela/accela-settings.hpp
index 8cf684d1..073a9f3f 100644
--- a/filter-accela/accela-settings.hpp
+++ b/filter-accela/accela-settings.hpp
@@ -47,15 +47,11 @@ struct settings_accela : opts
static void make_splines(spline& rot, spline& pos);
- value<slider_value> rot_sensitivity, pos_sensitivity;
- value<slider_value> rot_deadzone, pos_deadzone;
- value<slider_value> ewma;
- settings_accela() :
- opts("accela-sliders"),
- rot_sensitivity(b, "rotation-sensitivity", slider_value(1.5, .05, 2.5)),
- pos_sensitivity(b, "translation-sensitivity", slider_value(1., .05, 1.5)),
- rot_deadzone(b, "rotation-deadzone", slider_value(.03, 0, .2)),
- pos_deadzone(b, "translation-deadzone", slider_value(.1, 0, 1)),
- ewma(b, "ewma", slider_value(0, 0, 200))
- {}
+ value<slider_value> rot_sensitivity { b, "rotation-sensitivity", slider_value(1.5, .05, 2.5) },
+ pos_sensitivity { b, "translation-sensitivity", slider_value(1., .05, 1.5) },
+ rot_deadzone { b, "rotation-deadzone", slider_value(.03, 0, .2) },
+ pos_deadzone { b, "translation-deadzone", slider_value(.1, 0, 1) },
+ ewma { b, "ewma", slider_value(0, 0, 200) };
+
+ settings_accela() : opts("accela-sliders") {}
};