Touch response method and device, electronic equipment and storage medium
By detecting whether the current application is a whitelist on the terminal and obtaining touch information, the problem of inaccurate identification and response to touch operations in the prior art is solved, and the accuracy and stability of the operation are improved.
Patent Information
- Application Number
- CN202311054294.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2025-02-21
AI Technical Summary
In the prior art, it is impossible to accurately identify and respond to touch operations, resulting in abnormal operations, especially when multi-finger operation, it is prone to identification disorder.
When detecting touch operations, determine whether the current application of the terminal is a whitelist application, and obtain touch information for touch operations, including touch location and touch events. Based on this information, determine the response area of the current application and decide whether to enable the preset frame number without pointing function.
It improves the accuracy of recognition of touch operations and reduces the situation of operation abnormalities, especially when multi-finger operation, which can more accurately identify and respond.
Smart Images

Figure CN119493487A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence interaction technology, and in particular to a touch response method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of technology, touch screen devices continue to appear in people's lives and work, such as mobile phones, tablet computers, etc. The emergence of touch screen devices enables people to achieve the desired effects and functions based on finger touch operations, effectively improving the user experience and convenience.
[0003] However, due to the working principle and characteristics of the touch screen, there are still areas that need to be improved when using it. For example, when performing multi-finger operations on the touch screen at the same time, there will be problems with the combination and separation of points, and inappropriate combination and separation of points will lead to errors in the recognition and response of the operation. For example, when viewing an image, if you need to zoom in on the image, you need to bring two fingers together and move them to complete the image zooming. If it is not possible to accurately identify whether the two fingers together are a one-finger operation or a two-finger zoom operation, there will be confusion in the recognition, which will lead to failure in image zooming. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a touch response method, device, electronic device and storage medium to solve the technical problem in the related art that the touch operation cannot be accurately identified and reported, resulting in abnormal operation.
[0005] In a first aspect, an embodiment of the present application provides a touch response method, including:
[0006] When a touch operation is detected, determining whether the current application of the terminal is a whitelist application, and obtaining a touch point corresponding to the touch operation;
[0007] If it is determined that the current application is a whitelist application, then acquiring touch information of the touch operation, wherein the touch information includes a touch position and a touch event;
[0008] A response area corresponding to the current application is determined, and whether to enable a preset frame number non-reporting function is determined according to the touch position, the touch event, and the response area.
[0009] In a second aspect, an embodiment of the present application provides a touch response device, including:
[0010] A first judgment module is used to determine whether the current application of the terminal is a whitelist application when a touch operation is detected, and obtain a touch point corresponding to the touch operation;
[0011] an information acquisition module, configured to acquire touch information of the touch operation if it is determined that the current application is a whitelist application, wherein the touch information includes a touch position and a touch event;
[0012] The second judgment module is used to determine the response area corresponding to the current application, and determine whether to enable the function of not reporting points for a preset number of frames according to the touch position, the touch event and the response area.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above touch response methods when executing the computer program.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the above-mentioned touch response methods are implemented.
[0015] The embodiments of the present application provide a touch response method, device, electronic device and storage medium. When a touch operation is identified, it is first determined whether the current application of the terminal is a whitelist application, wherein the current application is an application running in the foreground of the terminal, and the touch point corresponding to the touch operation is obtained. When the current application is determined to be a whitelist application, the touch information of the touch operation is obtained, wherein the touch information at least includes the touch position and the touch event, and the response area of the current application on the terminal is determined at the same time. Finally, according to the touch position, touch event and response area, it is determined whether to turn on the preset frame number non-reporting function. When performing touch response and point reporting processing, the touch operation is screened by using the whitelist setting. At the same time, when the current application is determined to be a whitelist application, it is determined whether to report and respond according to the touch position and touch event, thereby improving the accuracy of touch operation recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flow chart of a touch response method provided in an embodiment of the present application;
[0017] Figure 2 It is a flowchart of the steps of determining whether to enable the function of not reporting a preset number of frames provided in an embodiment of the present application;
[0018] Figure 3 This is a schematic diagram of a response area provided in an embodiment of the present application;
[0019] Figure 4 is another schematic diagram of a response area provided in an embodiment of the present application;
[0020] Figure 5 This is a schematic diagram of a touch response system provided in an embodiment of the present application.
[0021] Figure 6 is a schematic diagram of a touch response method provided in an embodiment of the present application
[0022] Figure 7 is a structural schematic diagram of a touch response device provided in an embodiment of the present application;
[0023] Figure 8 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0024] Fig. 9 This is another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0027] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0028] In the related art, when the touch screen system performs point reporting calculation, the steps include: capacitance difference calculation, capacitance reference update, capacitance data area search, capacitance data area confirmation, and point reporting coordinate calculation, etc. However, in actual operation, it will not be able to accurately identify the touch operation and report the point, resulting in abnormal operation. For example, when viewing images in the album application, it is often necessary to zoom in on the picture, and when zooming in on the picture, it is usually achieved by sliding two fingers together. At this time, it is impossible to accurately identify the two-finger operation together. For example, when the two fingers are close together, it may be identified as a one-finger operation, which will lead to the situation that when the two fingers are zoomed in at a small distance in the album, the multi-finger ID is confused, causing the zoom to fail.
[0029] Therefore, there is an urgent need for a method that can accurately respond to touch operations to improve the accuracy of touch responses.
[0030] In order to solve the technical problems existing in the related art, the present application embodiment provides a touch response method, see Figure 1 , Figure 1 1 is a flow chart of a touch response method provided in an embodiment of the present application, the method comprising steps 101 to 103.
[0031] Step 101: when a touch operation is detected, determine whether the current application of the terminal is a whitelist application, and obtain a touch point corresponding to the touch operation.
[0032] The whitelist application is an application program in the whitelist, and the whitelist is established in advance according to the demand.
[0033] In one embodiment, when a touch operation is detected, it is determined whether the current application of the terminal is a whitelist application, and a touch point corresponding to the touch operation on the touch screen is obtained, wherein the touch point is a contact position of the touch screen when the user operates the terminal.
[0034] Exemplarily, when a touch operation is detected to determine whether the current application of the terminal is a whitelist application, it includes: when a touch operation is detected, obtaining the current application of the terminal; identifying the application identifier of the current application, and performing query and match in a preset whitelist list based on the application identifier; if it is determined that the application identifier exists in the whitelist list, determining that the current application is a whitelist application.
[0035] That is, when making a judgment, the current application of the terminal is obtained, and the application identifier corresponding to the current application is identified, and then a query and match is performed in the preset whitelist list based on the application identifier to determine whether the application identifier of the current application is in the whitelist list, and then determine whether the current application is a whitelist application.
[0036] Among them, for the application on the terminal, a unique application identifier can be set, and a whitelist can be set based on the application identifier. Then, when performing a query match, the application identifier of the current application is identified to perform a query to determine whether it is a whitelist application. Of course, for the whitelist list, the name of the whitelist application can be directly recorded, and then the name of the current application can be used for query matching.
[0037] Step 102: If it is determined that the current application is a whitelist application, then touch information of the touch operation is obtained, wherein the touch information includes a touch position and a touch event.
[0038] In one embodiment, when obtaining the current application to determine whether it is a whitelist application, if it is determined that the current application is a whitelist application, the touch information of the detected touch operation is obtained, wherein the touch information at least includes a touch position and a touch event. The touch event can be specifically divided into pressing, moving and lifting, and the touch position is the contact position of the user's finger with the touch screen.
[0039] Specifically, when it is determined that the current application is a whitelist application, it is determined that operations can be performed on the current application at this time. By accurately identifying the touch operation, the corresponding operation instruction is determined. Then, when it is determined that the touch operation is a processing of the current application, the current application completes the response to the touch operation.
[0040] In actual applications, in order to accurately identify and report touch operations, it is necessary to timely turn on and off the preset frame number non-reporting function, so as to determine the timely and accurate reporting of touch operations. When the current application is determined to be a whitelist application, the touch information corresponding to the touch operation is obtained, and then based on the touch information, it is determined whether to turn on or off the preset frame number non-reporting function. When it is determined that the current application is not a whitelist application, the preset frame number non-reporting function will be turned off, where the preset frame number non-reporting function is: all the preset frame number reporting points are reported, and the current reporting point is discarded.
[0041] Step 103, determining the response area corresponding to the current application, and determining whether to enable the function of not reporting points for a preset number of frames according to the touch position, touch event and response area.
[0042] In one embodiment, after determining that the current application is a whitelist application, touch information corresponding to the touch operation is obtained, including the touch position and touch event. Furthermore, the response area of the current application is also obtained and determined at this time, and it is determined whether to start the preset frame number without reporting function based on the obtained touch position, touch event and response area.
[0043] Specifically, when determining whether to report a touch operation, it is necessary to determine whether the currently detected touch operation is a touch operation for the current application. Due to the existence of a small window display scenario, when operating on the touch screen of the terminal, it is not necessarily an operation on the current application in the small window. Therefore, it is necessary to first determine the operation object of the touch operation, and then further determine whether it is necessary to turn on the preset frame number without reporting function based on the touch event.
[0044] Further, when determining whether to enable the preset frame number non-reporting function according to the touch information and the response area of the current application, the Figure 2 , Figure 2 It is a flowchart diagram of the steps provided in an embodiment of the present application for determining whether to enable the function of not reporting a preset number of frames, wherein the steps include steps 201 to 204.
[0045] Step 201, obtaining a display area of the display interface of the current application on the terminal, and using the display area as a response area of the current application;
[0046] Step 202, determining whether the touch position is within the response area;
[0047] Step 203, when it is determined that the touch position is within the response area, determining whether the event type of the touch event is a press event;
[0048] Step 204: when it is determined that the event type of the touch event is a press event, the function of not reporting points for a preset number of frames is enabled.
[0049] In one embodiment, the response area of the current application is determined, and when determining whether to turn on the function of not reporting the preset number of frames based on the response area and operation information, the display area of the current application on the display interface of the terminal is obtained, and then the determined display area is used as the response area of the current application, and then it is determined whether the touch position is within the response area, and when it is determined to be within the response area, it is determined whether the time type of the touch event is a press event, and finally when it is determined to be a press event, it is determined to turn on the function of not reporting the preset number of frames.
[0050] For example, the response area of the current application is determined according to the display area of the current application on the display interface of the terminal. Usually, the display area of an application is the entire display interface of the terminal, that is, the entire touch screen. Figure 3 As shown, but because it can be displayed in a small window, such as Figure 4 As shown, the display area of the application can also be an area on the terminal display interface, such as a square area.
[0051] When determining whether the touch position of the touch operation is within the response area, the coordinates can be judged, specifically including: determining the touch coordinates corresponding to the touch position on the touch screen of the terminal, and determining the coordinate range corresponding to the response area; comparing the touch coordinates with the coordinate range; and determining whether the touch position is within the response area based on whether the touch coordinates are within the coordinate range.
[0052] Specifically, the touch coordinates corresponding to the touch position are determined on the touch screen of the terminal, and the coordinate range corresponding to the response area is determined, and then the coordinates are compared to determine whether the touch coordinates are within the coordinate range corresponding to the response area.
[0053] Exemplarily, when determining the touch coordinates and the coordinate range of the response area, coordinates can be constructed based on the touch screen of the terminal to obtain a coordinate system corresponding to the touch screen, and then the touch position can be coordinate-processed to determine its coordinates in the coordinate system to obtain the touch coordinates corresponding to the touch position. As for the response area of the current application, when determining the coordinate range corresponding to it, since the area on the terminal interface is usually square, such as a rectangle and a square, the coordinate range corresponding to the response area can be determined by determining the coordinates of the four vertices of the response area. It should be noted that when the response area is determined to be the entire display interface (touch screen) of the terminal, the touch coordinates must be within the response area, and when the response area is a partial display interface, such as Figure 4 As shown, at this time, the coordinates of vertices A, B, C and D are determined to obtain the coordinate range of the response area, where the coordinate range can be: x∈(x A ,x B ), y∈(y A ,y D ), and x A =x D , x B =x C ,y A =y B ,y C =y D When the response area is an irregular area, it is also possible to determine whether the touch coordinates are within the response area through the coordinate relationship.
[0054] Furthermore, after determining that the touch coordinates are within the response area, further judgment will be made based on the touch events. In actual operation, touch events are divided into pressing, moving and lifting, and usually a touch operation includes these three events. The moving event can have multiple frames, and the pressing and lifting events are the first frame and the last frame of the entire touch operation.
[0055] In actual applications, during the touch operation, when the touch event is an intermediate event of the entire event, that is, a moving event, the moving event needs to be uploaded in time, that is, reported, until the entire operation is completed. When the touch event just occurs, in order to avoid the situation where the reporting point is back-ticked, the initial reporting point of the event is not reported, that is, when the touch event is determined to be the first press event, the function of not reporting the point for the preset number of frames will be enabled, and then as the operation continues, the point reporting for non-first press events, such as reporting the point reporting for moving events, will be performed.
[0056] In the actual judgment and processing process, there are situations where the touch coordinates are not within the coordinate range, and the touch coordinates are within the coordinate range but the event type of the touch event is not a press event. For this situation, certain processing is also required, including: when it is determined that the touch position is outside the response area, turn off the preset frame number and do not report the point function; and, when it is determined that the event type of the touch event is not a press event, turn off the preset frame number and do not report the point function.
[0057] That is, when it is determined that the preset frame number non-reporting function needs to be turned on, it is necessary to determine that the current touch coordinates are within the coordinate area and the touch event is the first press event. For any other situation, the preset frame number non-reporting function needs to be turned off.
[0058] Furthermore, when performing touch operations, there may also be operation processing of closing applications and executing applications in the background. Therefore, when it is determined that the touch operation is to close the current application or put the current application in the background, the function of not reporting the preset frame number is turned off.
[0059] Further, refer to Figure 5 , Figure 5 It is a block diagram of the touch response system provided by the embodiment of the present application. The whole system includes: a touch screen system and a terminal system, and the touch screen system is a minimum system composed of a single-chip CPU and RAM memory, a power supply, and includes a memory and a processor, and the terminal system is a system composed of a high-performance CPU, RAM, ROM, and other devices. The touch screen system triggers an interrupt signal through the INT pin to obtain data in the touch screen system through the terminal system, and the terminal system sets the touch screen system through the 2C or SPI interface.
[0060] Based on Figure 5 When the system shown performs touch response, you can refer to Figure 6 , Figure 6 It is a schematic block diagram of the touch response method provided in an embodiment of the present application.
[0061] Specifically, in order to complete the touch response, a whitelist application list and a first instruction and a second instruction are first established in the terminal system, wherein the first instruction and the second instruction respectively point to different flag command information, such as 1 can be used to represent the first instruction and 0 can be used to represent the second instruction. The instructions are explained by numbers or flags to represent different meanings, and the first instruction represents turning on the function of not reporting the preset frame number, and the second instruction represents: turning off the function of not reporting the preset frame number.
[0062] Then, the upper-level service of the terminal system queries the whitelist application list according to the name of the application started in the foreground of the current system. For example, when the user operates the album application, the system detects the application startup, obtains the name of the current application or the name of the current page, and then queries the whitelist list to determine whether it is a whitelist application, and then performs corresponding processing based on the judgment result.
[0063] Among them, if it is determined that the application started in the foreground is a whitelist application, the upper-level service will send a first instruction to the touch screen driver; if the current touch operation meets the requirements of background execution or exit, the upper-level service will send a second instruction to the touch screen driver; if it is determined that the application started in the foreground is not a whitelist application, the upper-level service may not set any instructions.
[0064] Finally, after receiving the first instruction or the second instruction, the touch driver sends an operation to the touch system through the interface, so that the touch system responds to different instructions from the terminal system, and determines whether to turn on or off the function of not reporting the preset number of frames by judging whether the current coordinates are within the preset area and it is the first press event. Among them, if the current coordinates are within the preset area and it is the first press event, the function of not reporting the preset number of frames is turned on; otherwise, the function of not reporting the preset number of frames is turned off, that is, each frame is reported.
[0065] In summary, the present application discloses a touch response method. When a touch operation is identified, it is first determined whether the current application of the terminal is a whitelist application, wherein the current application is an application running in the foreground of the terminal, and the touch point corresponding to the touch operation is obtained. When the current application is determined to be a whitelist application, the touch information of the touch operation is obtained, wherein the touch information at least includes the touch position and the touch event, and the response area of the current application on the terminal is determined at the same time. Finally, according to the touch position, the touch event and the response area, it is determined whether to turn on the preset frame number non-reporting function. When performing touch response and point reporting processing, the touch operation is screened by using the whitelist setting. At the same time, when the current application is determined to be a whitelist application, it is determined whether to report and respond according to the touch position and touch event, thereby improving the accuracy of touch operation recognition.
[0066] According to the method described in the above embodiment, this embodiment will be further described from the perspective of a touch response device, which can be implemented as an independent entity or integrated into an electronic device, such as a terminal, which can include a mobile phone, a tablet computer, etc.
[0067] See also Figure 7 , Figure 7 is a structural diagram of a touch response device provided in an embodiment of the present application, such as Figure 7 As shown, the touch response device 700 provided in the embodiment of the present application includes:
[0068] The first judgment module 701 is used to determine whether the current application of the terminal is a whitelist application when a touch operation is detected, and obtain the touch point corresponding to the touch operation;
[0069] The information acquisition module 702 is used to acquire touch information of the touch operation if it is determined that the current application is a whitelist application, wherein the touch information includes a touch position and a touch event;
[0070] The second judgment module 703 is used to determine the response area corresponding to the current application, and determine whether to enable the function of not reporting points for a preset number of frames according to the touch position, touch event and response area.
[0071] In one embodiment, the first determining module 701 is further configured to:
[0072] When a touch operation is detected, the current application of the terminal is obtained;
[0073] Identify the application ID of the current application, and perform a search and match in a preset whitelist based on the application ID;
[0074] If it is determined that the application identifier exists in the whitelist, then the current application is determined to be a whitelist application.
[0075] In one embodiment, the first determining module 701 is further configured to:
[0076] If you are sure that the current application is not a whitelist application, turn off the function of not reporting the preset frame number.
[0077] In one embodiment, the second determination module 703 is further configured to:
[0078] Obtain the display area of the current application on the terminal's display interface, and use the display area as the response area of the current application;
[0079] Determine whether the touch position is within the response area;
[0080] When it is determined that the touch position is within the response area, determining whether the event type of the touch event is a press event;
[0081] When it is determined that the event type of the touch event is a press event, the function of not reporting points at a preset number of frames is enabled.
[0082] In one embodiment, the second determination module 703 is further configured to:
[0083] Determine the touch coordinates corresponding to the touch position on the touch screen of the terminal, and determine the coordinate range corresponding to the response area;
[0084] Compare the touch coordinates with the coordinate range;
[0085] Whether the touch position is within the response area is determined based on whether the touch coordinates are within the coordinate range.
[0086] In one embodiment, the second determination module 703 is further configured to:
[0087] When it is determined that the touch position is outside the response area, turn off the function of not reporting the preset frame number.
[0088] In one embodiment, the second determination module 703 is further configured to:
[0089] When it is determined that the event type of the touch event is not a press event, the function of not reporting points at the preset frame number is disabled.
[0090] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.
[0091] Also, see Figure 8 , Figure 8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or the like. Figure 8 As shown, the electronic device 800 includes a processor 801 and a memory 802. The processor 801 is electrically connected to the memory 802.
[0092] The processor 801 is the control center of the electronic device 800. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 800 and processes data by running or loading applications stored in the memory 802 and calling data stored in the memory 802, thereby monitoring the electronic device 800 as a whole.
[0093] In this embodiment, the processor 801 in the electronic device 800 will load the instructions corresponding to the processes of one or more applications into the memory 802 according to the following steps, and the processor 801 will run the application stored in the memory 802, thereby implementing any step in the touch response method provided in the above embodiment.
[0094] The electronic device 800 can implement the steps in any embodiment of the touch response method provided in the embodiments of the present application, and therefore can achieve the beneficial effects that can be achieved by any touch response method provided in the embodiments of the present application. For details, please refer to the previous embodiments and will not be repeated here.
[0095] See also Fig. 9 , Fig. 9 is another structural schematic diagram of an electronic device provided in an embodiment of the present application, such as Fig. 9 As shown, Fig. 9 The specific structural block diagram of the electronic device provided in the embodiment of the present application is shown, and the electronic device can be used to implement the touch response method provided in the above embodiment. The electronic device 900 can be a mobile terminal such as a smart phone or a laptop computer.
[0096] The RF circuit 910 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 910 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 910 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.
[0097] The memory 920 may be used to store software programs and modules, such as program instructions / modules corresponding to the touch response method in the above-mentioned embodiment. The processor 980 executes various functional applications and touch response methods by running the software programs and modules stored in the memory 920.
[0098] The memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 920 may further include a memory remotely arranged relative to the processor 980, and these remote memories may be connected to the electronic device 900 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0099] The input unit 930 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 930 may include a touch-sensitive surface 931 and other input devices 932. The touch-sensitive surface 931, also known as a touch display screen or a touchpad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 931), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 931 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch-sensitive surface 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 931, the input unit 930 may further include other input devices 932. Specifically, the other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0100] The display unit 940 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 900, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 940 may include a display panel 941, and optionally, the display panel 941 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 931 may cover the display panel 941, and when the touch-sensitive surface 931 detects a touch operation on or near it, it is transmitted to the processor 990 to determine the type of the touch event, and then the processor 980 provides corresponding visual output on the display panel 941 according to the type of the touch event. Although in the figure, the touch-sensitive surface 931 and the display panel 941 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 931 and the display panel 941 can be integrated to implement input and output functions.
[0101] The electronic device 900 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 900, they will not be repeated here.
[0102] The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the electronic device 900. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the speaker 961, which is converted into a sound signal for output; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and converted into audio data, and then the audio data is output to the processor 990 for processing, and then sent to another terminal through the RF circuit 910, or the audio data is output to the memory 920 for further processing. The audio circuit 960 may also include an earplug jack to provide communication between an external headset and the electronic device 900.
[0103] The electronic device 900 can help users receive requests, send information, etc. through the transmission module 970 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Although the transmission module 970 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 900 and can be omitted as needed without changing the essence of the invention.
[0104] The processor 990 is the control center of the electronic device 900. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 920, and calling data stored in the memory 920, it executes various functions of the electronic device 900 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 980 may include one or more processing cores; in some embodiments, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 980.
[0105] The electronic device 900 also includes a power supply 990 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 980 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 990 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0106] Although not shown, the electronic device 900 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors to implement any step of the touch response method provided in the above embodiment.
[0107] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0108] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium, which stores multiple instructions, and the instructions can be executed by the processor to implement any step of the touch response method provided in the above embodiments.
[0109] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0110] Since the instructions stored in the storage medium can execute the steps in any embodiment of the touch response method provided in the embodiments of the present application, the beneficial effects that can be achieved by any touch response method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0111] The above is a detailed introduction to a touch response method, device, electronic device and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application. Moreover, for those of ordinary skill in the art, without departing from the principles of the present application, several improvements and modifications can be made, and these improvements and modifications are also considered to be within the scope of protection of the present application.
Claims
1. A touch response method, characterized in that: include: When a touch operation is detected, determining whether the current application of the terminal is a whitelist application, and obtaining a touch point corresponding to the touch operation; If it is determined that the current application is a whitelist application, then acquiring touch information of the touch operation, wherein the touch information includes a touch position and a touch event; A response area corresponding to the current application is determined, and whether to enable a preset frame number non-reporting function is determined according to the touch position, the touch event, and the response area.
2. The method according to claim 1, characterized in that When a touch operation is detected, determining whether the current application of the terminal is a whitelist application includes: When a touch operation is detected, the current application of the terminal is obtained; Identify the application identifier of the current application, and perform a query and match in a preset whitelist based on the application identifier; If it is determined that the application identifier exists in the whitelist, then the current application is determined to be a whitelist application.
3. The method according to claim 1, characterized in that When the touch operation is detected, determining whether the current application of the terminal is a whitelist application, and then further comprising: If it is determined that the current application is not a whitelist application, the function of not reporting the preset frame number is disabled.
4. The method according to claim 1, characterized in that The determining the response area corresponding to the current application, and determining whether to enable the preset frame number non-reporting function according to the touch position, the touch event and the response area, includes: Acquire a display area of the current application on the display interface of the terminal, and use the display area as a response area of the current application; Determining whether the touch position is within the response area; When it is determined that the touch position is within the response area, determining whether the event type of the touch event is a press event; When it is determined that the event type of the touch event is a press event, the function of not reporting the preset number of frames is enabled.
5. The method according to claim 4, characterized in that The determining whether the touch position is within the response area includes: Determining the touch coordinates corresponding to the touch position on the touch screen of the terminal, and determining the coordinate range corresponding to the response area; comparing the touch coordinates with the coordinate range; Whether the touch position is within the response area is determined according to whether the touch coordinates are within the coordinate range.
6. The method according to claim 4, characterized in that The method further comprises: When it is determined that the touch position is outside the response area, the function of not reporting the preset number of frames is disabled.
7. The method according to claim 4, characterized in that After determining whether the touch coordinates are within the response area, and determining whether the event type of the touch event is a press event, the method further includes: When it is determined that the event type of the touch event is not a press event, the function of not reporting the preset number of frames is disabled.
8. A touch response device, characterized in that: include: A first judgment module is used to determine whether the current application of the terminal is a whitelist application when a touch operation is detected, and obtain a touch point corresponding to the touch operation; an information acquisition module, configured to acquire touch information of the touch operation if it is determined that the current application is a whitelist application, wherein the touch information includes a touch position and a touch event; The second judgment module is used to determine the response area corresponding to the current application, and determine whether to enable the function of not reporting points for a preset number of frames according to the touch position, the touch event and the response area.
9. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.