Implements the ability to hide the mouse cursor.