Touch event detection method and device, terminal, storage medium and product

By dynamically adjusting the merge distance threshold using long press suppression mark information in touch technology, the problem of low touch response accuracy in the scene where the edge long press is suppressed is solved, and higher touch response accuracy is achieved.

CN119512389APending Publication Date: 2025-02-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311069319.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the scenario where the existing touch technology is suppressed by long pressing on the edge, the accuracy of the touch response is low, which is prone to the problem of edge error touch suppression failure and the jumping of the report point back and forth.

Method used

By calling the stored long press suppression mark information, the merge distance threshold is determined, and the multiple capacitance peaks are combined and judged based on the threshold, and the merge distance threshold of the channel is dynamically adjusted to adapt to the scene where the edge long press is suppressed.

Benefits of technology

It improves the accuracy of touch response in scenes where long presses on the edge are suppressed, avoids the failure of edge touch suppression and the jump back and forth of the report point, and enhances the overall response accuracy of touch.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512389A_ABST
    Figure CN119512389A_ABST
Patent Text Reader

Abstract

The invention provides a touch event detection method and device, equipment, a storage medium and a product, and belongs to the technical field of touch control. Comprising the steps that when it is detected that the touch screen is touched, a plurality of capacitance peak values are determined based on capacitance values of a plurality of touched areas; calling stored long-press suppression mark information, wherein the long-press suppression mark information is used for representing that the touch screen has mark information of a suppressed long-press event within a preset frame number before the current time; based on the plurality of capacitance peak values and the long-press suppression mark information, determining a merging distance threshold, the merging distance threshold being used for representing a distance threshold for merging the report points corresponding to the plurality of capacitance peak values; and based on the merging distance threshold, performing merging judgment processing on the plurality of capacitance peak values to obtain a touch event. According to the method and the device, the accuracy of merging judgment processing based on the determined merging distance threshold value can be improved in a scene that edge long press is inhibited, namely, the accuracy of touch response is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of touch control technology, and in particular to a method, device, terminal, storage medium and product for detecting a touch event. Background Art

[0002] As an important human-computer interaction channel, the touch screen plays an important role in mobile phones and other terminals. The touch screen senses touch events through capacitive sensing. This process can be that a human finger or object touches the sensing material on the surface of the touch screen, which will cause the capacitance of the touch screen to change. The touch screen determines the number of fingers or objects pressed on the touch screen surface through the change in capacitance, and then reports the corresponding touch event to the terminal to trigger the terminal to perform the operation corresponding to the touch event. For example, if the touch screen detects that the number of fingers or objects pressed on the touch screen surface is 1, a single-click event is reported to the terminal to trigger the terminal to perform the operation corresponding to the single-click event; for another example, if the touch screen detects that the number of fingers or objects pressed on the touch screen surface is 2, a double-click event is reported to the terminal to trigger the terminal to perform the operation corresponding to the double-click event. Summary of the invention

[0003] The embodiments of the present application provide a touch event detection method, device, terminal, storage medium and product, which can improve the accuracy of touch response. The technical solution is as follows:

[0004] In one aspect, a method for detecting a touch event is provided, the method comprising:

[0005] When it is detected that the touch screen is touched, multiple capacitance peaks are determined based on the capacitance values ​​of the multiple touched areas, where one area corresponds to one capacitance peak;

[0006] Recalling stored long press suppression mark information, where the long press suppression mark information is used to indicate that there is a suppressed long press event on the touch screen within a preset number of frames before the current time;

[0007] Determine a merge distance threshold based on the multiple capacitance peaks and the long press suppression mark information, where the merge distance threshold is used to represent a distance threshold for merging the reporting points corresponding to the multiple capacitance peaks;

[0008] Based on the combined distance threshold, the multiple capacitance peaks are combined and judged to obtain a touch event.

[0009] In another aspect, a touch event detection device is provided, the device comprising:

[0010] A first determination module is used to determine a plurality of capacitance peaks based on capacitance values ​​of a plurality of touched areas when it is detected that the touch screen is touched, wherein one area corresponds to one capacitance peak;

[0011] A calling module, used for calling the stored long press suppression mark information, where the long press suppression mark information is used for indicating that there is a suppressed long press event on the touch screen within a preset number of frames before the current time;

[0012] A second determination module is used to determine a merging distance threshold based on the multiple capacitance peaks and the long press suppression mark information, where the merging distance threshold is used to represent a distance threshold for merging the reporting points corresponding to the multiple capacitance peaks;

[0013] The detection module is used to perform a merging judgment process on the multiple capacitance peak values ​​based on the merging distance threshold to obtain a touch event.

[0014] On the other hand, a terminal is provided. The terminal includes a processor and a memory. The memory stores at least one program code. The at least one program code is loaded and executed by the processor to implement the above-mentioned touch event detection method.

[0015] On the other hand, a computer-readable storage medium is provided, wherein at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the above-mentioned touch event detection method.

[0016] On the other hand, a computer program product is provided. The computer program product stores at least one program code. The at least one program code is used to be executed by a processor to implement the above-mentioned touch event detection method.

[0017] In an embodiment of the present application, the long press suppression mark information is used to indicate the mark information of the long press event that has been suppressed on the touch screen in the recent period of time. The merge distance threshold determined based on multiple capacitance peaks and the long press suppression mark information takes into account whether there are suppressed long press events at the reporting points corresponding to the multiple capacitance peaks. That is, different merge distance thresholds are set for the existence of suppressed long press events (edge ​​long press is suppressed) and the absence of suppressed long press events at the reporting points corresponding to the multiple capacitance peaks. The determined merge distance threshold can better adapt to the scenario where the edge long press is suppressed. Therefore, it can improve the accuracy of the merge judgment processing based on the determined merge distance threshold in the scenario where the edge long press is suppressed, that is, improve the accuracy of the touch response. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram showing an implementation environment of a touch event shown in an exemplary embodiment of the present application is shown;

[0019] Figure 2A flow chart of a method for detecting a touch event according to an exemplary embodiment of the present application is shown;

[0020] Figure 3 A schematic diagram showing long press suppression mark information of a touch screen including a reporting point is shown in an exemplary embodiment of the present application;

[0021] Figure 4 A schematic diagram showing failure of suppressing ID0 event of edge accidental touch in edge long press scenario shown in an exemplary embodiment of the present application is shown;

[0022] Figure 5 A schematic diagram showing the back and forth jumping of the reporting point corresponding to the ID0 event and the reporting point corresponding to the ID1 event in an edge long press scenario shown in an exemplary embodiment of the present application;

[0023] Figure 6 A flow chart of a method for detecting a touch event according to an exemplary embodiment of the present application is shown;

[0024] Figure 7 A schematic diagram showing a capacitance value of a reporting point included in a touch screen shown in an exemplary embodiment of the present application is shown;

[0025] Figure 8 A flow chart of a method for detecting a touch event according to an exemplary embodiment of the present application is shown;

[0026] Fig. 9 A schematic diagram of an edge channel shown in an exemplary embodiment of the present application is shown;

[0027] Fig.10 A flow chart of a method for detecting a touch event according to an exemplary embodiment of the present application is shown;

[0028] Fig.11 A block diagram of a touch event detection device according to an exemplary embodiment of the present application is shown;

[0029] Fig.12 A block diagram of a terminal according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0031] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0032] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the touch events, capacitance peaks and channel identifications involved in this application are all obtained with full authorization.

[0033] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment of a touch event shown in an exemplary embodiment of the present application. Figure 1 , the implementation environment includes: a terminal, the terminal includes a touch screen system and a terminal system, and the touch screen system and the terminal system are connected through an interface. The touch screen system is used to detect touch events, and when multiple touch events are detected, the multiple touch events are combined and judged, and the multiple touch events are combined and processed based on the combined judgment results to obtain a single-click event or a double-click event. Through the interface, the obtained single-click event or double-click event is reported to the terminal system to trigger the terminal system to perform the operation corresponding to the single-click event or the double-click event. For example, the touch screen system detects two touch events. If the two touch events meet the merging conditions, the two touch events are combined into a single-click event; if the two touch events do not meet the merging conditions, the two touch events are combined into a double-click event.

[0034] In some embodiments, the interface between the touch screen system and the terminal system can be an integrated circuit bus (Inter-Integrated Circuit, IIC), a network interface tap (Network Interface Tap, NIT) or a serial peripheral interface (Serial Peripheral Interface, SPI). For example, the touch screen system triggers an interrupt signal to the terminal system through INT to trigger the terminal system to obtain data in the touch screen system. For example, the touch screen system triggers an interrupt signal to the terminal system through INT to trigger the terminal system to obtain the capacitance value in the touch screen system. The terminal system sets the touch screen system through IIC or SPI; for example, the terminal system sets the brightness or background of the touch screen through IIC or SPI.

[0035] In some embodiments, the touch screen system is a minimum system consisting of a first central processing unit (CPU), a first memory and a power supply. The first CPU is a low-performance CPU, for example, the first CPU is a single-chip CPU; the first memory is a low-performance memory; for example, the first memory is a random access memory (RAM) memory. The terminal system is a system consisting of a second CPU, a second memory and other devices; the second CPU is a high-performance CPU; for example, the second CPU is a 2-core CPU, a 4-core CPU, an 8-core CPU, a 12-core CPU, etc. The second memory is a high-performance memory; for example, the second memory is a read-only memory (ROM). Other devices may include at least one of an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, Wi-Fi) module, a power supply, a Bluetooth module, and the like.

[0036] In some embodiments, the terminal may be a smartphone, a tablet computer, a laptop computer, an intelligent voice interaction device, a vehicle-mounted terminal, etc., provided with a touch screen, but is not limited thereto.

[0037] Please refer to Figure 2 , which shows a flow chart of a method for detecting a touch event shown in an exemplary embodiment of the present application. The execution subject of the embodiment of the present application can be a terminal, a touch screen in the terminal, or a processor in a touch screen system; in the embodiment of the present application, the execution subject is taken as an example for explanation. Figure 1 , the method comprising:

[0038] Step 201: when it is detected that the touch screen is touched, multiple capacitance peaks are determined based on capacitance values ​​of multiple touched areas, where one area corresponds to one capacitance peak.

[0039] The number of the multiple areas can be two, three, or even more; in some embodiments, the time interval between the first touch time and the last touch time of the multiple areas is less than the first preset time length, thereby ensuring that the terminal can respond to the multiple touch operations of the terminal in a timely manner and improving the efficiency of the touch response. In another embodiment, the touch time of the multiple areas can be the same time, that is, the present application can combine the reporting point judgment of multiple touch operations touched at the same time.

[0040] In some embodiments, when a user wants to trigger the terminal to perform an operation, the user can touch the touch screen of the terminal; when the terminal detects that the touch screen is touched, it obtains the capacitance value of the touched area and stores the capacitance value of the touched area. Based on the current time and the first preset duration, the first moment is determined; before the first moment, when the terminal detects that the touch screen is touched again, it obtains the capacitance value of the area touched again and stores the capacitance value of the area touched again. When the first moment arrives, the terminal obtains the capacitance values ​​of multiple stored areas, and then determines multiple capacitance peaks based on the capacitance values ​​of multiple touched areas. In some embodiments, when the first moment arrives, the terminal may only store the capacitance value of one area. At this time, the terminal generates a single-click event based on the capacitance value of the area and performs the operation corresponding to the single-click event.

[0041] In some embodiments, the area of ​​the touch screen of the terminal where the user touches can be any area; for example, the user can touch the edge area of ​​the touch screen of the terminal; for another example, the user can touch the non-edge area of ​​the touch screen of the terminal. Moreover, the touch areas of multiple touch operations can be the same or different; for example, the touch area of ​​one touch operation in two touch operations is the edge area of ​​the touch screen, and the touch area of ​​the other touch operation is the non-edge area of ​​the touch screen. Since the touch operation in the edge area is often a single-click event for preventing accidental touches on the edge, the present application can combine the single-click event for preventing accidental touches on the edge and the single-click event for the non-edge area for point reporting judgment.

[0042] For any area, the capacitance value of the area includes the capacitance values ​​of multiple reporting points of the area; accordingly, based on the capacitance value of the area, the step of determining the capacitance peak value corresponding to the area can be: determine the maximum capacitance value from the capacitance values ​​of multiple reporting points in the area to obtain the capacitance peak value corresponding to the area. In addition, after the terminal determines the capacitance peak value corresponding to the area, it can also determine the reporting point identification of the reporting point corresponding to the capacitance peak value, and store the reporting point identification of the reporting point corresponding to the capacitance peak value, so that after the reporting point is merged and judged, the coordinate information of the single-click event or the double-click event is generated based on the reporting point identification of the reporting point. In some embodiments, the touch screen is composed of a transmitting signal channel (TX) and a receiving signal channel (RX); therefore, the reporting point identification of the reporting point corresponding to the capacitance peak value can be the coordinate information identified by the TX channel and the RX channel. In some embodiments, taking the terminal as a mobile phone as an example, the maximum TX channel of the mobile phone is 16, and the maximum RX channel is 36; when the mobile phone is in a horizontal screen state, the coordinate information of the lower left corner is (TX0, RX0).

[0043] Step 202: calling the stored long press suppression mark information, where the long press suppression mark information is used to indicate that there is a suppressed long press event on the touch screen within a preset number of frames before the current time.

[0044] In some embodiments, the long press suppression mark information is used to indicate the mark information of the suppressed long press event within the preset number of frames before the current time. The mark information may be a reporting point identifier, so that only the reporting point identifiers of the suppressed long press event need to be stored. The amount of information stored is small, saving the storage resources of the terminal. In addition, the long press suppression mark information may include one reporting point identifier or multiple reporting point identifiers. Moreover, the long press suppression mark information includes not only the reporting point identifier, but also the flag bit corresponding to the reporting point. The flag bit may be 0 or 1. For any reporting point, the flag bit corresponding to the reporting point is 1, indicating that there is a suppressed long press event at the reporting point; the flag bit corresponding to the reporting point is 0, indicating that there is no suppressed long press event at the reporting point. For each reported point on the touch screen, the terminal detects whether there is a suppressed long press event at the reported point through an edge suppression algorithm. If there is a suppressed long press event at the reported point, the long press suppression mark information of the reported point is recorded. The long press suppression mark information includes a reported point mark and a flag bit, and the flag bit of the reported point is 1; if there is no suppressed long press event at the reported point, the long press suppression mark information of the reported point is not recorded. For example, please refer to Figure 3 , (TX0, RX8), (TX0, RX9), (TX0, RX10), (TX0, RX11), (TX0, RX12), (TX1, RX8), (TX1, RX9), (TX1, RX10), (TX1, RX11), (TX1, RX12) these reporting points have suppressed long press events, then the flag bits corresponding to these reporting points are 1, while other reporting points do not have suppressed long press events, then the flag bits corresponding to other reporting points are 0.

[0045] In some embodiments, when the terminal detects a suppressed long press event at a certain reporting point, the long press suppression mark information of the reporting point is stored, and the storage time of the long press suppression mark information is stored; when the storage time of the long press suppression mark information reaches the second preset time, the long press suppression mark information is deleted to ensure that the stored long press suppression mark information is the long press suppression mark information within the second preset time before the current time, thereby improving the accuracy of the subsequent touch response based on the long press suppression mark information. Through this operation, it can be ensured that the stored long press suppression mark information is the latest information, and the stored long press suppression mark information can be directly called in this step. In other embodiments, after the terminal calls the stored long press suppression mark information, the long press suppression mark information can also be verified. When it is verified that the interval between the storage time of the long press suppression mark information and the current time is less than the second preset time, step 203 is performed, so as to perform time verification on the long press suppression mark information to improve the accuracy of the subsequent touch response based on the long press suppression mark information.

[0046] When the touch screen detects a touch operation, it determines whether the touch duration of the touch operation exceeds the preset duration; when the touch duration of the touch operation exceeds the duration threshold, the terminal determines that a long press event is detected; at this time, the terminal determines whether the long press event meets the anti-false touch condition; when the long press event meets the anti-false touch condition, it is determined that the long press event needs to be suppressed, that is, it is determined that there is a suppressed long press event at the reporting point corresponding to the capacitance peak of the touch operation. Among them, the anti-false touch condition includes at least one of the touch width threshold, the touch height threshold, and the touch area threshold, the touch width threshold refers to the width threshold composed of continuous valid reporting points; the touch height refers to the height threshold composed of continuous valid reporting points, the touch area refers to the area threshold composed of continuous valid reporting points, and the valid reporting point refers to the reporting point whose difference between the capacitance value and the default capacitance value is greater than the preset capacitance value. For example, the anti-false touch condition includes the touch width threshold, then the terminal determines the effective touch width of the long press event, and when the effective touch width is less than the touch width threshold, it is determined that the long press event meets the anti-false touch condition. For another example, the anti-false touch condition includes a touch height threshold, the terminal determines the effective touch height of the long press event, and when the effective touch height is less than the touch height threshold, it is determined that the long press event meets the anti-false touch condition. For another example, the anti-false touch condition includes a touch area threshold, the terminal determines the effective touch area of ​​the long press event, and when the effective touch area is less than the touch area threshold, it is determined that the long press event meets the anti-false touch condition.

[0047] Step 203: Based on the multiple capacitance peaks and the long press suppression mark information, a merging distance threshold is determined, where the merging distance threshold is used to represent a distance threshold for merging the reporting points corresponding to the multiple capacitance peaks.

[0048] The merge distance threshold is used to represent the distance threshold for merging the corresponding reporting points of two capacitance peaks. In the related art, a fixed merge distance threshold is stored, and after multiple capacitance peaks are determined, the multiple capacitance peaks are directly merged and judged based on the stored merge distance threshold; that is, a fixed merge distance threshold is used to merge and judge multiple capacitance peaks. However, for terminals with curved screens, there may be edge long press scenarios. In edge long press scenarios, based on a fixed merge distance threshold, multiple capacitance peaks are merged and judged, which may cause the contact control of the edge to fail to be accidentally touched, or the previous contact (edge ​​contact) and the current contact (non-edge contact) may jump back and forth, which may result in low touch response accuracy in the related art.

[0049] For example, see Figure 4, the ID0 event corresponding to a finger is long pressed at the edge of the thumb, and the ID1 event corresponding to the new finger is clicked at the edge. When the reporting point of the ID1 event corresponding to the new finger is close to the reporting point of the ID0 event corresponding to the finger, the touch point algorithm will merge the reporting points of the two events to form a new ID0 event. The new ID0 event needs to be re-judged for false touch protection because it has merged the ID1 event. At this time, the edge area of ​​the old ID0 event is lifted and released, and the new ID0 may not be suppressed when performing false touch protection judgment because the false touch protection conditions are not met, that is, the suppression of the ID0 event of edge false touch fails.

[0050] For example, please refer to Figure 5 , the ID0 event corresponding to a finger is long pressed at the edge of the thumb, and the ID1 event corresponding to the new finger is clicked at the edge. When the reporting point of the ID1 event corresponding to the new finger is close to the reporting point of the ID0 event corresponding to the finger, that is, when the distance between the two reporting points corresponding to the two events is less than the merging distance threshold, the touch point merging algorithm will merge the reporting points of the two events; however, when the distance between the two reporting points corresponding to the two events is not less than the merging distance threshold, the touch merging algorithm will form two reporting points for the two events, that is, the ID0 event and the ID1 event will be identified as two touch events. It can be seen that the reporting point corresponding to the ID0 event and the reporting point corresponding to the ID1 event jump back and forth.

[0051] In the embodiment of the present application, when a suppressed long press event is detected at a certain reporting point, the long press suppression mark information of the reporting point is stored, so that different merge distance thresholds are set for reporting points with or without long press suppression mark information, that is, for reporting points with or without long press suppression mark information, the first merge distance threshold is selected for use. For reporting points with long press suppression mark information, the second merge distance threshold is selected for use, thereby dynamically adjusting the merge distance threshold of the channel through the long press suppression mark information. Furthermore, the first merge distance threshold is greater than the second merge distance threshold, so that in the scenario where the edge long press is suppressed, a smaller merge distance threshold is used, so that the distance between the two reporting points is not easy to meet the merge distance threshold, which makes it more difficult for the two reporting points to be merged; Figure 4 In this scenario, since the two reporting points are not easy to merge, they will be recognized as two reporting points, that is, two touch events will be recognized, and the touch event corresponding to the edge reporting point will be suppressed by the false touch prevention judgment, while the touch event corresponding to the other reporting point will be recognized as a single click event, solving the problem of failure of false touch suppression at the edge. Figure 5In this scenario, since the two reporting points are not easy to merge, that is, the two reporting points will be identified as two reporting points, which reduces the situation where the two reporting points are merged for a while and not merged for a while, and reduces the situation where the reporting points jump back and forth. Based on the above analysis, it can be seen that by dynamically adjusting the merging distance threshold of the channel by long pressing the suppression mark information, the problem of low touch response accuracy in the long press scenario of the curved screen edge in the related technology can be solved, that is, the present application can improve the touch response accuracy.

[0052] Step 204: Based on the combined distance threshold, a plurality of capacitance peak values ​​are combined and judged to obtain a touch event.

[0053] Multiple capacitance peaks correspond to multiple reporting points, and one capacitance peak corresponds to one reporting point; the merge distance threshold is used to constrain whether multiple reporting points can be merged, thereby determining whether the generated touch event is a single-click event, a double-click event, or even a multi-click event.

[0054] In an embodiment of the present application, the long press suppression mark information is used to indicate the mark information of the long press event that has been suppressed on the touch screen in the recent period of time. The merge distance threshold determined based on multiple capacitance peaks and the long press suppression mark information takes into account whether there are suppressed long press events at the reporting points corresponding to the multiple capacitance peaks. That is, different merge distance thresholds are set for the existence of suppressed long press events (edge ​​long press is suppressed) and the absence of suppressed long press events at the reporting points corresponding to the multiple capacitance peaks. The determined merge distance threshold can better adapt to the scenario where the edge long press is suppressed. Therefore, it can improve the accuracy of the merge judgment processing based on the determined merge distance threshold in the scenario where the edge long press is suppressed, that is, improve the accuracy of the touch response.

[0055] Please refer to Figure 6 , which shows a flow chart of a method for detecting a touch event according to an exemplary embodiment of the present application. Figure 6 , the method comprising:

[0056] Step 601: when it is detected that the touch screen is touched, the terminal determines a plurality of capacitance peaks based on the capacitance values ​​of the plurality of touched areas, where one area corresponds to one capacitance peak.

[0057] In some embodiments, this step is the same as step 201 and will not be repeated here.

[0058] Step 602: The terminal calls the stored long press suppression mark information, where the long press suppression mark information is used to indicate that there is a suppressed long press event on the touch screen within a preset number of frames before the current time.

[0059] The long press suppression mark information includes a reporting point mark of a suppressed long press event on the touch screen within a preset number of frames before the current time. In some embodiments, this step is the same as step 202 and will not be described in detail here.

[0060] Step 603: The terminal determines reporting point identifiers of multiple first reporting points corresponding to multiple capacitance peaks.

[0061] The reporting point identifier can be represented by a TX channel identifier and an RX channel identifier; the capacitance peak is obtained by sending data through TX channels with different numbers and collecting data through different TX channels. Therefore, the TX channel identifier and the RX channel identifier can be obtained based on the capacitance peak, that is, for any capacitance peak, the terminal reads the TX channel identifier and the RX channel identifier in the capacitance peak based on the capacitance peak, and obtains the reporting point identifier of the first reporting point corresponding to the capacitance peak. In some embodiments, the terminal determines the reporting point identifier of the first reporting point corresponding to each capacitance peak each time it obtains the capacitance peak. For example, please refer to Figure 7 The terminal determines that the reporting point identifiers of the two first reporting points corresponding to the two capacitance peak values ​​50 are (TX8, RX4) and (TX3, RX12).

[0062] Step 604 : when the long press suppression mark information does not include the reporting point identifiers of the multiple first reporting points, the terminal determines that there is no suppressed long press event among the multiple first reporting points, and executes step 606 .

[0063] In some embodiments, the long press suppression mark information includes channel mark information of a suppressed long press event on the touch screen within a preset number of frames before the current time, that is, the long press suppression mark information includes the channel identifier of the suppressed long press event; the terminal can also determine whether there is a suppressed long press event based on the channel. Accordingly, steps 603 and 604 can be replaced by: the terminal determines the channel identifiers of multiple first channels corresponding to multiple capacitance peaks. When the long press suppression mark information does not include the channel identifiers of multiple first channels, the terminal determines that there are no suppressed long press events in the multiple first channels and executes step 606.

[0064] In some embodiments, the terminal can determine the channel where the current capacitance peak is located or the channel range where the current capacitance peak is located based on the order of signal acquisition, and then determine whether there is a suppressed long press event in the channel where the current capacitance peak is located based on the long press suppression mark information; or determine whether there is a suppressed long press event in the channel range where the current capacitance peak is located based on the long press suppression mark information, and if there is no suppressed long press event in the channel where the current capacitance peak is located or there is no suppressed long press event in the channel range where the current capacitance peak is located, execute step 606; if there is a suppressed long press event in the channel where the current capacitance peak is located or there is a suppressed long press event in the channel range where the current capacitance peak is located, execute step 607. In other embodiments, when there is no suppressed long press event in the channel where the current capacitance peak is located or there is no suppressed long press event in the channel range where the current capacitance peak is located, the terminal determines whether there is a suppressed long press event in the channel or channel range where the previous capacitance peak is located based on the long press suppression mark information; if there is no suppressed long press event in the channel or channel range where the previous capacitance peak is located, execute step 606; if there is a suppressed long press event in the channel or channel range where the previous capacitance peak is located, execute step 607.

[0065] Step 605 : when the long press suppression mark information includes at least one reporting point identifier of a first reporting point, the terminal determines that there are suppressed long press events in the multiple first reporting points, and executes step 607 .

[0066] In an embodiment of the present application, the merge distance threshold is selected by determining whether there is a suppressed long press event for the first reporting point, so as to accurately determine the merge distance threshold. In other embodiments, when the long press suppression mark information includes the reporting point identification of at least one first reporting point, it is also possible to approximately determine whether there are suppressed long press events for multiple first reporting points by determining whether there are reporting points with a relatively close distance; accordingly, when the long press suppression mark information does not include the reporting point identification of at least one first reporting point, the step of determining that there are no suppressed long press events for multiple first reporting points may be: when the long press suppression mark information does not include the reporting point identification of at least one first reporting point, the terminal determines whether there is a reporting point in the long press suppression mark information whose distance from any first reporting point is less than a preset distance; when there is no reporting point in the long press suppression mark information whose distance from any first reporting point is less than a preset distance, it is determined that there are no suppressed long press events for multiple first reporting points. In addition, when there is a reporting point in the long press suppression mark information whose distance from any first reporting point is less than a preset distance, it can be determined that there are suppressed long press events for multiple first reporting points. In the embodiment of the present application, whether there is a suppressed long press event at a reporting point that is closer to multiple reporting points can be used to approximately determine whether there is a suppressed long press event at multiple first reporting points, thereby avoiding misjudgment caused by inaccurate touch.

[0067] Step 606: When it is determined based on the long press suppression mark information that there is no suppressed long press event in the multiple first reporting points corresponding to the multiple capacitance peaks, the terminal determines that the merge distance threshold is the first merge distance threshold.

[0068] The first merge distance threshold is used to constrain the distance between two reported points to determine whether they can be merged; for example, when the distance between the absolute paths between the two reported points is not greater than the first merge distance threshold, the two reported points are merged; and when the distance between the absolute paths between the two reported points is greater than the first merge distance threshold, the two reported points are not merged.

[0069] Step 607: when it is determined based on the long press suppression mark information that there are suppressed long press events in multiple first reporting points corresponding to multiple capacitance peaks, the terminal determines that the merge distance threshold is a second merge distance threshold.

[0070] The second merge distance threshold is used to constrain the distance at which two reporting points can be merged. For example, when the distance between the absolute paths of the two reporting points is not greater than the second merge distance threshold, the two reporting points are merged; and when the distance between the absolute paths of the two reporting points is greater than the second merge distance threshold, the two reporting points are not merged. In some embodiments, the first merge distance threshold is greater than the second merge distance threshold, that is, in the presence of a suppressed long press event, a small merge distance threshold is set, so that the reporting point corresponding to the long press event at the previous moment and the reporting point corresponding to the touch event at the current moment are not easily merged. Since these two reporting points are not easy to merge, the two reporting points will be identified as two reporting points, that is, two touch events will be identified, and the touch event corresponding to the edge reporting point will be suppressed by anti-false touch judgment, and the touch event corresponding to the other reporting point will be identified as a single click event, which solves the problem of failure of edge false touch suppression, that is, avoids failure of edge suppression of long press events. Furthermore, since the two reporting points are not easy to merge, that is, the two reporting points will be identified as two reporting points, which reduces the situation where the two reporting points are merged for a while and not merged for a while, and reduces the situation where the reporting points jump back and forth. For example, the first merging distance threshold is 16 mm, and the second merging distance threshold is 8 mm.

[0071] In some embodiments, the first merged distance threshold and the second merged distance threshold are stored in the terminal touch screen system; when the touch screen detects being touched, the first merged distance threshold or the second merged distance threshold is directly obtained locally based on multiple capacitance peaks and long press suppression mark information, thereby improving the efficiency of obtaining the merged distance threshold (first merged distance threshold or second merged threshold). In other embodiments, the first merged distance threshold and the second merged distance threshold are stored in the terminal system; when the touch screen detects being touched, multiple capacitance peaks and long press suppression mark information are sent to the terminal, and the terminal determines the first merged distance threshold or the second merged distance threshold based on the multiple capacitance peaks and long press suppression mark information, and returns the determined first merged distance threshold or the second merged distance threshold to the touch screen, thereby saving computing resources and storage resources of the touch screen.

[0072] Step 608: The terminal performs a merge judgment process on multiple capacitance peaks based on the merge distance threshold to obtain a touch event.

[0073] The number of capacitance peaks is two, the merge distance threshold is the merge distance threshold, and the merge distance threshold is the first merge distance threshold or the second merge distance threshold; for example, when there is no suppressed long press event in multiple first reporting points, the merge distance threshold is the first merge distance threshold; when there is a suppressed long press event in multiple first reporting points, the merge distance threshold is the second merge distance threshold. Accordingly, this step can be implemented by the following steps (1) to (3), including:

[0074] (1) The terminal determines the distance between two first reporting points corresponding to two capacitance peaks.

[0075] The distance between the two first reporting points is the straight-line distance between the two first reporting points. In this step, the terminal determines the distance between the two first reporting points based on the reporting point identifiers (coordinate information) of the two first reporting points and by the Pythagorean theorem.

[0076] (2) When the distance between the two first reporting points corresponding to the two capacitance peaks is not greater than the merge distance threshold, the terminal generates a single-click event and merges the two first reporting points to obtain coordinate information of the single-click event.

[0077] The terminal can determine the average value of the coordinate information of the two first reporting points to obtain the coordinate information of the single-click event. Alternatively, the terminal determines the first reporting point with the largest capacitance peak value among the two first reporting points, and determines the coordinate information of the determined first reporting point as the coordinate information of the single-click event. Alternatively, the terminal determines the weights of the two first reporting points based on the capacitance peak values ​​of the two first reporting points, and based on the weights of the two first reporting points, performs weighted summation on the coordinate information of the two first reporting points to obtain the coordinate information of the single-click event. In an embodiment of the present application, the terminal determines whether to allow the point to be merged based on the distance between the capacitance peak values ​​of different areas and the merge distance threshold. When the distance between the capacitance peak values ​​of different areas is less than the merge distance threshold, the point is merged, and then reported to the terminal system as a single-click event.

[0078] (3) When the distance between the two first reporting points corresponding to the two capacitance peaks is greater than the combined distance threshold, the terminal generates a double-click event and determines the coordinate information of the double-click event based on the coordinate information of the two first reporting points.

[0079] In some embodiments, the coordinate information of the two first reported points is respectively the coordinate information of the double-click event. In the embodiment of the present application, when the distance between the capacitance peaks in different regions is not less than the merging distance threshold, the points are not merged, that is, two coordinates are calculated and two click events are reported to the terminal system.

[0080] In some embodiments, the terminal is a mobile phone as an example, the maximum TX channel of the mobile phone is 16, and the maximum RX channel is 36; when the mobile phone is in landscape mode, the coordinate information of the lower left corner is (TX0, RX0). The upper area of ​​the mobile phone screen corresponds to the first preset channel range, the first preset channel range is greater than 8TX channels, and the lower area of ​​the mobile phone screen corresponds to the second preset channel range, the second preset channel range is less than or equal to 8TX channels, that is, the second preset channel range is 0-8TX channels; the first merge distance threshold is 16 mm, and the second merge distance threshold is 8 mm. When a capacitance peak appears in the upper area of ​​the mobile phone screen, that is, a capacitance peak appears in more than 8TX channels, the first merge distance threshold is enabled. For example, if the distance between the two first reporting points corresponding to the two capacitance peaks is 7 mm, and 7 mm is less than the first merge distance threshold of 16 mm, the two first reporting points will be merged; for another example, if the distance between the two first reporting points corresponding to the two capacitance peaks is 9 mm, and 9 mm is less than the first merge distance threshold of 16 mm, the two first reporting points will be merged; for another example, if the distance between the two first reporting points corresponding to the two capacitance peaks is 17 mm, and 17 mm is not less than the first merge distance threshold of 16 mm, the two first reporting points will not be merged. When a capacitance peak appears in the lower area of ​​the mobile phone screen, that is, a capacitance peak appears in a channel less than or equal to 8TX, the second merge distance threshold is enabled. For example, if the distance between the two first reporting points corresponding to the two capacitance peaks is 7 mm, and 7 mm is less than the second merge distance threshold of 8 mm, the two first reporting points are merged; for another example, if the distance between the two first reporting points corresponding to the two capacitance peaks is 9 mm, and 9 mm is greater than the second merge distance threshold of 8 mm, the two first reporting points are not merged; for another example, if the distance between the two first reporting points corresponding to the two capacitance peaks is 17 mm, and 17 mm is greater than the second merge distance threshold of 8 mm, the two first reporting points are not merged. When capacitance peaks appear in both the upper and lower areas of the mobile phone screen, the second merge distance threshold is enabled, so that the reporting points in the upper area and the reporting points in the lower area are less likely to be merged, solving the problem of failure of edge false touch suppression or jumping of reporting points back and forth, thereby improving the touch response accuracy. The specific principle is similar to the principle in step 203, which will not be repeated here.

[0081] Step 609: The terminal executes the operation corresponding to the touch event.

[0082] If the touch event is a single-click event or a double-click event, the terminal reports the coordinate information of the single-click event or the coordinate information of the double-click event to the terminal system through the touch screen system, and the terminal system performs a corresponding operation based on the coordinate information of the single-click event or the coordinate information of the double-click event. In some embodiments, the execution subject of steps 601-608 can be the touch screen system, and after the touch screen system detects a single-click event or a double-click event, the touch screen system reports the coordinate information of the single-click event or the coordinate information of the double-click event to the terminal system; the terminal system receives the coordinate information of the single-click event or the coordinate information of the double-click event, and performs a corresponding operation based on the coordinate information of the single-click event or the coordinate information of the double-click event.

[0083] In the embodiment of the present application, when there is a suppressed long press event, a larger merging distance threshold is set, so that the reporting point corresponding to the long press event and the reporting point corresponding to the current touch event are not merged as much as possible, thereby avoiding the failure of edge suppression of the long press event. When there is no suppressed long press event, a smaller merging distance is set, so that the reporting point corresponding to the long press event and the reporting point corresponding to the current touch event are merged as much as possible, thereby avoiding the reporting point corresponding to the long press event and the reporting point corresponding to the current touch event jumping back and forth.

[0084] Please refer to Figure 8 , which shows a flow chart of a method for detecting a touch event according to an exemplary embodiment of the present application. Figure 8 , the method comprising:

[0085] Step 801: When a suppressed long press event is detected, the terminal obtains a reporting point identifier of a second reporting point corresponding to the long press event.

[0086] The reporting point identifier of the second reporting point may be the coordinate information of the second reporting point; when a long press event is detected, the terminal determines whether the long press event satisfies the anti-false touch condition; if the long press event satisfies the anti-false touch condition, the long press event is determined to be suppressed, and the coordinate information of the second reporting point where the capacitance peak of the long press event is located is obtained. If the long press event does not satisfy the anti-false touch condition, the operation corresponding to the long press event is performed.

[0087] In some embodiments, the anti-false touch condition includes at least one of a touch width threshold, a touch height threshold, and a touch area threshold. The touch width threshold refers to a width threshold composed of continuous valid reporting points; the touch height refers to a height threshold composed of continuous valid reporting points; the touch area refers to an area threshold composed of continuous valid reporting points; and a valid reporting point refers to a reporting point where the difference between the capacitance value and the default capacitance value is greater than the preset capacitance value. For example, if the anti-false touch condition includes a touch width threshold, the terminal determines the effective touch width of the long press event. If the effective touch width is less than the touch width threshold, the long press event is determined to meet the anti-false touch condition; if the effective touch width is not less than the touch width threshold, the long press event is determined to not meet the anti-false touch condition. For another example, if the anti-false touch condition includes a touch height threshold, the terminal determines the effective touch height of the long press event. If the effective touch height is less than the touch height threshold, the long press event is determined to meet the anti-false touch condition; if the effective touch height is not less than the touch height threshold, the long press event is determined to not meet the anti-false touch condition. For another example, the anti-false touch condition includes a touch area threshold, and the terminal determines the effective touch area of ​​the long press event. When the effective touch area is less than the touch area threshold, it is determined that the long press event meets the anti-false touch condition; when the effective touch area is not less than the touch area threshold, it is determined that the long press event does not meet the anti-false touch condition.

[0088] Step 802: The terminal determines whether the second reporting point is located at an edge channel of the touch screen.

[0089] Prior to this step, the terminal determines the coordinate information of the edge channel of the touch screen; in this step, the terminal determines whether the second reported point is located at the edge channel of the touch screen based on the coordinate information of the second reported point and the coordinate information of the edge channel. For example, if the coordinate information of the edge channel includes the coordinate information of the second reported point, the terminal determines that the second reported point is located at the edge channel of the touch screen; if the coordinate information of the edge channel does not include the coordinate information of the second reported point, the terminal determines that the second reported point is not located at the edge channel of the touch screen.

[0090] In some embodiments, the step of determining the coordinate information of the edge channel of the touch screen by the terminal can be implemented by the following steps (1) to (3), including:

[0091] (1) The terminal determines a TX edge channel based on the TX channel of the touch screen and a first preset channel number.

[0092] The terminal determines the smallest first preset number of TX channels and the largest first preset number of TX channels in the TX channels of the touch screen as TX edge channels. For example, if the first preset number of channels is 2, the touch screen includes 16 TX channels, and the channel identifiers are TX channel 0-TX channel 15, then the terminal determines the corresponding channels of TX channel 0, TX channel 1, TX channel 14 and TX channel 15 as TX edge channels.

[0093] (2) The terminal determines the RX edge channel based on the RX channel of the touch screen and the second preset channel number.

[0094] The terminal determines the smallest second preset number of RX channels and the largest second preset number of RX channels in the RX channels of the touch screen as RX edge channels. For example, if the second preset number of channels is 2, the touch screen includes 36 RX channels, and the channel identifiers are RX channel 0-RX channel 35, then the terminal determines the corresponding channels of RX channel 0, RX channel 1, RX channel 34 and RX channel 35 as RX edge channels.

[0095] (3) The terminal determines the coordinate information of the edge channel of the touch screen based on the TX edge channel and the RX edge channel.

[0096] The terminal determines the intersection of the TX edge channel and the RX edge channel to obtain the coordinate information of the edge channel of the touch screen. The first preset channel number and the second preset channel number may be the same or different; in the embodiment of the present application, the first preset channel number and the second preset channel number are the same, both 2, for example. Fig. 9 The two channels at the top of the TX channel, the two channels at the bottom of the TX channel, the two channels on the left of the RX channel, and the two channels on the right of the RX channel are edge channels. The coordinate information of the reported points included in these four edge channels is the coordinate information of the edge channels.

[0097] In some embodiments, if the second reporting point is located at an edge channel of the touch screen, step 603 is executed; if the second reporting point is not located at an edge channel of the touch screen, the process ends. In other embodiments, the terminal may not determine whether the second reporting point is located at an edge channel of the touch screen, but directly executes the reporting point identification based on the second reporting point in step 803 to generate the long press suppression mark information.

[0098] Step 803: When the second reporting point is located at an edge channel of the touch screen, the terminal generates long press suppression mark information based on the reporting point identifier of the second reporting point.

[0099] In some embodiments, the long press suppression mark information includes the reporting point identifier of the suppressed long press event, and the terminal adds the reporting point identifier of the second reporting point to the long press suppression mark information. In other embodiments, the long press suppression mark information includes the reporting point identifier and the flag bit of each reporting point on the touch screen. The identifier of the reporting point is used to identify the reporting point; for example, the identifier of the reporting point can be the coordinate information identified by the TX channel and the RX channel. The flag bit of the reporting point is used to identify whether there is a suppressed long press event for the reporting point; and the flag bit of the reporting point can be 0 or 1, the flag bit of the reporting point is 0, which is used to indicate that there is no suppressed long press event for the reporting point, and the flag bit of the reporting point is 1, which is used to indicate that there is a suppressed long press event for the reporting point; accordingly, the terminal generates the long press suppression mark information based on the reporting point identifier of the second reporting point in the step of: the terminal changes the flag bit corresponding to the second reporting point in the historical long press suppression mark information from 0 to 1.

[0100] Step 804: The terminal stores the long press suppression mark information.

[0101] After the terminal stores the long press suppression mark information, it also stores the storage time of the long press suppression mark information; when the storage time of the long press suppression mark information reaches a second preset time, the long press suppression mark information is deleted to ensure that the stored long press suppression mark information is the long press suppression mark information suppressed within the second preset time before the current time, thereby improving the accuracy of subsequent touch response based on the long press suppression mark information.

[0102] In some embodiments, please refer to Fig.10, the terminal (or the touch screen of the terminal) stores the first merged distance threshold and the second merged distance threshold in advance. The terminal collects touch signals regularly to detect whether there is a long press event. When the terminal detects a long press event in a certain channel based on the touch signal, it determines whether the long press event meets the anti-false touch condition; when the long press event meets the anti-false touch condition, the long press suppression mark information of the second reporting point corresponding to the channel or the long press event is marked; when the long press event does not meet the anti-false touch condition, the long press suppression mark information of the channel or the second reporting point is not marked. When it is detected that the touch screen is touched, the terminal determines multiple capacitance peaks based on the capacitance values ​​of multiple touched areas, and one area corresponds to one capacitance peak. The terminal determines the channel range of the current capacitance peak according to the order of signal acquisition, and enables the first merge distance threshold when it is determined based on the long press suppression mark information that there is no suppressed long press event between the current capacitance peak and the previous capacitance peak; when it is determined based on the long press suppression mark information that there is a suppressed long press event between the current capacitance peak and the previous capacitance peak, the second merge distance threshold is enabled, so that the terminal obtains the merge distance threshold; the terminal determines the distance between multiple first reporting points based on multiple capacitance peaks, and when the distance is less than the merge distance threshold, the multiple first reporting points are merged; when the distance is not less than the merge distance threshold, the multiple first reporting points are not merged.

[0103] In an embodiment of the present application, the long press suppression mark information is used to indicate the mark information of the long press event that has been suppressed on the touch screen in the recent period of time. The merge distance threshold determined based on multiple capacitance peaks and the long press suppression mark information takes into account whether there are suppressed long press events at the reporting points corresponding to the multiple capacitance peaks. That is, different merge distance thresholds are set for the existence of suppressed long press events (edge ​​long press is suppressed) and the absence of suppressed long press events at the reporting points corresponding to the multiple capacitance peaks. The determined merge distance threshold can better adapt to the scenario where the edge long press is suppressed. Therefore, it can improve the accuracy of the merge judgment processing based on the determined merge distance threshold in the scenario where the edge long press is suppressed, that is, improve the accuracy of the touch response.

[0104] Please refer to Fig.11 , which shows a detection device for a touch event shown in an exemplary embodiment of the present application, the device comprising:

[0105] A first determining module 1101 is configured to determine a plurality of capacitance peaks based on capacitance values ​​of a plurality of touched regions when it is detected that the touch screen is touched, wherein one region corresponds to one capacitance peak;

[0106] The calling module 1102 is used to call the stored long press suppression mark information, where the long press suppression mark information is used to indicate that there is a suppressed long press event on the touch screen within a preset number of frames before the current time;

[0107] The second determination module 1103 is used to determine a merging distance threshold based on the multiple capacitance peak values ​​and the long press suppression mark information, where the merging distance threshold is used to represent a distance threshold for merging the reporting points corresponding to the multiple capacitance peak values;

[0108] The detection module 1104 is used to perform a combined judgment process on multiple capacitance peaks based on a combined distance threshold to obtain a touch event.

[0109] In some embodiments, the second determination module 1103 is used to determine that the merged distance threshold is the first merged distance threshold when it is determined based on the long press suppression mark information that there is no suppressed long press event among the multiple first reporting points corresponding to the multiple capacitance peaks; and to determine that the merged distance threshold is the second merged distance threshold when it is determined based on the long press suppression mark information that there is a suppressed long press event among the multiple first reporting points corresponding to the multiple capacitance peaks, and the first merged distance threshold is greater than the second merged distance threshold.

[0110] In some embodiments, the long press suppression mark information includes a reporting point mark indicating that there is a suppressed long press event on the touch screen within a preset number of frames before the current time;

[0111] The device also includes:

[0112] The third determination module is used to determine the reporting point identifiers of multiple first reporting points corresponding to multiple capacitance peaks; when the long press suppression mark information does not include the reporting point identifiers of multiple first reporting points, determine that there are no suppressed long press events for the multiple first reporting points; when the long press suppression mark information includes the reporting point identifiers of at least one first reporting point, determine that there are suppressed long press events for the multiple first reporting points.

[0113] In some embodiments, the apparatus further comprises:

[0114] An acquisition module, configured to acquire a reporting point identifier of a second reporting point corresponding to the long press event when a suppressed long press event is detected;

[0115] A generating module, used for generating long press suppression mark information based on the reporting point identifier of the second reporting point;

[0116] A storage module is used to store long press suppression mark information.

[0117] In some embodiments, the generating module is used to generate the long press suppression mark information based on the reporting point identifier of the second reporting point when the second reporting point is located at the edge channel of the touch screen.

[0118] In some embodiments, the number of capacitance peaks is two, and the merge distance threshold is a merge distance threshold;

[0119] The detection module 1104 is used to generate a single-click event when the distance between the two first reporting points corresponding to the two capacitance peaks is not greater than the merge distance threshold, and merge the two first reporting points to obtain the coordinate information of the single-click event; when the distance between the two first reporting points corresponding to the two capacitance peaks is greater than the merge distance threshold, generate a double-click event, and determine the coordinate information of the double-click event based on the coordinate information of the two first reporting points.

[0120] In some embodiments, the apparatus further comprises:

[0121] A reporting module, used to report the coordinate information of a single-click event or the coordinate information of a double-click event to a terminal system through a touch screen system;

[0122] The processing module is used to perform corresponding operations based on the coordinate information of a single-click event or the coordinate information of a double-click event through a terminal system.

[0123] In an embodiment of the present application, the long press suppression mark information is used to indicate the mark information of the long press event that has been suppressed on the touch screen in the recent period of time. The merge distance threshold determined based on multiple capacitance peaks and the long press suppression mark information takes into account whether there are suppressed long press events at the reporting points corresponding to the multiple capacitance peaks. That is, different merge distance thresholds are set for the existence of suppressed long press events (edge ​​long press is suppressed) and the absence of suppressed long press events at the reporting points corresponding to the multiple capacitance peaks. The determined merge distance threshold can better adapt to the scenario where the edge long press is suppressed. Therefore, it can improve the accuracy of the merge judgment processing based on the determined merge distance threshold in the scenario where the edge long press is suppressed, that is, improve the accuracy of the touch response.

[0124] It should be noted that the touch event detection device provided in the above embodiment only uses the division of the above functional modules as an example when detecting touch events. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the touch event detection device provided in the above embodiment and the touch event detection method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0125] Please refer to Fig.12 , which shows a block diagram of a terminal 1200 according to an exemplary embodiment of the present application. The terminal 1200 in the present application may include one or more of the following components: a processor 1210 , a memory 1220 , and a touch screen 1230 .

[0126] The processor 1210 may include one or more processing cores. The processor 1210 uses various interfaces and lines to connect the various parts of the entire terminal 1200, and executes various functions and processes data of the terminal 1200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220. Optionally, the processor 1210 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1210 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content that the touch screen 1230 needs to display; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1210, but may be implemented by a separate chip.

[0127] The memory 1220 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1220 includes a non-transitory computer-readable storage medium. The memory 1220 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the terminal 1200.

[0128] The touch screen 1230 is a display component for displaying a user interface. Optionally, the touch screen 1230 is a display screen with a touch function, through which the user can use any suitable object such as a finger, a touch pen, etc. to perform touch operations on the touch screen 1230.

[0129] The touch screen 1230 is usually arranged on the front panel of the terminal 1200. The touch screen 1230 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The touch screen 1230 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.

[0130] In addition, those skilled in the art can understand that the structure of the terminal 1200 shown in the above drawings does not constitute a limitation on the terminal 1200, and the terminal 1200 may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal 1200 also includes an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, Wi-Fi) module, a power supply, a Bluetooth module and other components, which will not be repeated here.

[0131] An embodiment of the present application further provides a computer-readable medium, which stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the touch event detection method shown in the above embodiments.

[0132] An embodiment of the present application further provides a computer program product, which stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the touch event detection method shown in the above embodiments.

[0133] In some embodiments, the computer program product involved in the embodiments of the present application may be deployed and executed on one terminal, or on multiple terminals located at one location, or on multiple terminals distributed at multiple locations and interconnected by a communication network. Multiple terminals distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.

[0134] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0135] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for detecting a touch event, characterized in that: The method comprises: When it is detected that the touch screen is touched, multiple capacitance peaks are determined based on the capacitance values ​​of the multiple touched areas, where one area corresponds to one capacitance peak; Recalling stored long press suppression mark information, where the long press suppression mark information is used to indicate that there is a suppressed long press event on the touch screen within a preset number of frames before the current time; Determine a merge distance threshold based on the multiple capacitance peaks and the long press suppression mark information, where the merge distance threshold is used to represent a distance threshold for merging the reporting points corresponding to the multiple capacitance peaks; Based on the combined distance threshold, the multiple capacitance peaks are combined and judged to obtain a touch event.

2. The method according to claim 1, characterized in that The determining, based on the multiple capacitance peaks and the long press suppression mark information, a merging distance threshold includes: When it is determined based on the long press suppression mark information that there is no suppressed long press event in the multiple first reporting points corresponding to the multiple capacitance peaks, determining the merge distance threshold to be a first merge distance threshold; When it is determined based on the long press suppression mark information that there are suppressed long press events in the multiple first reporting points corresponding to the multiple capacitance peaks, the merge distance threshold is determined to be the second merge distance threshold, and the first merge distance threshold is greater than the second merge distance threshold.

3. The method according to claim 2, characterized in that The long press suppression mark information includes a reporting point mark of a suppressed long press event on the touch screen within a preset number of frames before the current time; The method further comprises: Determine reporting point identifiers of a plurality of first reporting points corresponding to the plurality of capacitance peaks; When the long press suppression mark information does not include the reporting point identifiers of the multiple first reporting points, determining that there is no suppressed long press event for the multiple first reporting points; In a case where the long press suppression mark information includes at least one reporting point identifier of a first reporting point, it is determined that there are suppressed long press events in the multiple first reporting points.

4. The method according to claim 1, characterized in that: The method further comprises: When a suppressed long press event is detected, obtaining a reporting point identifier of a second reporting point corresponding to the long press event; generating the long press suppression mark information based on the reporting point identifier of the second reporting point; The long press suppression mark information is stored.

5. The method according to claim 4, characterized in that The generating the long press suppression mark information based on the reporting point identifier of the second reporting point includes: In a case where the second reporting point is located at an edge channel of the touch screen, the long press suppression mark information is generated based on a reporting point identifier of the second reporting point.

6. The method according to claim 1, characterized in that The number of the capacitance peaks is two; The step of performing merging judgment processing on the multiple capacitance peaks based on the merging distance threshold to obtain a touch event includes: When the distance between the two first reporting points corresponding to the two capacitance peaks is not greater than the merging distance threshold, a single-click event is generated, and the two first reporting points are merged to obtain coordinate information of the single-click event; When the distance between the two first reporting points corresponding to the two capacitance peaks is greater than the combined distance threshold, a double-click event is generated, and the coordinate information of the double-click event is determined based on the coordinate information of the two first reporting points.

7. The method according to claim 6, characterized in that The method further comprises: Reporting the coordinate information of the single-click event or the coordinate information of the double-click event to the terminal system through the touch screen system; Through the terminal system, a corresponding operation is performed based on the coordinate information of the single-click event or the coordinate information of the double-click event.

8. A touch event detection device, characterized in that: The device comprises: A first determination module is used to determine a plurality of capacitance peaks based on capacitance values ​​of a plurality of touched areas when it is detected that the touch screen is touched, wherein one area corresponds to one capacitance peak; A calling module, used for calling the stored long press suppression mark information, where the long press suppression mark information is used for indicating that there is a suppressed long press event on the touch screen within a preset number of frames before the current time; A second determination module is used to determine a merging distance threshold based on the multiple capacitance peaks and the long press suppression mark information, where the merging distance threshold is used to represent a distance threshold for merging the reporting points corresponding to the multiple capacitance peaks; The detection module is used to perform a merging judgment process on the multiple capacitance peak values ​​based on the merging distance threshold to obtain a touch event.

9. A terminal, characterized in that: The terminal includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the touch event detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: At least one program code is stored in the storage medium, and the at least one program code is loaded and executed by the processor to implement the touch event detection method according to any one of claims 1 to 7.

11. A computer program product, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the touch event detection method according to any one of claims 1 to 7.