Simulates a touch event on a rouchable control.
Example - Pressing Buttons
function OnStart()
{
lay = app.CreateLayout( "linear", "VCenter,FillXY" );
btn = app.CreateButton( "Press Me", 0.3, 0.1 );
btn.SetOnTouch( btn_OnTouch );
lay.AddChild( btn );
app.AddLayout( lay );
app.Animate( SimulateTouch, 1/2 );
}
function SimulateTouch()
{
app.SimulateTouch( btn, 0.5, 0.5, "down" );
}
var i = 1;
function btn_OnTouch()
{
app.ShowPopup( "Hello World " + i++ );
}