summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qinputaspect.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire350@gmail.com>2015-11-28 13:07:48 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-11-28 15:01:57 +0000
commit5308682ca58007926d8ac16aaa0d296dbda4bf69 (patch)
treefd34406fdd353691a7ae1a11576157244572e342 /src/input/frontend/qinputaspect.h
parent2dda99d10d1b98bb7e03383045fffd49d00ba4de (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.h9
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;