summaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2016-08-24 08:31:02 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-08-24 19:33:34 +0000
commit87e6c4b98a48ec53493b56265328ed8d2d02e19c (patch)
treef4cf64cbc5cdd7ca75557cc32c7df44dcd7bff91 /src/input
parent1f276f1d346a6fdde8c596571a4606ff61fb7ff3 (diff)
Fix order handling in input sequences
Change-Id: I79c159c70ed81345b58c6dabfd60437e20554e94 Task-Id: QTBUG-54585 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input')
-rw-r--r--src/input/backend/inputsequence.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input/backend/inputsequence.cpp b/src/input/backend/inputsequence.cpp
index 140a8fe64..66ce6e920 100644
--- a/src/input/backend/inputsequence.cpp
+++ b/src/input/backend/inputsequence.cpp
@@ -101,6 +101,9 @@ void InputSequence::reset()
bool InputSequence::actionTriggered(Qt3DCore::QNodeId input, const qint64 currentTime)
{
+ if (input != m_inputsToTrigger.first())
+ return false;
+
// Save the last input
m_lastInputId = input;
// Return false if we've spent too much time in between two sequences