action make_touch()
{
my.emask = ENABLE_CLICK | ENABLE_TOUCH | ENABLE_RELEASE | ENABLE_SCAN;

my.event = f_clickremove;
}

function f_clickremove()
{
if(event_type == EVENT_TOUCH)
{
set(my,LIGHT);
}
if(event_type == EVENT_RELEASE)
{
reset(my,LIGHT);
}
if(mouse_middle == 1)
{
if(mouse_ent)
{
wait (1);
ptr_remove(my);
}
}

}