input: Recognize mouse events for abstract_ui