diff options
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/main-settings.hpp | 4 | ||||
-rw-r--r-- | opentrack/tracker.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/opentrack/main-settings.hpp b/opentrack/main-settings.hpp index def21f31..971e0fba 100644 --- a/opentrack/main-settings.hpp +++ b/opentrack/main-settings.hpp @@ -29,6 +29,7 @@ struct main_settings { value<bool> tcomp_p, tcomp_tz; value<bool> tray_enabled; value<int> camera_yaw, camera_pitch; + value<bool> center_at_startup; main_settings(pbundle b) : b(b), tracker_dll(b, "tracker-dll", ""), @@ -45,6 +46,7 @@ struct main_settings { tcomp_tz(b, "compensate-translation-disable-z-axis", false), tray_enabled(b, "use-system-tray", false), camera_yaw(b, "camera-yaw", 0), - camera_pitch(b, "camera-pitch", 0) + camera_pitch(b, "camera-pitch", 0), + center_at_startup(b, "center-at-startup", true) {} }; diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp index 338c9113..6ce9a75f 100644 --- a/opentrack/tracker.cpp +++ b/opentrack/tracker.cpp @@ -24,7 +24,7 @@ Tracker::Tracker(main_settings& s, Mappings &m, SelectedLibraries &libs) : s(s), m(m), - centerp(true), + centerp(s.center_at_startup), enabledp(true), zero_(false), should_quit(false), |