History

first cut at exposing recommend overlay rectangle

Brad Hefta-Gaub committed 10 years ago

Commit c7f58dc1 parent 91334d610 files · +71 −8Browse files

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

Unified · Split

interface/src/scripting/ControllerScriptingInterface.cpp+5−0
@@ -80,6 +80,11 @@ glm::vec2 ControllerScriptingInterface::getViewportDimensions() const { · 79 unmodified lines
80 return qApp->getUiSize();80 return qApp->getUiSize();
81}81}
82 82
83glm::vec4 ControllerScriptingInterface::getRecommendedOverlayRect() const {
84 auto rect = qApp->getRecommendedOverlayRect();
85 return vec4(rect.x, rect.y, rect.z, rect.w);
86}
87
83controller::InputController* ControllerScriptingInterface::createInputController(const QString& deviceName, const QString& tracker) {88controller::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 it89 // 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);