This application claims foreign priority benefits under 35 U.S.C. § 119 of Chinese Patent Application Serial No. 201010103762.6, filed on Jan. 27, 2010, the content of which is incorporated herein by reference in its entirety.
The present invention relates generally to a touchpad, and more particularly to a scrolling method for touchpad.
Although the keyboard remains a primary input device of a computer, the prevalence of graphical user interfaces (GUIs) may require use of a mouse or other pointing device such as a trackball, joystick, touchpad or the like.
Touchpads are commonly used on portable electronic devices due to their compact size.
According to one exemplary embodiment of the invention, a method for executing a scroll control operation on a touchpad is presented. The method comprises receiving a first contact signal induced by a first contact with a first section of the touchpad, receiving a second contact signal induced by a second contact with a second section of the touchpad, the first section and second section being predefined in a scrolling region on the touchpad, recording a first direction from the first contact to the second contact, and a first distance between the first section and the second section and outputting a scroll control signal to execute a scroll operation, the scroll control signal including information of the first direction and first distance.
According to another exemplary embodiment of the invention, a device for executing a scroll control operation on a touchpad is presented. The device comprises a processor configured to receive a first contact signal induced by a first contact with a first section, receive a second contact signal induced by a second contact with a second section, the first section and second section being predefined in a scrolling region on the touchpad, record a first direction from the first contact to the second contact and a first distance between the first section and the second section and output a first scroll control signal to execute a first scroll operation, the first scroll control signal including information of the first direction and the first distance.
According to another exemplary embodiment of the invention, a method for executing a scroll control operation on a touchpad is presented. The method comprises receiving a first contact signal induced by a first contact with a first section of the touchpad, receiving a second contact signal induced by a second contact with a second section of the touchpad, the first section and second section being predefined in a scrolling region on the touchpad, recording a time interval between receipt of the first contact signal and second contact signal, comparing the time interval to a predefined first reference and a predefined second reference, recording a first direction from the first contact to the second contact and a distance between the first section and second section in an instance in which the time interval is less than the second reference and greater than the first reference and outputting a first scroll control signal to execute a scroll operation, the scroll control signal including information of the first direction and first distance.
According to another exemplary embodiment of the invention, a device for executing a scroll control operation on a touchpad is presented. The device comprises a processor configured to receive a first contact signal induced by a first contact with a first section of the touchpad, receive a second contact signal induced by a second contact with a second section of the touchpad, the first section and second section being predefined in a scrolling region on the touchpad, record a time interval between receipt of the first contact signal and second contact signal, compare the time interval to a predefined first reference and a predefined second reference, record a first direction from the first contact to the second contact and a distance between the first section and second section in an instance in which the time interval is less than the second reference and greater than the first reference and output a first scroll control signal to execute a scroll operation, the scroll control signal including information of the first direction and first distance.
The foregoing summary, as well as the following detailed description of the invention, will be better understood when read in conjunction with the appended drawings. The embodiments illustrated in the figures of the accompanying drawings herein are by way of example and not by way of limitation. In the drawings:
The present invention now will be described more fully hereinafter with reference to the accompanying drawings, in which preferred embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. For example, a number of components or objects may be described herein in the singular, plural or as being “at least one” or “one or more.” It should be understood, however, that notwithstanding any particular quantity with which a component or object may be described herein, unless explicitly stated otherwise, the component or object may be in any of a number of different quantities, from the singular to the plural. Like numbers refer to like elements throughout.
As shown, in a first instance, a pointing object (e.g., a finger or a stylus) comes into contact with a first section (e.g, section 212 referred as an “initial section”) of the first scrolling region 210, as illustrated in
In a second instance, the same or another pointing object may come into contact with a second section (e.g., section 214) in the first scrolling region 210, as also illustrated in
Upon receipt of the second contact signal, the processing unit may stop the timer and record a first time interval T1 between receipt of the first contact signal and the second contact signal at step S308. The processing unit may compare the first time interval T1 to a first reference Tmin and a second reference Tmax at step S310. In an instance in which the comparison result obtained at step S310 indicates that the first time interval T1 is not between Tmin and Tmax, the method proceeds back to step S302 awaiting another initial contact signal. In an instance in which the comparison result obtained at step S310 indicates that the first time interval is less than Tmax and greater than Tmin (the first time interval is between Tmin and Tmax), the processing unit may determine whether the first and second sections with which the object came into contact in the first and second instances are the same section of the first scrolling region 210 at step S312. In an instance in which the first and second sections are the same section of the first scrolling region, the processing unit may determine whether the section is the initial section at step S314. If the result obtained at step S314 is YES, the method proceeds back to step 302 awaiting another initial contact signal.
In an instance in which the first and second sections are different sections of the first scrolling region, the processing unit may calculate and record a first direction D from the first section to the second section, and a first distance RD24 between the first section (e.g., section 212) and the second section (e.g., section 214) at step S316. The processing unit may then check whether more than two relative contact signals have been received at step S317. In the second instance, only one relative contact signal (the second contact signal) is received, and at least in this instance, the result obtained at step S317 is NO.
In instances in which the result obtained at step S314 or step S317 is NO, the processing unit may generate and output a scroll control signal at step S320. The scroll control signal may contain information of the direction D1 and distance RD24 that the processing unit recorded at step S316. In one example, the first direction D1 may be associated with an “upward” scrolling direction, and first distance RD24 between the first section and the second section may be associated with a first displacement (referred as “d24”). In this example, a user may be able to scroll a user interface window upward with the first displacement d24.
As the pointing object remains in contact with the second section, the processing unit may not detect a drop in the second contact signal at step S322. The sensing unit may continue to generate the second contact signal, which the processing unit may continue to receive. The processing unit may accordingly continue to generate and output the scroll control signal at step S320. This scroll control signal may include the same direction and distance as before. In an instance in which the processing ceases to receive the second contact signal or otherwise detects a drop in the second contact signal, which may be representative of removing or otherwise dragging or sliding the pointing object from the second section to another section, the method proceeds back to step S304. The processing unit then resets the timer awaits another contact signal at step S306.
In a third instance, the same or another pointing object may come into contact with a third section (e.g., section 215) in the first scrolling region 210, as illustrated in
The processing unit may check whether more than two relative contact signals have been received at step S317. In this instance, the second and third contact signals are both relative contact signals in that they are received within the time constraint of Tmin and Tmax. The processing unit may then compare the direction (D2) recorded in present instance (third instance) to a direction (D1) recorded in the prior instance (second instance) at step S318. In the instance illustrated in
In an instance in which a pointing object lifts off the second section (section 214), producing a drop in the second contact signal that may be detected by the processing unit at step S322, and comes into contact with the same section (section 214) that induced the sensing unit to generate a third contact signal within the time constraint of Tmin to Tmax at step S306, the processing unit may check whether the section with which the third contact comes into contact is the same as the section with which the prior contact (second contact) comes into contact at step S312. In the instance illustrated in
In an instance as illustrated in
In various exemplary embodiments, the scroll operation that is executed downward in vertical scrolling region 210, or leftward and rightward in horizontal scrolling region 220 may similar to that executed upward in vertical scrolling region 210 described above.
According to one aspect of the present invention, as explained above, the touchpad may include, for example, a sensing unit and a processing unit. When a user's first finger is resting on the touchpad, the contact with the touchpad may be sensed by the sensing unit, which may be embodied in a number of different manners, such as in the form of a touch-sensitive surface. The processing unit may trigger the scroll control function to scroll documents in a specific scrolling direction with a specific displacement in response to direction and distance compared between contact signals received in sections in scrolling regions. The processing unit may be embodied in a number of different manners, such as a CPU (Central Processing Unit), microprocessor, coprocessor, controller and/or various other processing devices including integrated circuits such as ASIC (Application Specification Integrated Circuit), FPGA (Field Programmable Gate Array) or the like. As will be appreciated, the processing unit may include or otherwise be configured to communicate with memory, such as volatile memory and/or non-volatile memory, which may store data received or calculated by the processing unit, and may also store one or more software applications, instructions or the like for the processing unit to perform functions associated with operation of the device in accordance with exemplary embodiments of the present invention.
All or a portion of the system of the present invention, such as all or portions of the processing unit, generally operates under control of a computer program product. The computer program product for performing the methods of embodiments of the present invention includes a computer-readable storage medium, such as the non-volatile storage medium, and computer-readable program code portions, such as a series of computer instructions, embodied in the computer-readable storage medium.
It will be appreciated by those skilled in the art that changes could be made to the examples described above without departing from the broad inventive concept. It is understood, therefore, that this invention is not limited to the particular examples disclosed, but it is intended to cover modifications within the spirit and scope of the present invention as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201010103762.6 | Jan 2010 | CN | national |