overte/interface/src/scripting/KeyboardScriptingInterface.cpp
2018-11-27 11:56:07 -08:00

38 lines
1.1 KiB
C++

//
// KeyboardScriptingInterface.cpp
// interface/src/scripting
//
// Created by Dante Ruiz on 2018-08-27.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "KeyboardScriptingInterface.h"
#include "ui/Keyboard.h"
bool KeyboardScriptingInterface::isRaised() {
return DependencyManager::get<Keyboard>()->isRaised();
}
void KeyboardScriptingInterface::setRaised(bool raised) {
DependencyManager::get<Keyboard>()->setRaised(raised);
}
bool KeyboardScriptingInterface::isPassword() {
return DependencyManager::get<Keyboard>()->isPassword();
}
void KeyboardScriptingInterface::setPassword(bool password) {
DependencyManager::get<Keyboard>()->setPassword(password);
}
void KeyboardScriptingInterface::loadKeyboardFile(const QString& keyboardFile) {
DependencyManager::get<Keyboard>()->loadKeyboardFile(keyboardFile);
}
bool KeyboardScriptingInterface::getUse3DKeyboard() {
return DependencyManager::get<Keyboard>()->getUse3DKeyboard();
}