summaryrefslogtreecommitdiffhomepage
path: root/logic/main-settings.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-09 12:33:15 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-09 12:33:15 +0100
commit1122994bfa7a1ea61d3e8bcc262b21954aca2fdd (patch)
treedee006d06b81709a8d40781a633bbeb883f8cbea /logic/main-settings.hpp
parent4442c953c05b0b1d240b088e0c6a3c4afdcdccf6 (diff)
gui, logic: add neck displacement feature
With it enabled, user's neck will be treated as separate from the rotation pivot. Rotating to the left will reposition to the left in addition to the rotation, and so on. This feature is subtle but apparently very popular with DCS users.
Diffstat (limited to 'logic/main-settings.hpp')
-rw-r--r--logic/main-settings.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/logic/main-settings.hpp b/logic/main-settings.hpp
index 53c5fae1..ea1d93f3 100644
--- a/logic/main-settings.hpp
+++ b/logic/main-settings.hpp
@@ -74,6 +74,7 @@ struct main_settings
value<bool> use_camera_offset_from_centering;
value<bool> center_at_startup;
value<int> center_method;
+ value<int> neck_y, neck_z;
key_opts key_start_tracking, key_stop_tracking, key_toggle_tracking, key_restart_tracking;
key_opts key_center, key_toggle, key_zero;
key_opts key_toggle_press, key_zero_press;
@@ -104,6 +105,8 @@ struct main_settings
use_camera_offset_from_centering(b, "use-camera-offset-from-centering", false),
center_at_startup(b, "center-at-startup", true),
center_method(b, "centering-method", true),
+ neck_y(b, "neck-height", 0),
+ neck_z(b, "neck-depth", 0),
key_start_tracking(b, "start-tracking"),
key_stop_tracking(b, "stop-tracking"),
key_toggle_tracking(b, "toggle-tracking"),