History

adding keyboards settings

Dante Ruiz committed 7 years ago

Commit 51bdf1b1 parent fb3cdab17 files · +404 −97Browse files

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

Unified · Split

interface/src/scripting/KeyboardScriptingInterface.cpp+35−4
@@ -12,7 +12,7 @@ · 11 unmodified lines
1212 #include "KeyboardScriptingInterface.h"
1313 #include "ui/Keyboard.h"
1414
15−bool KeyboardScriptingInterface::isRaised() {
15+bool KeyboardScriptingInterface::isRaised() const {
1616 return DependencyManager::get<Keyboard>()->isRaised();
1717 }
1818
@@ -20,8 +20,7 @@ void KeyboardScriptingInterface::setRaised(bool raised) { · 1 unmodified line
2020 DependencyManager::get<Keyboard>()->setRaised(raised);
2121 }
2222
23−
24−bool KeyboardScriptingInterface::isPassword() {
23+bool KeyboardScriptingInterface::isPassword() const {
2524 return DependencyManager::get<Keyboard>()->isPassword();
2625 }
2726
@@ -33,6 +32,38 @@ void KeyboardScriptingInterface::loadKeyboardFile(const QString& keyboardFile) { · 5 unmodified lines
3332 DependencyManager::get<Keyboard>()->loadKeyboardFile(keyboardFile);
3433 }
3534
36−bool KeyboardScriptingInterface::getUse3DKeyboard() {
35+bool KeyboardScriptingInterface::getUse3DKeyboard() const {
3736 return DependencyManager::get<Keyboard>()->getUse3DKeyboard();
3837 }
38+
39+void KeyboardScriptingInterface::disableRightMallet() {
40+ DependencyManager::get<Keyboard>()->disableRightMallet();
41+}
42+
43+void KeyboardScriptingInterface::disableLeftMallet() {
44+ DependencyManager::get<Keyboard>()->disableLeftMallet();
45+}
46+
47+void KeyboardScriptingInterface::enableRightMallet() {
48+ DependencyManager::get<Keyboard>()->enableRightMallet();
49+}
50+
51+void KeyboardScriptingInterface::enableLeftMallet() {
52+ DependencyManager::get<Keyboard>()->enableLeftMallet();
53+}
54+
55+void KeyboardScriptingInterface::setLeftHandLaser(unsigned int leftHandLaser) {
56+ DependencyManager::get<Keyboard>()->setLeftHandLaser(leftHandLaser);
57+}
58+
59+void KeyboardScriptingInterface::setRightHandLaser(unsigned int rightHandLaser) {
60+ DependencyManager::get<Keyboard>()->setRightHandLaser(rightHandLaser);
61+}
62+
63+bool KeyboardScriptingInterface::getPreferMalletsOverLasers() const {
64+ return DependencyManager::get<Keyboard>()->getPreferMalletsOverLasers();
65+}
66+
67+bool KeyboardScriptingInterface::containsID(OverlayID overlayID) const {
68+ return DependencyManager::get<Keyboard>()->containsID(overlayID);
69+}