mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Update to only send users to tutorial if they have Vive or Touch
This commit is contained in:
parent
8aba8f7bf3
commit
a72f8cac0e
1 changed files with 5 additions and 1 deletions
|
@ -1420,7 +1420,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
bool hasTutorialContent = contentVersion >= 1;
|
||||
|
||||
Setting::Handle<bool> firstRun { Settings::firstRun, true };
|
||||
bool hasHMDAndHandControllers = PluginUtils::isHMDAvailable() && PluginUtils::isHandControllerAvailable();
|
||||
|
||||
// Only specific hand controllers are currently supported, so only send users to the tutorial
|
||||
// if they one of those.
|
||||
bool hasHMDAndHandControllers = PluginUtils::isHMDAvailable()
|
||||
&& (PluginUtils::isViveControllerAvailable() || PluginUtils::isOculusTouchControllerAvailable());
|
||||
Setting::Handle<bool> tutorialComplete { "tutorialComplete", false };
|
||||
|
||||
bool shouldGoToTutorial = hasHMDAndHandControllers && hasTutorialContent && !tutorialComplete.get();
|
||||
|
|
Loading…
Reference in a new issue