diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2012-05-29 13:49:12 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-29 06:33:01 +0200 |
commit | a0b89b80c933cca852e62cc73208cdbc0d3dcc25 (patch) | |
tree | 2be55e9adeeb6a510657de433a4d2e7014f5b330 /doc | |
parent | e2fda7e34f1c8ff39a86800c14ec7cecb085c2af (diff) | |
download | qtsensors-a0b89b80c933cca852e62cc73208cdbc0d3dcc25.tar.gz |
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')
-rw-r--r-- | doc/src/examples/maze.qdoc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/src/examples/maze.qdoc b/doc/src/examples/maze.qdoc index ed2aeab..d9f561e 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 + */ |