Implemented the MouseDevice.