added mouse support.