mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 02:37:00 +02:00
get rid of toggleTabletUI lockout period
This commit is contained in:
parent
371c20ee25
commit
ae48dae96f
1 changed files with 0 additions and 7 deletions
|
@ -1620,14 +1620,7 @@ QString Application::getUserAgent() {
|
||||||
return userAgent;
|
return userAgent;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t lastTabletUIToggle { 0 };
|
|
||||||
const uint64_t toggleTabletUILockout { 500000 };
|
|
||||||
void Application::toggleTabletUI() const {
|
void Application::toggleTabletUI() const {
|
||||||
uint64_t now = usecTimestampNow();
|
|
||||||
if (now - lastTabletUIToggle < toggleTabletUILockout) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
lastTabletUIToggle = now;
|
|
||||||
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
||||||
TabletProxy* tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
|
TabletProxy* tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
|
||||||
bool messageOpen = tablet->isMessageDialogOpen();
|
bool messageOpen = tablet->isMessageDialogOpen();
|
||||||
|
|
Loading…
Reference in a new issue