diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2016-08-22 13:00:16 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-08-24 19:33:14 +0000 |
commit | 2cccefe1524504a0d67cc4bda7fbc3759e5232b3 (patch) | |
tree | ed521d338ac9030fca8dc5b51a9849e6e989dbd2 /src/input/backend/inputchord.cpp | |
parent | 89d332399fc68ac784a384e496e8ed5e910d6cd1 (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/inputchord.cpp')
-rw-r--r-- | src/input/backend/inputchord.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/input/backend/inputchord.cpp b/src/input/backend/inputchord.cpp index 7ecd611a8..81394c935 100644 --- a/src/input/backend/inputchord.cpp +++ b/src/input/backend/inputchord.cpp @@ -51,7 +51,7 @@ namespace Qt3DInput { namespace Input { InputChord::InputChord() - : Qt3DCore::QBackendNode() + : AbstractActionInput() , m_chords() , m_inputsToTrigger() , m_timeout(0) @@ -69,7 +69,7 @@ void InputChord::initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &c void InputChord::cleanup() { - QBackendNode::setEnabled(false); + setEnabled(false); m_timeout = 0; m_startTime = 0; m_chords.clear(); @@ -129,7 +129,12 @@ void InputChord::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) default: break; } - QBackendNode::sceneChangeEvent(e); + AbstractActionInput::sceneChangeEvent(e); +} + +bool InputChord::process(InputHandler *inputHandler, qint64 currentTime) +{ + return false; } } // namespace Input |