Mouse support

Added mouse support in "mousesupport" branch.