Update help window to auto select xbox or vive controller tab on availability of device
Showing the changes to interface/src/Application.cpp (1 of 12 files). Show all
Unified · Split
| @@ -2161,7 +2161,17 @@ void Application::aboutApp() { · 2160 unmodified lines | |||
| 2161 | } | 2161 | } |
| 2162 | 2162 | ||
| 2163 | void Application::showHelp() { | 2163 | void Application::showHelp() { |
| 2164 | InfoView::show(INFO_HELP_PATH); | 2164 | static const QString QUERY_STRING_XBOX = "xbox"; |
| 2165 | static const QString QUERY_STRING_VIVE = "vive"; | ||
| 2166 | |||
| 2167 | QString queryString = ""; | ||
| 2168 | if (PluginUtils::isViveControllerAvailable()) { | ||
| 2169 | queryString = QUERY_STRING_VIVE; | ||
| 2170 | } else if (PluginUtils::isXboxControllerAvailable()) { | ||
| 2171 | queryString = QUERY_STRING_XBOX; | ||
| 2172 | } | ||
| 2173 | |||
| 2174 | InfoView::show(INFO_HELP_PATH, false, queryString); | ||
| 2165 | } | 2175 | } |
| 2166 | 2176 | ||
| 2167 | void Application::resizeEvent(QResizeEvent* event) { | 2177 | void Application::resizeEvent(QResizeEvent* event) { |