Update to only send users to tutorial if they have Vive or Touch

This commit is contained in:
Ryan Huffman 2016-12-13 13:42:51 -08:00 committed by Seth Alves
parent 8aba8f7bf3
commit a72f8cac0e

View file

@ -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();