Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1082,7 +1082,7 @@ void Application::keyReleaseEvent(QKeyEvent* event) { · 1081 unmodified lines | ||
| 1082 | 1082 | |
| 1083 | 1083 | void Application::mouseMoveEvent(QMouseEvent* event) { |
| 1084 | 1084 | _lastMouseMove = usecTimestampNow(); |
| 1085 | − if (_mouseHidden && !isFullscreenOculus()) { | |
| 1085 | + if (_mouseHidden) { | |
| 1086 | 1086 | getGLWidget()->setCursor(Qt::ArrowCursor); |
| 1087 | 1087 | _mouseHidden = false; |
| 1088 | 1088 | _seenMouseMove = true; |
| @@ -1658,10 +1658,6 @@ void Application::findAxisAlignment() { · 569 unmodified lines | ||
| 1658 | 1658 | } |
| 1659 | 1659 | } |
| 1660 | 1660 | |
| 1661 | −bool Application::isFullscreenOculus() const { | |
| 1662 | − return OculusManager::isConnected() && _window->windowState().testFlag(Qt::WindowFullScreen); | |
| 1663 | −} | |
| 1664 | − | |
| 1665 | 1661 | void Application::nudgeVoxels() { |
| 1666 | 1662 | VoxelNode* selectedNode = _voxels.getVoxelAt(_mouseVoxel.x, _mouseVoxel.y, _mouseVoxel.z, _mouseVoxel.s); |
| 1667 | 1663 | if (!Menu::getInstance()->isOptionChecked(MenuOption::VoxelSelectMode) && selectedNode) { |
| @@ -2400,7 +2396,7 @@ void Application::updateCursor(float deltaTime) { · 732 unmodified lines | ||
| 2400 | 2396 | uint64_t now = usecTimestampNow(); |
| 2401 | 2397 | int elapsed = now - _lastMouseMove; |
| 2402 | 2398 | const int HIDE_CURSOR_TIMEOUT = 1 * 1000 * 1000; // 1 second |
| 2403 | − if ((elapsed > HIDE_CURSOR_TIMEOUT && (underMouse || !_seenMouseMove)) || isFullscreenOculus()) { | |
| 2399 | + if (elapsed > HIDE_CURSOR_TIMEOUT && (underMouse || !_seenMouseMove)) { | |
| 2404 | 2400 | getGLWidget()->setCursor(Qt::BlankCursor); |
| 2405 | 2401 | _mouseHidden = true; |
| 2406 | 2402 | } |