Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 10 files). Show all
Unified · Split
| @@ -80,6 +80,11 @@ glm::vec2 ControllerScriptingInterface::getViewportDimensions() const { · 79 unmodified lines | |||
| 80 | return qApp->getUiSize(); | 80 | return qApp->getUiSize(); |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | glm::vec4 ControllerScriptingInterface::getRecommendedOverlayRect() const { | ||
| 84 | auto rect = qApp->getRecommendedOverlayRect(); | ||
| 85 | return vec4(rect.x, rect.y, rect.z, rect.w); | ||
| 86 | } | ||
| 87 | |||
| 83 | controller::InputController* ControllerScriptingInterface::createInputController(const QString& deviceName, const QString& tracker) { | 88 | controller::InputController* ControllerScriptingInterface::createInputController(const QString& deviceName, const QString& tracker) { |
| 84 | // This is where we retrieve the Device Tracker category and then the sub tracker within it | 89 | // This is where we retrieve the Device Tracker category and then the sub tracker within it |
| 85 | auto icIt = _inputControllers.find(0); | 90 | auto icIt = _inputControllers.find(0); |