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, based on a result of determination as to whether the electronic device is an iPad or not, two different control signals respectively for two different results of the determination to enable the electronic device to present, in the handwriting area, the cursor moving respectively in two different manners, without presenting a trace of the cursor.