Implemented MouseEntered and MouseExited events.
Moved the event type switch handling exlusively to the window backend.