Computer and mouse cursor control method

A mouse cursor control method, applied in a computer, includes receiving a first pressing gesture and a second pressing gesture, when the first pressing gesture maintains and recognizes the first pressing gesture and the second pressing gesture as a function of a left mouse button or a right mouse button according to a position relationship between the first pressing gesture and the second pressing gesture.

BACKGROUND

1. Technical Field

The present disclosure generally relates to a computer and a mouse cursor control method applied in a computer.

2. Description of Related Art

Some electronic devices, such as notebook computers, are equipped with a touchpad for controlling a cursor. The touchpad performs many of the same scrolling and cursor positioning functions as a mouse. The touchpad includes two keys functioning as the left mouse button and the right mouse button of the mouse. However, there is room for improvement within the art.

DETAILED DESCRIPTION

The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like parameters indicate similar elements. It should be noted that parameters to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such parameters mean “at least one.”

FIG. 1shows an illustrated embodiment of a computer. The computer includes a computer system10, a touch panel30, and a display50. The computer system10is connected to the touch panel30and the display50. The computer system10includes a CPU11, a memory13, and an input interface15. The computer system10controls a mouse cursor to click or drag icons

FIG. 2shows that the computer is notebook computer. The touch panel30is rectangular. In one embodiment, the touch panel30is made of carbon nanotube.

The computer system10recognizes the gesture received by the touch panel30as left or right mouse button of a mouse.FIG. 3shows that the middle finger presses the touch panel30, and then the forefinger located on the left side presses the touch panel30. The gesture is recognized as a function of the left mouse button. If the forefinger clicks the touch panel30, the computer system10recognizes the gesture as the “click” function of the left mouse button. If the forefinger double clicks the touch panel30, the computer system10recognizes the gesture as the “double click” function of the left mouse button.FIG. 4shows that the middle finger presses the touch panel30, and then the third finger on the right side of the middle finger presses the touch panel30. The computer system10recognizes the gesture as the right mouse button. If the third finger clicks the touch panel30, the computer system10recognizes the gesture as the “click” function of the right mouse button.

FIG. 5shows that the middle finger presses the touch panel30, and then the forefinger presses the touch panel30. The computer system10recognizes the gesture as the left mouse button. The touch point of the forefinger and the touch point of the middle finger on the touch panel are defined to A and B. If the forefinger and the middle finger slide on the touch panel30from the touch points A and B along the same direction. The computer system10recognizes the gesture as the “drag” function of the left mouse button.FIG. 6shows that the middle finger presses the touch panel30, and the third finger presses the touch panel30. The computer system10recognizes the gesture as the right mouse button. The touch point of the middle finger on the touch panel is defined to C. If the middle finger and third finger slide on the touch panel30from the touch points A and B along the same direction, the computer system10recognizes the gesture as the “drag” function of the right mouse button.

FIG. 7shows a mouse cursor control method of one embodiment including following steps.

In step S201, the computer is started up.

In step S202, the touch panel30senses a first pressing gesture, for example, the middle finger pressing the touch panel30.

In step S203, the touch panel30senses a second pressing gesture when the first pressing gesture maintains.

In step S204, the computer system10recognizes the first pressing gesture and the second pressing gesture as the left mouse button or the right mouse button of the mouse according to the position relationship between the first pressing gesture and the second pressing gesture.

The mouse cursor control method includes functioning as “click”, “double click”, or “drag”, shown inFIGS. 3 to 6.