fix keybaord scaling

This commit is contained in:
danteruiz 2019-04-02 13:28:41 -07:00
parent c5c643f90e
commit d88a13fc80
2 changed files with 4 additions and 2 deletions

View file

@ -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();
} }

View file

@ -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 {