History

reset tablet contextual mode back to false when toggling tablet show/hide

David Back committed 9 years ago

Commit 08a6eb41 parent 80dc98b2 files · +11 −2Browse files

Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/HMDScriptingInterface.cpp+9−0
@@ -108,6 +108,15 @@ void HMDScriptingInterface::openTablet(bool contextualMode) { · 107 unmodified lines
108 _tabletContextualMode = contextualMode;108 _tabletContextualMode = contextualMode;
109}109}
110 110
111void HMDScriptingInterface::toggleShouldShowTablet() {
112 setShouldShowTablet(!getShouldShowTablet());
113}
114
115void HMDScriptingInterface::setShouldShowTablet(bool value) {
116 _showTablet = value;
117 _tabletContextualMode = false;
118}
119
111QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) {120QScriptValue HMDScriptingInterface::getHUDLookAtPosition2D(QScriptContext* context, QScriptEngine* engine) {
112 glm::vec3 hudIntersection;121 glm::vec3 hudIntersection;
113 auto instance = DependencyManager::get<HMDScriptingInterface>();122 auto instance = DependencyManager::get<HMDScriptingInterface>();