summaryrefslogtreecommitdiffstats
path: root/src/input/backend/inputsequence_p.h
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2016-08-22 13:00:16 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-08-24 19:33:14 +0000
commit2cccefe1524504a0d67cc4bda7fbc3759e5232b3 (patch)
treeed521d338ac9030fca8dc5b51a9849e6e989dbd2 /src/input/backend/inputsequence_p.h
parent89d332399fc68ac784a384e496e8ed5e910d6cd1 (diff)
Action input nodes inherit from the abstract class
ActionInput, InputChord and InputSequence all inherit from AbstractActionInput now. Their process method does nothing yet though. Change-Id: I0e3aee41b2c41aa4ee16144fa1e67de95466ea63 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/backend/inputsequence_p.h')
-rw-r--r--src/input/backend/inputsequence_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/backend/inputsequence_p.h b/src/input/backend/inputsequence_p.h
index a76457f4e..618342ac1 100644
--- a/src/input/backend/inputsequence_p.h
+++ b/src/input/backend/inputsequence_p.h
@@ -51,7 +51,7 @@
// We mean it.
//
-#include <Qt3DCore/qbackendnode.h>
+#include <Qt3DInput/private/abstractactioninput_p.h>
#include <Qt3DCore/qnodeid.h>
QT_BEGIN_NAMESPACE
@@ -60,7 +60,7 @@ namespace Qt3DInput {
namespace Input {
-class Q_AUTOTEST_EXPORT InputSequence : public Qt3DCore::QBackendNode
+class Q_AUTOTEST_EXPORT InputSequence : public AbstractActionInput
{
public:
InputSequence();
@@ -76,6 +76,8 @@ public:
bool actionTriggered(Qt3DCore::QNodeId input, const qint64 currentTime);
void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) Q_DECL_OVERRIDE;
+ bool process(InputHandler *inputHandler, qint64 currentTime) Q_DECL_OVERRIDE;
+
private:
void initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change) Q_DECL_FINAL;