Generic MouseEvent trigger function