CPC G06F 3/04883 (2013.01) [G06F 3/03545 (2013.01); G06F 3/04162 (2019.05); G06F 2203/04101 (2013.01)] | 10 Claims |
1. A touchpad device adapted to be operated by using a stylus pen, the stylus pen emitting an electromagnetic signal, said touchpad device comprising:
an antenna configured to receive the electromagnetic signal;
a touchpad; and
a controller electrically connected to said touchpad, adapted to be electrically connected to an electronic device that includes a display panel, and configured to operate in a stylus-pen mode including steps of
controlling the electronic device to present a handwriting area on the display panel, and
when it is determined that a distance between the stylus pen and said touchpad is less than a preset pen-hover distance but is non-zero, operating in a hover-move sub-mode that includes steps of
when it is determined that a cursor is within the handwriting area and that the stylus pen is moved from a first position directly above a first contact position on said touchpad toward a second position directly above a second contact position on said touchpad and then moved downward to touch the second contact position, determining a moving vector related to movement from the first contact position to the second contact position on said touchpad,
outputting a first control signal to the electronic device to enable the electronic device to present, on the display panel, the cursor moving in the handwriting area according to the moving vector, without presenting a trace of the cursor,
wherein said controller is configured to determine, based on an intensity of the electromagnetic signal received by said antenna, a distance between the stylus pen and said touchpad,
wherein said controller is further configured to first operate in a scanning mode that includes steps of
determining whether the distance between the stylus pen and said touchpad is less than a preset pen-in-range distance that is greater than the preset pen-hover distance,
not outputting any control signal to the electronic device, and
switching to the stylus-pen mode when it is determined that the distance between the stylus pen and said touchpad is less than the preset pen-in-range distance,
wherein a size and a shape of the touchpad are identical to a size and a shape of the display panel of the electronic device,
wherein after said controller determines that the stylus pen has moved away from said touchpad and switches from the stylus-pen mode back to the scanning mode, said controller is further configured to
determine whether a predetermined time period has elapsed,
when it is determined that the predetermined time period has elapsed, control the electronic device to present, on the display panel, the cursor moving to a reference point at an upper-left corner of the display panel, said touchpad having a reference position that corresponds to the reference point of the display panel, and
when it is determined that the stylus pen is in contact with said touchpad at an arbitrary position of said touchpad, determine a moving vector related to movement from the reference position to the arbitrary position on said touchpad, and based on the moving vector, control the electronic device to present, on the display panel, the cursor moving from the reference point to a point on the display panel that corresponds to the arbitrary position.
|