Showing the changes to interface/src/ControllerScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -250,3 +250,7 @@ void ControllerScriptingInterface::releaseJoystick(int joystickIndex) { · 249 unmodified lines | |||
| 250 | } | 250 | } |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | glm::vec2 ControllerScriptingInterface::getViewportDimensions() const { | ||
| 254 | QGLWidget* widget = Application::getInstance()->getGLWidget(); | ||
| 255 | return glm::vec2(widget->width(), widget->height()); | ||
| 256 | } | ||