added mouse support to heartbeat.