diff options
author | Paul Lemire <paul.lemire350@gmail.com> | 2015-11-28 13:07:48 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-11-28 15:01:57 +0000 |
commit | 5308682ca58007926d8ac16aaa0d296dbda4bf69 (patch) | |
tree | fd34406fdd353691a7ae1a11576157244572e342 /src/input/frontend/qinputaspect.h | |
parent | 2dda99d10d1b98bb7e03383045fffd49d00ba4de (diff) |
QInputAspect: createPhysicalDevice
Lookups al the QInputDeviceIntegration to find the first
one able to instantiate a QAbstractPhysicalDevice given
a name.
Change-Id: I1a2ba10105024400a322d61e39a6a66e678aabe6
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend/qinputaspect.h')
-rw-r--r-- | src/input/frontend/qinputaspect.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/input/frontend/qinputaspect.h b/src/input/frontend/qinputaspect.h index 41d5ae82d..78054e08d 100644 --- a/src/input/frontend/qinputaspect.h +++ b/src/input/frontend/qinputaspect.h @@ -48,6 +48,7 @@ class QCamera; namespace Qt3DInput { +class QAbstractPhysicalDevice; class QInputAspectPrivate; class QT3DINPUTSHARED_EXPORT QInputAspect : public Qt3DCore::QAbstractAspect @@ -58,16 +59,16 @@ public: explicit QInputAspect(QObject *parent = 0); Qt3DCore::QCamera *camera() const; + QAbstractPhysicalDevice *createPhysicalDevice(const QString &name); -public Q_SLOTS: - void setCamera(Qt3DCore::QCamera *camera); - -public: QVector<Qt3DCore::QAspectJobPtr> jobsToExecute(qint64 time) Q_DECL_OVERRIDE; void sceneNodeAdded(Qt3DCore::QSceneChangePtr &e) Q_DECL_OVERRIDE; void sceneNodeRemoved(Qt3DCore::QSceneChangePtr &e) Q_DECL_OVERRIDE; +public Q_SLOTS: + void setCamera(Qt3DCore::QCamera *camera); + private: void setRootEntity(Qt3DCore::QEntity *rootObject) Q_DECL_OVERRIDE; void onInitialize(const QVariantMap &data) Q_DECL_OVERRIDE; |