summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2012-05-29 13:49:12 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-29 06:33:01 +0200
commita0b89b80c933cca852e62cc73208cdbc0d3dcc25 (patch)
tree2be55e9adeeb6a510657de433a4d2e7014f5b330 /doc/src
parente2fda7e34f1c8ff39a86800c14ec7cecb085c2af (diff)
make mouse move better ine Maze example, add acceleration. Fix up docs
Use only one mouse gif and rotate it instead. also add screensaver inhibit. Change-Id: I4268bdec9346ee389e9b485e8c37d43a1e607128 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/examples/maze.qdoc11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/src/examples/maze.qdoc b/doc/src/examples/maze.qdoc
index ed2aeabc..d9f561e7 100644
--- a/doc/src/examples/maze.qdoc
+++ b/doc/src/examples/maze.qdoc
@@ -51,8 +51,17 @@
\snippet ../examples/QtSensors/QtSensors_maze/QtSensors_maze.qml 2
- To determine the walk direction of the mouse we use the following if -else statements:
+ The mouse should move by a factor of the tilt value:
\snippet ../examples/QtSensors/QtSensors_maze/QtSensors_maze.qml 3
+
+ The walk direction of the mouse takes into account some collision detection:
+
+ \snippet ../examples/QtSensors/QtSensors_maze/QtSensors_maze.qml 4
+
+ The rotation of the mouse image is determined according to the angle that the mouse is moving.
+
+ \snippet ../examples/QtSensors/QtSensors_maze/Mouse.qml 0
+
*/