diff options
Diffstat (limited to 'examples/rollerball/main.cpp')
-rw-r--r-- | examples/rollerball/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/rollerball/main.cpp b/examples/rollerball/main.cpp index f8efd86cf..89b32c4fe 100644 --- a/examples/rollerball/main.cpp +++ b/examples/rollerball/main.cpp @@ -41,6 +41,7 @@ #include <Qt3DQuick/quickwindow.h> #include <Qt3DRenderer/qrenderaspect.h> +#include <Qt3DInput/QInputAspect> #include <Qt3DBulletPhysics/bulletphysicsaspect.h> #include <exampleresources.h> @@ -58,6 +59,7 @@ int main(int argc, char* argv[]) Qt3D::Quick::QQmlAspectEngine engine; engine.aspectEngine()->registerAspect(new Qt3D::QRenderAspect()); + engine.aspectEngine()->registerAspect(new Qt3D::QInputAspect()); engine.aspectEngine()->registerAspect(new Qt3D::BulletPhysicsAspect()); QVariantMap data; data.insert(QStringLiteral("surface"), QVariant::fromValue(static_cast<QSurface *>(&view))); |