Simplifies mouse handling.