Embodiment
State with other purposes for letting on the present invention, feature and advantage can be more obviously understandable, the hereinafter spy enumerates the present invention's specific embodiment, and cooperates appended graphicly, elaborates as follows.
The present invention provides a kind of Touch Screen menu control method.According to embodiments of the invention, the present invention can implement on any electronic installation with Touch Screen or Trackpad, for example panel computer, Smartphone, notebook computer etc.; And can be built in the operating system (OS) by interior, or set up applications (APP) comes embodiment of the present invention in above-mentioned electronic installation, the present invention is not as limit.
Below please be earlier with reference to figure 1.According to one embodiment of the invention, Touch Screen menu control method of the present invention can be implemented on electronic installation 100.Electronic installation 100 comprises Touch Screen 101, and Touch Screen 101 comprises viewing area 102, can be in order to display screen, and wherein viewing area 102 comprises a relative left side and shows border 103a and the right border 103b of demonstration.The user can use finger 110 or pointer, on Touch Screen 101 or near the action of Touch Screen 101 places, and forms a movement locus.Electronic installation 100 can be by the processor software program for execution, and detecting user's movement locus is in addition accomplished Touch Screen menu control method of the present invention after the identification.Other is noted that, how to respond to the detecting user relevant for Touch Screen 101 and points 110 or the movement locus of pointer, should be under the present invention in the technical field tool and knows that usually the knowledgeable is familiar with, and in instructions, repeats no more.
Electronic installation 100 shown in Figure 1 is only as an example, and those skilled in the art should understand, and electronic installation 100 can be Smartphone or panel computer, and Touch Screen 101 can be capacitance touch control screen, but the present invention is not as limit.Other is noted that electronic installation 100 also possibly comprise other module or elements than details.
Next please refer to Fig. 2 and Fig. 3, be respectively about flow chart of steps according to the Touch Screen menu control method of one embodiment of the invention.According to one embodiment of the invention, Touch Screen menu control method of the present invention can be divided into and singly refer to Touch Screen menu control method and two Touch Screen menu control method that refers to.Wherein Fig. 2, Fig. 4 and Fig. 5 show and singly refer to the Touch Screen menu control method according to one embodiment of the invention; Fig. 3, Fig. 6 and Fig. 7 show the two Touch Screen menu control methods that refer to according to one embodiment of the invention.Below will be with the Touch Screen menu control method of electronic installation shown in Figure 1 100 explanations according to one embodiment of the invention.
Please be earlier with reference to figure 2 about singly referring to the Touch Screen menu control method according to one embodiment of the invention.
At first carry out step 201: single indication is hit twice or is singly referred to and stops above preset period of time, to set up a start position at same position.
Please refer to Fig. 4 A, show a screen-picture 120 in the Touch Screen 101.(1) user can be in first preset period of time, gives directions the mode of hitting to contact or near the same position at least twice of Touch Screen 101 with single, and contact for the second time or near behind the Touch Screen 101, just singly refers to no longer away from Touch Screen 101; (2) single give directions the mode of hitting to contact or near Touch Screen 101 once after, just singly refer to no longer away from Touch Screen 101 to stop and surpass second preset period of time at same position.After electronic installation 100 detects above-mentioned arbitrary situation, can this position be made as start position (setting coordinate that also is about to this position is (0,0)).
According to one of the present invention embodiment,, can show on Touch Screen 101 that point symbol 401 is in contiguous this start position part together when electronic installation 100 detects singly when giving directions the action of hitting twice.But be noted that, shown that point symbol in contiguous start position part, is not a steps necessary of the present invention.According to another embodiment of the present invention, also can not show that point symbol is on Touch Screen 101.
Then carry out step 202: detecting singly refers to the final position of movement locus.
Please refer to Fig. 4 B, Fig. 4 C and Fig. 4 D, singly refer to movement locus in figure shown in the dotted line, after the user sets up start position, just singly refer to, continue to keep in touch or move, stop at a final position 501 at last near Touch Screen 101 no longer away from Touch Screen 101.Wherein user's the movement locus that singly refers to for moving up, is located and be parked in coordinate position (0,2) among Fig. 4 B.User's the movement locus that singly refers to for moving right, is located and be parked in coordinate position (1,0) among Fig. 4 C.User's the movement locus that singly refers to is to move to upper right among Fig. 4 D, locates and be parked in coordinate position (1,1).
Then carry out step 203: calculate displacement and moving direction.
The present invention and obtains after start position and the final position in the detecting movement locus, can be according to start position and final position, and the displacement and the moving direction of calculating movement locus.Wherein displacement is the air line distance of start position and final position, and moving direction is for shifting to the direction of final position from the start position straight line.Fig. 4 A start position is defined as true origin (0,0) locates, detecting learns that the final position 501 of Fig. 4 B locates for coordinate (0,2), so user's the displacement that singly refers to movement locus is 2 unit lengths among Fig. 4 B, moves to positive Y direction; Detecting learns that the final position 501 of Fig. 4 C locates for coordinate (1,0), so user's the displacement that singly refers to movement locus is 1 unit length among Fig. 4 C, moves to positive X-direction; Detecting learns that the final position 501 of Fig. 4 D locates for coordinate (1,1), so refers to singly among Fig. 4 D that the displacement of movement locus is about 1.414 unit lengths, and angle 45 is spent directions and moved between positive X axle-positive Y axle.
Then carry out step 204: judge that whether displacement is greater than error distance.
Calculate after the displacement, judge that then whether displacement is greater than error distance.According to one embodiment of the invention, error distance is 0.2 unit length, but the present invention is not as limit.If displacement is not more than error distance, then get back to the final position that step 202 is detected movement locus once more; Otherwise if displacement greater than error distance, then carry out step 205.
The purpose of step 204 is that the movement locus of confirming the user is effectively action; The situation that false touch Touch Screen 101 is arranged with the person of avoiding the use of.About the setting of error distance, can be according to the decision of the factors such as size of Touch Screen 101, electronic installation 100 can in build preset value, and allow user's adjustment.But be noted that step 204 is not a steps necessary of the present invention.According to another embodiment of the present invention, whether also can not judge displacement greater than error distance, and directly carry out follow-up step.In present embodiment, displacement is all greater than error distance, so proceed step 205 among Fig. 4 B, Fig. 4 C and Fig. 4 D.
If displacement greater than error distance, then then carry out step 205: calculated level angle and vertical angle.
After confirming that displacement is greater than error distance, by the horizontal sextant angle of electronic installation 100 calculating moving directions and transverse axis, and the vertical angle that calculates moving direction and Z-axis.According to one embodiment of the invention, transverse axis refers to up-and-down boundary 104a and the parallel straight line of 104b with Touch Screen 101, and Z-axis refers to border, left and right sides 103a and the parallel straight line of 103b with Touch Screen 101.
Then carry out step 206: whether determined level angle and vertical angle be all greater than predetermined angle.
After calculating horizontal sextant angle and vertical angle, by electronic installation 100 determined level angles and vertical angle whether all greater than predetermined angle (according to one of the present invention embodiment, predetermined angle is 15 degree, but the present invention is not as limit).If horizontal sextant angle and vertical angle then carry out step 207b all greater than this predetermined angle, otherwise execution in step 207a.
The purpose of step 206 is, what differentiate that the user is intended to carry out is: the action of horizontal/vertical scrolling screen-picture 120, or to the action of other non-horizontal/moving screen pictures 120.When horizontal sextant angle and vertical angle all greater than predetermined angle, judge that then user's desire is to other non-horizontal/moving screen pictures 120.Otherwise, if horizontal sextant angle is not more than predetermined angle, judge that then in fact the user desires horizontal scrolling screen-picture 120, the little error when small horizontal sextant angle occurring and just pointing tangential movement; And if vertical angle is not more than predetermined angle, judge that then in fact the user desires vertical scrolling screen-picture 120, the little error when small vertical angle occurring and just pointing vertical movement.
In present embodiment, because user's movement locus among Fig. 4 B, its vertical angle (0 degree) is less than predetermined angle (15 degree), so judge that the user desires vertical scrolling screen-picture 120; Its horizontal sextant angle among Fig. 4 C (0 degree) is less than predetermined angle (15 degree), so judge that the user desires horizontal scrolling screen-picture 120; Its vertical angle among Fig. 4 D (45 degree) and horizontal sextant angle (45 degree) are all greater than predetermined angle (15 degree), so judge that user's desire is to upper right side moving screen picture 120.
About the setting of this predetermined angle, can be according to the decision of user's factors such as use experience, electronic installation 100 can in build preset value, and allow user's adjustment.But be noted that step 205 and 206 is not a steps necessary of the present invention.According to another embodiment of the present invention, also can omit this 2 step, do not calculate horizontal sextant angle and vertical angle, also whether determined level angle and vertical angle in step 204 after directly do not carry out step 207a or 207b all greater than predetermined angle.
If one of horizontal sextant angle or vertical angle be less than predetermined angle, execution in step 207a~208a then: the start direction and the start speed of decision scrolling screen-picture; Again with this start direction and start speed scrolling screen-picture.
Shown in Fig. 4 B, vertical angle judges that the start direction is positive Y direction, so the square vertically upward scrolling of screen-picture 120 less than predetermined angle; Shown in Fig. 4 C, horizontal sextant angle judges that the start direction is positive X-direction, so screen-picture 120 levels are to right-hand scrolling less than predetermined angle.Wherein the start speed of scrolling is proportional to displacement.
If horizontal sextant angle and vertical angle be all greater than predetermined angle, execution in step 207b~208b then: the start direction and the start speed of decision moving screen picture; Again with this start direction and start speed moving screen picture.
Shown in Fig. 4 D, moving direction is 45 degree with positive X axle-positive Y between centers angle, judges that the start direction is parallel with user's movement locus direction, moves so screen-picture 120 is tilted to upper right side 45 degree.The start speed that wherein moves is proportional to displacement.
Then carry out step 209: judge whether finger frames out.
After screen-picture 120 moves completion, judge by electronic installation 100 whether user's finger has left Touch Screen 101.Then finish singly to refer to the Touch Screen menu control method if left; Otherwise, then do not get back to step 202 if leave, detect the final position of movement locus once more.
According to one embodiment of the invention; Electronic installation 100 can show arrow 402 on Touch Screen 101; This arrow 402 extends along the start direction of decision before from point symbol 401, and the length of this arrow 402 is proportional to the start speed of decision before.But be noted that, show that arrow 402 is not a steps necessary of the present invention.According to another embodiment of the present invention, also can not show that arrow is on Touch Screen 101.
According to one embodiment of the invention, the user is if desire changes the start speed that screen-picture 120 moves, but then the final position of autokinesis track moves to a new final position.Electronic installation 100 can periodically be detected the final position of movement locus to obtain this new final position.When new final position and former final position not simultaneously, according to former start position and new final position, calculate the new displacement and the new moving direction of movement locus.And, determine new start direction and new start speed according to new displacement and new moving direction, and wherein new start speed is proportional to new displacement, and new start direction is parallel to new moving direction.At last, according to new start direction and new start speed moving screen picture 120.
Please refer to Fig. 5 A to Fig. 5 D, user's movement locus moves to new final position 502 respectively.Among Fig. 5 B; User's movement locus is from 501 coordinates (0 of the final position shown in Fig. 4 B; 2) locate to stop after, be moved downward to new final position 502 coordinates (0,1) again and locate; Therefore user's the new displacement that singly refers to movement locus is kept to 1 unit length among Fig. 5 B, and new moving direction is still positive Y direction; Among Fig. 5 C; User's movement locus is from 501 coordinates (1 of the final position shown in Fig. 4 C; 0) locate to stop after, be moved upward to new final position 502 coordinates (1,1) again and locate; Therefore user's the new displacement that singly refers to movement locus increases to about 1.414 unit lengths among Fig. 5 C, and new moving direction is changed into along angle 45 degree directions between positive X axle-positive Y axle by originally positive X-direction; Among Fig. 5 D; User's movement locus is from 501 coordinates (1 of the final position shown in Fig. 4 D; 1) locate to stop after, locate to upper right new final position 502 coordinates (2,2) that move to again; Therefore user's the new displacement that singly refers to movement locus increases to about 2.828 unit lengths among Fig. 5 D, and new moving direction is still kept along angle 45 degree directions between positive X axle-positive Y axle.
Then through error judgment (step 204), horizontal sextant angle and vertical angle calculate (step 205), with predetermined angle relatively after (step 206); According to new displacement and new moving direction; Determine new start direction and new start speed, then according to new start direction and new start speed moving screen picture 120.Shown in Fig. 5 B, because of new moving direction vertical angle less than predetermined angle, judge that new start direction still is positive Y direction, thus the still square vertically upward scrolling of screen-picture 120, but the new start speed that scrolls up for it before half of start speed.Shown in Fig. 5 C; New moving direction is 45 degree with positive X axle-positive Y between centers angle; Judge that new start direction is parallel with the movement locus moving direction, be tilted to upper right side 45 degree so the new start direction of decision changes into, and new start speed for it before about 1.414 times of start speed.Shown in Fig. 5 D; New moving direction still is 45 degree with positive X axle-positive Y between centers angle; Judge that new start direction is parallel with user's movement locus moving direction, move so screen-picture 120 still continues to be tilted to upper right side 45 degree, and new start speed for it before 2 times of start speed.
According to one embodiment of the invention; When new final position and original final position not simultaneously; Renewable demonstration arrow 402, this arrow 402 extend along new start direction from point symbol 401, and the length of this arrow 402 is proportional to this new start speed.But be noted that, show that arrow is not a steps necessary of the present invention.According to another embodiment of the present invention, also can not show that arrow is on Touch Screen 101.
According to one embodiment of the invention,, then can trigger two Touch Screen menu control method that refers to of the present invention if the user uses two system screen-pictures of accusing.Below please refer to Fig. 3, Fig. 6 and Fig. 7, be the two specific embodiments that refer to the Touch Screen menu control method of the present invention.
At first carry out step 301: two indications are hit twice or two finger stops above preset period of time, to set up two start positions at same position.
Please refer to Fig. 6 A, show a screen-picture 120 in the Touch Screen 101.(1) user can be in first preset period of time, contact respectively or near the same position at least twice of Touch Screen 101 with two indications mode of hitting, and contact for the second time or near behind the Touch Screen 101, two fingers are just no longer away from Touch Screen 101; (2) two indication modes of hitting contact or near Touch Screen 101 once after, two fingers just no longer stop at same position away from Touch Screen 101 and surpass second preset period of time.After electronic installation 100 detects above-mentioned arbitrary situation, can this two positions be made as start position (setting coordinate that also is about to this position is (0,0) and (2,0)).
According to one embodiment of the invention,, can show on Touch Screen 101 that two point symbol 601a and 601b in contiguous this two start positions part, indicate the start positions of two fingers respectively when electronic installation 100 detects twoly when giving directions the action of hitting twice.But be noted that, shown that point symbol in contiguous start position part, is not a steps necessary of the present invention.According to another embodiment of the present invention, also can not show that point symbol is on Touch Screen 101.And according to another embodiment of the present invention, the action that the user sets up start position is not exceeded with contact or near the same position twice of Touch Screen at least.
Then carry out step 302: the two final positions that refer to movement locus of detecting.
Please refer to Fig. 6 B to Fig. 6 E; Two finger movement locus are shown in dotted line among the figure, and after the user set up two start positions, two fingers were just no longer away from Touch Screen 101; Continue to keep in touch or move, stop at respectively on final position 701a and the 701b at last near Touch Screen 101.Wherein two movement locus that refer to of user are parked in coordinate position (0.5,0.5) and (1.5 ,-0.5) respectively for turning clockwise among Fig. 6 B.Two movement locus that refer to of user are parked in coordinate position (1 ,-1) and (1,1) respectively for being rotated counterclockwise among Fig. 6 C.Two movement locus that refer to of user are parked in coordinate position (0.5,0) and (2.5,0) respectively for moving laterally among Fig. 6 D.Two movement locus that refer to of user are parked in coordinate position (0.25,0) and (1.75,0) respectively for moving to the inside among Fig. 6 E.
According to one embodiment of the invention; After electronic installation 100 detected the action termination, (601a was 601b) with final position (701a in point symbol can on Touch Screen 101, to show arrow 602a and 602b respectively; 701b); And (601a, 601b) (701a 701b) extends to final position from point symbol for arrow 602a and 602b.But be noted that, show that arrow is not a steps necessary of the present invention.According to another embodiment of the present invention, also can not show that arrow is on Touch Screen 101.
Then carry out step 303: calculate displacement and moving direction.
The present invention and obtains after two start positions and two final positions in the detecting movement locus, can be according to two start positions and two final position, on average or obtain representing the displacement and the moving direction of two movement locus after the weighted calculation.Wherein displacement is the air line distance of start position and final position, and moving direction is for shifting to the direction of final position from the start position straight line.In present embodiment; The user has two movement locus among Fig. 6 B; Its displacement is all 0.707 unit length; The displacement of two movement locus is all about 1.414 unit lengths among Fig. 6 C, and the displacement of two movement locus is all 0.5 unit length among Fig. 6 D, and the displacement of two movement locus is all 0.25 unit length among Fig. 6 E.
Then carry out step 304: judge that whether displacement is greater than error distance.
Calculate after the displacement, judge that then whether displacement is greater than error distance (according to one embodiment of the invention, error distance is 0.2 unit length, but the present invention is not as limit).If displacement is not more than error distance, then get back to the final position that step 302 is detected movement locus once more; Otherwise if displacement greater than error distance, then carry out step 305.But be noted that step 304 is not a steps necessary of the present invention.According to another embodiment of the present invention, whether also can not judge displacement greater than error distance, and directly carry out follow-up step.In present embodiment, displacement is all greater than error distance, so proceed step 305 among Fig. 6 B to Fig. 6 E.
If displacement greater than error distance, then then carry out step 305: be judged as linearity or nonlinear displacement.
After confirming that displacement is greater than error distance, by electronic installation 100 according to two start positions respectively with two formed two vectors of final position, judge whether these two vectors are positioned at same straight line in fact.If then carry out the action of amplifying or dwindling screen-picture 120.If not, judge that then these two vectors are whether in fact towards clockwise or towards counterclockwise.If towards clockwise, then to carry out the action of Rotation screen picture 120 clockwise; If towards counterclockwise, then carry out the action of Rotation screen picture 120 with counterclockwise.
In present embodiment, two vectors among Fig. 6 B and Fig. 6 C are nonlinear displacement, so can carry out clockwise or the action of rotation counterclockwise; Two vectors among Fig. 6 D and Fig. 6 E are linear displacement, so can carry out the action of amplifying or dwindling.
Then carry out step 306a or 306b: decision clockwise/the start direction and the start speed that are rotated counterclockwise, or decision the start direction and the start speed of amplifying/dwindling.
According to displacement and moving direction, determine the start direction and the start speed of screen-picture 120 by electronic installation 100.According to one embodiment of the invention, start speed is proportional to displacement.
Then carry out step 307a or 307b: with this start direction and start speed clockwise/be rotated counterclockwise screen-picture, or amplify/dwindle screen-picture with this start direction and start speed.
After decision start direction and the start speed, promptly with this start direction and start speed clockwise/be rotated counterclockwise or amplify/dwindle screen-picture 120.Shown in Fig. 6 B, screen-picture 120 rotates toward the clockwise direction; Shown in Fig. 6 C, screen-picture 120 is towards rotation counterclockwise; Shown in Fig. 6 D, screen-picture 120 is exaggerated; Shown in Fig. 6 E, screen-picture 120 is dwindled.
According to one embodiment of the invention, shown in Fig. 6 B,, then show clockwise symbol 603 if carry out the action of CW Rotation screen picture 120; Shown in Fig. 6 C,, then show counterclockwise symbol 604 if carry out the action of Rotation screen picture 120 counterclockwise; Shown in Fig. 6 D,, then show and amplify symbol 605 if carry out the action of amplifying screen-picture 120; Shown in Fig. 6 E,, then show and dwindle symbol 606 if carry out the action of dwindling screen-picture 120.But be noted that, show clockwise/symbol, or demonstration counterclockwise amplifies/dwindles symbol, is not steps necessary of the present invention.
Then carry out step 308: judge whether finger frames out.
After screen-picture 120 moves completion, judge by electronic installation 100 whether user's finger has left Touch Screen 101.If left and then finished two Touch Screen menu control methods that refer to; Otherwise, then do not get back to step 302 if leave, detect the final position of movement locus once more.
According to one embodiment of the invention, the user if desire to rotate once again/to amplify/dwindle screen-picture 120, then must move to two new final positions respectively from two final positions of two movement locus.Electronic installation 100 can periodically be detected the final position of movement locus to obtain this two new final positions.When new final position and former final position not simultaneously, according to start position and new final position, calculate the new displacement and the new moving direction of movement locus.And, determine new start direction and new start speed according to new displacement and new moving direction.At last, according to new start direction and new start speed moving screen picture 120.
Please refer to Fig. 7 A to Fig. 7 E, user's movement locus moves to new final position respectively again after former final position stops.Among Fig. 7 B, user's movement locus moves to new final position coordinate (1,1) and (1 ,-1) more clockwise and locates after locating to stop from the final position coordinate (0.5,0.5) shown in Fig. 6 B and (1.5 ,-0.5) respectively; Among Fig. 7 C, after user's movement locus is located to stop from the final position coordinate shown in Fig. 6 C (1 ,-1) and (1,1) respectively, change into again and move to new final position coordinate (0.5 ,-0.5) clockwise and (1.5,0.5) are located; Among Fig. 7 D, after user's movement locus is located to stop from the final position coordinate (0.5,0) shown in Fig. 6 D and (2.5,0) respectively, continue to move to laterally new final position coordinate (1,0) again and reach (3,0) and locate; Among Fig. 7 E, after user's movement locus is located to stop from the final position coordinate (0.25,0) shown in Fig. 6 E and (1.75,0) respectively, continue to move to the inside new final position coordinate (0.5,0) again and reach (1.5,0) and locate.In present embodiment; Two movement locus among Fig. 7 B; Its new displacement is all 1.414 unit lengths; The new displacement of two movement locus is all 0.707 unit length among Fig. 7 C, and the new displacement of two movement locus is all 1 unit length among Fig. 7 D, and the new displacement of two movement locus is all 0.5 unit length among Fig. 7 E.
According to new displacement and new moving direction, determine new start direction and new start speed after, screen-picture 120 thereupon toward the clockwise direction, towards rotation counterclockwise, and be sidelong outwardly greatly, inwards dwindle.The new start speed of screen-picture 120 among Fig. 7 B, Fig. 7 D and Fig. 7 E wherein is all the twice of original start speed; And the new start speed of screen-picture 120 among Fig. 7 C, half the for original start speed.
According to one embodiment of the invention; When two new final positions and two original final positions not simultaneously, (601a is 601b) with two new final position (702a in two point symbols can to show arrow 602a and 602b respectively; 702b); And (601a, 601b) (702a 702b) extends to new final position from point symbol for arrow 602a and 602b.But be noted that, show that arrow is not a steps necessary of the present invention.According to another embodiment of the present invention, also can not show that arrow is on Touch Screen 101.
Be noted that here Touch Screen menu control method of the present invention does not exceed with above-mentioned order of steps, as long as can reach the present invention's purpose, but the also change of above-mentioned steps order.
The present invention is described by above-mentioned related embodiment, yet the foregoing description is merely the example of embodiment of the present invention.Must be pointed out that the embodiment that has disclosed does not limit scope of the present invention.On the contrary, change and retouching not breaking away from the spirit and scope of the present invention to be done all belong to scope of patent protection of the present invention.