Phone Emulator
// The actions get called on a specific update of the device display.
switch( update )
{
case 2: emulator.reflection = "indoor"; break; // time: 1086
case 5: emulator.reflection = "outdoor"; break; // time: 2336
case 8: emulator.reflection = "sunshine"; break; // time: 3651
case 11: emulator.reflection = "none"; break; // time: 5079
case 14: emulator.stop(); break; // time: 6115
default:
handled = false;
}
if (handled) // There was an action at this update.
{
// Add code that only gets executed if there was an action.
// In this case: Take a snapshot if the reflection has changed.
emulator.snapshot();
}
}
switch( update )
{
case 2: emulator.reflection = "indoor"; break; // time: 1086
case 5: emulator.reflection = "outdoor"; break; // time: 2336
case 8: emulator.reflection = "sunshine"; break; // time: 3651
case 11: emulator.reflection = "none"; break; // time: 5079
case 14: emulator.stop(); break; // time: 6115
default:
handled = false;
}
if (handled) // There was an action at this update.
{
// Add code that only gets executed if there was an action.
// In this case: Take a snapshot if the reflection has changed.
emulator.snapshot();
}
}