Touch adjustment method and device, storage medium
By obtaining the touch condition information of the controls in the display interface and dynamically adjusting the touch response strategy, the problem of narrow applicable scenarios in the existing technology that rely on the "whitelist" is solved, and a wider range of applicable scenarios for touch adjustments and higher accuracy are achieved.
Patent Information
- Application Number
- CN202010941647.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2040-09-09
AI Technical Summary
The existing touch response strategy adjustment method relies on the ‘whitelist’ and cannot adapt to the situation where the application name changes or is maliciously modified, resulting in a narrow application scenario.
By obtaining the touch condition information of the controls in the display interface, dynamically adjusting the touch response strategy, including determining the touch range where the control is touched, the response length of the sliding operation, and the reporting frequency of the touch coordinates.
It realizes flexible adjustment of touch response strategy, and is suitable for display interfaces for different applications and different functional interfaces within the same application, reducing the problem of narrow applicable scenarios caused by changes in application names and limited 'whitelist', and improving the accuracy and scope of touch adjustment.
Smart Images

Figure CN114237478B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information processing technologies, and in particular, to a touch adjustment method, an apparatus, and a storage medium. Background Art
[0002] With the progress and development of technology, existing terminal devices all use touch screens to replace mechanical buttons. The touch screen responds to touch operations through a touch response strategy. For different touch requirements, existing solutions usually adopt a "whitelist" method to adjust the touch response strategy. Among them, the "whitelist" stores the correspondence between the application name and the touch response strategy. Then, by matching the application name in the preset "whitelist", the touch response strategy corresponding to the application name can be obtained. However, the existing "whitelist" method is not applicable to scenarios where the application name changes or is maliciously modified, and there is a problem of narrow applicable scenarios. Summary of the Invention
[0003] The present disclosure provides a touch adjustment method, an apparatus, and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a touch adjustment method is provided, including:
[0005] Obtaining touch condition information of a control in a display interface;
[0006] Adjusting a touch response strategy according to the touch condition information, where the touch response strategy at least includes: determining a touch range in which the control is touched;
[0007] Determining whether the control is touched based on the adjusted touch response strategy.
[0008] In some embodiments, the control includes: a first control and a second control;
[0009] The adjusting the touch response strategy according to the touch condition information includes:
[0010] If the first control is a button control for a click operation, when the distance between a first touch range of the first control and a second touch range of the second control determined according to the touch condition information is greater than or equal to a distance threshold, increasing the first touch range to obtain a third touch range;
[0011] If the first control is a button control for a click operation, when the distance between a first touch range of the first control and a second touch range of the second control determined according to the touch condition information is less than the distance threshold, reducing the first touch range to obtain the third touch range.
[0012] In some embodiments, the control includes: a sliding control for a sliding operation;
[0013] Adjusting the touch response strategy according to the touch condition information includes:
[0014] According to the touch condition, adjusting the touch coordinate reporting strategy for the sliding operation on the sliding control, wherein, before adjustment, the touch coordinate reporting strategy allows the touch panel to report the touch coordinates of all touch points of the sliding operation on the sliding control; after adjustment, the touch coordinate reporting strategy allows the touch panel to report the touch coordinates of the touch points of the sliding operation on the sliding control.
[0015] In some embodiments, the control includes: a sliding control for a sliding operation, and the touch response strategy further includes: determining the response length of the sliding control;
[0016] Adjusting the touch response strategy according to the touch condition information includes:
[0017] According to the touch condition information, updating the response length of the sliding operation to be less than or equal to a sliding length threshold; wherein, the sliding length threshold is used to determine whether a touch operation is a sliding.
[0018] In some embodiments, the touch response strategy further includes: determining the reporting frequency of the touch coordinates of the control;
[0019] Adjusting the touch response strategy according to the touch condition information includes:
[0020] When it is determined that the control is a button control for a click operation, shortening the reporting frequency;
[0021] When it is determined that the control is a sliding control for a sliding operation, increasing the reporting frequency.
[0022] In some embodiments, the method further includes:
[0023] When it is determined that the control can respond to different types of touch operations, not adjusting the touch response strategy.
[0024] In some embodiments, obtaining the touch condition information of the control in the display interface includes:
[0025] Obtaining the layout information of the display interface;
[0026] Based on the layout information, determining the control information of the display interface;
[0027] Based on the control information, determining the touch condition information of the control.
[0028] According to a second aspect of the embodiments of the present disclosure, there is provided a touch adjustment device, the device including:
[0029] An acquisition module, configured to acquire touch condition information of a control in a display interface;
[0030] An adjustment module, configured to adjust a touch response policy according to the touch condition information, wherein the touch response policy at least includes: determining a touch range in which the control is touched;
[0031] A determination module, configured to determine whether the control is touched based on the adjusted touch response policy.
[0032] In some embodiments, the control includes: a first control and a second control;
[0033] The adjustment module is further configured to:
[0034] If the first control is a button control for a click operation, when it is determined according to the touch condition information that the distance between a first touch range of the first control and a second touch range of the second control is greater than or equal to a distance threshold, increase the first touch range to obtain a third touch range;
[0035] If the first control is a button control for a click operation, when it is determined according to the touch condition information that the distance between a first touch range of the first control and a second touch range of the second control is less than the distance threshold, reduce the first touch range to obtain the third touch range.
[0036] In some embodiments, the control includes: a sliding control for a sliding operation;
[0037] The adjustment module is further configured to:
[0038] According to the touch condition, adjust a touch coordinate reporting policy for a sliding operation on the sliding control, wherein before adjustment, the touch coordinate reporting policy allows a touch panel to report touch coordinates of all touch points of the sliding operation on the sliding control; after adjustment, the touch coordinate reporting policy allows the touch panel to report touch coordinates of touch points of the sliding operation on the sliding control.
[0039] In some embodiments, the control includes: a sliding control for a sliding operation, and the touch response policy further includes: determining a response length of the sliding control;
[0040] The adjustment module is further configured to:
[0041] Update the response length of the sliding operation to be less than or equal to a sliding length threshold according to the touch condition information, where the sliding length threshold is used to determine whether a touch operation is a slide.
[0042] In some embodiments, the touch response policy further includes: determining a reporting frequency of touch coordinates of the control.
[0043] The adjustment module is further configured to:
[0044] When it is determined that the control is a button control for a click operation, shorten the reporting frequency.
[0045] When it is determined that the control is a sliding control for a sliding operation, increase the reporting frequency.
[0046] In some embodiments, the device further includes:
[0047] A response module configured to not adjust the touch response policy when it is determined that the control can respond to different types of touch operations.
[0048] In some embodiments, the obtaining module is further configured to obtain layout information of the display interface; determine control information of the display interface based on the layout information; and determine touch condition information of the control based on the control information.
[0049] According to a third aspect of embodiments of the present disclosure, there is provided a touch adjustment device, the device at least includes: a processor and a memory for storing executable instructions that can run on the processor, where:
[0050] When the processor is used to run the executable instructions, the executable instructions execute the steps in the touch adjustment method provided in the first aspect above.
[0051] According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the touch adjustment method provided in the second aspect above is implemented.
[0052] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0053] In the embodiments of the present disclosure, the touch condition information of the controls on the display interface is first obtained, and then the touch response strategy is adjusted based on the touch condition information. That is to say, the adjustment of the touch response strategy is not based on the name of the application, but on the touch condition information corresponding to different controls in different display interfaces. In this way, compared with adjusting the touch response strategy by matching the application name in the "whitelist", the adjustment of the touch response strategy in the embodiments of the present disclosure can be applied to the display interfaces of different applications, and can also be applied to different function display interfaces within the same application, which can reduce the narrow applicable scenarios caused by the change of the application name and the limited applications stored in the "whitelist", making the applicable scenarios of touch adjustment more extensive. Moreover, considering the differences between different function interfaces of the same application, the embodiments of the present disclosure take the touch condition information of the controls in different interfaces as the adjustment object of the touch response strategy, which can make the adjustment of the touch strategy precise to different controls in different display interfaces and improve the accuracy of touch adjustment.
[0054] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.
[0056] Figure 1 is a flowchart of a touch adjustment method shown in the embodiments of the present disclosure Figure 1 .
[0057] Figure 2 is a schematic diagram of the control layout in the display interface shown in the embodiments of the present disclosure.
[0058] Figure 3 is a flowchart of a touch adjustment method shown in the embodiments of the present disclosure Figure 2 .
[0059] Figure 4 is a schematic diagram of the display interface of the developer options shown in the embodiments of the present disclosure.
[0060] Figure 5 is a schematic diagram of the display interface of the contacts shown in the embodiments of the present disclosure.
[0061] Figure 6 is a schematic diagram of a touch adjustment device shown in the embodiments of the present disclosure Figure 1 .
[0062] Figure 7 is a schematic diagram of a touch adjustment device shown in the embodiments of the present disclosure Figure 2 . DETAILED DESCRIPTION OF THE EMBODIMENTS
[0063] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0064] Figure 1 is a flowchart of a touch adjustment method shown in an embodiment of the present disclosure Figure 1 , as Figure 1 shown, the method applied to a terminal device includes the following steps:
[0065] S11. Obtain touch condition information of a control in a display interface;
[0066] S12. Adjust a touch response policy according to the touch condition information, where the touch response policy at least includes: determining a touch range in which the control is touched;
[0067] S13. Determine whether the control is touched based on the adjusted touch response policy.
[0068] The above terminal device is a terminal device provided with a touch screen. The touch screen can be a touch screen of various screen types such as a resistive touch screen, a capacitive touch screen, an infrared touch screen, or a surface acoustic wave touch screen; the terminal device can be a wearable electronic device and a mobile terminal, the mobile terminal includes a mobile phone, a notebook, and a tablet computer, and the wearable electronic device includes a smart watch or a smart bracelet, which is not limited in the embodiments of the present disclosure.
[0069] In the embodiments of the present disclosure, the touch screen of the terminal device has different display interfaces when displaying different applications or each function within the same application. For example, the touch screen can display the interface of the WeChat application or the interface of the Baidu application; for another example, the touch screen can display the "Contacts" function interface or the "Discover" function interface in the WeChat application.
[0070] It should be noted that different display interfaces have different human-computer interaction logics, and different human-computer interaction logics on the display interface are implemented through different controls on the display interface. Therefore, different display interfaces have different controls. The control can include a sliding control for a sliding operation, a button control for a click operation, or a hybrid control for responding to different types of touch operations. Among them, the button control can also include a button control for a single click operation, a button control for a double click operation, or a button control for a long press operation, which is not limited in the embodiments of the present disclosure.
[0071] Exemplarily, as Figure 2 shown, 201 is the position of the button control on the display interface, 202 is the position of the sliding control on the display interface, and 203 is the position of the hybrid control on the display interface.
[0072] For the button control, the dotted area of the button control is the touch range of the button. Both the touch point pressed and the touch point lifted in the click operation need to be within this touch range. If the coordinate of the touch point pressed is within the touch range of the button and the coordinate of the touch point lifted is not within the touch range of the button, it is determined that the button control is not touched; if the coordinate of the touch point pressed is not within the touch range of the button and the coordinate of the touch point lifted is within the touch range of the button, it is also determined that the button control is not touched. At the same time, in addition to determining whether the button control is touched according to the touch range of the button, the embodiments of the present disclosure can also determine whether the button control is touched according to the duration of the button control being pressed and the time interval between pressing and lifting. The embodiments of the present disclosure do not make limitations.
[0073] For the sliding control, the sliding control responds to a sliding operation in a single direction within the sliding touch range and the sliding distance exceeds the sliding length threshold. Among them, the sliding distance can be determined by the reported coordinates of the touch point pressed in the touch operation to the reported coordinates of the touch point lifted. The single direction includes the horizontal direction or the vertical direction.
[0074] In the embodiments of the present disclosure, different controls have different touch condition information. The above touch condition information may include: condition information of the trigger response condition for which the touch operation on the control gets a response.
[0075] The touch condition information includes but is not limited to at least one of the following:
[0076] The type of touch operation, for example, click operation and / or sliding operation;
[0077] The number of touch points, for example, the number of times of the click operation or the number of touch points of one touch;
[0078] The touch range, which is used to indicate the range where the touch operation acts;
[0079] The scanning frequency, which indicates the frequency of scanning whether the control is touched;
[0080] The reporting frequency, which indicates the frequency of reporting the touch points when it is scanned that the control is touched.
[0081] In some embodiments, the touch range generally includes at least the range corresponding to the control. For example, the touch range is not less than the range corresponding to the control, that is, the touch range is slightly larger than the range of the touch panel corresponding to the control, or exactly equal to the range of the touch panel corresponding to the control. The center of the touch range can be the center of the control.
[0082] In some embodiments, the reporting frequency may be equal to the scanning frequency or less than the scanning frequency. The scanning frequency may be equal to the coordinate update frequency.
[0083] In view of this, according to the touch condition information, information such as the type and / or touch range of the control can be determined.
[0084] In summary, when the trigger response condition is met, it is determined that the control has been touched.
[0085] In the embodiments of the present disclosure, according to the touch condition information, the touch response policy is adjusted, including: according to the touch condition information, updating the factor for determining that the control has been touched in the touch response policy to obtain the adjusted touch response policy. Among them, the factor for determining that the control has been touched may include, in addition to the touch range for determining that the control has been touched, the response length for determining that the control has been touched or the reporting policy for determining that the control has been touched. The embodiments of the present disclosure do not make limitations.
[0086] It should be noted that the above touch response policy is a touch response policy preset in the terminal device. The touch response policy may be a touch response policy for the entire display interface, and can provide different touch response policies for different touchscreens by balancing different types of touch operations.
[0087] In the embodiments of the present disclosure, when adjusting the touch response policy according to the touch condition information, the terminal device may determine whether the control has been touched based on the adjusted touch response policy. For example, based on the touch range for determining that the control has been triggered in the adjusted touch policy, it is determined whether the control has been touched. Specifically, when the current touch operation acting on the control is within the touch range, it is determined that the control has been triggered; when the current touch operation acting on the control is not within the touch range, it is determined that the control has not been triggered.
[0088] It should be noted that the "whitelist" method adjusts the touch response policy based on the application name. It can only identify the applications corresponding to the whitelist, and when the application name changes, for example, when the application names of multiple iterative versions of different Glory of Kings game applications change and the name "Glory of Kings" is modified to "Glory of Kings - V2", the "whitelist" method cannot recognize the differences between the different iterative version names of the same application. At the same time, existing application programs have different function interfaces. Taking Glory of Kings as an example, there are game interfaces, chat interfaces, equipment purchase interfaces, etc. in the application. The "whitelist" method cannot recognize the changes between the various function interfaces within the same application. For example, for the game interface, the range of contact with the palm and the root of the thumb is blocked to reduce non-subjective control caused by accidental skin touches during the game; for the chat and equipment purchase interfaces, the blocked range may be the touch range for the control to be touched, which may result in the situation of ineffective touch.
[0089] Based on this, embodiments of the present disclosure first obtain the touch condition information of the controls on the display interface, and then adjust the touch response strategy based on the touch condition information. That is to say, the adjustment of the touch response strategy is not based on the name of the application, but on the touch condition information corresponding to different controls in different display interfaces. In this way, compared with adjusting the touch response strategy by matching the application name in the "whitelist", the adjustment of the touch response strategy in embodiments of the present disclosure can be applied to the display interfaces of different applications, and can also be applied to different function display interfaces within the same application, which can reduce the narrow applicable scenarios caused by the change of the application name and the limited applications stored in the "whitelist", making the applicable scenarios of touch adjustment more extensive. At the same time, embodiments of the present disclosure consider the differences between different function interfaces of the same application, and use the touch condition information of the controls in different interfaces as the adjustment object of the touch response strategy, which can make the adjustment of the touch strategy precise to different controls in different display interfaces and improve the accuracy of touch adjustment.
[0090] In some embodiments, the control includes: a first control and a second control;
[0091] Adjusting the touch response strategy according to the touch condition information includes:
[0092] If the first control is a button control for click operation, when the distance between the first touch range of the first control and the second touch range of the second control determined according to the touch condition information is greater than or equal to a distance threshold, increase the first touch range to obtain a third touch range;
[0093] If the first control is a button control for click operation, when the distance between the first touch range of the first control and the second touch range of the second control determined according to the touch condition information is less than the distance threshold, reduce the first touch range to obtain the third touch range.
[0094] The above first control and second control are different controls in the display interface. The type of the second control may be the same as or different from the type of the first control. For example, both the first control and the second control may be button controls or sliding controls. For another example, the first control may be a button control and the second control may be a sliding control.
[0095] In embodiments of the present disclosure, the first control and the second control are adjacent controls. When the distance between the first touch range of the first control and the second touch range of the second control is greater than or equal to the distance threshold, it indicates that there is an idle area between the first touch range and the second touch range. Therefore, the first touch range can be increased to obtain a third touch range.
[0096] Exemplarily, the first touch range can be increased from a 10*10 pixel square to a 20*20 pixel square corresponding to the third touch range, that is, a click operation that responds to a touch within a 20*20 pixel square can increase the touch range of the touch operation, thereby improving the success rate of the click operation.
[0097] It should be noted that during the process of increasing the first touch range, the first touch range can be increased in the setting direction of the second control to obtain the third touch range. The third touch range can be obtained from the first touch range and the idle area, and there is no same touch range between the third touch range and the second touch range. In this way, on the basis of increasing the first touch range to improve the success rate of the click operation, the interference of the first control to the second control can be effectively reduced.
[0098] In the embodiments of the present disclosure, when the distance between the first touch range of the first control and the second touch range of the second control is less than or equal to the distance threshold, it indicates that there is the same touch range between the first touch range and the second touch range or there is a mis-touch area where mis-touch is likely to occur between the first control and the second control. Therefore, the first touch range can be reduced to obtain the third touch range.
[0099] Exemplarily, the second touch range can be reduced from a 20*20 pixel square to a 10*10 pixel square corresponding to the third touch range, that is, a click operation that responds to a touch within a 10*10 pixel square can reduce the situation where the click operation acts on the mis-touch area and improve the accuracy of the click operation.
[0100] In the embodiments of the present disclosure, during the process of reducing the first touch range, the first touch range can be reduced in the direction away from the second control to obtain the third touch range. The third touch range can be obtained from the first touch range and the mis-touch area. For example, the first touch range is reduced so that the interval area between the first touch range and the second touch range is greater than or equal to the mis-touch area.
[0101] By reducing or increasing the first touch range of the first control in the embodiments of the present disclosure, the touch range in the touch response strategy can be adjusted according to the touch condition information of the controls on different display interfaces, so that the adjusted touch response strategy can optimize the response range and improve the success rate and accuracy of the click operation.
[0102] Take the first control as a button control, the second control as a sliding control, and the distance threshold as 3 pixels as an example. During the control layout process of the display interface, the button control and the sliding control are adjacent controls. If the distance between the button control and the sliding control is 5 pixels, the touch range for the button control in the touch response strategy can be increased by 2*2 pixels to improve the success rate and accuracy of the click operation on the button control. If the distance between the button control and the sliding control is 2.5 pixels, the touch range for the button control in the touch response strategy can be reduced by 0.5*0.5 pixels to reduce the accidental touch caused by click deviation, and the accuracy of the click operation on the button control can be improved. In some other embodiments, the control includes: a button control for click operation; adjusting the touch response strategy according to the touch condition information includes: adjusting the coordinate of the lifted touch point corresponding to the click operation based on a preset mapping relationship according to the touch condition information.
[0103] Among them, adjusting the coordinate of the lifted touch point corresponding to the click operation based on a preset mapping relationship includes: adjusting the coordinate of the lifted touch point of the click operation to be the same as the coordinate of the pressed touch point of the click operation. In this way, by adjusting the coordinate of the lifted touch point corresponding to the click operation, the jitter between the reported data of the pressed touch point and the reported data of the lifted touch point in the click operation can be reduced.
[0104] Take the control as a button control, and the coordinate of the pressed touch point of the button control is A as an example. During the control layout process of the display interface, the position of the pressed touch point and the lifted touch point corresponding to the click operation on the button control will shift. At this time, the touch response strategy can be used to correct the coordinate of the lifted touch point corresponding to the click operation to A, thereby reducing the jitter of the data.
[0105] In some embodiments, the control includes: a sliding control for sliding operation;
[0106] Adjusting the touch response strategy according to the touch condition information includes:
[0107] According to the touch condition information, adjust the touch coordinate reporting strategy for the sliding operation on the sliding control. Among them, the touch coordinate reporting strategy before adjustment allows the touch panel to report the touch coordinates of all touch points of the sliding operation on the sliding control; the touch coordinate reporting strategy after adjustment allows the touch panel to report the touch coordinates of the touch points where the sliding operation acts on the sliding control.
[0108] In the embodiments of the present disclosure, the sliding operation corresponding to the sliding control has a single sliding direction, and the sliding direction includes but is not limited to the horizontal direction parallel to the screen or the vertical direction perpendicular to the horizontal direction.
[0109] It should be noted that the sliding control has a preset sliding trajectory in the sliding direction. During the process of sliding the sliding control, the sliding operation can act on the sliding trajectory or outside the sliding trajectory.
[0110] The above-mentioned touch coordinate reporting policy before adjustment allows the touch panel to report the touch coordinates of all touch points of the sliding operation acting on the sliding control. The touch coordinates of all touch points of the sliding operation acting on the sliding control include: the coordinates on the sliding trajectory in the sliding operation acting on the sliding control and the coordinates not on the sliding trajectory in the sliding operation acting on the sliding control.
[0111] The above-mentioned touch coordinate reporting policy after adjustment allows the touch panel to report the touch coordinates of the touch points where the sliding operation acts on the sliding control. The touch coordinates of the touch points where the sliding operation acts on the sliding control include: the touch coordinates of the touch points of the touch operation on the sliding trajectory.
[0112] In the embodiments of the present disclosure, the touch coordinate reporting policy of the above-mentioned sliding operation includes reporting the touch coordinates of the touch points on the sliding trajectory. By adjusting the touch coordinates of the touch points reported in the touch response policy, it is possible to effectively suppress the response jitter caused by the frequent reporting of the touch point coordinates not on the sliding trajectory, reduce the overall jitter of the response to the sliding operation, and reduce the response lag and jumping feeling of the touch screen.
[0113] Taking the actual trajectory corresponding to the sliding operation of the sliding control as A and the sliding trajectory corresponding to the sliding control as B. If all the touch point coordinates corresponding to the actual trajectory A are responded to, there will be frequent reporting or reporting of touch point coordinates with deviations. By adjusting the touch coordinate reporting policy, that is, the adjusted reporting policy only reports the touch coordinates of the touch points on the sliding trajectory (the touch points corresponding to the overlapping position of A and B), and does not report the touch coordinates of the touch points outside the sliding trajectory (the touch points corresponding to the non-overlapping position of A and B). In this way, it is possible to effectively suppress the response jitter caused by the frequent reporting of the touch point coordinates not on the sliding trajectory.
[0114] In some embodiments, the control includes: a sliding control for the sliding operation, and the touch response policy further includes: determining the response length of the sliding control;
[0115] The adjusting the touch response policy according to the touch condition information includes:
[0116] According to the touch condition information, updating the response length of the sliding operation to be less than or equal to a sliding length threshold; wherein, the sliding length threshold is used to determine whether the touch operation is a sliding.
[0117] In the embodiments of the present disclosure, for a sliding control for a sliding operation, in the sliding direction, the sliding control can recognize a touch operation with a sliding distance greater than or equal to the sliding length threshold as a sliding operation. That is to say, through the sliding length threshold, it can be determined whether the touch operation is a sliding operation. The sliding length threshold can be set according to actual needs. For example, the sliding length threshold can be set to 15 pixels or 10 pixels, and the embodiments of the present disclosure do not limit this.
[0118] It should be noted that when the response length in the touch response policy is set too large and greater than the sliding length threshold of the sliding control, if the sliding distance of the sliding operation is greater than the sliding length threshold but less than the response length in the touch response policy, the touch response policy will not respond to the sliding operation.
[0119] For example, the sliding press coordinate of the sliding control is (10, 10), the sliding length threshold is 10 pixels, the response length in the touch response policy is 15 pixels. The touch response policy cannot respond to the sliding operation with the sliding lift coordinate of (10, 24), but can respond to the sliding operation with the sliding lift coordinate of (10, 26). In this way, slight sliding operations with a distance greater than the sliding length threshold but less than the response length cannot be recognized, seriously affecting the user experience of the touch screen.
[0120] In the embodiments of the present disclosure, considering the correlation between the response length and the sliding length threshold, adjusting the response length of the sliding operation in the touch response policy to be less than or equal to the sliding length threshold can enable the touch operation to be responded as long as the touch operation is recognized as a sliding operation, achieving better recognition for slight sliding operations and improving the accuracy of the sliding operation response.
[0121] Taking the sliding length threshold of the sliding control as 5 pixels and the response length for the sliding control in the touch response policy as 8 pixels as an example, the response length for the sliding control in the adjusted touch response policy can be set to 4 pixels or 5 pixels. In this way, the touch response policy before adjustment cannot respond to lengths between 5 pixels and 8 pixels, and the adjusted touch response policy can respond to lengths greater than or equal to 5 pixels. That is, better recognition can be achieved for slight sliding operations.
[0122] In some embodiments, the touch response policy further includes: determining the reporting frequency of the touch coordinates of the control;
[0123] Adjusting the touch response policy according to the touch condition information includes:
[0124] When it is determined that the control is a button control for a click operation, shortening the reporting frequency;
[0125] When it is determined that the control is a sliding control for a sliding operation, increase the reporting frequency.
[0126] In the embodiments of the present disclosure, the touch response strategy further includes: determining the reporting frequency of the touch coordinates of the control. This reporting frequency indicates the number of times the touch coordinates are reported within the coordinate update period. For example, the coordinate update period can be set to 120 times per second or 240 times per second, and the reporting frequency can be set to 5 times per second or 10 times per second. The embodiments of the present disclosure do not limit this.
[0127] It should be noted that for a sliding control, during the sliding process, it is necessary to detect the current sliding coordinates of the sliding operation to determine the sliding distance of the sliding operation, so as to respond to the sliding operation when the sliding distance is greater than the response length. Therefore, when it is determined that the control is a sliding control, it is necessary to increase the reporting frequency so that the coordinates of the touch points of the sliding operation can be reported in a timely manner. For example, for a sliding control, the reporting frequency can be increased from 5 times per second to 10 times per second.
[0128] For a button control, in order to reduce the jitter between the reported points of pressing and lifting for the click operation, it is necessary to set the reported coordinates of pressing and lifting to be the same, and thus the reporting frequency can be shortened relative to the sliding control. For example, the reporting frequency is reduced from 10 times per second to 5 times per second.
[0129] Through the adjustment of the reporting frequency of the touch coordinates of the control in the touch response strategy in the embodiments of the present disclosure, different reporting frequencies can be set for different controls, which can make the adjusted touch response strategy more optimized and can achieve better response to different touch operations of different controls.
[0130] Taking the reporting frequency of the sliding control as 10 times per second and the reporting frequency of the button control as 5 times per second as an example, when the control in the display interface is a sliding control, the reporting frequency for the sliding control in the touch response strategy can be increased to 10 times per second; when the control in the display interface is a button control, the reporting frequency for the button control in the touch response strategy can be shortened to 5 times per second.
[0131] In some embodiments, as Figure 3 shown, the method further includes:
[0132] S14. When it is determined that the control can respond to different types of touch operations, do not adjust the touch response strategy.
[0133] In the embodiments of the present disclosure, the control can respond to different types of touch operations, that is to say, the touch operations responded by the control are not limited to types. For example, the control can respond to touch operations of the click type and the sliding type.
[0134] It should be noted that for controls that respond to different types of touch operations, the touch response strategy of the control does not need to be adjusted. Only when the control responds to one type of touch operation, different touch response strategies need to be executed for this type of touch operation. In this way, the flexibility of touch operation response can be improved. At the same time, by performing different adjustment methods for different types of controls, the debugging workload required for the touch response strategy to respond to different types of touch operations can be reduced, and the work efficiency can be improved.
[0135] In some embodiments, the obtaining of the touch condition information of the controls in the display interface includes:
[0136] Obtaining the layout information of the display interface;
[0137] Based on the layout information, determining the control information of the display interface;
[0138] Based on the control information, determining the touch condition information of the control.
[0139] In the embodiments of the present disclosure, when the terminal device displays different interfaces, the display interface will be laid out in advance. For example, as Figure 4 shown, you can enter the developer options to select the display layout boundary, and then you can view the layout information on the current display interface.
[0140] It should be noted that the layout information includes the positions of the control areas and the display areas on the display interface. The touch operation can only act on the control when it acts within the range of the control area.
[0141] In the embodiments of the present disclosure, different controls are set in the above control area, and then the control information of the display interface can be determined. For example, as Figure 5 shown, for the contact interface in the call application, the contact interface divides the button control and the touch range corresponding to the button control.
[0142] It should be noted that after the control is determined, only by performing different touch operations according to different controls in the control area can it be determined that the control is touched. For example, for a button control for a click operation, the button control will be determined to be touched only when the touch operation is a click operation; for a sliding control for a sliding operation, the sliding control will be determined to be touched only when the touch operation is a sliding operation. Therefore, different controls have different touch condition information. Based on this touch condition information, the touch response strategy can be adjusted specifically for different controls in the display interface, reducing the narrow applicable scenarios caused by changes in the application name and the limited applications stored in the "whitelist", making the applicable scenarios of touch adjustment more extensive, and at the same time improving the accuracy of touch adjustment for different controls.
[0143] Figure 6A touch adjustment device shown according to an exemplary embodiment Figure 1 . Referring to Figure 6 , the touch adjustment device includes an acquisition module 1001, an adjustment module 1002, and a determination module 1003, where
[0144] The acquisition module 1001 is configured to acquire touch condition information of a control in a display interface;
[0145] The adjustment module 1002 is configured to adjust a touch response policy according to the touch condition information, where the touch response policy at least includes: determining a touch range where the control is touched;
[0146] The determination module 1003 is configured to determine whether the control is touched based on the adjusted touch response policy.
[0147] In some embodiments, the control includes: a first control and a second control;
[0148] The adjustment module 1002 is further configured to:
[0149] If the first control is a button control for a click operation, when it is determined according to the touch condition information that the distance between the first touch range of the first control and the second touch range of the second control is greater than or equal to a distance threshold, increase the first touch range to obtain a third touch range;
[0150] If the first control is a button control for a click operation, when it is determined according to the touch condition information that the distance between the first touch range of the first control and the second touch range of the second control is less than the distance threshold, reduce the first touch range to obtain the third touch range.
[0151] In some embodiments, the control includes: a sliding control for a sliding operation;
[0152] The adjustment module 1002 is further configured to:
[0153] Adjust a touch coordinate reporting policy for a sliding operation on the sliding control according to the touch condition, where the touch coordinate reporting policy before adjustment allows the touch panel to report the touch coordinates of all touch points of the sliding operation on the sliding control; the adjusted touch coordinate reporting policy allows the touch panel to report the touch coordinates of the touch points of the sliding operation on the sliding control.
[0154] In some embodiments, the control includes: a sliding control for a sliding operation, and the touch response policy further includes: determining a response length of the sliding control;
[0155] The adjustment module 1002 is further configured to:
[0156] According to the touch condition information, update the response length of the sliding operation to be less than or equal to a sliding length threshold; wherein, the sliding length threshold is used to determine whether a touch operation is a slide.
[0157] In some embodiments, the touch response policy further includes: determining a reporting frequency of touch coordinates of the control;
[0158] The adjustment module 1002 is further configured to:
[0159] When it is determined that the control is a button control for a click operation, shorten the reporting frequency;
[0160] When it is determined that the control is a sliding control for a sliding operation, increase the reporting frequency.
[0161] In some embodiments, the device further includes:
[0162] A response module 1004, configured to not adjust the touch response policy when it is determined that the control can respond to different types of touch operations.
[0163] In some embodiments, the obtaining module 1001 is further configured to obtain layout information of the display interface; based on the layout information, determine control information of the display interface; based on the control information, determine touch condition information of the control.
[0164] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0165] Figure 7 is a touch adjustment device shown according to an exemplary embodiment Figure 2 . For example, the device can be a mobile phone, a mobile computer, etc.
[0166] Referring to Figure 7 , the device may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0167] The processing component 802 generally controls the overall operation of the device, such as operations associated with display, telephone calls, data communication, camera operation, and recording operation. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0168] The memory 804 is configured to store various types of data to support the operation of the device. Examples of such data include instructions for any application or method operating on the device, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0169] The power component 806 provides power to various components of the device. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device.
[0170] The multimedia component 808 includes a screen that provides an output interface between the device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each of the front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0171] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0172] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, and the peripheral interface module may be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
[0173] The sensor component 814 includes one or more sensors for providing an assessment of various aspects of the device. For example, the sensor component 814 can detect the on / off state of the device, the relative positioning of components, such as the display and keypad of the device, the sensor component 814 can also detect a change in the position of the device or a component of the device, the presence or absence of user contact with the device, the orientation or acceleration / deceleration of the device, and the temperature change of the device. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0174] The communication component 816 is configured to facilitate communication between the device and other devices in a wired or wireless manner. The device can access a wireless network based on communication standards, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0175] In an exemplary embodiment, the device can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0176] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the device to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0177] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to execute a touch adjustment method, and the method includes:
[0178] Obtaining touch condition information of a control within a display interface;
[0179] Adjusting a touch response policy according to the touch condition information, where the touch response policy at least includes: determining a touch range in which the control is touched;
[0180] Based on the adjusted touch response policy, determining whether the control is touched.
[0181] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0182] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A touch adjustment method, characterized in that, The method includes: Obtaining touch condition information of a control within a display interface; Adjusting a touch response policy according to the touch condition information, where the touch response policy at least includes: determining a touch range in which the control is touched; Determining whether the control is touched based on the adjusted touch response policy; The control includes: a sliding control for a sliding operation; The adjusting the touch response policy according to the touch condition information includes: Adjusting a touch coordinate reporting policy for a sliding operation on the sliding control according to the touch condition information. Before adjustment, the touch coordinate reporting policy allows a touch panel to report touch coordinates of all touch points of the sliding operation on the sliding control; after adjustment, the touch coordinate reporting policy allows the touch panel to report touch coordinates of touch points of the sliding operation on the sliding control.
2. The method according to claim 1, wherein The control includes: a first control and a second control; The adjusting the touch response policy according to the touch condition information includes: If the first control is a button control for a click operation, when it is determined according to the touch condition information that the distance between a first touch range of the first control and a second touch range of the second control is greater than or equal to a distance threshold, increasing the first touch range to obtain a third touch range; If the first control is a button control for a click operation, when it is determined according to the touch condition information that the distance between a first touch range of the first control and a second touch range of the second control is less than the distance threshold, reducing the first touch range to obtain the third touch range.
3. The method according to claim 1, characterized in that, The control includes: a sliding control for a sliding operation, and the touch response policy further includes: determining a response length of the sliding control; The adjusting the touch response policy according to the touch condition information includes: Updating the response length of the sliding operation to be less than or equal to a sliding length threshold according to the touch condition information; where the sliding length threshold is used to determine whether a touch operation is a sliding.
4. The method according to claim 1, characterized in that, The touch response policy further includes: determining a reporting frequency of touch coordinates of the control; The adjusting the touch response policy according to the touch condition information includes: When it is determined that the control is a button control for a click operation, shortening the reporting frequency; When it is determined that the control is a sliding control for a sliding operation, increasing the reporting frequency.
5. The method according to any one of claims 1 to 4, characterized in that The method further includes: When it is determined that the control can respond to different types of touch operations, not adjusting the touch response policy.
6. The method according to any one of claims 1 to 4, characterized in that The obtaining touch condition information of a control within a display interface includes: Obtaining layout information of the display interface; Determining control information of the display interface based on the layout information; Determining touch condition information of the control based on the control information.
7. A touch adjustment device, characterized in that, The device includes: An obtaining module configured to obtain touch condition information of a control within a display interface; An adjusting module configured to adjust a touch response policy according to the touch condition information, where the touch response policy at least includes: determining a touch range in which the control is touched; A determination module, configured to determine whether the control is touched based on the adjusted touch response policy; The control includes: a sliding control for a sliding operation; The adjustment module is further configured to: According to the touch condition, adjust the touch coordinate reporting policy for the sliding operation on the sliding control. Among them, the touch coordinate reporting policy before adjustment allows the touch panel to report the touch coordinates of all touch points of the sliding operation on the sliding control; the adjusted touch coordinate reporting policy allows the touch panel to report the touch coordinates of the touch points of the sliding operation on the sliding control.
8. The device according to claim 7, characterized in that, The control includes: a first control and a second control; The adjustment module is further configured to: If the first control is a button control for a click operation, when it is determined according to the touch condition information that the distance between the first touch range of the first control and the second touch range of the second control is greater than or equal to the distance threshold, increase the first touch range to obtain a third touch range; If the first control is a button control for a click operation, when it is determined according to the touch condition information that the distance between the first touch range of the first control and the second touch range of the second control is less than the distance threshold, reduce the first touch range to obtain the third touch range.
9. The device according to claim 7, characterized in that, The control includes: a sliding control for a sliding operation, and the touch response policy further includes: determining the response length of the sliding control; The adjustment module is further configured to: According to the touch condition information, update the response length of the sliding operation to be less than or equal to the sliding length threshold; wherein, the sliding length threshold is used to determine whether the touch operation is a sliding.
10. The device according to claim 7, characterized in that, The touch response policy further includes: determining the reporting frequency of the touch coordinates of the control; The adjustment module is further configured to: When it is determined that the control is a button control for a click operation, shorten the reporting frequency; When it is determined that the control is a sliding control for a sliding operation, increase the reporting frequency.
11. The device according to any one of claims 7 to 10, characterized in that, The device further includes: A response module, configured to not adjust the touch response policy when it is determined that the control can respond to different types of touch operations.
12. The device according to any one of claims 7 to 10, characterized in that, The acquisition module is further configured to acquire the layout information of the display interface; based on the layout information, determine the control information of the display interface; based on the control information, determine the touch condition information of the control.
13. A touch adjustment device, characterized in that, The device at least includes: a processor and a memory for storing executable instructions that can run on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the steps in the touch adjustment method provided in any one of claims 1 to 6 above.
14. A non-transitory computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by the processor, the touch adjustment method provided in any one of claims 1 to 6 above is implemented.
Citation Information
Patent Citations
Touch operation responding method and device, storage medium and terminal
CN107402712A
Region adjustment method, terminal and computer readable storage medium
CN107748638A
Method and device for adjusting operation interface, storage medium and electronic equipment
CN109683739A