Showing the changes to libraries/input-plugins/src/input-plugins/ViveControllerManager.cpp (1 of 43 files). Show all
Unified · Split
| @@ -71,10 +71,10 @@ bool ViveControllerManager::isSupported() const { · 70 unmodified lines | ||
| 71 | 71 | #endif |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | −void ViveControllerManager::activate(PluginContainer* container) { | |
| 74 | +void ViveControllerManager::activate() { | |
| 75 | 75 | #ifdef Q_OS_WIN |
| 76 | − container->addMenu(MENU_PATH); | |
| 77 | − container->addMenuItem(MENU_PATH, RENDER_CONTROLLERS, | |
| 76 | + CONTAINER->addMenu(MENU_PATH); | |
| 77 | + CONTAINER->addMenuItem(MENU_PATH, RENDER_CONTROLLERS, | |
| 78 | 78 | [this] (bool clicked) { this->setRenderControllers(clicked); }, |
| 79 | 79 | true, true); |
| 80 | 80 | |
| @@ -135,10 +135,10 @@ void ViveControllerManager::activate(PluginContainer* container) { · 54 unmodified lines | ||
| 135 | 135 | #endif |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | −void ViveControllerManager::deactivate(PluginContainer* container) { | |
| 138 | +void ViveControllerManager::deactivate() { | |
| 139 | 139 | #ifdef Q_OS_WIN |
| 140 | − container->removeMenuItem(MENU_NAME, RENDER_CONTROLLERS); | |
| 141 | − container->removeMenu(MENU_PATH); | |
| 140 | + CONTAINER->removeMenuItem(MENU_NAME, RENDER_CONTROLLERS); | |
| 141 | + CONTAINER->removeMenu(MENU_PATH); | |
| 142 | 142 | |
| 143 | 143 | hmdRefCount--; |
| 144 | 144 | |