A touchpad device is to be operated by using a stylus pen, and includes a touchpad and a controller that are connected to each other. The controller is connected to an electronic device that includes a display panel, and operates in a stylus-pen mode where a handwriting area is presented on the display panel. When it is determined that a distance between the stylus pen and the touchpad is less than a preset pen-hover distance but is non-zero, the controller operates in a hover-move sub-mode where the controller outputs a control signal to enable the electronic device to present, in the handwriting area, the cursor moving, without presenting a trace of the cursor.