summaryrefslogtreecommitdiffhomepage
path: root/logic/main-settings.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:34:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:34:51 +0200
commitacb60d2264fb203898b16f01952cdb3498ffac20 (patch)
tree9261a5e0c67147dd22333f5cd29e8d35c91a8541 /logic/main-settings.hpp
parent3ffb397c4dfd6d00383f62a9e8814f4670c240be (diff)
logic/main-settings: simplify
Diffstat (limited to 'logic/main-settings.hpp')
-rw-r--r--logic/main-settings.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/logic/main-settings.hpp b/logic/main-settings.hpp
index 18c6f19a..4b29157f 100644
--- a/logic/main-settings.hpp
+++ b/logic/main-settings.hpp
@@ -40,6 +40,10 @@ struct OTR_LOGIC_EXPORT axis_opts final
t20 = 20,
t15 = 15,
t10 = 10,
+
+ o_r180 = -180,
+ o_r90 = -90,
+ o_t75 = -75,
};
// note, these two bundles can be the same value with no issues
@@ -47,7 +51,7 @@ struct OTR_LOGIC_EXPORT axis_opts final
value<double> zero;
value<int> src;
value<bool> invert, altp;
- value<max_clamp> clamp;
+ value<max_clamp> clamp_x, clamp_y;
axis_opts(bundle b_settings_window, bundle b_mapping_window, QString pfx, Axis idx);
private:
static inline QString n(QString pfx, QString name);
@@ -73,6 +77,7 @@ struct OTR_LOGIC_EXPORT main_settings final
bundle b, b_map;
axis_opts a_x, a_y, a_z;
axis_opts a_yaw, a_pitch, a_roll;
+ std::vector<axis_opts*> all_axis_opts;
value<bool> tcomp_p, tcomp_disable_tx, tcomp_disable_ty, tcomp_disable_tz;
value<bool> tcomp_disable_src_yaw, tcomp_disable_src_pitch, tcomp_disable_src_roll;
value<bool> tray_enabled, tray_start;
@@ -91,5 +96,6 @@ struct OTR_LOGIC_EXPORT main_settings final
key_opts key_zero_press1, key_zero_press2;
value<bool> tracklogging_enabled;
value<QString> tracklogging_filename;
+
main_settings();
};