CN104615299B - Instruction triggers method and apparatus based on touch screen - Google Patents

Instruction triggers method and apparatus based on touch screen Download PDF

Info

Publication number
CN104615299B
CN104615299B CN201410812029.XA CN201410812029A CN104615299B CN 104615299 B CN104615299 B CN 104615299B CN 201410812029 A CN201410812029 A CN 201410812029A CN 104615299 B CN104615299 B CN 104615299B
Authority
CN
China
Prior art keywords
display area
slide
touch screen
sliding trace
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410812029.XA
Other languages
Chinese (zh)
Other versions
CN104615299A (en
Inventor
刘宝有
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201410812029.XA priority Critical patent/CN104615299B/en
Publication of CN104615299A publication Critical patent/CN104615299A/en
Application granted granted Critical
Publication of CN104615299B publication Critical patent/CN104615299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

A kind of instruction triggers method based on touch screen, comprising the following steps: the slide on monitoring touch screen;Record the sliding trace that the slide generates;Judge whether the slide from the non-display area of touch screen and reaches display area according to the sliding trace, when the slide from the non-display area and reaches display area, triggers preset instructions.The above method monitors the slide on touch screen and records corresponding sliding trace, when slide is from the non-display area of touch screen and reaches display area, then trigger preset specific instruction, rather than it centainly needs to be confined to tangible icon and carrys out triggering command, so as to save the occupied space of tangible icon, therefore, the above-mentioned instruction triggers method and apparatus based on touch screen can save space.In addition, also providing a kind of instruction triggers device based on touch screen.

Description

Instruction triggers method and apparatus based on touch screen
[technical field]
The present invention relates to touch screen terminal technical field, in particular to a kind of instruction triggers method and dress based on touch screen It sets.
[background technique]
Touch screen (touch screen) is also known as " touch screen ", " touch panel ", is a kind of input such as receivable contact The induction type liquid crystal display device of signal, when contacting the graphic button on screen, the haptic feedback system on screen can root Various connection devices are driven according to the formula of preprogramming, are substituted for mechanical push button panel.Touch screen is used as one kind most New input equipment, it provide at present most simply, conveniently, a kind of natural man-machine interaction mode.
Currently, there are many by way of the touch input instruction to touch screen, including click touch, double-click touch, is more Touch, sliding touch etc..Such as some mobile phones with touch screen, it can be slided by finger after screen locking and allow screen solution Lock either rolls screen or switching interface by sliding;In another example some mobile phones with touch screen are in amplification picture, Two fingers can be pinned into screen, dragging amplification and diminution are carried out to picture respectively by the folding of finger.
It is in the prior art typically all relevant to tangible icon by the touch operation triggering at tangible picture mark position Instruction, however tangible icon always occupies some spaces, or the occupied space on interactive interface, for example, the boundary made a phone call For the button made a phone call in face, or then need the fixation position occupied space in touch screen panel, such as some mobile phones Display area below return push-button etc..
[summary of the invention]
Based on this, it is necessary to provide a kind of instruction triggers method and apparatus based on touch screen that can save space-efficient.
A kind of instruction triggers method based on touch screen, comprising the following steps:
Monitor the slide on touch screen;
Record the sliding trace that the slide generates;
Judge whether the slide from the non-display area of touch screen and reaches aobvious according to the sliding trace Show region, when the slide from the non-display area and reach display area, trigger preset instructions.
Judge the slide whether from the non-aobvious of touch screen according to the sliding trace in one of the embodiments, Show that region sets out and reaches display area, when the slide from the non-display area and reaches display area, touching The step of sending out preset instructions are as follows:
Judge the slide whether from the non-display area below the display area of touch screen according to the sliding trace Domain set out and direction up;
When the slide from the non-display area below the display area and direction up when, triggering is default Instruction.
Judge the slide whether from the display of touch screen according to the sliding trace in one of the embodiments, The step of non-display area below region sets out include:
Judge whether the starting point of the sliding trace is located near the display area bottom, if so, described in determining Slide is from the non-display area, otherwise, it is determined that the slide is not from the non-display area.
The method also includes steps in one of the embodiments: judging that the sliding is grasped according to the sliding trace Make whether upward displacement is greater than first threshold;
When the slide is from the non-display area, direction is upward and upward displacement is greater than first threshold When, trigger preset instructions.
The method also includes steps in one of the embodiments: monitoring the slide in the slide Whether residence time is more than second threshold at terminating point;
When the slide stops upwards and at the terminating point of the slide from the non-display area, direction When whether the time stayed is more than second threshold, preset instructions are triggered.
A kind of instruction triggers device based on touch screen, comprising:
Monitoring modular, for monitoring the slide on touch screen;
Track record module, the sliding trace generated for recording the slide;
Track judgment module, for judging the slide whether from the non-display of touch screen according to the sliding trace It sets out and reaches display area in region;
Instruction triggers module, for from the non-display area and reaching display area when the slide, touching Send out preset instructions.
The track judgment module is used to judge that the sliding is grasped according to the sliding trace in one of the embodiments, Make whether from the non-display area below the display area of touch screen and direction up;
Described instruction trigger module be used for when the slide from the non-display area and direction up when, touching Send out preset instructions.
In one of the embodiments, the track judgment module be used for judge the sliding trace starting point whether position Whether to distinguish the slide from the non-display area below the display area of touch screen near the display area bottom Domain is set out, if the starting point of the sliding trace is located near the display area bottom, determines the slide from institute It states non-display area to set out, otherwise, it is determined that the slide is not from the non-display area.
Described device further includes displacement judgment module in one of the embodiments, for being sentenced according to the sliding trace Whether the upward displacement of the slide of breaking is greater than first threshold;
Described instruction trigger module is used for upwards and upward from the non-display area, direction when the slide Displacement be greater than first threshold when, trigger preset instructions.
Described device further includes residence time monitoring modular in one of the embodiments, for monitoring the sliding behaviour Make whether the residence time at the terminating point of the slide is more than second threshold;
Described instruction trigger module is used for when the slide from the non-display area, direction upwards and at this When whether residence time is more than second threshold at the terminating point of slide, preset instructions are triggered.
The above-mentioned instruction triggers method and apparatus based on touch screen monitor the slide on touch screen and record corresponding Sliding trace then triggers preset specific when slide is from the non-display area of touch screen and reaches display area Instruction, rather than centainly need to be confined to tangible icon and carry out triggering command, so as to save the occupied space of tangible icon, Therefore, the above-mentioned instruction triggers method and apparatus based on touch screen can save space.
[Detailed description of the invention]
Fig. 1 is the flow diagram of the instruction triggers method based on touch screen in one embodiment;
Fig. 2 is the flow diagram of the instruction triggers method based on touch screen in one embodiment;
Fig. 3 is effective sliding trace of the triggerable preset instructions in one embodiment and the nothing that not can trigger preset instructions Imitate the schematic diagram of sliding trace;
Fig. 4 is the flow diagram of the instruction triggers method based on touch screen in one embodiment;
Fig. 5 is the structural schematic diagram of the instruction triggers device based on touch screen in one embodiment;
Fig. 6 is the structural schematic diagram of the instruction triggers device based on touch screen in one embodiment;
Fig. 7 is the structural schematic diagram of the instruction triggers device based on touch screen in one embodiment.
[specific embodiment]
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, in one embodiment, a kind of instruction triggers method based on touch screen, comprising the following steps:
Step S102 monitors the slide on touch screen.
In one embodiment, can the gesture in calling system monitor the slide on interface monitor touch screen.For example, In android system (a kind of operating system for being mainly used for mobile device of freedom and open source code based on Linux) The middle slide for calling On Gesture Listener interface or Gesture Detector interface monitor touch screen.
Step S104, the sliding trace that record slide generates.
When slide occurs on touch screen, the sliding trace that slide generates can record.In one embodiment, Can be by the coordinate of the touch point of moving event object acquisition slide, such as in android system, can pass through The coordinate of MotionEvent object acquisition touch point.The MotionEvent object record coordinate of touch point, as sliding is grasped The variation of touch point position in work, the coordinate of the touch point of MotionEvent object record are also variation.It saves The coordinate of MotionEvent object record simultaneously forms coordinate sequence, and the corresponding point of the coordinate sequence may make up slide pair The sliding trace answered.
Coordinate in present specification is referred to be parallel to display area bottom edge (by row's pixel structure of bottom At) straight line be x-axis, the coordinate in the coordinate system established by y-axis of the straight line perpendicular to x-axis.
Step S106 judges whether slide from the non-display area of touch screen and reaches aobvious according to sliding trace Show region;When slide from non-display area and reach display area, trigger preset instructions.Touch screen includes Trackpad And display board, Trackpad are located on display board, are used in combination with display board.Trackpad (such as is touched for receiving contact Control pen, finger etc.) region of signal of input is known as touch area, and the region for showing picture of display board be then known as it is aobvious Show region.All areas in touch screen except display area are referred to generically as non-display area.The touch area of some touch screens and The size of display area is equal and overlaps;And the area of the touch area of some touch screens is greater than the face of display area Product, touch area cover display area and extend a part outward, for example, extending a part toward display area lower section. The part can be used for placing the icon of some fixations, such as return to a upper interface icon, return to desktop icons, menu icon etc.; Wherein, returning when a upper interface icon is clicked can trigger the instruction for returning to a upper interface, and returning can when desktop icons are clicked Triggering returns to the instruction of desktop, can trigger the instruction, etc. of display menu when menu icon is clicked.
Touch screen of being subject in present specification is upright to be placed and just describes orientation facing towards user.
In the first embodiment, the detailed process of step S106 are as follows: judge slide whether from touching according to sliding trace Touch the non-display area below the display area of screen set out and direction up;When slide is from non-display area and direction When up, preset instructions are triggered.
In a second embodiment, the detailed process of step S106 are as follows: judge slide whether from touching according to sliding trace Touch the non-display area above the display area of screen set out and direction down;When slide is from non-display area and direction When down, preset instructions are triggered.
In the third embodiment, the detailed process of step S106 are as follows: judge slide whether from touching according to sliding trace The non-display area for touching the display area left of screen sets out and direction is turned right;When slide is from non-display area and direction When turning right, preset instructions are triggered.
In the fourth embodiment, the detailed process of step S106 are as follows: judge slide whether from touching according to sliding trace The non-display area for touching the display area right of screen sets out and direction is turned left;When slide is from non-display area and direction When turning left, preset instructions are triggered.
Hereafter illustrate the detailed process of step S106 based on above-mentioned first embodiment, however the present invention should not limit The detailed process of step S106 described in Examples below.The detailed process of step S106 in the second to four above-mentioned embodiment It can be analogized according to Examples below, details are not described herein.
In one embodiment, judge slide whether from touch screen according to sliding trace in above-mentioned first embodiment Display area below non-display area the step of setting out include: to judge whether the starting point of sliding trace is located at touch screen Near the bottom of display area, if so, determine non-display area of the slide below display area, otherwise, it is determined that Slide is not from the non-display area.
It is non-below display area when the touch area of touch screen and display area size are equal and when overlapping Display area does not include in touch area;And when the touch area of touch screen covering display area and toward extending one below When part, the non-display area below display area includes or is partly comprised in touch area.
In one embodiment, when the touch area of touch screen and display area size are equal and when overlapping, Due to the touch operation being unable to monitor to other than display area, it can determine whether the starting point of sliding trace is located at display area Bottom edge.If the starting point of sliding trace is located at the bottom edge of display area, determine slide from non-aobvious below display area Show that region is set out.Because in the actual operation process, if actual slide is strictly from non-aobvious below display area Show that region is set out and during entire slide without being detached from touch screen, then the starting point of the sliding trace monitored must Positioned at the bottom edge of display area.
In another embodiment, when the touch area of touch screen and display area size are equal and overlap When, it can determine whether the predeterminated position whether starting point of sliding trace is lower than on the bottom edge of display area, the predeterminated position Several pixels (being equivalent to vertical range close to 0) is differed with the vertical range on bottom edge, if so, determining slide from display Non-display area below region sets out.Since predeterminated position only differs several pixels, practical operation with the vertical range on bottom edge It is almost impossible in the process that the starting point of slide is positioned between the bottom edge of display area and the predeterminated position, therefore, It is general only just to can guarantee that the starting point of sliding trace is lower than from the non-display area upward sliding below display area Therefore the starting point of sliding trace is lower than on the bottom edge of display area by the predeterminated position on the bottom edge of display area The situation of the predeterminated position be determined as non-display area of the slide below display area, be to meet practical operation Situation.
And on the other hand, the slide upward from non-display area is also possible to the reasons such as operation error in centre Some point departing from touch screen, thus the two sections of sliding traces actually generated, and if the starting of second segment sliding trace Point is by chance fallen between the bottom edge of display area and the predeterminated position, then determines slide from non-display below display area Region is set out, and also complies with practical operation situation, and certain fault tolerant workspace is provided for the operation error of user.
In one embodiment, when the touch area of touch screen covers display area and toward extending a part below When, due to can monitor the touch operation in the following distance of display area, can determine whether sliding trace starting point whether Lower than the bottom edge of display area, if so, determining non-display area of the slide below display area.
Specifically, in one embodiment, when the touch area of touch screen and display area size are equal and mutual When coincidence, it can determine whether the ordinate of the starting point of sliding trace is equal to the ordinate on the bottom edge of display area, if so, sentencing Determine non-display area of the slide below display area;Alternatively, can determine whether the ordinate of the starting point of sliding trace Whether be less than the bottom edge of display area ordinate and several pixel distances and, if so, judgement slide is from viewing area Non-display area below domain sets out.Several pixel distances refer to arranged in a straight line and continuous several pixels table in a coordinate system The distance shown.
When the touch area of touch screen covering display area and toward when extending a part below, sliding trace can determine whether Starting point ordinate whether be less than display area bottom edge ordinate, if so, determining slide from display area The non-display area of lower section sets out.
For example, using the pixel in the display area most lower left corner as coordinate origin, with row's pixel of display area bottom Straight line where point is x-axis, using straight line where one column pixel of the display area leftmost side as y-axis establishes two-dimensional coordinate system.
When the touch area of touch screen and display area size are equal and when overlapping, sliding trace can determine whether Whether the ordinate of starting point is equal to 0, if so, determining non-display area of the slide below display area;Or Person, can determine whether the ordinate of the starting point of sliding trace is less than several pixel distances, if so, determining slide from aobvious Show that the non-display area below region sets out.
When the touch area of touch screen covering display area and toward when extending a part below, sliding trace can determine whether Starting point ordinate whether less than 0, if so, determining non-display area of the slide below display area.
In one embodiment, can determine whether the ordinate of the starting point of sliding trace whether be less than the ordinate of terminating point and Whether the abscissa of starting point is less than third threshold value at a distance from the abscissa of terminating point, if so, determining the side of slide To upward.
Hereafter continue to illustrate the instruction triggers method of the invention based on touch screen based on above-mentioned first embodiment.However The present invention should not be limited to below based on the instruction triggers method described in above-mentioned first embodiment based on touch screen.Phase The instruction triggers method based on touch screen based on first to fourth above-mentioned embodiment answered can be carried out according to Examples below Analogize, details are not described herein.
In one embodiment, the above-mentioned instruction triggers method based on touch screen is further comprised the steps of: sentences according to sliding trace Whether the upward displacement of disconnected slide is greater than first threshold;When slide from non-display area, direction upwards and to On displacement be greater than first threshold when, trigger preset instructions.Fig. 2 shows one of the present embodiment to execute process.Such as Fig. 2 institute Show, the above-mentioned instruction triggers method based on touch screen the following steps are included:
Step S202 monitors the slide on touch screen.
Step S204, when slide occurs on touch screen, the sliding trace of record slide generation.
Whether step S206 judges slide from the non-display area below the display area of touch screen according to sliding trace Domain set out and direction up, and judge whether the upward displacement of slide is greater than first threshold.
Specifically, the ordinate for the starting point that the upward displacement of slide is sliding trace and indulging for terminating point can be calculated The distance between coordinate.
Step S208, when slide is from non-display area, direction is upward and upward displacement is greater than first threshold When, trigger preset instructions.
As shown in figure 3, H1 indicates the bottom edge 302 for being parallel to display area 301 and the bottom edge 302 close to display area 301 Straight line, check, the distance between H1 and 301 bottom edge 302 of display area be exaggerated for convenience in figure.H2 table Show the straight line at a distance from H1 for first threshold;L1, L2, L3, L4, L5 respectively indicate sliding trace;Wherein, L1, L2 and L3 Starting point is lower than H1 and terminating point exceeds H2, so L1, L2 and L3 indicate that effective sliding trace of preset instructions can be triggered; And since the terminating point that the starting point of L4 is higher by H1, L5 is lower than H2, L3, L4 indicate that the nothing of preset instructions cannot be triggered Effect operation.
In above-described embodiment, when slide is from non-display area, direction is upward and upward displacement is greater than first When threshold value, preset instructions are just triggered, may filter that some displacements upward but upward from non-display area are lesser and be not intended to The operation of knowledge avoids these operation triggering preset instructions.
In one embodiment, the above-mentioned instruction triggers method based on touch screen further comprises the steps of: monitoring slide and exists Whether residence time is more than second threshold at the terminating point of the slide;When slide is from non-display area, side To when upward and whether residence time is more than second threshold at the terminating point of the slide, preset instructions are triggered.Fig. 4 shows Go out one of the present embodiment and executes process.As shown in figure 4, the above-mentioned instruction triggers method based on touch screen includes following step It is rapid:
Step S402 monitors the slide on touch screen.
Step S404, when slide occurs on touch screen, the sliding trace of record slide generation.
Whether step S406 judges slide from the non-display area below the display area of touch screen according to sliding trace Domain set out and direction up, and monitoring slide at the terminating point of the slide residence time whether more than second Threshold value.
In one embodiment, monitoring slide at the terminating point of the slide residence time whether more than the The step of two threshold values, is the following steps are included: whether the touch point of monitoring slide stops in same place, if so, record touch-control Point stops the initial time of (i.e. the position of touch point is no longer changed), and calculates the stay time of touch point here, with And monitoring touch point whether stop here after no longer shift to other places slide and terminate, if slide stops here It is long be more than second threshold and touch point stop here after no longer shift to other places slide and terminate, then determine that slide exists Residence time is more than second threshold at the terminating point of the slide, otherwise, it is determined that end of the slide in the slide Residence time is no more than second threshold at stop.
Step S408, when slide from non-display area, direction upwards and at the terminating point of the slide When whether residence time is more than second threshold, preset instructions are triggered.
In above-described embodiment, when slide from non-display area, direction upwards and in the termination of the slide When whether residence time is more than second threshold at point, preset instructions are just triggered, may filter that some from non-display area The upward but shorter unconscious operation of residence time at terminating point avoids these operation triggering preset instructions.
In one embodiment, when slide is greater than first from non-display area, the displacement that direction is upward, upward Threshold value and at the terminating point of the slide residence time be more than second threshold when, trigger preset instructions.
In one embodiment, above-mentioned preset instructions can be but be not limited to return instruction or show that picture reduces movement and refers to Enable etc..
Specifically, return instruction, which may be used to indicate, returns to a upper interface, interface is before the interface currently shown on this The interface finally shown in the interface of display.Display picture reduce move may be used to indicate by the picture window of display according to Certain proportion is reduced and is drawn close picture window to the close touch screen corner of the gesture for holding touch panel device, that is, If holding the gesture of touch panel device close to some corner (such as lower right corner) of touch screen, by picture window to the corner It draws close, is hold by one hand touch panel device and by the one-handed performance touch screen to facilitate.
As shown in figure 5, in one embodiment, a kind of instruction triggers device based on touch screen, including monitoring modular 502, track record module 504, track judgment module 506 and instruction triggers module 508, in which:
Monitoring modular 502 is used to monitor the slide on touch screen.
In one embodiment, monitoring modular 502 can the gesture in calling system monitor the cunning on interface monitor touch screen Dynamic operation.For example, in android system, (a kind of freedom and open source code based on Linux is mainly used for mobile device Operating system) in call the cunning of On Gesture Listener interface or Gesture Detector interface monitor touch screen Dynamic operation.
Track record module 504 is used to record the sliding trace of slide generation.
Track record module 504 can be used for when slide occurs on touch screen, the sliding that record slide generates Track.In one embodiment, track record module 504 can pass through the seat of the touch point of moving event object acquisition slide Mark, such as in android system, track record module 504 can pass through the coordinate of MotionEvent object acquisition touch point. The MotionEvent object record coordinate of touch point, with the variation of touch point position in slide, MotionEvent The coordinate of the touch point of object record is also variation.The coordinate of the preservation MotionEvent object record of track record module 504 And coordinate sequence is formed, the corresponding point of the coordinate sequence may make up the corresponding sliding trace of slide.
Track judgment module 506 is used to judge whether slide goes out from the non-display area of touch screen according to sliding trace Hair and arrival display area;Instruction triggers module 508 is used to work as slide from non-display area and reaches display area, Trigger preset instructions.
In the 5th embodiment, whether track judgment module 506 is used to be judged slide from touch according to sliding trace Non-display area below the display area of screen set out and direction up;Instruction triggers module 508 is used for when slide is from non- Display area set out and direction up when, trigger preset instructions.
In the sixth embodiment, whether track judgment module 506 is used to be judged slide from touch according to sliding trace Non-display area above the display area of screen set out and direction down;Instruction triggers module 508 is used for when slide is from non- Display area set out and direction down when, trigger preset instructions.
In the seventh embodiment, whether track judgment module 506 is used to be judged slide from touch according to sliding trace The non-display area of the display area left of screen sets out and direction is turned right;Instruction triggers module 508 is used for when slide is from non- When display area is set out and direction is turned right, preset instructions are triggered.
In the eighth embodiment, whether track judgment module 506 is used to be judged slide from touch according to sliding trace The non-display area of the display area right of screen sets out and direction is turned left;Instruction triggers module 508 is used for when slide is from non- When display area is set out and direction is turned left, preset instructions are triggered.
Examples below illustrates track judgment module 506 in the 5th above-mentioned embodiment and instruction triggers module 508 Concrete function;However the present invention should not be limited to embodiments described just below
Hereafter illustrate the tool of track judgment module 506 and instruction triggers module 508 based on the 5th above-mentioned embodiment Body function, however the present invention should not be limited to track judgment module 506 and instruction triggers module 508 described in Examples below. The concrete function of track judgment module 506 and instruction triggers module 508 based on the 6th to the 8th above-mentioned example can class according to this It pushes away, details are not described herein.
Based on the 5th above-mentioned embodiment, in one embodiment, track judgment module 506 is for judging sliding trace Whether starting point is located at display area bottom nearby whether to distinguish slide from non-aobvious below the display area of touch screen Show that region is set out, if the starting point of the sliding trace is located near the display area bottom, determines slide from aobvious Show that the non-display area below region sets out, otherwise, it is determined that slide is not from the non-display area.
It is non-below display area when the touch area of touch screen and display area size are equal and when overlapping Display area does not include in touch area;And when the touch area of touch screen covering display area and toward extending one below When part, the non-display area below display area includes or is partly comprised in touch area.
In one embodiment, when the touch area of touch screen and display area size are equal and when overlapping, Due to the touch operation being unable to monitor to other than display area, track judgment module 506 can determine whether that the starting point of sliding trace is The no bottom edge positioned at display area determines slide from aobvious if the starting point of sliding trace is located at the bottom edge of display area Show that the non-display area below region sets out.Because in the actual operation process, if actual slide is strictly from aobvious Show that the non-display area below region sets out and during entire slide without being detached from touch screen, the then sliding monitored The starting point of track must be located at the bottom edge of display area.
In another embodiment, when the touch area of touch screen and display area size are equal and overlap When, track judgment module 506 can determine whether that one that whether the starting point of sliding trace is lower than on the bottom edge of display area is preset Position, which differs several pixels (being equivalent to vertical range close to 0) with the vertical range on bottom edge, if so, sentencing Determine non-display area of the slide below display area.Since predeterminated position only differs several with the vertical range on bottom edge A pixel, the almost impossible bottom edge that the starting point of slide is positioned at display area is preset with this in actual mechanical process It is therefore, general only just to can guarantee sliding rail from the non-display area upward sliding below display area between position The starting point of mark is lower than the predeterminated position on the bottom edge of display area, therefore, by the starting point of sliding trace lower than display The situation of the predeterminated position on the bottom edge in region is determined as non-display area of the slide below display area, Meet practical operation situation.
And on the other hand, the slide upward from non-display area is also possible to the reasons such as operation error in centre Some point departing from touch screen, thus the two sections of sliding traces actually generated, and if the starting of second segment sliding trace Point is by chance fallen between the bottom edge of display area and the predeterminated position, then determines slide from non-display below display area Region is set out, and also complies with practical operation situation, and certain fault tolerant workspace is provided for the operation error of user.
In one embodiment, when the touch area of touch screen covers display area and toward extending a part below When, due to that can monitor the touch operation in the following distance of display area, track judgment module 506 can determine whether sliding rail Whether the starting point of mark is lower than the bottom edge of display area, if so, determining slide from the non-display area below display area It sets out in domain.
Specifically, in one embodiment, when the touch area of touch screen and display area size are equal and mutual When coincidence, track judgment module 506 can determine whether the ordinate of the starting point of sliding trace is equal to the bottom edge of display area Ordinate, if so, determining non-display area of the slide below display area;Alternatively, track judgment module 506 It can determine whether the ordinate of the starting point of sliding trace is less than the ordinate and several pixel distances on the bottom edge of display area With if so, determining non-display area of the slide below display area.Several pixel distances refer to that straight line is arranged The distance that column and continuous several pixels indicate in a coordinate system.
When touch screen touch area cover display area and toward extend a part below when, track judgment module 506 can determine whether the ordinate of the starting point of sliding trace is less than the ordinate on the bottom edge of display area, if so, determining to slide Non-display area of the dynamic operation below display area.
For example, using the pixel in the display area most lower left corner as coordinate origin, with row's pixel of display area bottom Straight line where point is x-axis, using straight line where one column pixel of the display area leftmost side as y-axis establishes two-dimensional coordinate system.
When the touch area of touch screen and display area size are equal and when overlapping, track judgment module 506 It can determine whether the ordinate of the starting point of sliding trace is equal to 0, if so, determining slide from non-below display area It sets out display area;Alternatively, track judgment module 506 can determine whether the ordinate of the starting point of sliding trace is less than several pictures Plain distance, if so, determining non-display area of the slide below display area.
When touch screen touch area cover display area and toward extend a part below when, track judgment module 506 can determine whether the ordinate of the starting point of sliding trace whether less than 0, if so, determining slide below display area Non-display area set out.
In one embodiment, track judgment module 506 also can determine whether abscissa and the termination of the starting point of sliding trace Whether the distance of the abscissa of point is less than third threshold value, if so, determining that the direction of slide is upward.
Hereafter continue to illustrate that the instruction triggers device of the invention based on touch screen is wrapped based on the 5th above-mentioned embodiment The function of the other modules included.However the present invention should not be limited to be based below based on described in the 5th above-mentioned embodiment The instruction triggers device of touch screen.Corresponding to the instruction triggers device institute based on touch screen of the 6th to the 8th above-mentioned embodiment Including the function of module can be analogized according to Examples below, details are not described herein.
As shown in fig. 6, in one embodiment, the above-mentioned instruction triggers device based on touch screen further includes that displacement judges mould Block 602, for judging whether the upward displacement of slide is greater than first threshold according to sliding trace;In the present embodiment, instruction When trigger module 508 is used for when slide from non-display area, direction is upward and upward displacement is greater than first threshold, Trigger preset instructions.
Specifically, displacement judgment module 602 can calculate the vertical of the starting point that the upward displacement of slide is sliding trace The distance between coordinate and the ordinate of terminating point.
In above-described embodiment, when slide is from non-display area, direction is upward and upward displacement is greater than first When threshold value, preset instructions are just triggered, may filter that some displacements upward but upward from non-display area are lesser and be not intended to The operation of knowledge avoids these operation triggering preset instructions.
In one embodiment, the above-mentioned instruction triggers device based on touch screen further includes residence time monitoring modular 702, It whether is more than second threshold for monitoring slide residence time at the terminating point of the slide;In the present embodiment, Instruction triggers module 508 is used for when slide from non-display area, direction upwards and in the terminating point of the slide When whether place's residence time is more than second threshold, preset instructions are triggered.
Specifically, in one embodiment, residence time monitoring modular 702 can monitor slide in the slide The step of whether residence time is more than second threshold at terminating point the following steps are included: monitoring slide touch point whether It stops in same place, if so, record touch point stops the initial time of (i.e. the position of touch point is no longer changed), and counts The stay time of touch point here is calculated, and monitors after whether touch point stops here and no longer shifts to other places slide i.e. It terminates, if stay time is more than no longer to shift to other places after second threshold and touch point stop here to slide to slide here Operation terminates, then determines that slide residence time at the terminating point of the slide is more than otherwise second threshold is sentenced Determine slide residence time at the terminating point of the slide and is no more than second threshold.
In above-described embodiment, when slide from non-display area, direction upwards and in the termination of the slide When whether residence time is more than second threshold at point, preset instructions are just triggered, may filter that some from non-display area The upward but shorter unconscious operation of residence time at terminating point avoids these operation triggering preset instructions.
In one embodiment, the above-mentioned instruction triggers device based on touch screen includes displacement judgment module 602 simultaneously With residence time monitoring modular 702;In the present embodiment, instruction triggers module 508 is used to go out when slide from non-display area The displacement of hair, direction upwards, upward is greater than first threshold and residence time is more than second at the terminating point of the slide When threshold value, preset instructions are triggered.
In one embodiment, above-mentioned preset instructions can be but be not limited to return instruction or show that picture reduces movement and refers to Enable etc..
Specifically, return instruction, which may be used to indicate, returns to a upper interface, interface is before the interface currently shown on this The interface finally shown in the interface of display.Display picture reduce move may be used to indicate by the picture window of display according to Certain proportion is reduced and is drawn close picture window to the close touch screen corner of the gesture for holding touch panel device, that is, If holding the gesture of touch panel device close to some corner (such as lower right corner) of touch screen, by picture window to the corner It draws close, is hold by one hand touch panel device and by the one-handed performance touch screen to facilitate.
The above-mentioned instruction triggers method and apparatus based on touch screen monitor the slide on touch screen and record corresponding Sliding trace then triggers preset specific when slide is from the non-display area of touch screen and reaches display area Instruction, rather than centainly need to be confined to tangible icon and carry out triggering command, so as to save the occupied space of tangible icon, Therefore, the above-mentioned instruction triggers method and apparatus based on touch screen can save space.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (6)

1. a kind of instruction triggers method based on touch screen, comprising the following steps:
Monitor the slide on touch screen;
Record the sliding trace that the slide generates;
Judge whether the starting point of the sliding trace is located at the predeterminated position of bottom in display area and the sliding trace is No is the displacement track upward greater than the direction of first threshold, and the predeterminated position of bottom is located at display area in the display area Bottom edge or differ several pixels with the vertical range on the bottom edge of display area;
If so, responding the slide, return instruction is triggered.
2. the instruction triggers method according to claim 1 based on touch screen, which is characterized in that the method also includes:
Judge whether the starting point of the sliding trace is located at the predeterminated position of bottom in the display area;
If it is not, then determining that the slide from non-display area, does not trigger preset instructions.
3. the instruction triggers method according to claim 1 based on touch screen, which is characterized in that the method also includes steps It is rapid: to monitor whether slide residence time at the terminating point of the slide is more than second threshold;
When the slide from non-display area, direction upwards and the residence time at the terminating point of the slide When whether being more than second threshold, preset instructions are triggered;
Judge that slide direction is upward, comprising:
Judge whether the ordinate of the starting point of the sliding trace is less than the ordinate of terminating point and the horizontal seat of the starting point Whether mark is less than third threshold value at a distance from the abscissa of the terminating point, if so, determining that the slide direction is upward.
4. a kind of instruction triggers device based on touch screen characterized by comprising
Monitoring modular, for monitoring the slide on touch screen;
Track record module, the sliding trace generated for recording the slide;
Track judgment module, for judging whether the starting point of the sliding trace is located at the predeterminated position of bottom in display area And whether the sliding trace is the displacement track upward greater than the direction of first threshold, bottom is default in the display area Position is located at the bottom edge of display area or differs several pixels with the vertical range on the bottom edge of display area;
Instruction triggers module, for triggering return instruction if so, respond the slide.
5. the instruction triggers device according to claim 4 based on touch screen, which is characterized in that the track judgment module It is also used to judge whether the starting point of the sliding trace is located at the predeterminated position of bottom in the display area, if it is not, then sentencing The fixed slide does not trigger preset instructions not from non-display area.
6. the instruction triggers device according to claim 4 based on touch screen, which is characterized in that described device further includes stopping Stay time supervision module, for monitor the slide at the terminating point of the slide residence time whether be more than Second threshold;
Described instruction trigger module is used for when the slide from non-display area, direction upwards and in the slide Terminating point at residence time when whether being more than second threshold, trigger preset instructions;
Described instruction trigger module is also used to judge whether the ordinate of the starting point of the sliding trace is less than the vertical of terminating point Coordinate and whether the abscissa of the starting point is less than third threshold value at a distance from the abscissa of the terminating point, if so, sentencing The fixed slide direction is upward.
CN201410812029.XA 2014-12-22 2014-12-22 Instruction triggers method and apparatus based on touch screen Active CN104615299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410812029.XA CN104615299B (en) 2014-12-22 2014-12-22 Instruction triggers method and apparatus based on touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410812029.XA CN104615299B (en) 2014-12-22 2014-12-22 Instruction triggers method and apparatus based on touch screen

Publications (2)

Publication Number Publication Date
CN104615299A CN104615299A (en) 2015-05-13
CN104615299B true CN104615299B (en) 2019-04-30

Family

ID=53149778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410812029.XA Active CN104615299B (en) 2014-12-22 2014-12-22 Instruction triggers method and apparatus based on touch screen

Country Status (1)

Country Link
CN (1) CN104615299B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278753B (en) * 2015-11-17 2018-05-08 小米科技有限责任公司 Touch-control response method and device
CN105824568B (en) * 2016-03-30 2020-01-24 苏州佳世达电通有限公司 Electronic device and operation method thereof
CN105956455B (en) * 2016-05-10 2019-08-30 北京京东尚科信息技术有限公司 The method and apparatus verified using nine grids sliding lock identifying code
CN106201309B (en) * 2016-06-29 2019-08-20 维沃移动通信有限公司 A kind of status bar processing method and mobile terminal
CN106445280A (en) * 2016-08-31 2017-02-22 维沃移动通信有限公司 Voice message playing method and mobile terminal
CN107132982B (en) * 2017-04-12 2020-08-25 贡海林 Single-hand control method and system for terminal equipment
CN109696982A (en) * 2017-10-20 2019-04-30 苏州欧菲光科技有限公司 Vehicular touch screen and automobile
CN110032323B (en) * 2018-01-12 2021-12-28 荷兰移动驱动器公司 Electronic equipment and gesture navigation method
CN110471610A (en) * 2019-08-16 2019-11-19 上海闻泰信息技术有限公司 Terminal control method, device, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117166A (en) * 2009-12-31 2011-07-06 联想(北京)有限公司 Electronic equipment, method for realizing prearranged operation instructions, and handset
CN202632258U (en) * 2011-05-11 2012-12-26 林振韶 Touch screen replacing mechanical key zone at bottom of mobile panel
CN102929425A (en) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 Method and device for controlling touch keys

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9477311B2 (en) * 2011-01-06 2016-10-25 Blackberry Limited Electronic device and method of displaying information in response to a gesture

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117166A (en) * 2009-12-31 2011-07-06 联想(北京)有限公司 Electronic equipment, method for realizing prearranged operation instructions, and handset
CN202632258U (en) * 2011-05-11 2012-12-26 林振韶 Touch screen replacing mechanical key zone at bottom of mobile panel
CN102929425A (en) * 2012-09-24 2013-02-13 惠州Tcl移动通信有限公司 Method and device for controlling touch keys

Also Published As

Publication number Publication date
CN104615299A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN104615299B (en) Instruction triggers method and apparatus based on touch screen
EP3451134B1 (en) Application association processing method and apparatus
KR101735902B1 (en) User interface interaction method and apparatus applied in touchscreen device, touchscreen device, program and storage medium
KR101497249B1 (en) Portable electronic device and method of controlling same
CN104866225B (en) A kind of electronic equipment and its control method with touch display screen
US9916028B2 (en) Touch system and display device for preventing misoperation on edge area
CN103593138A (en) Method for operating mobile terminal with one hand and mobile terminal
CN103425394B (en) A kind of method and device thereof of the rollover icon position for touch-screen
CN104598123B (en) The display methods and device of the on-screen displays of mobile terminal
CN107122111A (en) The conversion of touch input
KR20150012300A (en) Method for preventing misoperation of touchscreen, touchscreen and mobile terminal
CN103279295A (en) Method and device for terminal desktop icon switching
CN103324325B (en) The detection method of multi-point touch misoperation and terminal
JP5771401B2 (en) Mobile communication terminal
US20160196034A1 (en) Touchscreen Control Method and Terminal Device
CN102681785A (en) Unlocking method and mobile equipment
US20110187657A1 (en) Touch sensitive screen for scrolling through sets of data
CN103970434B (en) Respond the method and electronic equipment of operation
CN103455261A (en) Method for achieving display by calling tab label and mobile device
CN103853476A (en) Information processing method and electronic equipment
CN104461312A (en) Display control method and electronic equipment
CN105843531A (en) Switching method and device for screen modes
CN105242839A (en) Touch menu control method and system
CN106293345A (en) A kind of application icon display packing and terminal
CN104035714B (en) Event processing method, device and equipment based on Android system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant