mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 06:23:06 +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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5042,10 +5042,7 @@ 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();
|
||||||
|
|
Loading…
Reference in a new issue