Method and system for quickly starting system function
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of computer application, in particular to a method and a system for quickly starting system functions.
[ background of the invention ]
For an intelligent terminal carrying an operating system such as IOS, android or YunOS, how to enable a user to quickly and conveniently use system functions is a problem that existing designers and developers are thinking about, wherein the system functions include but are not limited to: screen capture, shortcut selection, recent task selection, hidden application selection, jump to the previous application, jump to the next application, application switch back and forth, fast security function setting, and the like. At present, the following methods mainly exist in the method for quickly starting the system function:
1) a single physical key is used. However, since the number of single physical keys of the smart terminal is limited, the smart terminal is usually only used in a very critical scene and is unlikely to be used for quickly starting system functions.
2) A combination physical key is used. For example, a "power + volume" key is used for several seconds for screen capture. However, usually, the single physical key has its own function, so that the combined physical key is easy to be operated by mistake; in order to improve the success rate of starting the system functions, a user inevitably presses the combined physical key hard for a period of time, which causes serious abrasion of the physical key; in addition, this method requires waiting for several seconds, and the real-time performance is also poor.
3) Drop down forms (e.g., status bars) are manufactured to carry various shortcut operations. However, such an operation process is complicated, and a user needs to perform at least steps of pulling down the status bar, searching for a desired operation in the status bar, clicking an icon, and the like, and sometimes a page turning operation may be required when there are many operation items in the status bar.
4) And virtual keys of a navigation bar arranged at the bottom of the mobile phone are utilized. However, the resources of the virtual keys are relatively limited, and the gestures operated on the virtual keys are relatively single, namely, only three types of single-key, double-click and long-press are provided, and the gestures are often occupied by other functions or applications of the system.
5) Multi-valued swipe gestures are used on the screen to quickly initiate system functions. But this approach easily conflicts with gestures within the application, such as: the IOS system realizes the function of switching the application by sliding left and right with four fingers, which conflicts with the sliding of the game of 'fruit ninja', so that the gesture cannot be used in the application of 'fruit ninja' to switch the application.
[ summary of the invention ]
In view of the above, the present invention provides a method and system for quickly starting system functions, so as to reduce misoperation and hardware wear.
The specific technical scheme is as follows:
the invention provides a method for quickly starting system functions, which presets a corresponding relation between an edge pinch gesture and the system functions, and comprises the following steps:
recognizing a touch event;
if the touch event is recognized to accord with the preset edge pinch gesture, triggering a system function corresponding to the edge pinch gesture; wherein the edge pinch gesture comprises: a multi-finger pinch swipe gesture initiated from an edge of the screen.
According to a preferred embodiment of the present invention, the operations of recognizing the touch event and triggering the system function corresponding to the edge pinch gesture are performed by a global gesture control module; the method further comprises the following steps:
and the touch event distribution module receives a touch event from the bottom layer module of the operating system and sends the touch event to the global gesture control module.
According to a preferred embodiment of the invention, the method further comprises:
the touch event distribution module judges whether the touch event is forbidden to be sent to the application displayed on the screen, and if not, the touch event is sent to the application displayed on the screen; if so, the touch event is not sent to the application which is displayed on the screen;
when the global gesture control module recognizes that the touch event meets a preset edge pinch gesture, the touch event distribution module is prohibited from sending the touch event to the application displayed on the screen.
According to a preferred embodiment of the invention, the method further comprises:
the global gesture control module cancels the prohibition after the touch event is finished; or,
and after the global gesture control module triggers the system function, if the touch gesture is finished, the prohibition is cancelled.
According to a preferred embodiment of the invention, the method further comprises:
and if the touch event distribution module is forbidden to send the touch event to the application on which the screen is displaying, sending a message for canceling the recognition of the touch event to the application on which the screen is displaying.
According to a preferred embodiment of the present invention, the global gesture control module obtains the setting of the corresponding relationship by the user through a setting interface.
According to a preferred embodiment of the present invention, the multi-finger pinch-and-slide gesture initiated from the edge of the screen includes:
respectively initiating single-finger sliding gestures which are close to each other from at least two edges of a screen; or
A multi-finger swipe gesture is initiated from at least two edges of the screen, respectively, that are close to each other.
According to a preferred embodiment of the present invention, the recognizing the touch event includes:
s1, identifying the type of the touch event, and if the touch event is a press event, executing a step S2; if it is a slide event, go to step S3; if the event is a lift-off event or a cancel event, executing step S4;
s2, judging whether the total number of the pressed fingers in the touch event is more than two and the pressed positions of the fingers accord with the initial position of a preset edge kneading gesture, if so, setting an identification flag bit to be in an identification state;
s3, judging whether the identification flag bit is in an identification state, if so, judging whether the finger sliding direction is consistent with an edge pinch gesture corresponding to the finger pressing position, and if so, identifying that the touch event is consistent with a preset edge pinch gesture;
and S4, determining the touch gesture is finished, and setting the identification flag bit to be in a finished state.
According to a preferred embodiment of the present invention, the step S2 specifically includes:
s21, judging whether the finger in the touch event is pressed down from the edge of the screen, if so, executing a step S22; otherwise, confirming that the touch event does not belong to the edge pinch gesture, and setting the identification flag bit to be in an end state;
s22, identifying the total number of the pressed fingers, and if the number of the pressed fingers is more than two, executing a step S23; if the number of the identification mark is one, setting the identification mark bit as a starting state;
s23, judging whether the pressing position of the finger accords with the initial position of the preset edge kneading gesture, if so, setting the identification flag bit to be in an identification state; otherwise, wait for the next touch event.
According to a preferred embodiment of the present invention, triggering the system function corresponding to the edge pinch gesture includes:
judging whether a system function corresponding to the edge pinch gesture is triggered or not, and if not, directly triggering the system function; if yes, further determining whether to continue triggering according to the characteristics of the system function, if yes, continuing to trigger the system function, otherwise, not triggering the system function any more.
The invention provides a system for quickly starting system functions, which comprises a global gesture control module; the global gesture control module comprises a touch event processing submodule;
the touch event processing submodule is used for identifying a touch event, and if the touch event is identified to accord with a preset edge pinch gesture, triggering a system function corresponding to the edge pinch gesture; wherein the edge pinch gesture comprises: a multi-finger pinch swipe gesture initiated from an edge of the screen.
According to a preferred embodiment of the present invention, the system further comprises:
and the touch event distribution module is used for receiving the touch event from the bottom layer module of the operating system and sending the touch event to the touch event processing submodule.
According to a preferred embodiment of the present invention, the touch event distribution module is further configured to determine whether sending of a touch event to an application being displayed on a screen is prohibited, and if not, send the touch event to the application being displayed on the screen; if so, the touch event is not sent to the application which is displayed on the screen;
the touch event processing sub-module is further configured to prohibit the touch event distribution module from sending the touch event to the application being displayed on the screen when the touch event is identified to meet a preset edge pinch gesture.
According to a preferred embodiment of the present invention, the touch event processing sub-module is further configured to cancel the prohibition after the touch event is finished, or cancel the prohibition if the touch gesture is finished after the system function is triggered.
According to a preferred embodiment of the present invention, the touch event distribution module is further configured to send a message to cancel the recognition of the touch event to the application being displayed on the screen if the sending of the touch event to the application being displayed on the screen is prohibited.
According to a preferred embodiment of the present invention, the global gesture control module further comprises: and the touch event management submodule is used for acquiring the setting of the corresponding relation by a user through a setting interface and providing the corresponding relation for the touch event processing submodule.
According to a preferred embodiment of the present invention, the multi-finger pinch-and-slide gesture initiated from the edge of the screen includes:
respectively initiating single-finger sliding gestures which are close to each other from at least two edges of a screen; or
A multi-finger swipe gesture is initiated from at least two edges of the screen, respectively, that are close to each other.
According to a preferred embodiment of the present invention, the touch event processing sub-module specifically performs the following operations:
s1, identifying the type of the touch event, and if the type of the touch event is a press event, executing operation S2; if it is a slide event, operation S3 is performed; if it is a lift-up event or a cancel event, performing operation S4;
s2, judging whether the total number of the pressed fingers in the touch event is more than two and the pressed positions of the fingers accord with the initial position of a preset edge kneading gesture, if so, setting an identification flag bit to be in an identification state;
s3, judging whether the identification flag bit is in an identification state, if so, judging whether the finger sliding direction is consistent with an edge pinch gesture corresponding to the finger pressing position, and if so, identifying that the touch event is consistent with a preset edge pinch gesture;
and S4, determining the touch gesture is finished, and setting the identification flag bit to be in a finished state.
According to a preferred embodiment of the present invention, when performing operation S2, the touch event processing sub-module specifically performs the following operations:
s21, judging whether the finger in the touch event is pressed down from the edge of the screen, if so, executing a step S22; otherwise, confirming that the touch event does not belong to the edge pinch gesture, and setting the identification flag bit to be in an end state;
s22, identifying the total number of the pressed fingers, and if the number of the pressed fingers is more than two, executing a step S23; if the number of the identification mark is one, setting the identification mark bit as a starting state;
s23, judging whether the pressing position of the finger accords with the initial position of the preset edge kneading gesture, if so, setting the identification flag bit to be in an identification state; otherwise, wait for the next touch event.
According to a preferred embodiment of the present invention, when triggering the system function corresponding to the edge pinch gesture, the touch event processing subunit specifically executes:
judging whether a system function corresponding to the edge pinch gesture is triggered or not, and if not, directly triggering the system function; if yes, further determining whether to continue triggering according to the characteristics of the system function, if yes, continuing to trigger the system function, otherwise, not triggering the system function any more.
According to the technical scheme, the system function is quickly started by adopting the edge pinch gesture, and the multi-finger sliding pinch gesture initiated by the edge does not exist in the existing application, so that misoperation caused by the conflict of the multi-finger sliding pinch gesture and the gesture in the existing application is avoided; in addition, because the physical key of the intelligent terminal is not used, the hardware abrasion is reduced.
[ description of the drawings ]
FIG. 1 is a diagram illustrating several multi-finger pinch-and-slide gestures provided by an embodiment of the present invention;
FIG. 2 is a block diagram of a system according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for quickly starting system functions according to an embodiment of the present invention;
fig. 4 is a flowchart of processing a touch event by the touch event processing sub-module according to the embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
In view of convenience of operation and reduction of abrasion on physical keys, the system function is started by gestures on a screen, but in order to avoid misoperation, the adopted gestures need to be considered to be different from gestures used in applications, so that the system function is quickly started by edge pinch gestures, wherein the edge pinch gestures refer to multi-finger pinch sliding gestures initiated from the edge of the screen, the multi-finger pinch gestures refer to two or more fingers, the pinch gestures refer to the close of the sliding position with aggregation intention, and the sliding position is closer and closer along with sliding. The multi-finger pinch swipe gesture initiated from the edge of the screen may include, but is not limited to: examples of the multi-finger pinch slide gesture initiated from the screen edge may be as shown in fig. 1(a) to 1(h), where the rectangular boxes shown in the figures represent the screen edges of the smart terminal, each arrow represents one finger, and the arrows represent the trajectory and direction of the finger slide.
Different edge pinch gestures may be preset to correspond to different system functions, and a few examples of the edge pinch gesture are given below, but it should be noted that the present invention is not limited to the gestures and the corresponding relationships.
For example, the screen capture function is started by an inward pinch-and-slide gesture initiated by two fingers from two edges of the left and right of the screen, respectively, as shown in fig. 1(a), wherein a square block represents the screen of the intelligent terminal, and an arrow represents the track and the direction of the gesture. The screen capture function can also be started by an inward pinch-and-slide gesture initiated by two fingers from two edges on the upper and lower sides of the screen respectively, as shown in fig. 1 (b). The gesture of pinch-in swipe initiated by two fingers from two edges at the left and bottom of the screen, respectively, is used to jump to the next application, as shown in fig. 1 (c). An inward pinch-and-slide gesture initiated by two fingers from two edges on the right and bottom of the screen, respectively, is used to jump to the previous application, as shown in fig. 1 (d). An inward pinch-and-slide gesture initiated by two fingers from two edges on the left and top of the screen, respectively, is employed to toggle between applications, as shown in fig. 1 (e). An inward pinch-and-slide gesture initiated by two fingers from two edges on the right and top of the screen, respectively, is employed to toggle between applications, as shown in fig. 1 (f). The system function list is opened by an inward pinch-and-slide gesture initiated by four fingers from two edges above and below the screen, respectively, wherein two fingers are initiated from the upper edge of the screen, and the other two fingers are initiated from the lower edge of the screen, as shown in fig. 1 (g). The security setting list (including whether wifi and 3G, GPS can be accessed, whether short messages can be sent, a call can be made, whether an address book can be accessed, and the like) is opened by adopting an inward pinch-and-slide gesture initiated by four fingers from the left edge and the right edge of the screen respectively, wherein two fingers are initiated from the left edge of the screen, and the other two fingers are initiated from the lower edge of the screen, as shown in (h) in fig. 1.
The following describes a specific implementation of using an edge pinch gesture to quickly start a system function, and first describes a system framework on which the present invention is based, as shown in fig. 2, the system includes a touch event distribution module and a global gesture control module, and may further include a touch event setting module.
The touch event distribution module has the main function of receiving touch events from the operating system bottom layer module and distributing the touch events to the global gesture control module and the application currently displayed on the screen. The operation system bottom layer module is an intelligent operation system of the intelligent terminal, has basic functions of the intelligent operation system, and relates to a touch event reporting function, namely reporting the touch event to the touch event distribution module. The application currently displayed on the screen refers to the application which is displayed and is being run and seen on the screen of the intelligent terminal by the user.
The global gesture control module plays a global control role on the gesture, and mainly comprises two parts:
one is to monitor a touch event, analyze the touch event, and if it is determined that the gesture of the touch event conforms to the edge pinch gesture, quickly start a system function corresponding to the gesture of the touch event, and prohibit the touch event distribution module from sending the touch event to the application currently displayed on the screen. This part of the function is performed by the touch event processing submodule.
And secondly, managing the corresponding relation between the edge pinch gesture and the system function, reading the preset system or downloading the corresponding relation between the gesture and the system function from a specified position, displaying the corresponding relation to a user for learning, and finishing the setting of the corresponding relation between the edge pinch gesture and the system function according to the setting of the user, wherein the user can start a setting interface through the system function for setting. This part of the function is performed by the touch event management submodule and the setting information is supplied to the touch event processing submodule.
The following describes a flow of a method for quickly starting a system function implemented based on the above system with reference to fig. 3, as shown in fig. 3, the method mainly includes the following flows:
in step 301, when the user touches the screen, the operating system bottom layer module reports the touch event to the touch event distribution module.
Touch events herein may include, but are not limited to: a press event, a slide event, a lift event, and a cancel event. The number of fingers and position information can be identified for each event, and the acquisition and identification of touch events are prior art and will not be described in detail here.
In step 302, the touch event distribution module sends the touch event to a touch event processing sub-module in the global gesture control module. Meanwhile, the touch event distribution module judges whether the touch event is forbidden to be sent to the application displayed on the screen, and if not, the touch event is also sent to the application displayed on the screen; if so, the touch event is not sent to the application that the screen is displaying.
The touch event distributing module is forbidden to send the touch event to the application being displayed on the screen by the touch event processing submodule in the global gesture control module, namely, once the touch event processing submodule recognizes that the touch event meets an edge pinch gesture for quickly starting a system function, the touch event distributing module is forbidden to send the touch event to the application being displayed on the screen, and after the touch event is finished or the system function is triggered, the touch event processing submodule cancels the prohibition, namely, the touch event distributing module is allowed to send the touch event to the application being displayed on the screen, and the follow-up details relate to. Preferably, if the touch event distribution module is prohibited from sending the touch event to the application whose screen is displaying, a message to cancel the recognition may be sent to the application whose screen is displaying.
For the application with the screen being displayed, if a touch event is received, the touch event is recognized and processed, namely, the function of the gesture in the application is started according to the gesture corresponding to the touch event. If the application whose screen is being displayed receives a message to cancel the recognition, the recognition and processing of the touch event is cancelled.
In step 303, the touch event processing sub-module identifies the received touch event, and triggers a system function corresponding to the touch gesture if the touch gesture is identified to conform to a preset edge pinch gesture. And when the touch event is identified to conform to the preset edge pinch gesture, the touch event distribution module is prohibited from sending the touch event to the application displayed on the screen. If the touch gesture is identified not to conform to the edge pinch gesture, the prohibition of sending the touch event to the application displayed on the current screen by the touch event distribution module is cancelled; or after the system function corresponding to the touch gesture is triggered, if the touch gesture is finished, the prohibition of sending the touch event to the application currently displayed on the current screen by the touch event distribution module is cancelled.
The touch event is processed by the application which is triggered to perform system function or displayed on the screen, and the result is fed back to the user, so that the user can sense the processing result.
As can be seen from the above process, specifically, whether the system function is started or the application which is being displayed on the screen processes the touch event is controlled by the touch event processing submodule in the touch event control module, if the touch event processing submodule recognizes that the touch event belongs to the edge pinch gesture, the system function is started, and the application which is being displayed on the screen is prohibited from processing the touch event; and if the touch event processing sub-module identifies that the touch event does not belong to the edge pinch gesture, the inhibition of the application on the screen for processing the touch event is cancelled, so that the application on the screen can perform normal processing and reaction on the touch event.
The processing flow of the touch event by the touch event processing sub-module is described in detail below with reference to fig. 4, as shown in fig. 4. Firstly, in step 401, the touch event processing sub-module identifies the type of the received touch event, and if the type of the received touch event is a touch event (touchstart), step 402 is executed; if it is a swipe event (touchmove), go to step 405; if it is a lift event (touchend) or cancel event (touchcancel), step 407 is performed.
In step 402, the touch event processing sub-module determines whether the touch event is pressed from the edge of the screen, where the touch event includes location information touched by the user, and determines whether the touch event is pressed from the edge of the screen according to the location information, where the touch event may be set to belong to the edge of the screen within a certain range on the screen, and if the location initially touched by the user is within the range, the touch event is considered to be pressed from the edge of the screen.
If the touch event is not pressed from the edge of the screen, it is determined that the touch event does not belong to the edge pinch gesture, step 407 is executed, the identification flag is set to be in an end state, that is, the identification processing of the touch event is ended, and the prohibition of sending the touch event to the application being displayed on the screen by the touch event distribution module can be further cancelled. If the touch event is determined to be pressed from the edge of the screen, the process continues to step 403.
In step 403, the touch event processing sub-module further identifies the total number of pressed fingers in the touch event, and if the number of pressed fingers is one finger, step 408 is executed to set the identification flag bit to the start state. If there are more than two fingers, then execution continues with step 404.
Since the edge pinch gesture requirement is a multi-finger slide pinch gesture initiated from the edge, if the total number of pressed fingers is one finger, the recognition is started, i.e., the flag is set to the start state, and the trigger events of other fingers are waited for. If the total number of the pressed fingers reaches more than two, the position and the number of the gesture initiation can be judged to accord with the preset edge pinch gesture,
in step 404, the touch event processing sub-module determines whether the pressing position of the finger matches the pressing position of the preset edge pinch gesture, and if so, executes step 409, sets the identification flag to be in an identification state, and may further prohibit the touch event distribution module from sending a touch event to the application being displayed on the screen. Otherwise, wait for the next touch event.
The finger-edge depression is not necessarily an edge-pinch gesture that initiates a system function, and the combination of the depressed positions of the multiple fingers must be consistent with the initial position of the preset edge-pinch gesture, and if not, not consistent with the preset edge-pinch gesture. The preset initial position of the edge pinch gesture can be a set position of a set screen edge, a set position range of the set screen edge or the set screen edge.
In step 405, the touch event processing sub-module determines whether the identification flag is in an identification state, if so, performs step 406, otherwise waits for the next touch event.
If the identification flag is in an identification state, the starting position of the user gesture is in accordance with the preset edge pinch gesture, and the next judgment about sliding can be carried out.
In step 406, identifying whether the touch event belongs to an edge pinch gesture, that is, whether the finger sliding direction is consistent with the edge pinch gesture corresponding to the finger pressing position, if so, executing step 410 to trigger a corresponding system function; otherwise, wait for the next touch event.
If the finger pressing position conforms to a preset edge pinch gesture or a plurality of edge pinch gestures, it needs to be further determined whether the sliding direction still conforms to one of the edge pinch gestures, and only if the sliding direction still conforms to one of the edge pinch gestures, the gesture capable of recognizing the touch event conforms to the preset edge pinch gesture, that is, a determination of a combination of the finger pressing position and the sliding direction needs to be performed.
When triggering the corresponding system function, if the system function is not triggered, directly triggering the system function; if the system function is triggered, whether the system function needs to be continuously triggered or not needs to be determined according to the characteristics of the system function, if yes, the system function continues to be triggered, and otherwise, the system function is not triggered any more. Because some system functions need to be triggered only once, such as a screen capture function, while some system functions need to be continuously triggered due to the need for dynamic effects, such as display shortcut selection, recent task selection, hidden application selection list function.
In step 407, since the gesture has ended, the identification flag is set to an end state, and the prohibition of the touch event distribution module sending the touch event to the application being displayed on the screen is cancelled.
From the above description, it can be seen that the system and method provided by the present invention have the following advantages:
1) the invention adopts the edge pinch gesture to quickly start the system function, and because the multi-finger sliding pinch gesture initiated by the edge does not exist in the existing application, the misoperation caused by the conflict with the gesture in the existing application can be avoided.
2) According to the invention, the system function is quickly started by adopting the gesture on the screen, and the physical key of the intelligent terminal is not used, so that the hardware abrasion is reduced.
3) In the invention, the corresponding relation between the edge pinch gesture and the system function is pre-established, one gesture corresponds to one system function, and compared with a long-press physical key combination mode, the real-time performance is obviously higher, and what you see is what you get is basically realized.
4) In addition, gesture operation can be completed by one-time operation for a user, and compared with the mode of manufacturing a drop-down window body to bear various quick operations, the method is obviously more convenient and quick.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.