mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 02:37:02 +02:00
changed the behaviour of Standard.LY input
This commit is contained in:
parent
ced4061d76
commit
6d3a79af83
2 changed files with 14 additions and 2 deletions
|
@ -14,8 +14,17 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ "from": "Standard.RX", "to": "Actions.Yaw" },
|
{ "from": "Standard.RX", "to": "Actions.Yaw" },
|
||||||
{ "from": "Standard.RY", "when": "!Application.InHMD", "to": "Actions.Pitch" },
|
|
||||||
|
|
||||||
|
{ "from": "Standard.RY",
|
||||||
|
"when": "Application.Grounded",
|
||||||
|
"to": "Actions.Up",
|
||||||
|
"filters":
|
||||||
|
[
|
||||||
|
{ "type": "deadZone", "min": 0.95 },
|
||||||
|
"invert"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{ "from": "Standard.RY", "to": "Actions.Up", "filters": "invert"},
|
||||||
|
|
||||||
{ "from": [ "Standard.DU", "Standard.DL", "Standard.DR", "Standard.DD" ], "to": "Standard.LeftPrimaryThumb" },
|
{ "from": [ "Standard.DU", "Standard.DL", "Standard.DR", "Standard.DD" ], "to": "Standard.LeftPrimaryThumb" },
|
||||||
{ "from": "Standard.Back", "to": "Standard.LeftSecondaryThumb" },
|
{ "from": "Standard.Back", "to": "Standard.LeftSecondaryThumb" },
|
||||||
|
|
|
@ -646,6 +646,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) :
|
||||||
_applicationStateDevice->addInputVariant(QString("ComfortMode"), controller::StateController::ReadLambda([]() -> float {
|
_applicationStateDevice->addInputVariant(QString("ComfortMode"), controller::StateController::ReadLambda([]() -> float {
|
||||||
return (float)Menu::getInstance()->isOptionChecked(MenuOption::ComfortMode);
|
return (float)Menu::getInstance()->isOptionChecked(MenuOption::ComfortMode);
|
||||||
}));
|
}));
|
||||||
|
_applicationStateDevice->addInputVariant(QString("Grounded"), controller::StateController::ReadLambda([]() -> float {
|
||||||
|
return (float)qApp->getMyAvatar()->getCharacterController()->onGround();
|
||||||
|
}));
|
||||||
|
|
||||||
userInputMapper->registerDevice(_applicationStateDevice);
|
userInputMapper->registerDevice(_applicationStateDevice);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue