This demonstration uses the Marbles game to provide visual feedback for sensor inputs provided in a script.
From the application menu select Marbles and use the soft key to launch the application.
In the emulator, select View > External Events Generator, and select the Sensors tab.
The emulator displays a list of the sensors in this application.
Click the Browse button and choose the following file: installdir/apps/Sensors/marbles.xml.
Observe the movement of the marbles on the emulator screen. On the external events screen you can see the sliders move as the script runs. You can use the familiar controls to play, pause, and stop the script.