Added mouse support to window events