Showing the changes to interface/src/scripting/KeyboardScriptingInterface.cpp (1 of 17 files). Show all
Unified · Split
| @@ -12,7 +12,7 @@ · 11 unmodified lines | ||
| 12 | 12 | #include "KeyboardScriptingInterface.h" |
| 13 | 13 | #include "ui/Keyboard.h" |
| 14 | 14 | |
| 15 | −bool KeyboardScriptingInterface::isRaised() { | |
| 15 | +bool KeyboardScriptingInterface::isRaised() const { | |
| 16 | 16 | return DependencyManager::get<Keyboard>()->isRaised(); |
| 17 | 17 | } |
| 18 | 18 | |
| @@ -20,8 +20,7 @@ void KeyboardScriptingInterface::setRaised(bool raised) { · 1 unmodified line | ||
| 20 | 20 | DependencyManager::get<Keyboard>()->setRaised(raised); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | − | |
| 24 | −bool KeyboardScriptingInterface::isPassword() { | |
| 23 | +bool KeyboardScriptingInterface::isPassword() const { | |
| 25 | 24 | return DependencyManager::get<Keyboard>()->isPassword(); |
| 26 | 25 | } |
| 27 | 26 | |
| @@ -33,6 +32,38 @@ void KeyboardScriptingInterface::loadKeyboardFile(const QString& keyboardFile) { · 5 unmodified lines | ||
| 33 | 32 | DependencyManager::get<Keyboard>()->loadKeyboardFile(keyboardFile); |
| 34 | 33 | } |
| 35 | 34 | |
| 36 | −bool KeyboardScriptingInterface::getUse3DKeyboard() { | |
| 35 | +bool KeyboardScriptingInterface::getUse3DKeyboard() const { | |
| 37 | 36 | return DependencyManager::get<Keyboard>()->getUse3DKeyboard(); |
| 38 | 37 | } |
| 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 | +} | |