From 723b98296a5636f561e3903560da9f1aa1797b82 Mon Sep 17 00:00:00 2001 From: GO63-samara Date: Sat, 31 Jul 2021 02:38:25 +0400 Subject: Adding a choice of centering method --- gui/settings.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gui/settings.cpp') 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 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, -- cgit v1.2.3