mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 15:53:28 +02:00
found a more simplified way to stop rendering the mouse unless its the Reticle cursor
This commit is contained in:
parent
7d2b75673c
commit
978108b3ba
2 changed files with 3 additions and 6 deletions
|
@ -3591,7 +3591,7 @@ void Application::setPreferAvatarFingerOverStylus(bool value) {
|
||||||
|
|
||||||
void Application::setPreferredCursor(const QString& cursorName) {
|
void Application::setPreferredCursor(const QString& cursorName) {
|
||||||
qCDebug(interfaceapp) << "setPreferredCursor" << cursorName;
|
qCDebug(interfaceapp) << "setPreferredCursor" << cursorName;
|
||||||
_preferredCursor.set(cursorName.isEmpty() ? DEFAULT_CURSOR_NAME : cursorName);
|
_preferredCursor.set(cursorName.isEmpty() ? Cursor::Manager::getIconName(Cursor::Icon::SYSTEM) : cursorName);
|
||||||
showCursor(Cursor::Manager::lookupIcon(_preferredCursor.get()));
|
showCursor(Cursor::Manager::lookupIcon(_preferredCursor.get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5041,11 +5041,8 @@ void Application::idle() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
if((displayPlugin && displayPlugin->isHmd()) || _preferredCursor.get() == Cursor::Manager::ICON_NAMES[Cursor::Icon::RETICLE]){
|
checkChangeCursor();
|
||||||
checkChangeCursor();
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !defined(DISABLE_QML)
|
#if !defined(DISABLE_QML)
|
||||||
auto stats = Stats::getInstance();
|
auto stats = Stats::getInstance();
|
||||||
|
|
|
@ -683,7 +683,7 @@ void OpenGLDisplayPlugin::compositeLayers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& cursorManager = Cursor::Manager::instance();
|
auto& cursorManager = Cursor::Manager::instance();
|
||||||
if (isHmd() || cursorManager.getCursor()->getIcon() == Cursor::RETICLE ) {
|
if (isHmd() || cursorManager.getCursor()->getIcon() == Cursor::RETICLE) {
|
||||||
auto compositorHelper = DependencyManager::get<CompositorHelper>();
|
auto compositorHelper = DependencyManager::get<CompositorHelper>();
|
||||||
// Draw the pointer last so it's on top of everything
|
// Draw the pointer last so it's on top of everything
|
||||||
if (compositorHelper->getReticleVisible()) {
|
if (compositorHelper->getReticleVisible()) {
|
||||||
|
|
Loading…
Reference in a new issue