Updated mouse implementations for Win OS and Mac OS.