Keyboard menu option in general settings
Showing the changes to interface/src/ui/Keyboard.cpp (1 of 8 files). Show all
Unified · Split
| @@ -241,6 +241,17 @@ void Keyboard::registerKeyboardHighlighting() { · 240 unmodified lines | |||
| 241 | selection->enableListToScene(KEY_PRESSED_HIGHLIGHT); | 241 | selection->enableListToScene(KEY_PRESSED_HIGHLIGHT); |
| 242 | } | 242 | } |
| 243 | 243 | ||
| 244 | bool Keyboard::getUse3DKeyboard() const { | ||
| 245 | return _use3DKeyboardLock.resultWithReadLock<bool>([&] { | ||
| 246 | return _use3DKeyboard.get(); | ||
| 247 | }); | ||
| 248 | } | ||
| 249 | |||
| 250 | void Keyboard::setUse3DKeyboard(bool use) { | ||
| 251 | _use3DKeyboardLock.withWriteLock([&] { | ||
| 252 | _use3DKeyboard.set(use); | ||
| 253 | }); | ||
| 254 | } | ||
| 244 | 255 | ||
| 245 | void Keyboard::createKeyboard() { | 256 | void Keyboard::createKeyboard() { |
| 246 | auto pointerManager = DependencyManager::get<PointerManager>(); | 257 | auto pointerManager = DependencyManager::get<PointerManager>(); |