diff options
author | GO63-samara <go1@list.ru> | 2021-07-31 02:38:25 +0400 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-08-18 19:47:13 +0200 |
commit | c5a652e9ad60f1ab0ee586d578daa0be79359b28 (patch) | |
tree | 310e2ea5460e8702cc5dec9b96e7031b94fde0a0 /gui/settings.cpp | |
parent | 2fc5d7b3490e41952e0e335841d7d7f72a3b76a9 (diff) |
Adding a choice of centering method
Diffstat (limited to 'gui/settings.cpp')
-rw-r--r-- | gui/settings.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/settings.cpp b/gui/settings.cpp index 3851f0c2..cef93d19 100644 --- a/gui/settings.cpp +++ b/gui/settings.cpp @@ -59,6 +59,16 @@ options_dialog::options_dialog(std::function<void(bool)> pause_keybindings) : tie_setting(main.center_at_startup, ui.center_at_startup); + const centering_state centering_modes[] = { + center_disabled, + center_point, + center_vr360, + center_roll_compensated, + }; + for (unsigned k = 0; k < 4; k++) + ui.cbox_centering->setItemData(k, int(centering_modes[k])); + tie_setting(main.centering_mode, ui.cbox_centering); + const reltrans_state reltrans_modes[] = { reltrans_disabled, reltrans_enabled, |