mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02:00
made requested changes
This commit is contained in:
parent
0f0bf79367
commit
7687617e91
1 changed files with 3 additions and 3 deletions
|
@ -576,7 +576,7 @@ void ViveControllerManager::InputDevice::saveSettings() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ViveControllerManager::InputDevice::configToString() {
|
QString ViveControllerManager::InputDevice::configToString() {
|
||||||
QString currentConfig = "";
|
QString currentConfig;
|
||||||
switch (_preferedConfig) {
|
switch (_preferedConfig) {
|
||||||
case Config::Auto:
|
case Config::Auto:
|
||||||
currentConfig = "Auto";
|
currentConfig = "Auto";
|
||||||
|
@ -601,7 +601,7 @@ void ViveControllerManager::InputDevice::setConfigFromString(const QString& valu
|
||||||
if (value == "Auto") {
|
if (value == "Auto") {
|
||||||
_preferedConfig = Config::Auto;
|
_preferedConfig = Config::Auto;
|
||||||
} else if (value == "Feet") {
|
} else if (value == "Feet") {
|
||||||
_preferedConfig = Config::Feet;
|
_preferedConfig = Config::Feet;
|
||||||
} else if (value == "FeetAndHips") {
|
} else if (value == "FeetAndHips") {
|
||||||
_preferedConfig = Config::FeetAndHips;
|
_preferedConfig = Config::FeetAndHips;
|
||||||
} else if (value == "FeetHipsAndChest") {
|
} else if (value == "FeetHipsAndChest") {
|
||||||
|
@ -612,7 +612,7 @@ void ViveControllerManager::InputDevice::setConfigFromString(const QString& valu
|
||||||
void ViveControllerManager::InputDevice::createPreferences() {
|
void ViveControllerManager::InputDevice::createPreferences() {
|
||||||
loadSettings();
|
loadSettings();
|
||||||
auto preferences = DependencyManager::get<Preferences>();
|
auto preferences = DependencyManager::get<Preferences>();
|
||||||
static const QString VIVE_PUCKS_CONFIG { "Vive Pucks Configuration" };
|
static const QString VIVE_PUCKS_CONFIG = "Vive Pucks Configuration";
|
||||||
|
|
||||||
{
|
{
|
||||||
auto getter = [this]()->QString { return configToString(); };
|
auto getter = [this]()->QString { return configToString(); };
|
||||||
|
|
Loading…
Reference in a new issue