You set this in the Entity Action:
my.emask |= ENABLE_CLICK | ENABLE_TOUCH | ENABLE_RELEASE;
my.event = something;
and in the event function you ask:
function something()
{
if(event_type == EVENT_TOUCH)
{
//When Mouse gets on
}
else if(event_type == EVENT_RELEASE)
{
//When Mouse gets off
}
else if(event_type == EVENT_CLICK)
{
//When clicked
}
}