From a0b89b80c933cca852e62cc73208cdbc0d3dcc25 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Tue, 29 May 2012 13:49:12 +1000 Subject: 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 --- doc/src/examples/maze.qdoc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc/src') 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 + */ -- cgit v1.2.3