input: Recognize mouse events for abstract_ui
Merge PR #1632 'Recognize mouse events for abstract_ui'