diff options
author | Olli Werwolff <qt-info@nokia.com> | 2011-04-18 09:18:34 +0200 |
---|---|---|
committer | Olli Werwolff <qt-info@nokia.com> | 2011-04-19 10:25:34 +0200 |
commit | 9e5ff42afb356f8a1c25d24ab17860df046e59fe (patch) | |
tree | 412aa3b711de3d03fd6186c882881571b92de296 /scripts/gestures | |
parent | d4408b4009688c8fb3e006290c3851a86557cf09 (diff) |
Added multipoint touch support
Reviewed-by: ckamm
Task-number: QTSIM-77
Diffstat (limited to 'scripts/gestures')
-rw-r--r-- | scripts/gestures/touch.qs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/gestures/touch.qs b/scripts/gestures/touch.qs new file mode 100644 index 0000000..bcdb252 --- /dev/null +++ b/scripts/gestures/touch.qs @@ -0,0 +1,12 @@ +var initial1 = input.mouseX() - 100; +var initial2 = input.mouseX() + 100; + +touch.beginTouch(0, initial1, 100); +touch.beginTouch(1, initial2, 100); +for (var i = 1; i < 50; i++) { + touch.updateTouch(0, initial1 + i, 100); + touch.updateTouch(1, initial2 - i, 100); + yield(100); +} +touch.endTouch(0, initial1 + 50, 100); +touch.endTouch(1, initial2 - 50, 100); |