Touch report method, device, equipment and storage medium

CN117724622BActive Publication Date: 2026-10-20GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311776896.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2026-10-20
Estimated Expiration
2043-12-21

AI Technical Summary

Benefits of technology

[0018]在本申请实施例中,在检测到滑动操作时,确定触控点的触控参数,该触控参数包括触控坐标和/或触控面积;在触控参数满足预设拉伸条件时,对触控点的触控坐标进行坐标拉伸,以得到触控点的上报坐标。其中,触控点的上报坐标与真实坐标之间的距离小于距离阈值,触控参数满足预设拉伸条件包括:触控坐标处于电子设备的预设边缘区域,和/或触控面积小于触控面积阈值。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117724622B_ABST
    Figure CN117724622B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a touch point reporting method, device and equipment, and a storage medium. The touch point reporting method can comprise: determining a touch parameter of a touch point when a sliding operation is detected, the touch parameter comprising a touch coordinate and / or a touch area; and performing coordinate stretching on the touch coordinate of the touch point when the touch parameter satisfies a preset stretching condition, to obtain a reported coordinate of the touch point. The distance between the reported coordinate of the touch point and a real coordinate is less than a distance threshold. The touch parameter satisfying the preset stretching condition comprises: the touch coordinate being in a preset edge region of an electronic device, and / or the touch area being less than a touch area threshold. The method can improve the reporting accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and in particular to a touch reporting method, apparatus, device and storage medium. Background Technology

[0002] With the rapid development of touch screen technology, the application fields of touch screens are becoming wider and wider. How to improve the accuracy of touch screen reporting has become a technical problem that the industry urgently needs to solve. Summary of the Invention

[0003] This application provides a touch-based reporting method, apparatus, device, and storage medium to improve reporting accuracy. 。

[0004] A first aspect of this application provides a touch reporting method, the method comprising:

[0005] When a swipe operation is detected, the touch parameters of the touch point are determined, including touch coordinates and / or touch area;

[0006] When the touch parameters meet the preset stretching conditions, the touch coordinates of the touch point are stretched to obtain the reported coordinates of the touch point. The distance between the reported coordinates and the actual coordinates of the touch point is less than a distance threshold. The touch parameters meeting the preset stretching conditions include: the touch coordinates are located in a preset edge area of ​​the electronic device, and / or the touch area is less than a touch area threshold.

[0007] A second aspect of this application provides a touch-sensitive reporting device, the device comprising:

[0008] The parameter acquisition unit is used to determine the touch parameters of the touch point when a sliding operation is detected. The touch parameters include touch coordinates and / or touch area.

[0009] The coordinate stretching unit is used to stretch the touch coordinates of the touch point when the touch parameters meet the preset stretching conditions, so as to obtain the reported coordinates of the touch point. The distance between the reported coordinates and the actual coordinates of the touch point is less than a distance threshold. The touch parameters meeting the preset stretching conditions include: the touch coordinates are located in a preset edge area of ​​the electronic device, and / or the touch area is less than a touch area threshold.

[0010] A third aspect of this application provides an electronic device, including:

[0011] Memory containing executable program code;

[0012] and the processor coupled to the memory;

[0013] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method as described in the first aspect of the embodiments of this application.

[0014] A fourth aspect of this application provides a computer-readable storage medium having executable program code stored thereon, wherein when the executable program code is executed by a processor, it implements the method described in the first aspect of this application.

[0015] The fifth aspect of this application discloses a computer program product that, when run on a computer, causes the computer to execute the method described in the first aspect of this application.

[0016] The sixth aspect of this application discloses an application publishing platform for publishing computer program products, wherein when the computer program product is run on a computer, the computer executes the method described in the first aspect of this application.

[0017] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:

[0018] In this embodiment, when a swipe operation is detected, touch parameters of the touch point are determined, including touch coordinates and / or touch area. When the touch parameters meet a preset stretching condition, the touch coordinates of the touch point are stretched to obtain the reported coordinates of the touch point. The distance between the reported coordinates and the actual coordinates of the touch point is less than a distance threshold. Meeting the preset stretching condition includes: the touch coordinates being located in a preset edge region of the electronic device, and / or the touch area being less than a touch area threshold.

[0019] By implementing this method, when a sliding operation is detected, the touch parameters of the touch point are first obtained, and when the touch parameters of the touch point meet the preset stretching conditions, the coordinates of the touch point are stretched to obtain the reported coordinates of the touch point. This can effectively reduce the distance between the reported coordinates and the actual coordinates of the touch point, and further improve the reporting accuracy of the touch point. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments and the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application, and other drawings can be obtained based on these drawings.

[0021] Figure 1A This is a scene illustration of the touch reporting method disclosed in the embodiments of this application;

[0022] Figure 1BThis is another scenario illustration of the touch reporting method disclosed in the embodiments of this application;

[0023] Figure 1C This is an illustration of the preset edge region of the electronic device disclosed in the embodiments of this application;

[0024] Figure 2 This is a flowchart illustrating a touch reporting method disclosed in an embodiment of this application;

[0025] Figure 3 This is a schematic diagram of the preset direction disclosed in the embodiments of this application;

[0026] Figure 4 This is another flowchart illustrating the touch reporting method disclosed in the embodiments of this application;

[0027] Figure 5A This is an illustration of a reporting response disclosed in an embodiment of this application;

[0028] Figure 5B This is another illustration of the reporting response disclosed in the embodiments of this application;

[0029] Figure 6 This is another flowchart illustrating the touch reporting method disclosed in the embodiments of this application;

[0030] Figure 7 This is a diagram illustrating the system architecture of an electronic device disclosed in an embodiment of this application;

[0031] Figure 8 This is another flowchart illustrating the touch reporting method disclosed in the embodiments of this application;

[0032] Figure 9 This is a structural illustration of a touch reporting device disclosed in an embodiment of this application;

[0033] Figure 10 This is a structural illustration of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0034] This application provides a touch-based reporting method, apparatus, device, and storage medium that can improve reporting accuracy.

[0035] To enable those skilled in the art to better understand the present application, the technical solutions of the embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. All embodiments based on the present application should fall within the scope of protection of the present application.

[0036] It should be noted that, in this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0037] "At least one" means one or more, while "more" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0038] Please see Figure 1A , Figure 1A This is a scene illustration of the touch reporting method disclosed in the embodiments of this application. For example... Figure 1A The scene illustration shown includes an electronic device 10 and a stylus 20. It is understood that... Figure 1A The scene shown indicates that the user touches the display screen of the electronic device 10 with the stylus 20.

[0039] Please see Figure 1B , Figure 1B This is another scenario illustration of the touch reporting method disclosed in the embodiments of this application. For example... Figure 1B The scene illustration shown includes an electronic device 10 and a user's finger 20. It is understandable that... Figure 1B The scene shown illustrates a user touching the display screen of electronic device 10 with their finger.

[0040] Among them, electronic device 10 may include general handheld screen electronic devices, such as mobile phones, smartphones, portable terminals, terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), laptops, notebooks, wireless broadband (Wibro) terminals, tablet computers (PCs), smart PCs, point of sales (POS) terminals, and in-vehicle computers, etc.

[0041] Electronic device 10 may also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user's body or integrated into the user's clothing or accessories. Wearable devices are not just hardware devices; they can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as computing, positioning, and alarm functions. They can also connect to mobile phones and various terminals. Wearable devices can include, but are not limited to, wrist-supported devices (such as watches, wristbands, etc.), foot-supported devices (such as shoes, socks, or other leg-wearing products), head-supported devices (such as glasses, helmets, headbands, etc.), as well as smart clothing, backpacks, canes, accessories, and other non-mainstream product forms.

[0042] As can be seen, most electronic devices 10 have display screens that support touch control via stylus and user's finger (as shown above). Figure 1A-1B As shown in the scenario, improving the accuracy of touch reporting has become a pressing technical problem in the industry.

[0043] In the technical solution of this application, when a sliding operation is detected, the touch parameters of the touch point are first obtained, and when the touch parameters of the touch point meet the preset stretching conditions, the coordinates of the touch point are stretched to obtain the reported coordinates of the touch point. This can reduce the distance between the reported coordinates of the touch point and the actual coordinates of the touch point, and further improve the reporting accuracy of the touch point.

[0044] Among them, the touch parameters of the touch point satisfy the preset stretching conditions, including: the touch coordinates of the touch point are located in the preset edge area of ​​the electronic device, and / or the touch area of ​​the touch point is less than the touch area threshold.

[0045] The preset edge region of electronic device 10 can refer to the area near any side of electronic device 10. For example, please refer to... Figure 1C , Figure 1C This is an illustration of a preset edge region of the electronic device disclosed in the embodiments of this application. For example... Figure 1C The diagram shows edge region 1, edge region 2, edge region 3, and edge region 4.

[0046] The display screen of the electronic device 10 can be a capacitive touchscreen, and the touch coordinates can be determined based on the coordinates of the target channel node and a preset algorithm. The target channel node refers to a channel node on the display screen of the electronic device whose capacitance change is greater than a threshold. The preset algorithm may include, but is not limited to, the centroid algorithm and the triangulation algorithm.

[0047] The touch area can refer to the area of ​​the region composed of target channel nodes.

[0048] A capacitive touchscreen primarily consists of a transmitting channel and a receiving channel. The capacitance data between the transmitting and receiving channels and ground is self-capacitive data, while the data between the transmitting and receiving channels is mutual-capacitive data. The mutual-capacitive data is used to determine whether a finger is pressed, moved, or released. The self-capacitive data is used to determine other auxiliary functions, such as proximity sensing.

[0049] It should be noted that when the touch coordinates of a touch point are within a preset edge area of ​​the electronic device, stretching the touch coordinates can overcome the problem of a large discrepancy between the actual swipe distance and the detected swipe distance caused by the curvature of the curved screen edges or missing edge material. When the touch area of ​​a touch point is smaller than a touch area threshold, stretching the touch coordinates can reduce the problem of poor touch point reporting accuracy when the swipe operation is about to end.

[0050] The implementing entity in the technical solution of this application can be an electronic device 10. The technical solution of this application will be further described below with reference to specific embodiments.

[0051] Please see Figure 2 , Figure 2 This is a flowchart illustrating a touch reporting method disclosed in an embodiment of this application. Figure 2 The touch reporting method shown may include the following steps:

[0052] 201. When an electronic device detects a sliding operation, it determines the touch parameters of the touch point, including the touch coordinates and / or the touch area.

[0053] In the embodiments of this application, the sliding operation may include, but is not limited to, straight sliding operation and curved sliding operation.

[0054] In step 201, the touch point refers to a non-initial touch point, meaning that the touch point is not the initial touch point for the swipe operation. The touch point can include the current touch point or historical touch points; this embodiment does not limit the scope. The current touch point refers to the touch point at the current moment, and historical touch points refer to touch points prior to the current moment.

[0055] It is understood that the touch reporting method disclosed in the embodiments of this application can be real-time reporting, that is, when a touch point is detected, the reporting coordinates of the touch point are reported immediately; or the reporting coordinates of each touch point are reported sequentially after a preset number of touch points are detected; or the reporting coordinates of each touch point are reported sequentially when the touch operation is detected to have ended.

[0056] 202. When the touch parameters meet the preset stretching conditions, the electronic device stretches the touch coordinates of the touch point to obtain the reported coordinates of the touch point.

[0057] It should be noted that the explanation of the touch coordinates, touch area, and touch parameters meeting the preset stretching conditions can be found in the above description, and will not be repeated here.

[0058] Specifically, the distance between the reported coordinates and the actual coordinates of the touch point is less than a distance threshold. This distance threshold can be obtained through extensive experimentation. Alternatively, the distance threshold can be the distance between the reported and actual coordinates of the touch point calculated when the touch coordinates are not stretched.

[0059] In some embodiments, the electronic device determines the touch parameters of the touch point, which may include:

[0060] The electronic device determines whether the currently foreground application is a preset application.

[0061] If the foreground application is a preset application, the electronic device determines the touch parameters of the touch point.

[0062] In this context, "foreground application" refers to an application running in the foreground of an electronic device. "Preset application" can refer to applications with high real-time requirements, such as games and social media applications.

[0063] By implementing this method, when an electronic device is running an application with high real-time requirements in the foreground, the electronic device can determine whether the touch point meets the stretching condition based on the touch parameters of the touch point, and if so, stretch the touch coordinates of the touch point, which helps to improve the response speed of the application.

[0064] In some embodiments, when the touch parameters meet preset stretching conditions, the electronic device can also switch the current TP sampling frequency to a target TP sampling frequency, where the target TP sampling frequency is greater than the current TP sampling frequency. The TP sampling frequency refers to the number of times the touch input is scanned per unit time; a higher TP sampling frequency results in better responsiveness.

[0065] It should be noted that the TP sampling frequency is often higher than the reporting frequency, which refers to the frequency at which the coordinates of the touch point are reported. For example, the TP sampling frequency is 400 kHz, while the reporting frequency is 100-200 Hz.

[0066] In some embodiments, the electronic device may include multiple preset TP sampling frequencies, and before switching the current TP sampling frequency to the target TP sampling frequency, it may further include:

[0067] The electronic device determines at least one preset TP sampling frequency that is greater than the current TP sampling frequency from a plurality of preset TP sampling frequencies, and uses any one of the preset TP sampling frequencies as the target TP sampling frequency.

[0068] or,

[0069] The electronic device determines at least one preset TP sampling frequency that is greater than the current TP sampling frequency from a plurality of preset TP sampling frequencies, and selects the preset TP sampling frequency that matches the current battery level of the electronic device from among the at least one preset TP sampling frequencies as the target TP sampling frequency. The current battery level is proportional to the sampling frequency; the higher the current battery level, the higher the target TP sampling frequency.

[0070] By implementing this method, when the touch parameters meet the preset stretching conditions, the accuracy of subsequent touch reporting can be further improved by increasing the TP sampling frequency.

[0071] In some embodiments, when the sliding operation terminates, the electronic device can also acquire sliding parameters, and respond to the sliding operation when the sliding parameters meet preset sliding parameters. The sliding parameters may include at least one of the following: sliding trajectory, sliding speed, and sliding distance.

[0072] An electronic device responding to a sliding operation may include: generating an operation command corresponding to the sliding operation and performing the corresponding operation according to the instruction of the operation command.

[0073] In some embodiments, when the sliding operation is a non-horizontal sliding operation or a non-vertical sliding operation (such as a curved sliding operation), the sliding parameters may include the sliding trajectory.

[0074] When the sliding operation is a horizontal sliding operation or a vertical sliding operation, the sliding operation includes sliding speed and / or sliding distance.

[0075] In some embodiments, when the sliding operation includes a horizontal sliding operation or a vertical sliding operation, the electronic device may also calculate the sliding parameters of the sliding operation by using the reported coordinates of the last touch point and the touch coordinates of the first touch point when the sliding operation ends; and respond to the sliding operation when the sliding parameters meet the first preset sliding parameters.

[0076] It should be noted that "horizontal" and "vertical" refer to the current orientation of the electronic device. The horizontal sliding operation can proceed from the first vertical edge to the second vertical edge, or from the second vertical edge to the first vertical edge. Similarly, the vertical sliding operation can proceed from the first horizontal edge to the second horizontal edge, or from the second horizontal edge to the first horizontal edge.

[0077] It should be noted that the horizontal side edge refers to the side edge that is parallel to the horizontal plane, while the vertical side edge refers to the side edge that is perpendicular to the horizontal plane.

[0078] It is understandable that, in relation to the current posture of the electronic device, when the user is facing the display screen of the electronic device, the swiping operation can include any of the following: swiping up, swiping down, swiping left, and swiping right.

[0079] The following describes the case where the sliding operation is a horizontal sliding operation in a preset direction. This preset direction refers to either the direction from the first vertical side edge to the second vertical side edge, or the direction from the second vertical side edge to the first vertical side edge.

[0080] In some embodiments, the touch parameters include touch coordinates, and the electronic device can also determine whether the sliding operation is a horizontal sliding operation in a preset direction; wherein, the preset direction refers to the direction from the center of the electronic device to the vertical side edge; if the sliding operation is a horizontal sliding operation in the preset direction, then it is determined whether the touch coordinates are in a preset edge area of ​​the electronic device.

[0081] Furthermore, when the sliding operation ends, the electronic device can use the reported coordinates of the last touch point and the touch coordinates of the first touch point to calculate the sliding parameters of the sliding operation; when the sliding parameters meet the second preset sliding parameters, the page turning operation is executed, which can improve the success rate of sliding page turning.

[0082] In some embodiments, if the abscissa of the channel node closer to the first vertical side edge is smaller, when a sliding operation is detected, the electronic device determines whether the sliding operation is a horizontal sliding operation in a preset direction, which may include:

[0083] If the horizontal coordinate of the touch point within a preset number of frames continuously increases, and the vertical coordinate of the touch point within the preset number of frames is within a preset vertical coordinate range, then the determined sliding operation is a horizontal sliding operation from the first vertical side edge to the second vertical edge.

[0084] If the horizontal coordinate of the touch point within a preset number of frames continuously decreases, and the vertical coordinate of the touch point within the preset number of frames is within a preset vertical coordinate range, then the determined sliding operation is a horizontal sliding operation from the second vertical side edge to the first vertical edge.

[0085] For an explanation of the preset direction, please refer to the following: Figure 3 Please see. Figure 3 , Figure 3 This is a schematic diagram of the preset direction disclosed in the embodiments of this application, such as... Figure 3 The diagram includes direction 1 and direction 2. Direction 1 refers to pointing from left to right, and direction 2 refers to pointing from right to left.

[0086] By implementing the above method, when a sliding operation is detected, the touch parameters of the touch point are first obtained, and when the touch parameters of the touch point meet the preset stretching conditions, the coordinates of the touch point are stretched to obtain the reported coordinates of the touch point. This can effectively reduce the distance between the reported coordinates and the actual coordinates of the touch point, and further improve the reporting accuracy of the touch point.

[0087] Please see Figure 4 , Figure 4 This is another flowchart illustrating the touch reporting method disclosed in the embodiments of this application. For example... Figure 4 The touch reporting method shown may include the following steps:

[0088] 401. When a swipe operation is detected, the electronic device determines the touch parameters of the touch point, including touch coordinates and / or touch area.

[0089] For a detailed explanation of step 401, please refer to the description below step 201 above, which will not be repeated here.

[0090] 402. Electronic devices determine whether the touch parameters meet the preset stretching conditions.

[0091] If the judgment result of step 402 is yes, then step 403 is executed; if the judgment result of step 402 is no, then step 404 is executed.

[0092] It should be noted that the explanation of the preset stretching conditions can be found in step 202 above, and will not be repeated here.

[0093] 403. The electronic device acquires the first reporting strategy corresponding to the condition that the preset stretching conditions are met, and uses the first reporting strategy to stretch the touch coordinates of the touch point to obtain the reported coordinates of the touch point.

[0094] 404. The electronic device uses a second reporting strategy to process the touch coordinates of the touch point in order to obtain the reported coordinates of the touch point. The stretching effect corresponding to the second reporting strategy is less than the stretching effect corresponding to the first reporting strategy.

[0095] It is understandable that the electronic device is pre-set with a first reporting strategy corresponding to the case where the preset stretching conditions are met, and a second reporting strategy corresponding to the case where the preset stretching conditions are not met.

[0096] In some embodiments, the first reporting strategy may include a first filtering strategy and / or a first locking strategy, and correspondingly, the second reporting strategy includes a second filtering strategy and / or a second locking strategy. Wherein, the preset filtering coefficient corresponding to the touch point in the first filtering strategy is greater than the preset filtering coefficient corresponding to the touch point in the second filtering strategy, and the locking distance threshold in the first locking strategy is less than the locking distance threshold corresponding to the second locking strategy.

[0097] In some embodiments, the first / second reporting strategy may further include a reporting frequency, wherein the reporting frequency corresponding to the first reporting strategy is greater than the reporting frequency corresponding to the second reporting strategy.

[0098] In some embodiments, the first reporting strategy includes a first filtering strategy and a first locking strategy. The electronic device uses the first reporting strategy to stretch the touch coordinates of the touch point to obtain the reported coordinates of the touch point, which may include:

[0099] The electronic device calculates the lock point coordinates of the touch point based on the first lock point strategy and the touch coordinates of the touch point;

[0100] The electronic device uses the first filtering strategy and the lock point coordinates to calculate the reported coordinates of the touch point.

[0101] The first locking point strategy may include: when the coordinate distance between the touch coordinates of the above-mentioned touch point and the reported coordinates of the previous touch point is greater than the locking point distance threshold, determining the locking point coordinates of the above-mentioned touch point as the touch coordinates of the above-mentioned touch point; and when the coordinate distance between the touch coordinates of the above-mentioned touch point and the reported coordinates of the previous touch point is less than or equal to the locking point distance threshold, determining the locking point coordinates of the above-mentioned touch point as the reported coordinates of the previous touch point.

[0102] It should be noted that the previous touch point is relative to the touch point mentioned above.

[0103] For example, the touch coordinates of the above touch point are represented as (x2, y2), the reported coordinates of the previous touch point are represented as (x1, y1), and the coordinate distance D1 between the touch coordinates of the above touch point and the reported coordinates of the previous touch point is the square root of (x2-x1)^+(y2-y1)^.

[0104] The first filtering strategy may include: the reported coordinates of the aforementioned touch points can be obtained by filtering the reported coordinates of historical touch points and the lock point coordinates of the aforementioned touch points. Historical touch points may include the previous touch point and the touch point before that. The filtering coefficients corresponding to the first filtering strategy may include the filtering coefficients corresponding to the touch point before that, the filtering coefficients corresponding to the previous touch point, and the filtering coefficients corresponding to the lock point coordinates of the aforementioned touch points.

[0105] Filtering the reported coordinates of historical touch points and the lock point coordinates of the aforementioned touch points can refer to filtering the horizontal coordinates of the reported coordinates of historical touch points and the horizontal coordinates of the lock point coordinates of the aforementioned touch points, as well as filtering the vertical coordinates of the reported coordinates of historical touch points and the vertical coordinates of the lock point coordinates of the aforementioned touch points.

[0106] Filtering the x-coordinates of the reported coordinates of historical touch points and the x-coordinates of the lock point coordinates of the aforementioned touch points can include:

[0107] The first calculated value is obtained by multiplying the x-coordinate of the reported coordinates of the previous touch point by the filtering coefficient corresponding to the previous touch point.

[0108] The second calculated value is obtained by multiplying the x-coordinate of the reported coordinates of the previous touch point by the filtering coefficient corresponding to the previous touch point.

[0109] The third calculated value is obtained by multiplying the x-coordinate of the above-mentioned touch point's lock point coordinates by the corresponding filter coefficient of the above-mentioned touch point;

[0110] The first, second, and third calculated values ​​are summed to obtain the x-coordinate of the reported coordinates of the aforementioned touch point.

[0111] For example, the x-coordinate of the reported coordinates of the above touch point is X = A / 15*X1 + B / 15*X2 + C / 15*X3; where: A+B+C = 15, X1 represents the x-coordinate of the lock point coordinate of the above touch point, X2 represents the x-coordinate of the reported coordinate of the previous touch point, and X3 represents the x-coordinate of the reported coordinate of the touch point before that.

[0112] Filtering the ordinate of the reported coordinates of historical touch points and the ordinate of the lock point coordinates of the aforementioned touch points can include:

[0113] The fourth calculated value is obtained by multiplying the ordinate of the reported coordinates of the previous touch point by the filtering coefficient corresponding to the previous touch point.

[0114] The fifth calculated value is obtained by multiplying the ordinate of the reported coordinates of the previous touch point by the filtering coefficient corresponding to the previous touch point.

[0115] The sixth calculated value is obtained by multiplying the ordinate of the above-mentioned touch point's lock point coordinates by the corresponding filter coefficient of the above-mentioned touch point;

[0116] By summing the fourth, fifth, and sixth calculated values, the ordinate of the reported coordinates of the aforementioned touch point is obtained.

[0117] For example, the horizontal coordinate of the reported coordinates of the above touch point is Y = A / 15*Y1 + B / 15*Y2 + C / 15*Y3; where A + B + C = 15; Y1 represents the vertical coordinate of the lock point coordinate of the above touch point, Y2 represents the vertical coordinate of the reported coordinate of the previous touch point, and Y3 represents the vertical coordinate of the reported coordinate of the touch point before that.

[0118] It should be noted that the larger A is, the faster the reporting response; the smaller A is, the slower the reporting response.

[0119] In some embodiments, when the first reporting strategy includes a first locking strategy, the locking coordinates of the touch point are the reported coordinates of the touch point. The calculation process of the reported coordinates of the touch point can be found in the calculation process of the locking coordinates of the touch point, which will not be repeated here.

[0120] In some embodiments, when the first reporting strategy includes a first filtering strategy, the reported coordinates of the aforementioned touch points can be obtained by filtering the reported coordinates of historical touch points and the touch coordinates of the aforementioned touch points. For details regarding the filtering of the reported coordinates of historical touch points and the touch coordinates of the aforementioned touch points, please refer to the above description of filtering the reported coordinates of historical touch points and the lock point coordinates of the aforementioned touch points; it will not be repeated here.

[0121] For example, the locking distance threshold of the first locking strategy in the first reporting strategy is 4 mm, and the locking distance threshold of the second locking strategy in the second reporting strategy is 5 mm. The preset filtering coefficient corresponding to the touch point of the first filtering strategy in the first reporting strategy is 10, and the preset filtering coefficient A corresponding to the touch point of the second filtering strategy in the second reporting strategy is 5.

[0122] For example, the first filtering strategy is: X = 10 / 15*x1 + 5 / 15*x2 + 0 / 15*x3. The corresponding reporting point response diagram can be found in [reference needed]. Figure 5AThe second filtering strategy is: X = 5 / 15*x1 + 10 / 15*x2 + 0 / 15*x3. The corresponding reporting point response diagram can be found in [reference needed]. Figure 5B .like Figures 5A-5B As shown, compared to Figure 5B , Figure 5A The reported point response is faster, but the jitter is more severe.

[0123] Both the first and second filtering strategies mentioned above are weighted average algorithms.

[0124] In some embodiments, the first filtering strategy may be linear least squares or Bezier interpolation iteration, and the second filtering strategy may be a weighted average algorithm.

[0125] By implementing the above method, when a sliding operation is detected, the touch parameters of the touch point are obtained. When the touch parameters of the touch point meet the preset stretching conditions, the coordinates of the touch point are stretched using the first reporting strategy to obtain the reported coordinates of the touch point. When the touch parameters of the touch point do not meet the preset stretching conditions, the coordinates of the touch point are stretched using the second reporting strategy to obtain the reported coordinates of the touch point. This realizes the dynamic switching of the reporting strategy and further improves the reporting accuracy of the touch point.

[0126] Please see Figure 6 , Figure 6 This is another flowchart illustrating the touch reporting method disclosed in the embodiments of this application. For example... Figure 6 The touch reporting method shown may include the following steps:

[0127] 601. When a swipe operation is detected, the electronic device determines the touch parameters of the touch point, including touch coordinates and / or touch area.

[0128] For a detailed explanation of step 601, please refer to the description below step 201 above, which will not be repeated here.

[0129] 602. When the touch parameters meet the preset stretching conditions, the electronic device uses a specified reporting strategy to process the touch coordinates of the touch point in order to obtain the initial coordinates of the touch point.

[0130] The description of the designated reporting strategy can be found in the explanation of the first / second reporting strategies mentioned above, and will not be repeated here. The designated reporting strategy can refer to the only preset reporting strategy of the electronic device.

[0131] 603. The electronic device stretches the initial coordinates according to the preset stretching coefficient to obtain the reported coordinates of the touch point.

[0132] The electronic device fits the sliding trajectory of the sliding operation based on the historical touch points corresponding to the above touch points and the initial coordinates of the above touch points;

[0133] On the sliding trajectory, the initial coordinates are stretched according to the preset stretching coefficient to obtain the reported coordinates of the touch point.

[0134] Specifically, when the sliding operation is a linear sliding operation, the reported coordinates of the touch point are farther away from the initial touch point of the linear sliding operation compared to the initial coordinates of the touch point.

[0135] When the touch parameters do not meet the preset stretching conditions, the electronic device can directly use the initial coordinates obtained in step 602 as the reporting coordinates of the touch points and report them to the application layer.

[0136] By implementing the above method, when a sliding operation is detected, the touch parameters of the touch point are obtained. When the touch parameters of the touch point meet the preset stretching conditions, the initial coordinates are first calculated using the preset touch reporting method, and then the initial coordinates are stretched to obtain the reported coordinates of the touch point, which further improves the reporting accuracy of the touch point.

[0137] In some embodiments, the electronic device may include a touchscreen system and a terminal system, and the above-described touch reporting method may be implemented through interaction between the touchscreen system and the terminal system. Please refer to... Figure 7 , Figure 7 This is a diagram illustrating the system architecture of an electronic device disclosed in an embodiment of this application. For example... Figure 7 The system architecture shown may include a touch screen system 701 and a terminal system 702.

[0138] It should be noted that the touchscreen system 701 can trigger an interrupt signal via the INT pin. The terminal system 702 can drive the touchscreen system 701 via the I2C / SPI interface. The touchscreen system 701 can have its own memory and processor, and can also perform data processing.

[0139] The terminal system 702 is used to determine the touch parameters of the touch point, and to determine whether the touch parameters of the touch point meet the preset stretching conditions. When the preset stretching conditions are met, the terminal system 702 sends a target instruction to the touch screen system 701 indicating that the touch parameters of the touch point meet the preset stretching conditions. When the touch screen system 701 receives the target instruction, it stretches the touch coordinates of the touch point to obtain the reported coordinates of the touch point.

[0140] The touch screen system 701 may include a locking module and a sliding filter module. The locking module is used to execute a locking strategy (such as the first locking strategy or the second locking strategy mentioned above), and the sliding filter module is used to execute a filtering strategy (such as the first filtering strategy or the second filtering strategy mentioned above).

[0141] For example, the sliding operation is a horizontal sliding operation in a preset direction. The aforementioned touch point is the current touch point, and the touch parameters of the current touch point include touch coordinates. The preset reporting strategy of the electronic device includes a first reporting strategy and a second reporting strategy. The stretching effect corresponding to the first reporting strategy is greater than the stretching effect of the second reporting strategy. The first reporting strategy includes a first locking strategy and a first filtering strategy, and the second reporting strategy includes a second locking strategy and a second filtering strategy. The following is combined with... Figure 7 The system architecture of the electronic device shown is illustrated below, along with an explanation of the touch reporting method corresponding to this example. Figure 8 , Figure 8 This is another flowchart illustrating the touch reporting method disclosed in the embodiments of this application, as follows: Figure 8 The touch reporting method shown may include the following steps:

[0142] 801. When the terminal system detects a sliding operation, it determines whether the direction of the sliding operation is a preset direction.

[0143] If the result of step 801 is yes, then continue to step 802; otherwise, proceed to steps 805-806.

[0144] 802. The terminal system determines whether the touch coordinates of the current touch point are within the preset edge area of ​​the electronic device. If yes, continue to execute steps 803-804; otherwise, execute steps 805-806.

[0145] 803. The terminal system sends the first instruction to the touch screen system.

[0146] 804. In response to the first instruction, the touch screen system executes the first locking strategy through the locking module and the first filtering strategy through the sliding filtering module to process the touch coordinates of the current touch point and obtain the reported coordinates of the current touch point.

[0147] 805. The terminal system sends a second instruction to the touchscreen system.

[0148] 806. In response to the second instruction, the touch screen system executes the second locking strategy through the locking module and the second filtering strategy through the sliding filtering module to process the touch coordinates of the current touch point and obtain the reported coordinates of the current touch point.

[0149] Please see Figure 9 , Figure 9 This is a structural illustration of a touch reporting device disclosed in an embodiment of this application. Figure 9 The touch reporting device shown may include a parameter acquisition unit 901 and a coordinate stretching unit 902.

[0150] in:

[0151] The parameter acquisition unit 901 is used to determine the touch parameters of the touch point when a sliding operation is detected. The touch parameters include touch coordinates and / or touch area.

[0152] The coordinate stretching unit 902 is used to stretch the touch coordinates of the touch point when the touch parameters meet the preset stretching conditions, so as to obtain the reported coordinates of the touch point. The distance between the reported coordinates and the actual coordinates of the touch point is less than a distance threshold. The touch parameters meeting the preset stretching conditions include: the touch coordinates are located in the preset edge area of ​​the electronic device, and / or the touch area is less than the touch area threshold.

[0153] In some embodiments, the coordinate stretching unit 902 is used to stretch the touch coordinates of the touch point to obtain the reported coordinates of the touch point. Specifically, this may include:

[0154] The coordinate stretching unit 902 is used to obtain the first reporting strategy corresponding to the condition that satisfies the preset stretching conditions.

[0155] Additionally, using the first reporting strategy, the touch coordinates of the touch points are stretched to obtain the reported coordinates of the touch points.

[0156] In some embodiments, the coordinate stretching unit 902 is further configured to process the touch coordinates of the touch point using a second reporting strategy when the touch parameters do not meet the preset stretching conditions, so as to obtain the reported coordinates of the touch point. The stretching effect corresponding to the second reporting strategy is less than the stretching effect corresponding to the first reporting strategy.

[0157] In some embodiments, the first reporting strategy includes a first filtering strategy and / or a first locking strategy, and correspondingly, the second reporting strategy includes a second filtering strategy and / or a second locking strategy.

[0158] In the first filtering strategy, the preset filtering coefficient corresponding to the touch point is greater than the preset filtering coefficient corresponding to the touch point in the second filtering strategy, and the lock point distance threshold in the first lock point strategy is less than the lock point distance threshold corresponding to the second lock point strategy.

[0159] In some embodiments, the first reporting strategy includes a first filtering strategy and a first locking strategy. The coordinate stretching unit 902 is used to stretch the touch coordinates of the touch point using the first reporting strategy to obtain the reported coordinates of the touch point. Specifically, the method may include:

[0160] The coordinate stretching unit 902 is used to calculate the lock point coordinates of the touch point based on the first lock point strategy and the touch coordinates of the touch point; and to calculate the reported coordinates of the touch point using the first filtering strategy and the lock point coordinates.

[0161] In some embodiments, the coordinate stretching unit 902 is used to stretch the touch coordinates of the touch point to obtain the reported coordinates of the touch point. Specifically, this may include:

[0162] The coordinate stretching unit 902 is used to process the touch coordinates of the touch point using a specified reporting strategy to obtain the initial coordinates of the touch point;

[0163] Additionally, the initial coordinates are stretched according to a preset stretching coefficient to obtain the reported coordinates of the touch point.

[0164] In some embodiments, the sliding operation includes a horizontal sliding operation or a vertical sliding operation. Figure 9 The touch reporting device shown may also include a slide response unit ( Figure 9 (Not shown), a sliding response unit is used to calculate the sliding parameters of the sliding operation when the sliding operation ends, using the reported coordinates of the last touch point and the touch coordinates of the first touch point; and to respond to the sliding operation when the sliding parameters meet the first preset sliding parameters.

[0165] In some embodiments, the touch parameters include touch coordinates, and the parameter acquisition unit 901 is further used to determine whether the sliding operation is a horizontal sliding operation in a preset direction; wherein, the preset direction refers to the direction from the center of the electronic device to the vertical side edge;

[0166] Additionally, if the swipe operation is a horizontal swipe operation in a preset direction, it is determined whether the touch coordinates are within a preset edge area of ​​the electronic device.

[0167] Furthermore, the sliding response unit is used to calculate the sliding parameters of the sliding operation when the sliding operation ends, using the reported coordinates of the last touch point and the touch coordinates of the first touch point; and to perform a page-turning operation when the sliding parameters meet the second preset sliding parameters.

[0168] In some embodiments, the parameter acquisition unit 901 may determine the touch parameters of the touch point in a specific manner, including: the parameter acquisition unit 901 determining whether the current foreground application of the electronic device is a preset application; and if the current foreground application is a preset application, determining the touch parameters of the touch point.

[0169] Please see Figure 10 , Figure 10 This is a structural illustration of an electronic device disclosed in an embodiment of this application. For example... Figure 10 The electronic device shown may include components such as a processor 1010, a memory 1020, a display unit 1030, an input unit 1040, a sensor 1050, and an audio circuit 1060.

[0170] The processor 1010 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1020, and by calling data stored in the memory 1020, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor, which mainly handles operating devices, user interfaces, and application programs. Of course, it may also include other processors, which are not listed here.

[0171] The memory 1020 can be used to store software programs and modules. The processor 1010 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area. The program storage area may store the operating device and application programs required for at least one function (such as sound playback function, image playback function, etc.); the data storage area may store data created according to the use of the electronic device (such as audio data, telephone book, etc.). In addition, the memory 1020 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0172] The display unit 1030 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device. The display unit 1030 may include a display panel, optionally configured as a Liquid Crystal Display (LCD), Organic Light-Emitting Diode (OLED), or similar display panel. Furthermore, a touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 1010 to determine the type of touch event. Subsequently, the processor 1010 provides corresponding visual output on the display panel according to the type of touch event. The touch panel and the display panel are not located on the same surface. Figure 10 As shown above, the touch panel and display panel can be used as two separate components to realize the input and output functions of the electronic device, or they can be integrated to realize the input and output functions of the electronic device.

[0173] The input unit 1040 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the input unit 1040 may include a touch panel and other input devices. A touch panel, also known as a touchscreen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), and drive corresponding connection devices according to a pre-set program. Furthermore, touch panels can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 1040 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control buttons, power buttons, etc.), trackballs, joysticks, etc.

[0174] Electronic devices may also include at least one sensor 1050, such as a magnetometer, gyroscope, motion sensor, and other sensors. Specifically, a magnetometer is used to determine the orientation of the electronic device, and a gyroscope can be used to determine the motion posture of the electronic device, which can be used for image stabilization, navigation, and motion-sensing game scenarios. As a type of motion sensor, an accelerometer can detect the magnitude of acceleration in various directions and, when stationary, can detect the magnitude and direction of gravity, which can be used for applications that identify the posture of the electronic device, such as landscape / portrait switching, related games, and magnetometer posture calibration. Other sensors that may be configured in electronic devices, such as pressure gauges, barometers, hygrometers, thermometers, and infrared sensors, will not be elaborated here.

[0175] The audio circuit 1060 may include a speaker and a microphone, providing an audio interface between the user and the electronic device. The audio circuit 1060 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by the audio circuit 1060, converted back into audio data, and output to the processor 1010 for processing. The audio data is then transmitted via a video circuit to, for example, another device, or output to the memory 1020 for further processing.

[0176] Although not shown, the electronic device may also include a power supply and a camera. Optionally, the camera may be positioned in the front or rear of the electronic device, and this application embodiment does not limit this.

[0177] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0178] In this embodiment of the application, the processor 1010 also has the following functions:

[0179] When a swipe operation is detected, the touch parameters of the touch point are determined, including touch coordinates and / or touch area;

[0180] When the touch parameters meet the preset stretching conditions, the touch coordinates of the touch point are stretched to obtain the reported coordinates of the touch point. The distance between the reported coordinates and the actual coordinates of the touch point is less than a distance threshold. The touch parameters meeting the preset stretching conditions include: the touch coordinates are located in the preset edge area of ​​the electronic device, and / or the touch area is less than the touch area threshold.

[0181] In this embodiment of the application, the processor 1010 also has the following functions:

[0182] Obtain the first reporting strategy corresponding to the condition that satisfies the preset stretching conditions;

[0183] Using the first reporting strategy, the touch coordinates of the touch points are stretched to obtain the reported coordinates of the touch points.

[0184] In this embodiment of the application, the processor 1010 also has the following functions:

[0185] When the touch parameters do not meet the preset stretching conditions, the touch coordinates of the touch point are processed using the second reporting strategy to obtain the reported coordinates of the touch point. The stretching effect corresponding to the second reporting strategy is less than the stretching effect corresponding to the first reporting strategy.

[0186] In this embodiment of the application, the first reporting strategy includes a first filtering strategy and / or a first locking strategy, and correspondingly, the second reporting strategy includes a second filtering strategy and / or a second locking strategy.

[0187] In the first filtering strategy, the preset filtering coefficient corresponding to the touch point is greater than the preset filtering coefficient corresponding to the touch point in the second filtering strategy, and the lock point distance threshold in the first lock point strategy is less than the lock point distance threshold corresponding to the second lock point strategy.

[0188] In this embodiment of the application, the processor 1010 also has the following functions:

[0189] Calculate the lock point coordinates of the touch point based on the first lock point strategy and the touch coordinates of the touch point;

[0190] The reported coordinates of the touch point are calculated using the first filtering strategy and the lock point coordinates.

[0191] In this embodiment of the application, the processor 1010 also has the following functions:

[0192] The touch coordinates of the touch points are processed using a specified reporting strategy to obtain the initial coordinates of the touch points;

[0193] The initial coordinates are stretched according to a preset stretching coefficient to obtain the reported coordinates of the touch point.

[0194] In this embodiment of the application, the processor 1010 also has the following functions:

[0195] When the sliding operation ends, the sliding parameters of the sliding operation are calculated using the reported coordinates of the last touch point and the touch coordinates of the first touch point.

[0196] When the sliding parameters meet the first preset sliding parameters, it responds to the sliding operation.

[0197] In this embodiment of the application, the processor 1010 also has the following functions:

[0198] Determine whether the sliding operation is a horizontal sliding operation in a preset direction; where the preset direction refers to the direction from the center of the electronic device to the vertical side edge;

[0199] If the swipe operation is a horizontal swipe operation in a preset direction, then determine whether the touch coordinates are within the preset edge area of ​​the electronic device;

[0200] The method also includes:

[0201] When the sliding operation ends, the sliding parameters of the sliding operation are calculated using the reported coordinates of the last touch point and the touch coordinates of the first touch point;

[0202] When the sliding parameters meet the second preset sliding parameters, the page turning operation is performed.

[0203] In this embodiment of the application, the processor 1010 also has the following functions:

[0204] Determine whether the currently foreground application on the electronic device is a preset application;

[0205] If the foreground application is a preset application, then determine the touch parameters of the touch point.

[0206] This application discloses a computer-readable storage medium storing executable program code thereon. When the executable program code is executed by a processor, it implements the method described in the electronic device of this application.

[0207] This application discloses a computer program product that, when run on a computer, enables the computer to implement the method described by the electronic device in this application.

[0208] This application discloses an application publishing platform for publishing computer program products. When the computer program product is run on a computer, the computer enables the computer to implement the method described by the electronic device in this application.

[0209] It should be noted that the descriptions of the storage medium and device embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0210] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.

[0211] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.

[0212] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0213] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.

[0214] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.

[0215] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.

[0216] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0217] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0218] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0219] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0220] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0221] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims. 。

Claims

1. A touch-based reporting method, characterized in that, The method includes: When a swipe operation is detected, the touch parameters of the touch point are determined, including the touch area; When the touch parameters meet a preset stretching condition, a first reporting strategy corresponding to the condition is obtained. The first reporting strategy includes a first filtering strategy and a first locking strategy. The first locking strategy includes: determining the locking coordinates of the touch point as the touch coordinates of the touch point when the coordinate distance between the touch coordinates of the touch point and the reported coordinates of the previous touch point is greater than a locking distance threshold; and determining the locking coordinates of the touch point as the reported coordinates of the previous touch point when the coordinate distance is less than or equal to the locking distance threshold. The first filtering strategy includes: obtaining the reported coordinates of the touch point by filtering the reported coordinates of historical touch points and the locking coordinates of the touch point, wherein the historical touch points include the previous touch point and the touch point before that. Using the first reporting strategy, the touch coordinates of the touch point are stretched to obtain the reported coordinates of the touch point. The distance between the reported coordinates and the actual coordinates of the touch point is less than a distance threshold. The touch parameters satisfy the preset stretching conditions, including: the touch area is less than the touch area threshold.

2. The method according to claim 1, characterized in that, The method further includes: When the touch parameters do not meet the preset stretching conditions, the touch coordinates of the touch point are processed using a second reporting strategy to obtain the reported coordinates of the touch point. The stretching effect corresponding to the second reporting strategy is less than the stretching effect corresponding to the first reporting strategy.

3. The method according to claim 2, characterized in that, The second reporting strategy includes a second filtering strategy and a second locking strategy; wherein, the preset filtering coefficient corresponding to the touch point in the first filtering strategy is greater than the preset filtering coefficient corresponding to the touch point in the second filtering strategy, and the locking distance threshold in the first locking strategy is less than the locking distance threshold corresponding to the second locking strategy.

4. The method according to claim 1, characterized in that, The step of using the first reporting strategy to stretch the touch coordinates of the touch point to obtain the reported coordinates of the touch point includes: Using the first reporting strategy, the touch coordinates of the touch point are stretched to obtain the initial coordinates of the touch point; The initial coordinates are stretched according to a preset stretching coefficient to obtain the reported coordinates of the touch point.

5. The method according to any one of claims 1-4, characterized in that, The sliding operation includes a horizontal sliding operation or a vertical sliding operation, and the method further includes: When the sliding operation ends, the sliding parameters of the sliding operation are calculated using the reported coordinates of the last touch point and the touch coordinates of the first touch point; When the sliding parameters satisfy the first preset sliding parameters, the sliding operation is responded to.

6. The method according to claim 1, characterized in that, The touch parameters also include touch coordinates, and the method further includes: Determine whether the sliding operation is a horizontal sliding operation in a preset direction; wherein, the preset direction refers to the direction from the center of the electronic device to the vertical side edge; If the sliding operation is a horizontal sliding operation in the preset direction, then determine whether the touch coordinates are within the preset edge area of ​​the electronic device; The method further includes: When the sliding operation ends, the sliding parameters of the sliding operation are calculated using the reported coordinates of the last touch point and the touch coordinates of the first touch point; When the sliding parameters meet the second preset sliding parameters, the page turning operation is performed.

7. The method according to claim 1, characterized in that, The touch parameters for determining the touch point include: Determine whether the currently foreground application on the electronic device is a preset application; If the foreground application is the preset application, then the touch parameters of the touch point are determined.

8. A touch-sensitive reporting device, characterized in that, The device includes: The parameter acquisition unit is used to determine the touch parameters of the touch point when a sliding operation is detected, the touch parameters including the touch area; A coordinate stretching unit is used to obtain a first reporting strategy corresponding to the case where the touch parameters meet a preset stretching condition. The first reporting strategy includes a first filtering strategy and a first locking strategy. The first locking strategy includes: determining the locking coordinates of the touch point as the touch coordinates of the touch point when the coordinate distance between the touch coordinates of the touch point and the reported coordinates of the previous touch point is greater than a locking distance threshold; and determining the locking coordinates of the touch point as the reported coordinates of the previous touch point when the coordinate distance is less than or equal to the locking distance threshold. The first filtering strategy includes: obtaining the reported coordinates of the touch point by filtering the reported coordinates of historical touch points and the locking coordinates of the touch point, wherein the historical touch points include the previous touch point and the touch point before that. Furthermore, using the first reporting strategy, the touch coordinates of the touch point are stretched to obtain the reported coordinates of the touch point. The distance between the reported coordinates and the actual coordinates of the touch point is less than a distance threshold. The touch parameters satisfy the preset stretching conditions, including: the touch area is less than the touch area threshold.

9. An electronic device, characterized in that, include: Memory containing executable program code; and the processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method as described in any one of claims 1-7.

10. A computer-readable storage medium having executable program code stored thereon, characterized in that, When the executable program code is executed by the processor, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • A touch identification method and a touch device

    CN109164932A

  • Position coordinate reporting method, device, electronic equipment and storage medium

    CN112835463A