1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/* Copyright (c) 2015, Stanislaw Halik <sthalik@misaki.pl>
* 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 <QString>
#include "options/options.hpp"
#include "api/plugin-api.hpp"
using namespace options;
#include "export.hpp"
namespace axis_clamp_opts
{
} // ns axis-clamp-opts
struct OTR_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,
t100 = 100,
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<double> zero;
value<int> src;
value<bool> invert, altp;
value<max_clamp> 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 OTR_LOGIC_EXPORT key_opts
{
value<QString> keycode, guid;
value<int> button;
key_opts(bundle b, const QString& name);
};
struct OTR_LOGIC_EXPORT module_settings
{
bundle b;
value<QString> tracker_dll, filter_dll, protocol_dll;
module_settings();
};
struct OTR_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<bool> tcomp_p, tcomp_disable_tx, tcomp_disable_ty, tcomp_disable_tz;
value<bool> tcomp_disable_src_yaw, tcomp_disable_src_pitch, tcomp_disable_src_roll;
value<bool> tray_enabled, tray_start;
value<bool> center_at_startup;
value<int> center_method;
value<int> neck_z;
value<bool> 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<bool> tracklogging_enabled;
value<QString> tracklogging_filename;
main_settings();
};
|