summaryrefslogtreecommitdiffstats
path: root/examples/multiviewport/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multiviewport/main.cpp')
-rw-r--r--examples/multiviewport/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/multiviewport/main.cpp b/examples/multiviewport/main.cpp
index 0d003cdb8..d332c2e7b 100644
--- a/examples/multiviewport/main.cpp
+++ b/examples/multiviewport/main.cpp
@@ -41,6 +41,7 @@
#include <Qt3DQuick/quickwindow.h>
#include <Qt3DRenderer/qrenderaspect.h>
+#include <Qt3DInput/QInputAspect>
#include <exampleresources.h>
@@ -54,6 +55,7 @@ int main(int ac, char **av)
initializeAssetResources("../exampleresources/example-assets.qrb");
engine.aspectEngine()->registerAspect(new Qt3D::QRenderAspect);
+ engine.aspectEngine()->registerAspect(new Qt3D::QInputAspect());
QVariantMap data;
data.insert(QStringLiteral("surface"), QVariant::fromValue(static_cast<QSurface *>(&view)));
data.insert(QStringLiteral("window"), QVariant::fromValue(&view));