overte-HifiExperiments/interface/src/scripting/KeyboardScriptingInterface.cpp
2019-01-25 11:10:11 -08:00

69 lines
2.2 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() const {
return DependencyManager::get<Keyboard>()->isRaised();
}
void KeyboardScriptingInterface::setRaised(bool raised) {
DependencyManager::get<Keyboard>()->setRaised(raised);
}
bool KeyboardScriptingInterface::isPassword() const {
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() const {
return DependencyManager::get<Keyboard>()->getUse3DKeyboard();
}
void KeyboardScriptingInterface::disableRightMallet() {
DependencyManager::get<Keyboard>()->disableRightMallet();
}
void KeyboardScriptingInterface::disableLeftMallet() {
DependencyManager::get<Keyboard>()->disableLeftMallet();
}
void KeyboardScriptingInterface::enableRightMallet() {
DependencyManager::get<Keyboard>()->enableRightMallet();
}
void KeyboardScriptingInterface::enableLeftMallet() {
DependencyManager::get<Keyboard>()->enableLeftMallet();
}
void KeyboardScriptingInterface::setLeftHandLaser(unsigned int leftHandLaser) {
DependencyManager::get<Keyboard>()->setLeftHandLaser(leftHandLaser);
}
void KeyboardScriptingInterface::setRightHandLaser(unsigned int rightHandLaser) {
DependencyManager::get<Keyboard>()->setRightHandLaser(rightHandLaser);
}
bool KeyboardScriptingInterface::getPreferMalletsOverLasers() const {
return DependencyManager::get<Keyboard>()->getPreferMalletsOverLasers();
}
bool KeyboardScriptingInterface::containsID(const QUuid& id) const {
return DependencyManager::get<Keyboard>()->containsID(id);
}