The best solution would be probably a general mouse event, with event_mode set to the type of event.