Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 19 files). Show all
Unified · Split
| @@ -16,6 +16,7 @@ · 15 unmodified lines | |||
| 16 | #include <plugins/PluginManager.h> | 16 | #include <plugins/PluginManager.h> |
| 17 | 17 | ||
| 18 | #include "Application.h" | 18 | #include "Application.h" |
| 19 | #include "VirtualPadManager.h" | ||
| 19 | 20 | ||
| 20 | bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const { | 21 | bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const { |
| 21 | return isKeyCaptured(KeyEvent(*event)); | 22 | return isKeyCaptured(KeyEvent(*event)); |
| @@ -83,6 +84,11 @@ QVariant ControllerScriptingInterface::getRecommendedHUDRect() const { · 61 unmodified lines | |||
| 83 | return qRectToVariant(rect); | 84 | return qRectToVariant(rect); |
| 84 | } | 85 | } |
| 85 | 86 | ||
| 87 | void ControllerScriptingInterface::setVPadEnabled(const bool enable) { | ||
| 88 | auto& virtualPadManager = VirtualPad::Manager::instance(); | ||
| 89 | virtualPadManager.enable(enable); | ||
| 90 | } | ||
| 91 | |||
| 86 | void ControllerScriptingInterface::emitKeyPressEvent(QKeyEvent* event) { emit keyPressEvent(KeyEvent(*event)); } | 92 | void ControllerScriptingInterface::emitKeyPressEvent(QKeyEvent* event) { emit keyPressEvent(KeyEvent(*event)); } |
| 87 | void ControllerScriptingInterface::emitKeyReleaseEvent(QKeyEvent* event) { emit keyReleaseEvent(KeyEvent(*event)); } | 93 | void ControllerScriptingInterface::emitKeyReleaseEvent(QKeyEvent* event) { emit keyReleaseEvent(KeyEvent(*event)); } |
| 88 | 94 | ||