/* Copyright (c) 2015, Stanislaw Halik * Permission to use, copy, modify, and/or distribute this * software for any purpose with or without fee is hereby granted, * provided that the above copyright notice and this permission * notice appear in all copies. */ #pragma once #include #include "options/options.hpp" #include "api/plugin-api.hpp" using namespace options; #include "export.hpp" namespace axis_clamp_opts { } // ns axis-clamp-opts struct OPENTRACK_LOGIC_EXPORT axis_opts final { enum max_clamp { r180 = 180, r90 = 90, r60 = 60, r45 = 45, r30 = 30, r25 = 25, r20 = 20, r15 = 15, r10 = 10, t30 = 30, t20 = 20, t15 = 15, t10 = 10, }; // note, these two bundles can be the same value with no issues bundle b_settings_window, b_mapping_window; value zero; value src; value invert, altp; value clamp; axis_opts(bundle b_settings_window, bundle b_mapping_window, QString pfx, Axis idx); private: static inline QString n(QString pfx, QString name); }; struct OPENTRACK_LOGIC_EXPORT key_opts { value keycode, guid; value button; key_opts(bundle b, const QString& name); }; struct OPENTRACK_LOGIC_EXPORT module_settings { bundle b; value tracker_dll, filter_dll, protocol_dll; module_settings(); }; struct OPENTRACK_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; value tcomp_p, tcomp_disable_tx, tcomp_disable_ty, tcomp_disable_tz; value tcomp_disable_src_yaw, tcomp_disable_src_pitch, tcomp_disable_src_roll; value tray_enabled, tray_start; value camera_yaw, camera_pitch, camera_roll; value use_camera_offset_from_centering; value center_at_startup; value center_method; value neck_y, neck_z; value neck_enable; key_opts key_start_tracking1, key_start_tracking2; key_opts key_stop_tracking1, key_stop_tracking2; key_opts key_toggle_tracking1, key_toggle_tracking2; key_opts key_restart_tracking1, key_restart_tracking2; key_opts key_center1, key_center2; key_opts key_toggle1, key_toggle2; key_opts key_zero1, key_zero2; key_opts key_toggle_press1, key_toggle_press2; key_opts key_zero_press1, key_zero_press2; value tracklogging_enabled; value tracklogging_filename; main_settings(); };