A kind of method utilizing multi-point gestures to realize touch screen terminal function keyTechnical field
The present invention relates to touch screen terminal field, in particular to a kind of method utilizing multi-point gestures to realize touch screen terminal function key.
Background technology
In recent years, touch screen terminal is more and more universal in the life of people, as mobile phone, panel computer etc.At present, in order to improve screen accounting and aesthetics, the bottom of screen of increasing touch screen terminal in front adopts virtual navigation hurdle to hold return key, home key and Menu key, to realize function corresponding to this 3 buttons.But the display on this virtual navigation hurdle on the one hand makes the effective display area of screen diminish, also reduce the visual effect of screen on the other hand, and the hiding and recall operation and also adverse effect is caused to Consumer's Experience of virtual navigation hurdle.
In view of this, special proposition the present invention.
Summary of the invention
In order to overcome the deficiency in above-mentioned prior art, the invention provides a kind of method utilizing multi-point gestures to realize touch screen terminal function key, the method, by detecting the specific multi-point gestures on touch-screen different parts, realizes the operation of return key, home key and (or) Menu key.Solve the problem that virtual navigation hurdle takes up room, also alleviate user and recall and hide virtual navigation hurdle problem not easily, improve Consumer's Experience.
The present invention is achieved by the following technical solution:
Utilize multi-point gestures to realize a method for touch screen terminal function key, comprise the following steps:
Touch-screen is divided into n part, and n respectively in these 3 function keys of corresponding return key, home key and Menu key, the span of n is 2-3;
The specific multi-point gestures arranged in described n partly each performs the operation of this part corresponding function key;
When described n part certain part receive described specific multi-point gestures time, then perform this corresponding to specific multi-point gestures function key operation.
In order to reduce maloperation, preferably, described n part is rectangle, and their border and touch-screen bottom vertical.
Preferably, the value of described n is 3, and the area equation of 3 parts.
Preferably, described specific multi-point gestures comprises at 2 and (or) 3 and clicks simultaneously and grow by gesture, clicks the single-click operation that gesture performs corresponding function key, and long length of pressing gesture execution corresponding function key presses operation.
Preferably, click the pre-conditioned of gesture at described 2 and (or) 3 simultaneously: from first touch point press the touch point finally left frame out between the time interval be less than t second, and the time that all touch points stop on screen is greater than 0 and is less than 1 second simultaneously, the displacement of all touch-screens on screen is less than m pixel.
Preferably, get described 2 and (or) 3 weighted mean values clicking simultaneously and grow all touch points coordinate by gesture, as the coordinate points that described specific multi-point gestures occurs, if this coordinate points occurs on a described n portion boundary, then do not perform the operation of any function key.
Preferably, described specific multi-point gestures can not trigger single-point gesture, as clicked, single-point length by etc., also can not trigger amplification, reduce, the gesture such as slip, therefore arranging of t and m value must meet these conditions.
Preferably, after the virtual navigation hurdle showing return key, home key and Menu key that the system of touch screen terminal carries recalls, then do not perform the described all operations utilizing multi-point gestures to realize involved by this method of touch screen terminal function key; After virtual navigation hurdle is hidden, then recover the described all operations utilizing multi-point gestures to realize involved by this method of touch screen terminal function key.
Compared with prior art, beneficial effect of the present invention is:
1. the present invention passes through touch-screen subregion and the specific multi-point gestures detected on it, just can realize the operation of return key, home key and (or) Menu key, compared with the touch screen terminal showing these 3 function keys with traditional needs on screen, save screen space, optimize the visual effect of screen display.
2. this invention is when virtual navigation hurdle hides, and also can realize return key, home key and (or) Menu key function, such user just need not frequently recall and hiding virtual navigation hurdle, improves Consumer's Experience.
Accompanying drawing explanation
Accompanying drawing 1 is the schematic flow sheet utilizing multi-point gestures to realize the method for touch screen terminal function key provided by the invention;
Accompanying drawing 2 is the schematic diagram of 3 parts in one embodiment of the invention, touch-screen being divided into corresponding function key separately.
Embodiment
Below in conjunction with the drawings and specific embodiments of the present invention, technical scheme of the present invention is clearly and completely described.
Fig. 1 shows the schematic flow sheet utilizing multi-point gestures to realize the method for touch screen terminal function key provided by the invention.As shown in Figure 1, a kind of method utilizing multi-point gestures to realize touch screen terminal function key that the embodiment of the present invention provides, comprises step:
Step S101: touch-screen is divided into n part, n respectively in these 3 function keys of corresponding return key, home key and Menu key, the span of n is 2-3.
In order to reduce maloperation, as a good embodiment, described n part is rectangle, and their border and touch-screen bottom vertical.
Because most of touch screen terminal has these 3 function keys of return key, home key and Menu key, conveniently client uses, and as a good embodiment, the value of n is 3, and the area equation of be divided into 3 parts.
Fig. 2 is the schematic diagram of 3 parts in one embodiment of the invention, touch-screen being divided into corresponding function key separately.As shown in Figure 2, the corresponding Menu key of left part, the corresponding home key of center section, the corresponding return key of right part, dotted line is their border.
Step S102: the specific multi-point gestures arranged in described n partly each performs the operation of this part corresponding function key.
As a good embodiment, described specific multi-point gestures comprises at 2 and (or) 3 and clicks simultaneously and grow by gesture, clicks the single-click operation that gesture performs corresponding function key, and long length of pressing gesture execution corresponding function key presses operation.
As a good embodiment, click the pre-conditioned of gesture at described 2 and (or) 3 simultaneously: from first touch point press the touch point finally left frame out between the time interval be less than t second, and the time that all touch points stop on screen is greater than 0 and is less than 1 second simultaneously, the displacement of all touch points on screen is less than m pixel.
As a good embodiment, get described 2 and (or) 3 weighted mean values clicking simultaneously and grow all touch points coordinate by gesture, as the coordinate points that described specific multi-point gestures occurs, if this coordinate points occurs on a described n portion boundary, then do not perform the operation of any function key.
The coordinate simultaneously clicking two some gesture generations in gesture as certain 2 is respectively (X1, and (X2 Y1), Y2), the coordinate points that then specific multi-point gestures occurs is (int ((X1+X2)/2), int ((Y1+Y2)/2)), int () represents and rounds, upwards, downwards and rounding-off method round can.
Step S103: when described n part certain part receive described specific multi-point gestures time, then perform this corresponding to specific multi-point gestures function key operation.
As a good embodiment, described specific multi-point gestures can not trigger single-point gesture, as clicked, single-point length by etc., also can not trigger amplification, reduce, the gesture such as slip, therefore arranging of t and m value must meet these conditions.
As a good embodiment, after the virtual navigation hurdle showing return key, home key and Menu key that the system of touch screen terminal carries recalls, then do not perform the described all operations utilizing multi-point gestures to realize involved by this method of touch screen terminal function key; After virtual navigation hurdle is hidden, then recover the described all operations utilizing multi-point gestures to realize involved by this method of touch screen terminal function key.
Although illustrate and describe the present invention with specific embodiment, however it will be appreciated that can to make when not deviating from the spirit and scope of the present invention many other change and amendment.Therefore, this means to comprise all such changes and modifications belonged in the scope of the invention in the following claims.