diff options
Diffstat (limited to 'ftnoir_filter_ewma2/ftnoir_filter_ewma2.h')
-rw-r--r-- | ftnoir_filter_ewma2/ftnoir_filter_ewma2.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ftnoir_filter_ewma2/ftnoir_filter_ewma2.h b/ftnoir_filter_ewma2/ftnoir_filter_ewma2.h index 73c0df99..9f603b25 100644 --- a/ftnoir_filter_ewma2/ftnoir_filter_ewma2.h +++ b/ftnoir_filter_ewma2/ftnoir_filter_ewma2.h @@ -8,12 +8,11 @@ #include "opentrack/options.hpp" using namespace options; -struct settings { - pbundle b; +struct settings : opts { // these are sadly sliders for now due to int/double mismatch -sh value<int> kMinSmoothing, kMaxSmoothing, kSmoothingScaleCurve; settings() : - b(bundle("ewma-filter")), + opts("ewma-filter"), kMinSmoothing(b, "min-smoothing", 15), kMaxSmoothing(b, "max-smoothing", 50), kSmoothingScaleCurve(b, "smoothing-scale-curve", 10) |