Added simple mouse support for the window class.