CN107390936A - Trigger action processing method, device and computer-readable recording medium - Google Patents
Trigger action processing method, device and computer-readable recording medium Download PDFInfo
- Publication number
- CN107390936A CN107390936A CN201710642879.3A CN201710642879A CN107390936A CN 107390936 A CN107390936 A CN 107390936A CN 201710642879 A CN201710642879 A CN 201710642879A CN 107390936 A CN107390936 A CN 107390936A
- Authority
- CN
- China
- Prior art keywords
- trigger action
- application
- false
- identification information
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Present disclose provides a kind of trigger action processing method, device and computer-readable recording medium, belong to field of terminal technology.Methods described includes:The first trigger action is detected, first trigger action is the trigger action to the false-touch prevention region of touch-screen;When detecting the first trigger action, then the application identification information for the application for being currently at front stage operation is obtained;When the application identification information indicates that the application specifies application for first, then first trigger action is responded.The disclosure sets white list certain applications not limited by false-touch prevention region by terminal, the trigger action can be responded when detecting the trigger action to false-touch prevention region, realize and application is based on to the trigger action in false-touch prevention region handled, efficiently avoid the setting due to false-touch prevention region and caused by user operate ignored problem.
Description
Technical field
This disclosure relates to field of terminal technology, more particularly to a kind of trigger action processing method, device and computer can
Read storage medium.
Background technology
With the development of terminal technology, touch-screen is because sturdy and durable, reaction speed is fast, save space, interaction is convenient etc.
Advantage is used widely.In recent years, the screen of terminal is increasing, and frame is more and more narrow, narrow frame design even Rimless
It is designed to a main trend of terminal development.
With the appearance of narrow frame or Rimless, many inconvenience also are caused to terminal use.For example user is hand-held whole
During end, finger can touch screen edge, cause terminal because the trigger action at finger false touch edge, and unwitting in user
In the case of, the trigger action is detected, and the trigger action is responded, unnecessary resource consumption is brought, as mobile phone is sent out
Heat, electric quantity consumption or application voluntarily startup etc..
It is that false-touch prevention region is set in screen edge to the processing method of the trigger action of screen edge to user at present, should
False-touch prevention region is apart from the region of the certain pixel in screen sides edge.When user the false-touch prevention region carry out trigger action,
And the duration of the trigger action, when being more than preset duration, terminal will ignore the trigger action.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of trigger action processing method, device and meter
Calculation machine readable storage medium storing program for executing.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of trigger action processing method, including:
The first trigger action is detected, first trigger action is the trigger action to the false-touch prevention region of touch-screen;
When detecting the first trigger action, then the application identification information for the application for being currently at front stage operation is obtained;
When the application identification information indicates that the application specifies application for first, then the first triggering behaviour is responded
Make.
In a kind of possible mode of first aspect, the first trigger action of the detection includes:
Obtain the coordinate of trigger action;
When the coordinate of the trigger action is located in the coordinate range in the false-touch prevention region, it is determined that detect described
First trigger action.
In a kind of possible mode of first aspect, methods described also includes:
White list is obtained, the white list includes the application identification information for the application not limited by the false-touch prevention region;
When the white list includes the application identification information, it is determined that the application is the described first specified application.
In a kind of possible mode of first aspect, methods described also includes:When application identification information instruction is current
The page have invoked the application journey related with open graphic library (Open Graphics Library, OpenGL) when being drawn
During sequence DLL, it is determined that the application is the described first specified application.
In a kind of possible mode of first aspect, methods described also includes:When described in application identification information instruction
During using not being the described first specified application, then ignore first trigger action.
In a kind of possible mode of first aspect, methods described also includes:
When the application identification information instruction application is not the described first specified application, start timing;
Processing of the pause to first trigger action in timing course;
When detecting the second trigger action when timing is not up to the first preset duration, then ignore the first triggering behaviour
Make and second trigger action, second trigger action are the trigger action to false-touch prevention region on touch-screen.
In a kind of possible mode of first aspect, methods described also includes:When reaching described first in timing and presetting
When any trigger action is not detected by when long, then first trigger action is responded.
In a kind of possible mode of first aspect, methods described also includes:When described in application identification information instruction
During using being the second specified application, then ignore first trigger action, the described second specified application is applied for camera-type and table
Face.
In a kind of possible mode of first aspect, the described first specified application is game class application.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of trigger action processing unit, including:
Detection module, for detecting the first trigger action, first trigger action is the false-touch prevention region to touch-screen
Trigger action;
Acquisition module, for when detecting the first trigger action, then obtaining answering for the application for being currently at front stage operation
Use identification information;
Processing module, for when the application identification information indicates that the application specifies application for first, then responding institute
State the first trigger action.
In a kind of possible mode of second aspect,
The acquisition module, it is additionally operable to obtain the coordinate of trigger action;
Described device also includes:
First determining module, for being located at when the coordinate of the trigger action in the coordinate range in the false-touch prevention region
When, it is determined that detect first trigger action.
In a kind of possible mode of second aspect,
The acquisition module, it is additionally operable to obtain white list, the white list includes what is do not limited by the false-touch prevention region
The application identification information of application;
Described device also includes:
Second determining module, for when the white list includes the application identification information, it is determined that the application is
Described first specifies application.
In a kind of possible mode of second aspect, second determining module is additionally operable to when the application identification information refers to
When showing that current page have invoked the application programming interface related to OpenGL when being drawn, it is determined that the application is
Described first specifies application.
In a kind of possible mode of second aspect, the processing module is additionally operable to when application identification information instruction institute
When stating using not being the described first specified application, then ignore first trigger action.
In a kind of possible mode of second aspect, described device also includes:
Timing module, for when the application identification information instruction application is not the described first specified application, opening
Dynamic timing;
Suspend module, for processing of the pause to first trigger action in timing course;
The processing module, it is additionally operable to when detecting the second trigger action when timing is not up to the first preset duration,
Then ignore first trigger action and second trigger action, second trigger action is to false-touch prevention area on touch-screen
The trigger action in domain.
In a kind of possible mode of second aspect, the processing module is additionally operable to default when reaching described first in timing
When any trigger action is not detected by during duration, then first trigger action is responded.
In a kind of possible mode of second aspect, the processing module is additionally operable to when application identification information instruction institute
State using be second specify application when, then ignore first trigger action, described second specify application applied for camera-type and
Desktop.
In a kind of possible mode of second aspect, the described first specified application is game class application.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of trigger action processing unit, including:Processor;For
Store the memory of the executable instruction of processor;
Wherein, the processor is configured as:The first trigger action is detected, first trigger action is to touch-screen
The trigger action in false-touch prevention region;When detecting the first trigger action, then acquisition is currently at answering for the application of front stage operation
Use identification information;When the application identification information indicates that the application specifies application for first, then first triggering is responded
Operation.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, it is described computer-readable
Storage medium internal memory contains computer program, and the computer program is realized when being executed by processor described in any one of first aspect
Method and step.
The disclosure sets white list certain applications not limited by false-touch prevention region by terminal, can detect
To being responded during the trigger action in false-touch prevention region to the trigger action, realize and the trigger action in false-touch prevention region is based on
Using being handled, efficiently avoid setting due to false-touch prevention region and caused by user operate ignored problem.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of trigger action processing method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of trigger action processing method according to an exemplary embodiment.
Schematic diagram when Fig. 3 is a kind of user's using terminal according to an exemplary embodiment.
Fig. 4 is a kind of trigger action processing unit block diagram according to an exemplary embodiment.
Fig. 5 is a kind of trigger action processing unit block diagram according to an exemplary embodiment.
Fig. 6 is a kind of trigger action processing unit block diagram according to an exemplary embodiment.
Fig. 7 is a kind of trigger action processing unit block diagram according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of trigger action processing unit 800 according to an exemplary embodiment.
Embodiment
To make the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with accompanying drawing to disclosure embodiment party
Formula is described in further detail.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of trigger action processing method according to an exemplary embodiment, as shown in figure 1,
Trigger action processing method comprises the following steps.
In a step 101, the first trigger action is detected, first trigger action is touching to the false-touch prevention region of touch-screen
Hair operation.
In a step 102, when detecting the first trigger action, then the application for the application for being currently at front stage operation is obtained
Identification information.
In step 103, when the application identification information indicate the application for first specify application when, then respond this first touch
Hair operation.
The disclosure sets white list certain applications not limited by false-touch prevention region by terminal, can detect
To being responded during the trigger action in false-touch prevention region to the trigger action, realize and the trigger action in false-touch prevention region is based on
Using being handled, efficiently avoid setting due to false-touch prevention region and caused by user operate ignored problem.
In a kind of possible implementation, the trigger action of detection first includes:
Obtain the coordinate of trigger action;
When the coordinate of the trigger action is located in the coordinate range in the false-touch prevention region, it is determined that detect this first touch
Hair operation.
In a kind of possible implementation, this method also includes:
White list is obtained, the white list includes the application identification information for the application not limited by the false-touch prevention region;
When the white list includes the application identification information, it is determined that the application is the first specified application.
In a kind of possible implementation, this method also includes:When application identification information instruction current page is being carried out
When the application programming interface related to OpenGL is have invoked during drafting, it is determined that the application is the first specified application.
In a kind of possible implementation, this method also includes:When the application identification information indicate the application be not this
During one specified application, then ignore first trigger action.
In a kind of possible implementation, this method also includes:
When it is not the first specified application that the application identification information, which indicates the application, start timing;
Processing of the pause to first trigger action in timing course;
When detecting the second trigger action when timing is not up to the first preset duration, then ignore first trigger action
With second trigger action, second trigger action is the trigger action to false-touch prevention region on touch-screen.
In a kind of possible implementation, this method also includes:Do not detected when when timing reaches first preset duration
During to any trigger action, then first trigger action is responded.
In a kind of possible implementation, this method also includes:When the application identification information indicates that the application is the second finger
When applying surely, then ignore first trigger action, the second specified application is camera-type application and desktop.
In a kind of possible implementation, the first specified application is game class application.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the disclosure, herein no longer
Repeat one by one.
In the disclosed embodiments, involved terminal is the touch control terminal using touch-screen.Touch-screen, also known as touch
Control screen, it is a kind of simple, convenient and natural human-computer interaction device.In a kind of possible implementation, touch-screen is examined by triggering
Survey device and touch screen controller composition.The detection trigger device is arranged on before display screen, for detecting user to display screen
Trigger action and the trigger action position, and the positional information of the trigger action He the trigger action is sent to touch-screen
Controller.The touch screen controller is used for the positional information that trigger action is received from detection trigger device, by the trigger action
Positional information be converted to the coordinate of the trigger action, and the coordinate of the trigger action is sent to the central processing unit in terminal
(Central Processing Unit, CPU).The touch screen controller can also receive the order of CPU transmissions, and be held
OK.
Fig. 2 is a kind of flow chart of trigger action processing method according to an exemplary embodiment.The disclosure is implemented
The trigger action carried out to false-touch prevention region in example can be that long-press operates.Wherein, long-press operation refers to holding for trigger action
Continuous duration is more than trigger action during preset duration, the use habit setting that the preset duration can be based on general user.Need
Illustrating, the false-touch prevention region can also be to other kinds of operation without the region of response, such as slide etc.,
Particular type can be given tacit consent to by terminal, or be set by user according to the use habit of oneself, and the embodiment of the present disclosure is not done to this
Limit.As shown in Fig. 2 trigger action processing method comprises the following steps.
In step 201, when detecting trigger action, terminal obtains the coordinate of the trigger action.
Trigger action can be user to the gesture operation of terminal touch screen or user by stylus to touching
Shield the touch control operation carried out.In the disclosed embodiments, trigger action refers to the click or touch of user with hand on the touchscreen
Operation.The trigger action can be operated with user or maloperation.Wherein, user's operation refers to that user wants to realize certain
Function and the operation actively carried out, maloperation refers to that user is not desired to carry out, but the operation triggered due to unconscious touch.
In order to prevent that maloperation from being responded, false-touch prevention region can be set at the edge of touch-screen, in the embodiment of the present disclosure
In, the false-touch prevention region refers to be intended to further be determined for any trigger action in the false-touch prevention region, then
The trigger action is handled.In order to determine whether the trigger action is trigger action in the false-touch prevention region, it is necessary to obtain
Take the coordinate of the trigger action.
In a kind of possible implementation, when user carries out trigger action to touch-screen, detection trigger device detection
Touch is sent to the position of the trigger action He the trigger action, and by the positional information of the trigger action He the trigger action
Screen controller.Touch screen controller receives the positional information of the trigger action of detection trigger device transmission, and the triggering is grasped
The positional information of work is converted to the coordinate of the trigger action.
For example, as shown in figure 3, when the terminal portrait layout, so that the resolution ratio of the terminal touch screen is 1080x1920 as an example,
Using the point in the upper left corner as origin, its coordinate is (0,0), and the direction in the upper left corner to the upper right corner is horizontal number axis, that is to say x
Axle, the direction in the upper left corner to the lower left corner is vertical number axis, that is to say y-axis, and the coordinate of the point in the upper right corner is (1080,0), lower-left
The coordinate of the point at angle is (0,1920), and the coordinate of the point in the lower right corner is (1080,1920), by apart from the pixel of both sides of the edge 70
Diagonal line hatches region is as false-touch prevention region.The application for being currently at front stage operation state is XXX.When user is in the touch-screen
When returning to function button position progress trigger action, terminal detects the trigger action, obtains the coordinate of the trigger action,
For example, (60,240), the return function button in the XXX applications shown corresponding to the mobile phone interface.
In step 202, when the coordinate of the trigger action is located in the coordinate range in the false-touch prevention region, then terminal is true
Regular inspection measures the first trigger action.
It is known that the false-touch prevention region can be the false-touch prevention region of the touch-screen of system default from step 201,
It can be the false-touch prevention region that user is pre-configured with according to the use habit of oneself by the configuration operation in terminal.User couple
When trigger action is carried out in the false-touch prevention region, terminal can be by carrying out the confirmation of processing mode to the trigger action, and neglects
The slightly trigger action.
In order to determine whether the trigger action is trigger action that user is carried out to false-touch prevention region, it is thus necessary to determine that the triggering
Whether the coordinate of operation is in the coordinate range in the false-touch prevention region.The trigger action that terminal will obtain in step 201
Coordinate matched with the coordinate range in the false-touch prevention region, judge the false-touch prevention region abscissa zone whether include should
Whether the abscissa of trigger action, the ordinate section in the false-touch prevention region include the ordinate of the trigger action.When this is anti-error
When touch the transverse and longitudinal coordinate section in region includes the transverse and longitudinal coordinate of the trigger action respectively, it is determined that the coordinate of the trigger action is located at
In the coordinate range in the false-touch prevention region corresponding to the application identification information, terminal is grasped the trigger action as the first triggering
Make, so that it is determined that detecting the first trigger action.
For example, as shown in figure 3, terminal obtains the coordinate (60,240) of the trigger action in step 201, the triggering is grasped
The coordinate of work is matched with the coordinate range in the false-touch prevention region, is drawn, the abscissa scope (0,70) in the false-touch prevention region,
(1010,1080) abscissa 60 of the trigger action is included, the ordinate scope (0,1920) in the false-touch prevention region is touched including this
The ordinate 240 of operation is sent out, thus determines that the coordinate of the trigger action is located in the coordinate range in false-touch prevention region, terminal should
Trigger action is as the first trigger action, so that it is determined that the first trigger action is detected, and, first trigger action is that content is
Return to the trigger action at an interface.
Above-mentioned steps 202 are that the coordinate of trigger action is located at the scene in the coordinate range in false-touch prevention region, in actual reality
There is alternatively possible scene in applying:When the coordinate of the trigger action is located at outside the coordinate range in false-touch prevention region, it is determined that
The trigger action is operated for user, and the trigger action is responded, to perform function corresponding to the trigger action.
Above-mentioned steps 201 and step 202 are to detect the process of the first trigger action, are grasped by obtaining the triggering detected
The coordinate of work, the coordinate of the trigger action is matched with the coordinate range in false-touch prevention region, so that it is determined that the trigger action
Whether it is the first trigger action.
In step 203, when currently having using front stage operation state is in, then terminal obtains the application identities of the application
Information.
Because position distribution of the function button in different applications in touch-screen is different, especially some game class should
Function button distance touch platen edge is very near, sets false-touch prevention region often such that can neglect one in game process
User's operation of function button in the false-touch prevention area a bit.Thus, the embodiment of the present disclosure is not provided with to the game class application
False-touch prevention region, be that is to say, game class application is not limited by the false-touch prevention region.
When the trigger action to false-touch prevention region is handled, it is necessary to according to be currently at front stage operation state should
With, confirm whether current application has and false-touch prevention region is set, thus need to obtain the application identification information of the application.The fortune of application
Row state can be divided into front stage operation state and background operation state.Application in front stage operation state is at current display screen
In the application being currently running of dispaly state, the application in background operation state is to be currently at minimum state or hiding shape
The application being currently running of state.In the disclosed embodiments, it is necessary to which what is obtained is the application of the application in front stage operation state
Identification information.Application identification information is the unique identification information of application.Terminal can be identified by the application identification information and should answered
With the application corresponding to identification information.The application identification information can be the title, application identities, bag name (Package of application
Name), application numbers or the log-on message of application, certainly, the application identification information can also be it is other can unique identification should should
Information, the disclosure are not construed as limiting to this.
When terminal, which detects, currently to be had using front stage operation state is in, the application identities of the application are obtained from internal memory
Information.For example, currently thering is application to be in front stage operation state as shown in figure 3, terminal detects, obtain and be currently at from internal memory
The application identification information using XXX of front stage operation state.
In step 204, terminal obtains white list, and the white list includes answering for the application not limited by the false-touch prevention region
Use identification information.
In step 203, it is known that in the disclosed embodiments, game class application is not limited by the false-touch prevention region, in reality
During border is implemented, the mode for setting game class application not limited by false-touch prevention region typically uses the form of white list.White list
Generally refer to the list of can passing through, being allowed to or believable object.In the disclosed embodiments, white list include not by
The application identification information of the application of false-touch prevention region limitation.In the white list can system intialization part using the OpenGL pages
Game class application.Many games pages use the OpenGL pages, such page usually require that it is full frame, and, the screen of such page
Fringe region function button can be typically set or there is operable area, that is to say, the position where the false-touch prevention region
Install and be equipped with function button or operable area.Certainly, user can also add according to the use habit of oneself in white list
Using.
In order to confirm whether the application for being currently at front stage operation state is limited, it is necessary to obtain white name by false-touch prevention region
It is single, it that is to say the application identification information for obtaining the application not limited by false-touch prevention region.
For example, terminal obtains white list, it can include game class application in the terminal in white list, such as XX game, also may be used
So that including other type applications, such as XX videos, XX maps, wherein XX maps can be then that user is based on itself use habit, example
Such as frequent false-touch prevention leads to not operate the map in false-touch prevention region, and adds the application into white list.
In step 205, when the white list includes the application identification information, then terminal determines that the application is specified for first
Using, and respond first trigger action.
First specifies the application application that as white list includes.The first specified application can be game class application,
Can be the application that function button is provided with the false-touch prevention regions such as video class application, and user is according to the use habit of itself
The application being added in the white list.
After terminal obtains white list, the application identities of the application in front stage operation state obtained in step 203 are believed
Breath is matched with the white list, if the white list includes the application identification information of the application for being in front stage operation state,
Determine the application for first specify application, this first specify application do not limited by false-touch prevention region, thus terminal will to this first
Trigger action is responded, to perform the function of first trigger action.
For example, as shown in figure 3, white list includes the application identification information for applying XXX, when terminal is detected positioned at side
During trigger action in the false-touch prevention region shown in the diagonal line hatches region in edge region, the trigger action is the first triggering behaviour
Make, terminal obtains the application identification information and white list using XXX for being currently at front stage operation state, and this is applied into XXX
Application identification information matched with white list, draw, the white list include this apply XXX application identification information, eventually
End confirms that this specifies application using XXX for first, and first trigger action is responded, and that is to say, returns to a upper interface.
In step 206, when the white list does not include the application identification information, then terminal determines that the application is not first
Application is specified, and ignores first trigger action.
After terminal obtains white list, the application identities of the application in front stage operation state obtained in step 203 are believed
Breath is matched with the white list, if the white list does not include the application identification information of the application for being in front stage operation state,
It is not the first specified application then to determine the application, thus the application is limited by false-touch prevention region, terminal disregards first triggering
Operation, that is to say, terminal is abandoned first trigger action, is no longer handled.
For example, as shown in figure 3, in white list include this apply XXX application identification information, be located at when terminal detects
During trigger action in the false-touch prevention region shown in the diagonal line hatches region of fringe region, the trigger action is the first triggering behaviour
Make, terminal obtains the application identification information and white list using XXX for being currently at front stage operation state, and this is applied into XXX
Application identification information matched with white list, draw, in the white list include this apply XXX application identification information,
Terminal check this using XXX be not first specify application, ignore first trigger action, that is to say, terminal keep current interface.
Above-mentioned steps 206 can also have another processing mode in actually implementing:When application identification information instruction should
During using not being the first specified application, start timing;Processing of the pause to first trigger action in timing course;When
When timing detects the second trigger action when being not up to the first preset duration, then ignore first trigger action and second triggering
Operation, second trigger action are the trigger action to false-touch prevention region on touch-screen;And/or when timing reach this first
When any trigger action is not detected by during preset duration, then first trigger action is responded.
Terminal is needed by detecting the second trigger action in the first preset duration, determine no during first trigger action be
Maloperation, thus need to establish timer, the timer is countdown mode, the meter using the first preset duration as the timer
Shi Shichang.Wherein, first preset duration can be set according to the use habit of general user.In actually implementing, this first
Preset duration can be using 20 milliseconds (ms) as referring to duration.
During in the timer, the treatment progress of first trigger action is transferred from by terminal from internal memory, namely
It is that first trigger action is transferred from or suspended by way of obstruction the processing to first trigger action from queue, with
Whether first trigger action to be determined is maloperation, determines whether to respond first trigger action.
Certainly, processing of the above-mentioned pause to first trigger action can also be realized by way of obstruction.For example, when eventually
When end detects the first trigger action, start timing, first trigger action hung up, first trigger action wouldn't be performed,
When it is determined that first trigger action is maloperation, then first trigger action is abandoned;When it is determined that first trigger action is use
When family operates, then first trigger action is responded.
Generally, user's operation is usually one tactile i.e. from when maloperation is usually user's handheld terminal, because of narrow frame
Or Rimless designs and causes false touch to the edge of touch-screen, and, user is simultaneously ignorant, thus maloperation can be the more of user
Root finger touches the edge of touch-screen.Terminal is in the first preset duration, if detecting to the triggering in false-touch prevention region
Operation, then can determine that the trigger action and the first trigger action are maloperation.Certainly, the trigger action be also possible to be not
The trigger action carried out in the false-touch prevention region, thus need to obtain the coordinate of the trigger action, determine that the trigger action is
No is the second trigger action.When the coordinate of the trigger action is located in the false-touch prevention region, then the trigger action is second tactile
Hair operation;When the coordinate of the trigger action is located at outside the false-touch prevention region, then the trigger action is not the second trigger action.
When the trigger action is the second trigger action, terminal disregards first trigger action and second trigger action;
When the trigger action is not or not second trigger action, or any trigger action is not detected by the first preset duration, terminal will
First trigger action and second trigger action are responded, to perform first trigger action and second trigger action
Corresponding function.
It should be noted that except judging to be currently at front stage operation in a manner of white list in step 204-206
Application whether be first to specify application, can also be by judging whether current picture is OpenGL pictures to judge to be currently at
Whether the application of front stage operation is the first specified application.
That is, after the application identification information for the application for being currently at front stage operation is obtained, believed according to the application identities
Breath judges whether the application is the first specified application, can also be by the following method:
Application identification information according to acquiring judge it corresponding to picture whether have invoked when being drawn with
API (Application Programming Interface, application programming interface) related OpenGL, when have invoked
During the interface of OpenGL correlations, then judge that application specifies application for first corresponding to the application identification information.
By taking Android system as an example, when the picture of an application program needs to carry out in the form of the OpenGL pages on screen
During display, its View created (view) needs just make graphics processor (Graphics by the related interfaces of OpenGL
Processing Unit, GPU) drawn.For example, interface related OpenGL can be the opening figure of embedded system
The interface that storehouse (Graphics Processing Unit for Embedded Systems, OpeGL ES) provides, or Vulkan
The interface of offer.
Above-mentioned steps 201~206 are the process handled the long-press operation carried out in false-touch prevention region, in actual reality
Shi Zhong, also a kind of possible implementation:The trigger action carried out in the false-touch prevention region for short-press operation when, i.e., this
One trigger action operates for short-press, then terminal is not entered to first trigger action according to the application for being currently at front stage operation state
Row classification is handled.In this possible implementation, what terminal need not obtain the application that is currently at front stage operation state should
With identification information, operation is operated to the short-press and carries out processing mode confirmation, but directly short-press operation is responded, to hold
The function of row short-press operation.
Certainly, in actually implementing, there can also be alternatively possible implementation:When application identification information instruction is current
What it is in front stage operation state is then terminal disregards first trigger action second when specifying application.First trigger action can
Be long-press operation or short-press operation.In this possible implementation, second specify application for camera-type apply and
Desktop.Function button is distant apart from the edge of touch-screen in the display interface applied due to desktop and camera-type, in this kind of feelings
Under condition, set false-touch prevention area terminal is in current operating conditions influence it is almost nil, thus, when being currently at front stage operation
State be second specify application when, the duration to the first trigger action, terminal disregards first trigger action can be ignored.
The disclosure sets white list certain applications not limited by false-touch prevention region by terminal, can detect
The trigger action responds during to the trigger action in false-touch prevention region, realizes that the trigger action in false-touch prevention region is based on should
With being handled, efficiently avoid setting due to false-touch prevention region and caused by user operate ignored problem.This public affairs
Open also by carrying out delay process to the trigger action in false-touch prevention region, by detecting again in the short period of time to anti-error
Touch region trigger action, determine this twice trigger action be because unconscious touch of user and caused by maloperation, so as to
Ignore this trigger action twice, efficiently avoid the inconvenience that the terminal caused by maloperation uses, greatly reduce maloperation
The unnecessary resource consumption brought.
Fig. 4 is a kind of trigger action processing unit block diagram according to an exemplary embodiment.Reference picture 4, the device
Including:
Detection module 401, for detecting the first trigger action, first trigger action is the false-touch prevention region to touch-screen
Trigger action;
Acquisition module 402, for when detecting the first trigger action, then obtaining the application for being currently at front stage operation
Application identification information;
Processing module 403, for when the application identification information indicates that the application specifies application for first, then respond this
One trigger action.
In a kind of possible implementation, as shown in figure 5,
The acquisition module 402, it is additionally operable to obtain the coordinate of trigger action;
The device also includes:
First determining module 404, for when the coordinate of the trigger action is located in the coordinate range in the false-touch prevention region,
Then determine to detect first trigger action.
In a kind of possible implementation, as shown in fig. 6,
The acquisition module 402, it is additionally operable to obtain white list, the white list includes not applied by what the false-touch prevention region was limited
Application identification information;
The device also includes:
Second determining module 405, for when the white list includes the application identification information, it is determined that the application for this
One specifies application.
In a kind of possible implementation, second determining module 405 is additionally operable to when application identification information instruction is current
When the page have invoked the application programming interface related to OpenGL when being drawn, it is determined that the application is first finger
Fixed application.
In a kind of possible implementation, the processing module 403 is additionally operable to when the application identification information indicates the application not
When being the first specified application, then ignore first trigger action.
In a kind of possible implementation, as shown in fig. 7, the device also includes:
Timing module 406, for when it is not the first specified application that the application identification information, which indicates the application, starting meter
When;
Suspend module 407, for processing of the pause to first trigger action in timing course;
The processing module 403, it is additionally operable to when detecting the second trigger action when timing is not up to the first preset duration,
Then ignore first trigger action and second trigger action, second trigger action is that false-touch prevention region on touch-screen is touched
Hair operation.
In a kind of possible implementation, the processing module 403 is additionally operable to when reaching first preset duration in timing
When being not detected by any trigger action, then first trigger action is responded.
In a kind of possible implementation, the processing module 403 is additionally operable to when the application identification information indicates that the application is
During the second specified application, then ignore first trigger action, the second specified application is applied for camera-type and desktop.
In a kind of possible implementation, the first specified application is game class application.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 is a kind of block diagram of trigger action processing unit 800 according to an exemplary embodiment.For example, device
800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, and medical treatment is set
It is standby, body-building equipment, personal digital assistant etc..
Reference picture 8, device 800 can include following one or more assemblies:Processing component 802, memory 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Processing component 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of the method shown in above-mentioned Fig. 1 or Fig. 2.In addition, processing component 802 can include one
Or multiple modules, the interaction being easy between processing component 802 and other assemblies.For example, processing component 802 can include multimedia
Module, to facilitate the interaction between multimedia groupware 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application program or method for being operated on device 800, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between the device 800 and user.At some
In embodiment, screen can include liquid crystal display (LCD) and touch panel (TP).When screen includes touch panel, screen can
To be implemented as touch-screen, to receive the input signal from user.Touch panel include one or more touch sensors with
Gesture on sensing touch, slip and touch panel.The touch sensor can the not only border of sensing touch or sliding action,
But also the duration and pressure that detection is related to the touch or slide.In certain embodiments, multimedia groupware 808
Including a front camera and/or rear camera.When device 800 is in operator scheme, such as screening-mode or video mode
When, front camera and/or rear camera can receive outside multi-medium data.Each front camera and rearmounted shooting
Head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set
Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect opening/closed mode of device 800, the relative positioning of component, such as the group
Part is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position changes, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and the temperature of device 800
Degree change.Sensor cluster 814 can include proximity transducer, be configured to detect in no any physical contact attached
The presence of nearly object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for being imaged
Used in.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensor,
Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the method shown in Fig. 1 or Fig. 2.
In the exemplary embodiment, a kind of computer-readable recording medium is additionally provided, the computer-readable recording medium
Internal memory contains computer program, and the computer program realizes the side of any one of Fig. 1 or embodiment illustrated in fig. 2 when being executed by processor
Method step.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.The disclosure is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (20)
1. a kind of trigger action processing method, it is characterised in that methods described includes:
The first trigger action is detected, first trigger action is the trigger action to the false-touch prevention region of touch-screen;
When detecting the first trigger action, then the application identification information for the application for being currently at front stage operation is obtained;
When the application identification information indicates that the application specifies application for first, then first trigger action is responded.
2. according to the method for claim 1, it is characterised in that the first trigger action of the detection includes:
Obtain the coordinate of trigger action;
When the coordinate of the trigger action is located in the coordinate range in the false-touch prevention region, it is determined that detect described first
Trigger action.
3. according to the method for claim 1, it is characterised in that methods described also includes:
White list is obtained, the white list includes the application identification information for the application not limited by the false-touch prevention region;
When the white list includes the application identification information, it is determined that the application is the described first specified application.
4. according to the method for claim 1, it is characterised in that methods described also includes:
It has invoked when application identification information instruction current page is being drawn related to open graphic library OpenGL
During application programming interface, it is determined that the application is the described first specified application.
5. according to the method for claim 1, it is characterised in that methods described also includes:
When the application identification information instruction application is not the described first specified application, then ignore the first triggering behaviour
Make.
6. according to the method for claim 1, it is characterised in that methods described also includes:
When the application identification information instruction application is not the described first specified application, start timing;
Processing of the pause to first trigger action in timing course;
When detecting the second trigger action when timing is not up to the first preset duration, then ignore first trigger action and
Second trigger action, second trigger action are the trigger action to false-touch prevention region on touch-screen.
7. according to the method for claim 6, it is characterised in that methods described also includes:
When being not detected by any trigger action when timing reaches first preset duration, then the first triggering behaviour is responded
Make.
8. according to the method for claim 1, it is characterised in that methods described also includes:
When it is the second specified application that the application identification information, which indicates the application, then ignore first trigger action, institute
State second and specify application as camera-type application and desktop.
9. according to the method for claim 1, it is characterised in that the described first specified application is game class application.
10. a kind of trigger action processing unit, it is characterised in that described device includes:
Detection module, for detecting the first trigger action, first trigger action is touching to the false-touch prevention region of touch-screen
Hair operation;
Acquisition module, for when detecting the first trigger action, then obtaining the application mark for the application for being currently at front stage operation
Know information;
Processing module, for when the application identification information indicates that the application specifies application for first, then responding described the
One trigger action.
11. device according to claim 10, it is characterised in that
The acquisition module, it is additionally operable to obtain the coordinate of trigger action;
Described device also includes:
First determining module, for when the coordinate of the trigger action is located in the coordinate range in the false-touch prevention region, then
It is determined that detect first trigger action.
12. device according to claim 10, it is characterised in that
The acquisition module, it is additionally operable to obtain white list, the white list includes not applied by what the false-touch prevention region was limited
Application identification information;
Described device also includes:
Second determining module, for when the white list includes the application identification information, it is determined that the application is described
First specifies application.
13. device according to claim 10, it is characterised in that second determining module is additionally operable to work as the application mark
When knowledge information instruction current page have invoked the application programming interface related to OpenGL when being drawn, it is determined that institute
State and specify application using for described first.
14. device according to claim 1, it is characterised in that the processing module is additionally operable to when the application identities are believed
When the breath instruction application is not the described first specified application, then ignore first trigger action.
15. device according to claim 10, it is characterised in that described device also includes:
Timing module, for when the application identification information instruction application is not the described first specified application, starting meter
When;
Suspend module, for processing of the pause to first trigger action in timing course;
The processing module, it is additionally operable to when detecting the second trigger action when timing is not up to the first preset duration, then neglect
Slightly described first trigger action and second trigger action, second trigger action are to false-touch prevention region on touch-screen
Trigger action.
16. device according to claim 15, it is characterised in that the processing module is additionally operable to work as reaches described in timing
When any trigger action is not detected by during the first preset duration, then first trigger action is responded.
17. device according to claim 10, it is characterised in that the processing module is additionally operable to when the application identities are believed
When the breath instruction application is the second specified application, then ignore first trigger action, the described second specified application is camera
Class is applied and desktop.
18. device according to claim 10, it is characterised in that the described first specified application is game class application.
19. a kind of trigger action processing unit, it is characterised in that described device includes:
Processor;
For storing the memory of the executable instruction of processor;
Wherein, the processor is configured as:
The first trigger action is detected, first trigger action is the trigger action to the false-touch prevention region of touch-screen;
When detecting the first trigger action, then the application identification information for the application for being currently at front stage operation is obtained;
When the application identification information indicates that the application specifies application for first, then first trigger action is responded.
20. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium internal memory contains computer
Program, the computer program realize the method and step described in claim any one of 1-9 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710642879.3A CN107390936A (en) | 2017-07-31 | 2017-07-31 | Trigger action processing method, device and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710642879.3A CN107390936A (en) | 2017-07-31 | 2017-07-31 | Trigger action processing method, device and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107390936A true CN107390936A (en) | 2017-11-24 |
Family
ID=60343073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710642879.3A Pending CN107390936A (en) | 2017-07-31 | 2017-07-31 | Trigger action processing method, device and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107390936A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107958273A (en) * | 2017-12-15 | 2018-04-24 | 北京小米移动软件有限公司 | volume adjusting method, device and storage medium |
CN108459796A (en) * | 2018-01-23 | 2018-08-28 | 维沃移动通信有限公司 | A kind of response method and mobile terminal of function key |
CN111309225A (en) * | 2020-01-20 | 2020-06-19 | 北京字节跳动网络技术有限公司 | Screen clearing processing method and device |
CN112462964A (en) * | 2019-09-09 | 2021-03-09 | Oppo(重庆)智能科技有限公司 | Sliding operation processing method, terminal and computer storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160253039A1 (en) * | 2015-02-26 | 2016-09-01 | Samsung Electronics Co., Ltd. | Touch processing method and electronic device for supporting the same |
CN106598249A (en) * | 2016-12-16 | 2017-04-26 | 广东欧珀移动通信有限公司 | Wrong touch prevention method and device for touch key, and mobile terminal |
CN106708520A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Touch screen control method and device of mobile terminal and mobile terminal |
CN106708263A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Method and device for preventing mistaken touch of touch screens and mobile terminal |
CN106855782A (en) * | 2016-12-16 | 2017-06-16 | 广东欧珀移动通信有限公司 | A kind of method for preventing false touch, device and terminal |
CN106855783A (en) * | 2016-12-16 | 2017-06-16 | 广东欧珀移动通信有限公司 | A kind of method of false-touch prevention, device and mobile terminal |
-
2017
- 2017-07-31 CN CN201710642879.3A patent/CN107390936A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160253039A1 (en) * | 2015-02-26 | 2016-09-01 | Samsung Electronics Co., Ltd. | Touch processing method and electronic device for supporting the same |
CN106598249A (en) * | 2016-12-16 | 2017-04-26 | 广东欧珀移动通信有限公司 | Wrong touch prevention method and device for touch key, and mobile terminal |
CN106708520A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Touch screen control method and device of mobile terminal and mobile terminal |
CN106708263A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Method and device for preventing mistaken touch of touch screens and mobile terminal |
CN106855782A (en) * | 2016-12-16 | 2017-06-16 | 广东欧珀移动通信有限公司 | A kind of method for preventing false touch, device and terminal |
CN106855783A (en) * | 2016-12-16 | 2017-06-16 | 广东欧珀移动通信有限公司 | A kind of method of false-touch prevention, device and mobile terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107958273A (en) * | 2017-12-15 | 2018-04-24 | 北京小米移动软件有限公司 | volume adjusting method, device and storage medium |
CN107958273B (en) * | 2017-12-15 | 2021-08-03 | 北京小米移动软件有限公司 | Volume adjusting method and device and storage medium |
CN108459796A (en) * | 2018-01-23 | 2018-08-28 | 维沃移动通信有限公司 | A kind of response method and mobile terminal of function key |
CN112462964A (en) * | 2019-09-09 | 2021-03-09 | Oppo(重庆)智能科技有限公司 | Sliding operation processing method, terminal and computer storage medium |
CN111309225A (en) * | 2020-01-20 | 2020-06-19 | 北京字节跳动网络技术有限公司 | Screen clearing processing method and device |
CN111309225B (en) * | 2020-01-20 | 2022-04-15 | 北京字节跳动网络技术有限公司 | Screen clearing processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111226191B (en) | Managing and mapping multi-sided touches | |
US10942580B2 (en) | Input circuitry, terminal, and touch response method and device | |
CN107402676A (en) | Trigger action processing method, device and computer-readable recording medium | |
CN107422977A (en) | Trigger action processing method, device and computer-readable recording medium | |
US20140181683A1 (en) | Method and system for controlling external device | |
JP2017524222A (en) | Full-screen one-hand operation method, apparatus, program, and recording medium | |
CN104636065A (en) | Method and device for awakening terminal | |
JP2017510915A (en) | Method and apparatus for switching display modes | |
JP2017535895A (en) | Mobile terminal control method and mobile terminal | |
KR20180005695A (en) | Information acquisition method and device | |
CN107390936A (en) | Trigger action processing method, device and computer-readable recording medium | |
KR101748386B1 (en) | Method, apparatus, program and computer-readable recording medium for controlling smart device | |
US9377901B2 (en) | Display method, a display control method and electric device | |
US10922444B2 (en) | Method and apparatus for displaying application interface | |
EP3012725B1 (en) | Method, device and electronic device for displaying descriptive icon information | |
JP6392900B2 (en) | Pressure detection method, apparatus, program, and recording medium | |
CN107066172A (en) | The document transmission method and device of mobile terminal | |
KR20140106775A (en) | Apparatus and method for touch sensing | |
KR102234400B1 (en) | Apparatas and method for changing the order or the position of list in an electronic device | |
US20170163715A1 (en) | File Transmission Method and Apparatus, Terminal, Wearable Device and Storage Medium | |
CN107741814B (en) | Display control method and mobile terminal | |
KR20140100306A (en) | Portable device and Method for controlling external device thereof | |
JP2017513416A (en) | Data transmission method, apparatus, facility, program, and recording medium | |
US11099916B2 (en) | Method and device for presenting information on terminal | |
EP3187984A1 (en) | Method and device for determining touch gesture, computer program and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171124 |
|
RJ01 | Rejection of invention patent application after publication |