History

3D Keyboard

Dante Ruiz committed 8 years ago

Commit 501746b1 parent b97fd6e131 files · +3681 −-43Browse files

Showing the changes to interface/src/scripting/KeyboardScriptingInterface.cpp (1 of 131 files). Show all

Unified · Split

interface/src/scripting/KeyboardScriptingInterface.cpp+34−0
@@ -0,0 +1,34 @@
1//
2// KeyboardScriptingInterface.cpp
3// interface/src/scripting
4//
5// Created by Dante Ruiz on 2018-08-27.
6// Copyright 2017 High Fidelity, Inc.
7//
8// Distributed under the Apache License, Version 2.0.
9// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10//
11
12#include "KeyboardScriptingInterface.h"
13#include "ui/Keyboard.h"
14
15bool KeyboardScriptingInterface::isRaised() {
16 return DependencyManager::get<Keyboard>()->isRaised();
17}
18
19void KeyboardScriptingInterface::setRaised(bool raised) {
20 DependencyManager::get<Keyboard>()->setRaised(raised);
21}
22
23
24bool KeyboardScriptingInterface::isPassword() {
25 return DependencyManager::get<Keyboard>()->isPassword();
26}
27
28void KeyboardScriptingInterface::setPassword(bool password) {
29 DependencyManager::get<Keyboard>()->setPassword(password);
30}
31
32void KeyboardScriptingInterface::loadKeyboardFile(const QString& keyboardFile) {
33 DependencyManager::get<Keyboard>()->loadKeyboardFile(keyboardFile);
34}