mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-29 17:29:54 +02:00
fix keybaord scaling
This commit is contained in:
parent
c5c643f90e
commit
d88a13fc80
2 changed files with 4 additions and 2 deletions
|
@ -5847,7 +5847,9 @@ void Application::reloadResourceCaches() {
|
||||||
DependencyManager::get<ScriptEngines>()->reloadAllScripts();
|
DependencyManager::get<ScriptEngines>()->reloadAllScripts();
|
||||||
getOffscreenUI()->clearCache();
|
getOffscreenUI()->clearCache();
|
||||||
|
|
||||||
DependencyManager::get<Keyboard>()->createKeyboard();
|
auto keyboard = DependencyManager::get<Keyboard>();
|
||||||
|
keyboard->createKeyboard();
|
||||||
|
keyboard->scaleKeyboard(getMyAvatar()->getSensorToWorldScale());
|
||||||
|
|
||||||
getMyAvatar()->resetFullAvatarURL();
|
getMyAvatar()->resetFullAvatarURL();
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,6 +98,7 @@ public:
|
||||||
bool isPassword() const;
|
bool isPassword() const;
|
||||||
void setPassword(bool password);
|
void setPassword(bool password);
|
||||||
void enableRightMallet();
|
void enableRightMallet();
|
||||||
|
void scaleKeyboard(float sensorToWorldScale);
|
||||||
void enableLeftMallet();
|
void enableLeftMallet();
|
||||||
void disableRightMallet();
|
void disableRightMallet();
|
||||||
void disableLeftMallet();
|
void disableLeftMallet();
|
||||||
|
@ -122,7 +123,6 @@ public slots:
|
||||||
void handleTriggerContinue(const QUuid& id, const PointerEvent& event);
|
void handleTriggerContinue(const QUuid& id, const PointerEvent& event);
|
||||||
void handleHoverBegin(const QUuid& id, const PointerEvent& event);
|
void handleHoverBegin(const QUuid& id, const PointerEvent& event);
|
||||||
void handleHoverEnd(const QUuid& id, const PointerEvent& event);
|
void handleHoverEnd(const QUuid& id, const PointerEvent& event);
|
||||||
void scaleKeyboard(float sensorToWorldScale);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct Anchor {
|
struct Anchor {
|
||||||
|
|
Loading…
Reference in a new issue