How would a device know the position of the mouse cursor on the screen in order to know when it reaches the edge without running on the host computer?