diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2012-04-26 16:18:41 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-27 04:15:13 +0200 |
commit | ef0fd213a74b9bc44f44ee9c65ae144eb3ea7bde (patch) | |
tree | 78ac87cfcff1a87ab036705009c7fff49becf13c /doc/src | |
parent | a82dab0757ab8b40972a38db47cc6e30f9898ea1 (diff) | |
download | qtsensors-ef0fd213a74b9bc44f44ee9c65ae144eb3ea7bde.tar.gz |
make simulator work better with gestures.
code from the plugin has been moved into the manager so that every other
plugin can be triggered by the emluator.
Change-Id: I37232ab6d45a027541ab1b5c504b2844049ba522
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/qtsensorgestures-emulator.qdoc | 43 |
1 files changed, 6 insertions, 37 deletions
diff --git a/doc/src/qtsensorgestures-emulator.qdoc b/doc/src/qtsensorgestures-emulator.qdoc index f669278..c25ff59 100644 --- a/doc/src/qtsensorgestures-emulator.qdoc +++ b/doc/src/qtsensorgestures-emulator.qdoc @@ -34,49 +34,18 @@ Whether creating client apps using Qt's built-in sensor gestures, or creating customized recognizers, the Emulator can be used to help develop client -apps and recognizers using the special 'QtSensors.emulator' plugin to send -arbitrary signals to the emulator environment. +apps and recognizers. \section1 Developing sensor gesture clients. For instance, the Emulator can be used for writing a client app that needs -to use a 'spin' gesture. The app can temporarily connect and start the -'QtSensors.emulator' plugin in the Emulator. +to use the 'slam' gesture. Under the 'Sensors' heading in the Emulator control, you will see an edit -box for 'Sensor gestures'. +box for 'Sensor gestures' that will contain a list of signals available +when your client instantiates a QSensorGesture. -Type the word, "spin", hit enter to set it, and then click the 'Send' button -to send a detected("spin") signal to the QtSensors.emulator plugin. - -You do not even need to wait for the recognizer plugin to be written! - -\section1 Developing sensor gesture plugins. - -Once the recognizer is written, the scripting facility may be used in the Emulator -to script the sensors to trigger your custom plugins signals. - -A sensor gesture script for the 'turnover' gesture looks like this: - -\code -// simulate turnover gesture - -//set the phone FaceUp -sensors.accelerometerX = 0 -sensors.accelerometerZ = 9.8 -sensors.accelerometerY = 0 -yield(100) - - -// set the phone FaceDown -sensors.accelerometerZ = -9.8 - -// set the Proximity to close -sensors.proximitySensorClose = true - -\endcode - -This will cause the simulator sensor plugin to send these signals to a real recognizer plugin -as real QAccelerometer and QProximity sensor values. +Select 'slam', and then click the 'Send' button +to send a detected("slam") signal to the client. */ |