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
parent b599ccea9e
commit b9598a28f3

View file

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