Touch coordinate processing method and device, terminal equipment and storage medium
By determining the touch area and coordinate expansion parameters during touch operation and adjusting the touch coordinates, the problem of coordinate inappropriateness in edge area touch operation is solved, and the flexibility and accuracy of touch response is improved.
Patent Information
- Application Number
- CN202311770823.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2025-06-20
AI Technical Summary
In the touch operation in the edge area, the feedback touch coordinates cannot fully adapt to the control settings range of different applications, resulting in the problem of unresponsiveness of application controls, reducing the flexibility and accuracy of touch response.
By acquiring the touch operation of the current application on the touch screen, determining the touch area based on the touch information of the touch operation, and determining the coordinate expansion parameters based on the area, and then adjusting the touch coordinates of the touch operation to adapt to the control settings range of different applications.
Touch coordinate adjustment for different applications is realized, so that the feedback touch coordinates can adapt to the control settings range of different applications, thereby improving the flexibility and accuracy of touch response.
Smart Images

Figure CN120179093A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of touch response, and in particular, to a method and device for processing touch coordinates, a terminal device, and a storage medium. Background Art
[0002] For common touch response technologies, for touch screen reporting points, the capacitance induction principle of the touch screen can be utilized. The touch screen identifies the coordinates of an object by calculating the current capacitance data and performing a difference calculation with the reference capacitance data. By calculating the area of the capacitance difference, the peak difference value in this area is found, and it is determined whether it is within a certain preset reporting point threshold, so as to send the reporting point coordinates from the terminal system.
[0003] However, for touch operations in the edge area, there may be a problem that the reported touch coordinates cannot fully adapt to the control setting ranges of different applications, which may further lead to the problem that the application controls do not respond, thus causing the running application not to generate a real touch response to the received touch operation, reducing the flexibility and accuracy of touch response. Summary of the Invention
[0004] Embodiments of the present application provide a method and device for processing touch coordinates, a terminal device, and a storage medium, which can perform corresponding touch coordinate adjustment for different applications, improving the flexibility and accuracy of touch response.
[0005] The technical solution of the embodiments of the present application is implemented as follows:
[0006] In a first aspect, embodiments of the present application provide a method for processing touch coordinates, the method including:
[0007] After obtaining a touch operation corresponding to a current application on a touch screen, determining a touch area according to touch information corresponding to the touch operation;
[0008] Determining a coordinate scaling parameter corresponding to the current application according to the touch area;
[0009] Determining a target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information.
[0010] In a second aspect, embodiments of the present application provide a device for processing touch coordinates, the device for processing touch coordinates including: a determination unit,
[0011] The determination unit is configured to, after obtaining a touch operation corresponding to a current application on a touch screen, determine a touch area according to touch information corresponding to the touch operation; determine a coordinate scaling parameter corresponding to the current application according to the touch area; and determine a target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information.
[0012] In a third aspect, an embodiment of the present application provides a terminal device, which includes a processor and a memory; wherein,
[0013] The memory is used to store a computer program that can run on the processor;
[0014] The processor is used to execute the method described in the first aspect above when running the computer program.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the method described in the first aspect above is implemented.
[0016] An embodiment of the present application provides a method and device for processing touch coordinates, a terminal device, and a storage medium. After obtaining a touch operation corresponding to a current application on a touch screen, a touch area is determined according to the touch information corresponding to the touch operation; a coordinate scaling parameter corresponding to the current application is determined according to the touch area; a target touch coordinate corresponding to the touch operation is determined according to the coordinate scaling parameter and the touch information. That is to say, in the embodiment of the present application, for a touch operation obtained on a touch screen, an appropriate coordinate scaling parameter can be determined according to the current application and the touch area corresponding to the touch operation, so that the touch coordinates of the touch operation can be adjusted according to the coordinate scaling parameter, and thus a target touch coordinate that is more in line with the true intention of the touch operation for the current application can be obtained. Furthermore, a more accurate touch response can be performed on the touch operation based on the target touch coordinate. It can be seen that the touch coordinate processing method proposed in the embodiment of the present application can perform corresponding touch coordinate adjustment for different applications, so that the feedback touch coordinates can adapt to the control setting range of different applications, thereby enabling the running application to generate a true touch response to the received touch operation, and improving the flexibility and accuracy of the touch response. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic diagram of common edge controls not responding Figure 1 ;
[0018] Figure 2 It is a schematic diagram of common edge controls not responding Figure 2 ;
[0019] Figure 3 It is a schematic flowchart of the implementation of the touch coordinate processing method proposed in the embodiment of the present application Figure 1 ;
[0020] Figure 4 It is a schematic diagram of the touch screen proposed in the embodiment of the present application;
[0021] Figure 5 Schematic diagram of touch information proposed by the embodiments of the present application Figure 1 ;
[0022] Figure 6 Schematic diagram of touch information proposed by the embodiments of the present application Figure 2 ;
[0023] Figure 7 Schematic diagram for determining capacitance difference proposed by the embodiments of the present application;
[0024] Figure 8 Schematic diagram of the central coordinate value proposed by the embodiments of the present application;
[0025] Figure 9 Schematic diagram of the implementation process of the touch coordinate processing method proposed by the embodiments of the present application Figure 2 ;
[0026] Figure 10 Schematic diagram of the implementation process of the touch coordinate processing method proposed by the embodiments of the present application Figure 3 ;
[0027] Figure 11 Schematic diagram of the current display state proposed by the embodiments of the present application Figure 1 ;
[0028] Figure 12 Schematic diagram of the current display state proposed by the embodiments of the present application Figure 2 ;
[0029] Figure 13 Schematic diagram of the touch coordinates proposed by the embodiments of the present application;
[0030] Figure 14 Schematic diagram of the implementation process of the touch coordinate processing method proposed by the embodiments of the present application Figure 4 ;
[0031] Figure 15 Schematic diagram of the implementation process of the touch coordinate processing method proposed by the embodiments of the present application Figure 5 ;
[0032] Figure 16 Schematic diagram of the composition structure of the touch coordinate processing device proposed by the embodiments of the present application;
[0033] Figure 17 Schematic diagram of the composition structure of the terminal device proposed by the embodiments of the present application. Detailed implementation manners
[0034] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. It can be understood that the specific embodiments described herein are only used to explain the related application, rather than limiting the application. Additionally, it should be noted that for the convenience of description, only the parts related to the relevant application are shown in the drawings.
[0035] The touch screen capacitance sensing function uses the capacitance sensing principle of the touch screen to determine whether an object touches the touch screen and then reports the state of the object. It mainly refers to the touch of an object such as a finger or a pen. The states mainly include pressing, lifting, and moving after pressing. Among them, the reported data includes coordinate data and event status.
[0036] The capacitive touch screen is mainly composed of a transmitting channel and a receiving channel. Among them, the capacitance data of the transmitting channel and the receiving channel to the ground is self-capacitance data, and the data collected from the transmitting channel and the receiving channel is mutual-capacitance data.
[0037] Currently, the mutual-capacitance data is used to determine whether the finger is in the pressed, moving, or lifted state. The self-capacitance data is used to implement the judgment of other auxiliary functions, such as the proximity sensing function, etc.
[0038] The capacitive touch screen identifies the touch state of the contact point on the screen by using the capacitance sensing function of the touch screen. Specifically, the capacitive touch screen makes horizontal and vertical electrodes on the transparent conductive oxide (Indium Tin Oxide, ITO) to form an ITO coating. Capacitance will be formed at the intersection of the two groups of electrodes on the ITO layer. That is to say, these two groups of electrodes respectively constitute the two poles of the capacitance, namely, mutual capacitance is formed. When a conductive object touches the touch screen, the coupling of the two electrodes near the contact point is affected, thereby changing the capacitance value of the mutual capacitance formed by these two electrodes. Among them, when a conductive object touches the touch screen, the capacitance value of the contact point decreases.
[0039] Furthermore, the processor of the touch screen system obtains the capacitance size of the two-dimensional plane of the entire touch screen by collecting and calculating the current signal, and then can calculate the capacitance difference at a certain contact point when the object touches the touch screen and when the object does not touch the touch screen. Further, the touch screen system calculates and finds the peak value of the capacitance difference in the area with capacitance difference at the contact point, determines whether the peak value is within the reporting point threshold preset by the system, and reports the state data of the contact point to the terminal system based on the judgment result. Among them, the conductive object can be an object such as a finger or a capacitive pen, and the state data of the contact point includes the contact point coordinate data and the event status. The event status can include object lifting, object pressing, and moving after pressing.
[0040] That is to say, for touch screen point reporting, using the capacitive sensing principle of the touch screen, the touch screen identifies the coordinates of an object by calculating the current capacitance data and performing a difference calculation with the reference capacitance data. By calculating the area of the capacitance difference, the peak difference value in this area is found, and it is determined whether it is within a certain preset point reporting threshold, so as to send the point reporting coordinates from the terminal system.
[0041] A common coordinate calculation method is the centroid coordinate algorithm. Among them, usually the capacitance diff difference data of each node is used to automatically calculate the weight, and then according to the centroid coordinate algorithm, the coordinates are calculated.
[0042] However, for the capacitance data sampled by the touch screen hardware device, generally due to edge corners or camera problems, there is incomplete ITO material for a single unit, resulting in inaccurate coordinate calculation when the finger touches the corner or the hollowed-out area of the camera.
[0043] In one case, for different applications in a mobile phone, some applications have more controls responding to the edge. When clicking on the edge area, due to the offset of the finger centroid, the position on the edge may not be clicked.
[0044] For example, Figure 1 is a schematic diagram of the common non - response of edge controls Figure 1 As Figure 1 shown, for some portrait applications, the thin solid line area is the screen range, the thick solid line area is the area where some applications have controls, and the dotted line area is the touch control area for the actual operation of the application. The problem at this time is that the point reporting coordinates in the dotted line area are not in the thick solid line area, resulting in non - response of the controls. Correspondingly, the application will not generate a response corresponding to the actual operation.
[0045] For example, Figure 2 is a schematic diagram of the common non - response of edge controls Figure 2 As Figure 2 shown, for some landscape applications, the thin solid line area is the screen range, the thick solid line area is the area where some applications have controls, and the dotted line area is the touch control area for the actual operation of the application. The problem at this time is that the point reporting coordinates in the dotted line area are not in the thick solid line area, resulting in non - response of the controls. Correspondingly, the application will not generate a response corresponding to the actual operation.
[0046] That is to say, for the common touch response scheme, for the touch operation in the edge area, the feedback touch coordinates may not fully adapt to the control setting range of different applications, which may lead to the problem of non - response of application controls, thus causing the problem that the running application cannot generate a real touch response to the received touch operation, reducing the flexibility and accuracy of the touch response.
[0047] To solve the above problems, in the embodiments of the present application,
[0049] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application.
[0050] An embodiment of the present application provides a method for processing touch coordinates. The method for processing touch coordinates can be applied to a touch coordinate processing device, or can be applied to a terminal device, or can also be applied to a terminal device configured with a touch coordinate processing device. The present application does not make specific limitations.
[0051] It should be noted that, in the embodiments of the present application, the touch coordinate processing device or terminal device that executes the touch coordinate processing method may be configured with a touch screen. Among them, after a touch operation is obtained on the touch screen, the corresponding touch coordinates can be processed corresponding to the touch operation.
[0052] Further, in the embodiments of the present application, the terminal device is taken as an example for description. Figure 3 Schematic diagram of the implementation process of the touch coordinate processing method proposed in the embodiments of the present application Figure 1 , as Figure 3 shown, the touch coordinate processing method may include the following steps:
[0053] Step 101: After obtaining a touch operation corresponding to the current application on the touch screen, determine a touch area according to the touch information corresponding to the touch operation.
[0054] In the embodiments of the present application, after obtaining a touch operation corresponding to the current application on the touch screen, the terminal device may determine the touch area corresponding to the touch operation according to the touch information corresponding to the touch operation.
[0055] It can be understood that, in the embodiments of the present application, the terminal device may be any electronic device configured with a touch operation, such as: tablet computer, mobile phone, e-reader, remote control, personal computer (Personal Computer, PC), notebook computer, vehicle-mounted device, network TV, wearable device, etc.
[0056] It should be noted that, in the embodiments of the present application, the terminal device may load and run any type of application program. Among them, when the terminal device is running the current application, the touch operation detected on the touch screen may be a touch operation corresponding to the current application.
[0057] Exemplarily, in some embodiments, it is assumed that the current application running on the terminal device is a game application. At this time, the interface displayed on the touch screen is correspondingly the game interface corresponding to the game application. If a touch operation is detected on the touch screen, it can be considered that the touch operation is a touch operation corresponding to the game application.
[0058] Exemplarily, in some embodiments, it is assumed that the current application running on the terminal device is a social application. At this time, the interface displayed on the touch screen corresponds to the interaction interface of the social application. If a touch operation is detected on the touch screen, it can be considered that the touch operation is a touch operation corresponding to the social application.
[0059] Further, in the embodiments of the present application, after obtaining the touch operation corresponding to the current application on the touch screen, the touch information corresponding to the touch operation can be determined first, and then the touch area corresponding to the touch operation can be determined according to the touch information.
[0060] It should be noted that, in the embodiments of the present application, the touch screen can be a capacitive touch screen, where the touch screen can be composed of a transmitting channel and a receiving channel. Specifically, the capacitance data of the transmitting channel and the receiving channel to the ground is self-capacitance data, and the data of the transmitting channel and the receiving channel is mutual-capacitance data.
[0061] It can be understood that, in the embodiments of the present application, the transmitting channel in the touch screen can be understood as a driving channel, which can be represented as TX (transmit), and the receiving channel in the touch screen can be understood as a sensing channel, which can be represented as RX (receive).
[0062] It should be noted that, in the embodiments of the present application, the number of driving channels and sensing channels in the touch screen can be the same or different, and the present application does not make specific limitations.
[0063] Exemplarily, in some embodiments, Figure 4 is a schematic diagram of the touch screen proposed in the embodiments of the present application. As Figure 4 shown, in the touch screen, the driving channels are arranged along the horizontal direction, and the sensing channels are arranged along the vertical direction. The number of driving channels (transmitting channels Tx) in the touch screen can be 10, and the number of sensing channels (receiving channels Rx) in the touch screen can be 12. Among them, the driving channels and the sensing channels constitute 120 points, and the coordinates of each point are related to the corresponding driving channel and sensing channel. For example, the coordinates of the point in the first row and the first column correspond to the driving channel Tx1 and the sensing channel Rx1.
[0064] Further, in the embodiments of the present application, the touch information corresponding to the touch operation can be the capacitance parameters of each channel in the area with a capacitance difference determined by using the capacitance sensing principle of the touch screen.
[0065] Exemplarily, in some embodiments, the touch information can include k driving channels corresponding to the touch operation and the capacitance parameters of the k driving channels, as well as k sensing channels corresponding to the touch operation and the capacitance parameters of the k sensing channels; where k is an integer greater than or equal to 1.
[0066] That is to say, in the embodiments of the present application, when a touch operation is detected on the touch screen, at least one driving channel and capacitance parameters corresponding to at least one sensing channel corresponding to the touch operation can be determined accordingly.
[0067] Exemplarily, in some embodiments, Figure 5 Schematic diagram of touch information proposed in the embodiments of the present application Figure 1 , such as Figure 5 As shown, when a touch operation is detected on the touch screen, based on the capacitance sensing principle of the touch screen, it can be determined that the driving channels corresponding to the touch operation are Tx3, Tx4, and Tx5, and the sensing channels corresponding to the touch operation are Rx2, Rx3, and Rx4. That is, the touch information corresponding to the touch operation can include the three driving channels Tx3, Tx4, and Tx5, and the capacitance parameters of these three driving channels, and also include the three sensing channels Rx2, Rx3, and Rx4, and the capacitance parameters of these three sensing channels.
[0068] Exemplarily, in some embodiments, Figure 6 Schematic diagram of touch information proposed in the embodiments of the present application Figure 2 , such as Figure 6 As shown, when a touch operation is detected on the touch screen, based on the capacitance sensing principle of the touch screen, it can be determined that the driving channels corresponding to the touch operation are Tx6, Tx7, and Tx8, and the sensing channels corresponding to the touch operation are Rx8, Rx9, and Rx10. That is, the touch information corresponding to the touch operation can include the three driving channels Tx6, Tx7, and Tx8, and the capacitance parameters of these three driving channels, and also include the three sensing channels Rx8, Rx9, and Rx10, and the capacitance parameters of these three sensing channels.
[0069] It should be noted that in the embodiments of the present application, after determining the touch information corresponding to the touch operation, based on the driving channels and sensing channels corresponding to the touch operation indicated by the touch information, the touch area corresponding to the touch operation can be further determined.
[0070] It can be understood that in the embodiments of the present application, after determining the driving channels and sensing channels corresponding to the touch operation, based on the positions of the driving channels and sensing channels corresponding to each other in the entire touch screen, the corresponding touch area can be further determined. Among them, the touch area can be a partial area of the touch screen.
[0071] Exemplarily, in some embodiments, the touch area can be any area such as the left edge area, right edge area, upper edge area, lower edge area, or middle area of the screen of the touch screen.
[0072] Step 102: Determine the coordinate scaling parameter corresponding to the current application according to the touch area.
[0073] In the embodiments of the present application, after obtaining the touch operation corresponding to the current application on the touch screen and determining the touch area according to the touch information corresponding to the touch operation, the coordinate scaling parameter corresponding to the current application can be further determined according to the touch area.
[0074] It should be noted that, in the embodiments of the present application, the coordinate scaling parameter can be used to adjust the touch information of the touch operation corresponding to the current application. Among them, the coordinate scaling parameter can be used to magnify or reduce the actual touch coordinates of the touch operation.
[0075] It can be understood that, in the embodiments of the present application, for different application programs, the positions and quantities of the controls set at the edges of the touch screen may be different, that is to say, different applications may correspond to different control layout schemes. Therefore, for the touch operations detected at the edges of the touch screen, the touch responses corresponding to different application programs may be different.
[0076] Correspondingly, in the embodiments of the present application, for different application programs, in order to achieve touch responses adapted to the application programs, the degrees and manners of performing touch information adjustment may be different. Therefore, for different application programs, the finally determined coordinate scaling parameters may be different.
[0077] Furthermore, in the embodiments of the present application, for the same application program, when the position areas on the touch screen are different, the degrees and manners of performing touch information adjustment may be different. Therefore, for different touch areas, the finally determined coordinate scaling parameters may be different.
[0078] That is to say, in the embodiments of the present application, the coordinate scaling parameter corresponds to the application program and the touch area, that is, there is a mapping relationship among the coordinate scaling parameter, the application program, and the touch area.
[0079] Correspondingly, in the embodiments of the present application, the terminal device can preset the mapping relationship between the application program and the coordinate scaling parameter. Among them, the coordinate scaling parameter can include at least one scaling parameter for different position areas.
[0080] Exemplarily, in some embodiments, the mapping relationship between the application program and the coordinate scaling parameter is shown in Table 1:
[0081] Table 1
[0082]
[0083] Among them, for any application program, the corresponding coordinate scaling parameters may include the scaling parameters corresponding to different edge regions. For example, four weight coefficient groups corresponding to four edge regions.
[0084] It can be understood that in the embodiments of the present application, the four edge regions may represent four different edge position regions of the touch screen, namely, the upper, lower, left, and right. For example, the first edge region is the left edge of the touch screen, the second edge region is the right edge of the touch screen, the third edge region is the upper edge of the touch screen, and the fourth edge region is the lower edge of the touch screen.
[0085] It should be noted that in the embodiments of the present application, the scaling parameters corresponding to the edge regions may be weight coefficient groups. Among them, the weight coefficient groups may include weight values corresponding to different channels (driving channels or sensing channels), and the weight values are used for coordinate scaling processing.
[0086] That is to say, in the embodiments of the present application, in one possible case, based on an application program, corresponding coordinate scaling parameters are set for each edge position of the touch screen. Among them, the coordinate scaling parameters may include the weight values corresponding to each driving channel or sensing channel, that is, the scaling parameters used by different driving channels or sensing channels may be different.
[0087] Furthermore, in the embodiments of the present application, when determining the coordinate scaling parameters corresponding to the current application according to the touch area, in the case where the touch area belongs to the first edge region of the touch screen, the first weight coefficient group corresponding to the current application is determined as the coordinate scaling parameter; where the first weight coefficient group includes k first weight values corresponding to k driving channels.
[0088] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the left edge (the first edge region) of the touch screen, then based on the mapping relationship between the preset application program and the coordinate scaling parameters, the coordinate scaling parameters corresponding to the current application and the first edge region can be determined, that is, the first weight coefficient group including k first weight values corresponding to k driving channels. Among them, the k first weight values corresponding to the k driving channels may be the same or different, and the present application does not make specific limitations.
[0089] Furthermore, in the embodiments of the present application, when determining the coordinate scaling parameters corresponding to the current application according to the touch area, in the case where the touch area belongs to the second edge region of the touch screen, the second weight coefficient group corresponding to the current application is determined as the coordinate scaling parameter; where the second weight coefficient group includes k second weight values corresponding to k driving channels.
[0090] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the right edge (the second edge area) of the touch screen, then the coordinate scaling parameter corresponding to the current application and the second edge area can be determined based on the mapping relationship between the preset application program and the coordinate scaling parameter, that is, the second weight coefficient group including k second weight values corresponding to k driving channels. The k second weight values corresponding to the k driving channels can be the same or different, and the present application does not make specific limitations.
[0091] It should be noted that in the embodiments of the present application, the first weight value and the second weight value can be any value greater than 0. Among them, in the case where stretching processing needs to be performed on the position coordinates, the weight value can be a value greater than or equal to 1, and in the case where shrinking processing needs to be performed on the position coordinates, the weight value can be a value less than or equal to 1.
[0092] Exemplarily, in some embodiments, for the first edge area (the left edge of the touch screen), it is often necessary to shift the real coordinate position corresponding to the detected touch operation to the left, so shrinking processing needs to be performed. At this time, the k first weight values corresponding to the k driving channels can all be less than or equal to 1.
[0093] Exemplarily, in some embodiments, for the second edge area (the right edge of the touch screen), it is often necessary to shift the real coordinate position corresponding to the detected touch operation to the right, so stretching processing needs to be performed. At this time, the k second weight values corresponding to the k driving channels can all be greater than or equal to 1.
[0094] Furthermore, in the embodiments of the present application, when determining the coordinate scaling parameter corresponding to the current application according to the touch area, in the case where the touch area belongs to the third edge area of the touch screen, the third weight coefficient group corresponding to the current application is determined as the coordinate scaling parameter; where the third weight coefficient group includes k third weight values corresponding to k sensing channels.
[0095] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the upper edge (the third edge area) of the touch screen, then the coordinate scaling parameter corresponding to the current application and the third edge area can be determined based on the mapping relationship between the preset application program and the coordinate scaling parameter, that is, the third weight coefficient group including k third weight values corresponding to k sensing channels. The k third weight values corresponding to the k sensing channels can be the same or different, and the present application does not make specific limitations.
[0096] Further, in the embodiments of the present application, when determining the coordinate scaling parameter corresponding to the current application according to the touch area, in the case where the touch area belongs to the fourth edge area of the touch screen, the fourth weight coefficient group corresponding to the current application is determined as the coordinate scaling parameter; wherein, the fourth weight coefficient group includes k fourth weight values corresponding to k sensing channels.
[0097] It can be understood that, in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the lower edge (the fourth edge area) of the touch screen, then based on the mapping relationship between the preset application program and the coordinate scaling parameter, the coordinate scaling parameter corresponding to the current application and the fourth edge area can be determined, that is, the fourth weight coefficient group including k fourth weight values corresponding to k driving channels. Among them, the k fourth weight values corresponding to the k sensing channels can be the same or different, and the present application does not make specific limitations.
[0098] It should be noted that, in the embodiments of the present application, the third weight value and the fourth weight value can be any value greater than 0. Among them, in the case where stretching processing needs to be performed on the position coordinates, the weight value can be a value greater than or equal to 1, and in the case where shrinking processing needs to be performed on the position coordinates, the weight value can be a value less than or equal to 1.
[0099] Exemplarily, in some embodiments, for the third edge area (the upper edge of the touch screen), it is often necessary to move the real coordinate position corresponding to the detected touch operation upward, so shrinking processing needs to be performed. At this time, the k third weight values corresponding to the k sensing channels determined can all be less than or equal to 1.
[0100] Exemplarily, in some embodiments, for the fourth edge area (the lower edge of the touch screen), it is often necessary to move the real coordinate position corresponding to the detected touch operation downward, so stretching processing needs to be performed. At this time, the k fourth weight values corresponding to the k sensing channels determined can all be greater than or equal to 1.
[0101] Further, in the embodiments of the present application, the terminal device can preset the mapping relationship between the application program and the coordinate scaling parameter. Among them, the coordinate scaling parameter can include a scaling parameter for different position areas.
[0102] Exemplarily, in some embodiments, the mapping relationship between the application program and the coordinate scaling parameter is shown in Table 2:
[0103] Table 2
[0104]
[0105] Among them, for any application program, the corresponding coordinate scaling parameters may include the scaling parameters corresponding to different edge regions. For example, the four weight coefficients corresponding to the four edge regions.
[0106] It can be understood that in the embodiments of the present application, the four edge regions may represent the four different edge position regions of the upper, lower, left, and right of the touch screen. For example, the first edge region is the left edge of the touch screen, the second edge region is the right edge of the touch screen, the third edge region is the upper edge of the touch screen, and the fourth edge region is the lower edge of the touch screen.
[0107] It should be noted that in the embodiments of the present application, the scaling parameters corresponding to the edge regions may be weight coefficients, where the weight coefficients can be used for coordinate scaling processing.
[0108] That is to say, in the embodiments of the present application, another possible situation is that for an application program, corresponding coordinate scaling parameters are set for each edge position of the touch screen. Among them, the coordinate scaling parameters may be the weight coefficients corresponding to the drive channels or sensing channels in an edge region, that is, for all the drive channels or sensing channels in the same edge region, the scaling parameters used may be the same weight coefficients.
[0109] Further, in the embodiments of the present application, when determining the coordinate scaling parameters corresponding to the current application according to the touch area, if the touch area belongs to the first edge region of the touch screen, the first weight coefficient corresponding to the current application is determined as the coordinate scaling parameter.
[0110] It can be understood that in the embodiments of the present application, for the case where the drive channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the left edge (the first edge region) of the touch screen, then based on the mapping relationship between the preset application program and the coordinate scaling parameters, the coordinate scaling parameters corresponding to the current application and the first edge region can be determined, that is, the first weight coefficient.
[0111] Further, in the embodiments of the present application, when determining the coordinate scaling parameters corresponding to the current application according to the touch area, if the touch area belongs to the second edge region of the touch screen, the second weight coefficient corresponding to the current application is determined as the coordinate scaling parameter.
[0112] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the right edge (the second edge area) of the touch screen, then the coordinate scaling parameter corresponding to the current application and the second edge area can be determined based on the mapping relationship between the preset application program and the coordinate scaling parameter, that is, the second weight coefficient.
[0113] It should be noted that in the embodiments of the present application, the first weight coefficient and the second weight coefficient can be any value greater than 0. Among them, in the case where stretching processing needs to be performed on the position coordinates, the weight coefficient can be a value greater than or equal to 1, and in the case where shrinking processing needs to be performed on the position coordinates, the weight coefficient can be a value less than or equal to 1.
[0114] Exemplarily, in some embodiments, for the first edge area (the left edge of the touch screen), it is often necessary to shift the real coordinate position corresponding to the detected touch operation to the left, so shrinking processing needs to be performed. At this time, the first weight coefficient used for the k driving channels determined can be less than or equal to 1.
[0115] Exemplarily, in some embodiments, for the second edge area (the right edge of the touch screen), it is often necessary to shift the real coordinate position corresponding to the detected touch operation to the right, so stretching processing needs to be performed. At this time, the second weight coefficient used for the k driving channels determined can be greater than or equal to 1.
[0116] Furthermore, in the embodiments of the present application, when determining the coordinate scaling parameter corresponding to the current application according to the touch area, in the case where the touch area belongs to the third edge area of the touch screen, the third weight coefficient corresponding to the current application is determined as the coordinate scaling parameter.
[0117] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the upper edge (the third edge area) of the touch screen, then the coordinate scaling parameter corresponding to the current application and the third edge area can be determined based on the mapping relationship between the preset application program and the coordinate scaling parameter, that is, the third weight coefficient.
[0118] Furthermore, in the embodiments of the present application, when determining the coordinate scaling parameter corresponding to the current application according to the touch area, in the case where the touch area belongs to the fourth edge area of the touch screen, the fourth weight coefficient corresponding to the current application is determined as the coordinate scaling parameter.
[0119] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the lower edge (the fourth edge area) of the touch screen, then the coordinate scaling parameter corresponding to the current application and the fourth edge area can be determined based on the pre-set mapping relationship between the application program and the coordinate scaling parameter, that is, the fourth weight coefficient.
[0120] It should be noted that in the embodiments of the present application, the third weight coefficient and the fourth weight coefficient can be any value greater than 0. Among them, in the case where stretching processing needs to be performed on the position coordinates, the weight coefficient can be a value greater than or equal to 1, and in the case where shrinking processing needs to be performed on the position coordinates, the weight coefficient can be a value less than or equal to 1.
[0121] Exemplarily, in some embodiments, for the third edge area (the upper edge of the touch screen), it is often necessary to move the real coordinate position corresponding to the detected touch operation upward, so shrinking processing needs to be performed. At this time, the third weight coefficient used for the k sensing channels determined can be less than or equal to 1.
[0122] Exemplarily, in some embodiments, for the fourth edge area (the lower edge of the touch screen), it is often necessary to move the real coordinate position corresponding to the detected touch operation downward, so stretching processing needs to be performed. At this time, the fourth weight coefficient used for the k sensing channels determined can be greater than or equal to 1.
[0123] Step 103: Determine the target touch coordinates corresponding to the touch operation according to the coordinate scaling parameter and the touch information.
[0124] In the embodiments of the present application, after determining the coordinate scaling parameter corresponding to the current application according to the touch area, the target touch coordinates corresponding to the touch operation can be further determined according to the coordinate scaling parameter and the touch information.
[0125] It should be noted that in the examples of the present application, for each edge position of the touch screen, a corresponding coordinate scaling parameter is set based on an application program. Among them, the coordinate scaling parameter can be either a weight coefficient group corresponding to the driving channels or the sensing channels in the same edge area (such as Table 1), or can include the same weight coefficient corresponding to the driving channels or the sensing channels in the same edge area (such as Table 2). Correspondingly, in the process of performing stretching and shrinking processing on the position coordinates based on the coordinate scaling parameter, different methods can also be used to obtain the target touch coordinates corresponding to the touch operation.
[0126] It can be understood that in the embodiments of the present application, the target touch coordinates corresponding to a touch operation can be understood as the touch coordinate positions obtained after scaling the true touch coordinates (initial touch coordinates) corresponding to the touch operation, which are more in line with the actual purpose and intention of the touch operation.
[0127] Further, in the embodiments of the present application, when determining the target touch coordinates corresponding to a touch operation according to the coordinate scaling parameter and touch information, in the case where the touch area belongs to the first edge area of the touch screen, k 2 capacitance differences are determined according to the capacitance parameters of k driving channels and the capacitance parameters of k sensing channels, and based on k first weight values, k 2 capacitance differences and the central coordinate values of k driving channels, the horizontal touch coordinates corresponding to the touch operation are determined to determine the target touch coordinates.
[0128] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the left edge (the first edge area) of the touch screen, then after determining the first weight coefficient group including k first weight values corresponding to k driving channels corresponding to the current application and the first edge area based on the mapping relationship between the preset application and the coordinate scaling parameter, based on k first weight values, k 2 capacitance differences and the central coordinate values of k driving channels, the adjustment of the horizontal touch position of the touch operation is completed to determine the horizontal touch coordinates corresponding to the touch operation. Among them, the horizontal touch coordinates are the horizontal coordinate components in the target touch coordinates.
[0129] Further, in the embodiments of the present application, when determining the target touch coordinates corresponding to a touch operation according to the coordinate scaling parameter and touch information, in the case where the touch area belongs to the second edge area of the touch screen, k 2 capacitance differences are determined according to the capacitance parameters of k driving channels and the capacitance parameters of k sensing channels, and based on k second weight values, k 2 capacitance differences and the central coordinate values of k driving channels, the horizontal touch coordinates corresponding to the touch operation are determined to determine the target touch coordinates.
[0130] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the right edge (the second edge area) of the touch screen, then after determining the second weight coefficient group including k second weight values corresponding to the k driving channels corresponding to the current application and the second edge area based on the mapping relationship between the preset application program and the coordinate scaling parameter, the horizontal touch position of the touch operation can be adjusted based on the k second weight values, k 2 capacitance differences, and the central coordinate values of the k driving channels to determine the horizontal touch coordinate corresponding to the touch operation. Among them, the horizontal touch coordinate is the horizontal coordinate component in the target touch coordinate.
[0131] It should be noted that in the embodiments of the present application, k 2 capacitance differences can be determined first according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels. Among them, for each of the k points formed by each driving channel and all k sensing channels, there are k corresponding capacitance differences, and finally k 2 capacitance differences can be determined.
[0132] Exemplarily, in some embodiments, Figure 7 is a schematic diagram for determining the capacitance difference proposed in the embodiments of the present application. As Figure 7 shown, it is assumed that the touch information corresponding to the touch operation includes 3 driving channels, namely Tx6, Tx7, and Tx8, and the capacitance parameters of these 3 driving channels, and also includes 3 sensing channels, namely Rx8, Rx9, and Rx10, and the capacitance parameters of these 3 sensing channels. The 3 driving channels of Tx6, Tx7, and Tx8 and the 3 sensing channels of Rx8, Rx9, and Rx10 together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined. For example, diff1 is 137.
[0133] It should be noted that in the embodiments of the present application, for each driving channel and sensing channel, a corresponding central coordinate value is preset. That is, the central coordinate value corresponding to the channel is preset.
[0134] Exemplarily, in some embodiments, Figure 8 is a schematic diagram of the central coordinate value proposed in the embodiments of the present application. As Figure 8 shown, the central coordinate values corresponding to the 3 sensing channels of Rx8, Rx9, and Rx10 are respectively Rx8 = 200, Rx9 = 250, and Rx10 = 300, and the central coordinate values corresponding to the 3 driving channels of Tx6, Tx7, and Tx8 are respectively Tx6 = 100, Tx7 = 150, and Tx8 = 200.
[0135] It can be understood that in the embodiments of the present application, based on k 2 capacitance differences and the central coordinate values of k driving channels, the horizontal coordinate component of the initial touch coordinate corresponding to the touch operation can be determined, that is, the initial horizontal coordinate corresponding to the touch operation.
[0136] Exemplarily, in some embodiments, assuming that the touch area corresponding to the touch operation belongs to the right edge (the second edge area) of the touch screen, and the corresponding driving channels are Tx6, Tx7, and Tx8, then these 3 driving channels of Tx6, Tx7, and Tx8 and the corresponding 3 sensing channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined. Furthermore, the horizontal coordinate component PosTx of the initial touch coordinate can be calculated through the following formula:
[0137] PosTx = tx / Sum(1)
[0138] tx = (diff1 + diff4 + diff7) × Tx6 + (diff2 + diff5 + diff8) × Tx7 + (diff3 + diff6 + diff9) × Tx8 (2)
[0139] Sum = diff1 + diff2 + diff3 + diff4 + diff5 + diff6 + diff7 + diff8 + diff9 (3)
[0140] Among them, diff1 - diff9 are the 9 capacitance differences corresponding to the 9 points from 1 to 9, and Tx6, Tx7, and Tx8 are the central coordinate values corresponding to the 3 driving channels.
[0141] It can be understood that in the embodiments of the present application, if no adjustment and scaling processing of the touch coordinates is performed, then the initial touch coordinates can be directly used as the corresponding target touch coordinates, that is, the horizontal coordinate component of the initial touch coordinates is used as the horizontal coordinate component of the target touch coordinates.
[0142] Furthermore, in the embodiments of the present application, when determining the horizontal touch coordinate corresponding to the touch operation according to k first weight values, k 2 capacitance differences and the central coordinate values of k driving channels, k first weight values can be used to perform a weighted operation in combination with k 2 capacitance differences and the central coordinate values of k driving channels, so as to determine the corresponding horizontal touch coordinate.
[0143] Exemplarily, in some embodiments, assuming that the touch area corresponding to the touch operation belongs to the left edge (the first edge area) of the touch screen, and the corresponding driving channels are Tx3, Tx4, and Tx5, then these 3 driving channels of Tx3, Tx4, and Tx5 and the corresponding 3 sensing channels together constitute 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined. Furthermore, the horizontal touch coordinate PosTx1 can be determined with reference to the following formula:
[0144] PosTx1 = tx1 / Sum(4)
[0145] tx1 = (diff1 + diff4 + diff7) × Tx3 × K1 + (diff2 + diff5 + diff8) × Tx4 × K2 + (diff3 + diff6 + diff9) × Tx5 × K3 (5)
[0147] Wherein, K1, K2, and K3 can be 3 first weight values corresponding to the 3 driving channels of Tx3, Tx4, and Tx5, and Tx3, Tx4, and Tx5 are the central coordinate values corresponding to the 3 driving channels.
[0148] Exemplarily, in some embodiments, for the first edge area (the left edge of the touch screen), it is often necessary to shift the detected real coordinate position corresponding to the touch operation to the left. Therefore, a reduction process needs to be performed. Thus, the k first weight values can all be less than or equal to 1. For example, it is assumed that the values of K1, K2, and K3 can be 0.8, 0.8, and 0.9 respectively.
[0149] Correspondingly, in the embodiments of the present application, based on k first weight values less than or equal to 1, the touch coordinates are adjusted. The horizontal coordinate component PosTx1 of the finally calculated target touch coordinate can be less than or equal to the horizontal coordinate component of the initial touch coordinate, that is, the target touch coordinate finally obtained after the adjustment process is on the left side of the initial touch coordinate.
[0150] Furthermore, in the embodiments of the present application, when determining the horizontal touch coordinate corresponding to the touch operation according to k second weight values, k 2 capacitance differences, and the central coordinate values of k driving channels, k second weight values can be used to perform a weighted operation in combination with k 2 capacitance differences and the central coordinate values of k driving channels, so as to determine the corresponding horizontal touch coordinate.
[0151] Exemplarily, in some embodiments, assuming that the touch area corresponding to the touch operation belongs to the right edge (the first edge area) of the touch screen, and the corresponding driving channels are Tx6, Tx7, and Tx8, then these 3 driving channels of Tx6, Tx7, and Tx8 and the corresponding 3 sensing channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined. Furthermore, the horizontal touch coordinate PosTx2 can be determined with reference to the following formula:
[0152] PosTx2 = tx2 / Sum(6)
[0153] tx2 = (diff1 + diff4 + diff7) × Tx6 × K4 + (diff2 + diff5 + diff8) × Tx7 × K5 + (diff3 + diff6 + diff9) × Tx8 × K6 (7)
[0155] Wherein, K4, K5, and K6 can be the 3 second weight values corresponding to the 3 driving channels of Tx6, Tx7, and Tx8, and Tx6, Tx7, and Tx8 are the center coordinate values corresponding to the 3 driving channels.
[0156] Exemplarily, in some embodiments, for the second edge area (the right edge of the touch screen), it is often necessary to shift the detected real coordinate position of the touch operation to the right, so stretching processing needs to be performed. Therefore, the k second weight values can all be greater than or equal to 1. For example, it is assumed that the values of K4, K5, and K6 can be 1.2, 1.2, and 1.1 respectively.
[0157] Correspondingly, in the embodiments of the present application, based on the k second weight values greater than or equal to 1, the touch coordinates are adjusted. The horizontal coordinate component PosTx2 of the finally calculated target touch coordinate can be greater than or equal to the horizontal coordinate component of the initial touch coordinate, that is, the target touch coordinate finally obtained after the adjustment process is on the right side of the initial touch coordinate.
[0158] Furthermore, in the embodiments of the present application, when determining the target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information, in the case where the touch area belongs to the third edge area of the touch screen, k capacitance differences are determined according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and based on the k third weight values, the k capacitance differences, and the center coordinate values of the k sensing channels, the vertical touch coordinate corresponding to the touch operation is determined to determine the target touch coordinate. 2 k 2 capacitance differences, and the vertical touch coordinate corresponding to the touch operation is determined based on the k third weight values, the k capacitance differences, and the center coordinate values of the k sensing channels to determine the target touch coordinate.
[0159] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged horizontally and the sensing channels are arranged vertically, if the touch area corresponding to the touch parameter operation belongs to the upper edge (the third edge area) of the touch screen, then after determining the third weight coefficient group corresponding to the current application and the third edge area, which includes k third weight values corresponding to k driving channels, based on the mapping relationship between the preset application program and the coordinate scaling parameter, the vertical touch position of the touch operation can be adjusted based on the k third weight values, k 2 capacitance differences, and the central coordinate values of k sensing channels to determine the vertical touch coordinate corresponding to the touch operation. Among them, the vertical touch coordinate is the vertical coordinate component in the target touch coordinate.
[0160] Further, in the embodiments of the present application, when determining the target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information, in the case where the touch area belongs to the fourth edge area of the touch screen, k 2 capacitance differences are determined according to the capacitance parameters of k driving channels and the capacitance parameters of k sensing channels, and based on k fourth weight values, k 2 capacitance differences, and the central coordinate values of k sensing channels, the vertical touch coordinate corresponding to the touch operation is determined to determine the target touch coordinate.
[0161] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged horizontally and the sensing channels are arranged vertically, if the touch area corresponding to the touch parameter operation belongs to the lower edge (the fourth edge area) of the touch screen, then after determining the fourth weight coefficient group corresponding to the current application and the fourth edge area, which includes k fourth weight values corresponding to k driving channels, based on the mapping relationship between the preset application program and the coordinate scaling parameter, the vertical touch position of the touch operation can be adjusted based on the k fourth weight values, k 2 capacitance differences, and the central coordinate values of k sensing channels to determine the vertical touch coordinate corresponding to the touch operation. Among them, the vertical touch coordinate is the vertical coordinate component in the target touch coordinate.
[0162] It should be noted that in the embodiments of the present application, k 2 capacitance differences can be determined first according to the capacitance parameters of k driving channels and the capacitance parameters of k sensing channels. Among them, for each of the k points formed by each driving channel and all k sensing channels, there are k corresponding capacitance differences, and finally k 2 capacitance differences can be determined.
[0163] It should be noted that in the embodiments of the present application, for each driving channel and sensing channel, corresponding central coordinate values are preset. That is, the central coordinate values corresponding to the channels are preset. As Figure 8 shown, the central coordinate values corresponding to the three sensing channels Rx8, Rx9, and Rx10 are Rx8 = 200, Rx9 = 250, and Rx10 = 300 respectively, and the central coordinate values corresponding to the three driving channels Tx6, Tx7, and Tx8 are Tx6 = 100, Tx7 = 150, and Tx8 = 200 respectively.
[0164] It can be understood that in the embodiments of the present application, based on k 2 capacitance differences and the central coordinate values of k sensing channels, the vertical coordinate component of the initial touch coordinate corresponding to the touch operation can be determined, that is, the initial vertical coordinate corresponding to the touch operation.
[0165] Exemplarily, in some embodiments, assuming that the touch area corresponding to the touch operation belongs to the lower edge (the fourth edge area) of the touch screen, and the corresponding sensing channels are Rx8, Rx9, and Rx10, then the three sensing channels Rx8, Rx9, and Rx10 and the corresponding three driving channels together form nine points from 1 to 9. Based on the capacitance parameters of each channel, the nine capacitance differences diff1 - diff9 corresponding to these nine points can be further determined. Furthermore, the vertical coordinate component PosRx of the initial touch coordinate can be calculated through the following formula:
[0166] PosRx = rx / Sum(8)
[0167] rx = (diff1 + diff4 + diff7) × Rx8 + (diff2 + diff5 + diff8) × Rx9 + (diff3 + diff6 + diff9) × Rx10 (9)
[0169] Sum = diff1 + diff2 + diff3 + diff4 + diff5 + diff6 + diff7 + diff8 + diff9 (3)
[0170] where diff1 - diff9 are the nine capacitance differences corresponding to the nine points from 1 to 9, and Rx8, Rx9, and Rx10 are the central coordinate values corresponding to the three sensing channels.
[0171] It can be understood that in the embodiments of the present application, if no adjustment and scaling processing of the touch coordinates is performed, then the initial touch coordinates can be directly used as the corresponding target touch coordinates, that is, the vertical coordinate component of the initial touch coordinates is used as the vertical coordinate component of the target touch coordinates.
[0172] Further, in the embodiments of the present application, when determining the vertical touch coordinate corresponding to the touch operation according to k third weight values, k 2 capacitance differences, and the central coordinate values of k driving channels, k third weight values can be used to perform a weighted operation in combination with k 2 capacitance differences and the central coordinate values of k driving channels, so as to determine the corresponding vertical touch coordinate.
[0173] Exemplarily, in some embodiments, assuming that the touch area corresponding to the touch operation belongs to the upper edge (the third edge area) of the touch screen, and the corresponding sensing channels are Rx2, Rx3, Rx4, then these 3 sensing channels Rx2, Rx3, Rx4 and the corresponding 3 driving channels together constitute 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined, and then the vertical touch coordinate PosRx1 can be determined with reference to the following formula:
[0174] PosRx1 = rx1 / Sum(10)
[0175] rx1 = (diff1 + diff4 + diff7) × Rx2 × K7 + (diff2 + diff5 + diff8) × Rx3 × K8 + (diff3 + diff6 + diff9) × Rx4 × K9 (11)
[0177] Among them, K7, K8, K9 can be the 3 third weight values corresponding to the 3 sensing channels Rx2, Rx3, Rx4, and Rx2, Rx3, Rx4 are the central coordinate values corresponding to the 3 sensing channels.
[0178] Exemplarily, in some embodiments, for the third edge area (the upper edge of the touch screen), it is often necessary to move the detected real coordinate position of the touch operation upward, so a reduction process needs to be performed. Therefore, the k third weight values can all be less than or equal to 1. For example, it is assumed that the values of K7, K8, K9 can be 0.8, 0.8, 0.9 respectively.
[0179] Correspondingly, in the embodiments of the present application, based on k third weight values less than or equal to 1, the touch coordinates are adjusted, and the vertical coordinate component PosRx1 of the finally calculated target touch coordinate can be less than or equal to the vertical coordinate component of the initial touch coordinate, that is, the target touch coordinate finally obtained after the adjustment process is above the initial touch coordinate.
[0180] Further, in the embodiments of the present application, when according to k fourth weight values, k 2When determining the vertical touch coordinate corresponding to the touch operation using the difference values of k capacitors and the central coordinate values of k driving channels, k fourth weight values can be used, combined with the difference values of k 2 capacitors and the central coordinate values of k driving channels for weighted calculation to determine the corresponding vertical touch coordinate.
[0181] Exemplarily, in some embodiments, assume that the touch area corresponding to the touch operation belongs to the lower edge (the fourth edge area) of the touch screen, and the corresponding sensing channels are Rx8, Rx9, and Rx10. Then, these 3 sensing channels Rx8, Rx9, and Rx10 and the corresponding 3 driving channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance difference values diff1 - diff9 corresponding to these 9 points can be further determined. Furthermore, the vertical touch coordinate PosRx2 can be determined with reference to the following formula:
[0182] PosRx2 = rx2 / Sum(12)
[0183] rx2 = (diff1 + diff4 + diff7) × Rx8 × K10 + (diff2 + diff5 + diff8) × Rx9 × K11 + (diff3 + diff6 + diff9) × Rx10 × K12(13)
[0185] where K10, K11, and K12 can be the 3 fourth weight values corresponding to the 3 sensing channels Rx8, Rx9, and Rx10, and Rx8, Rx9, and Rx10 are the central coordinate values corresponding to the 3 driving channels.
[0186] Exemplarily, in some embodiments, for the fourth edge area (the lower edge of the touch screen), it is often necessary to shift the detected real coordinate position corresponding to the touch operation downward. Therefore, stretching processing needs to be performed. Thus, the k fourth weight values can all be greater than or equal to 1. For example, assume that the values of K10, K11, and K12 can be 1.2, 1.2, and 1.1 respectively.
[0187] Correspondingly, in the embodiments of the present application, based on k fourth weight values greater than or equal to 1, the touch coordinates are adjusted. The vertical coordinate component PosRx2 of the finally calculated target touch coordinate can be greater than or equal to the vertical coordinate component of the initial touch coordinate, that is, the target touch coordinate finally obtained after the adjustment process is on the lower side of the initial touch coordinate.
[0188] Further, in the embodiments of the present application, when determining the target touch coordinates corresponding to a touch operation according to the coordinate scaling parameter and touch information, in the case where the touch area belongs to the first edge area of the touch screen, the initial horizontal coordinates corresponding to the touch operation are determined according to the capacitance parameters of k driving channels and the capacitance parameters of k sensing channels, and the horizontal touch coordinates corresponding to the touch operation are determined based on the first weight coefficient and the initial horizontal coordinates, so as to determine the target touch coordinates.
[0189] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the left edge (the first edge area) of the touch screen, then after determining a first weight coefficient corresponding to the current application and the first edge area based on the mapping relationship between the preset application program and the coordinate scaling parameter, the adjustment of the horizontal touch position of the touch operation can be completed based on the first weight coefficient and the initial horizontal coordinates, and the horizontal touch coordinates corresponding to the touch operation are determined. Among them, the horizontal touch coordinates are the horizontal coordinate components in the target touch coordinates.
[0190] Further, in the embodiments of the present application, when determining the target touch coordinates corresponding to a touch operation according to the coordinate scaling parameter and touch information, in the case where the touch area belongs to the second edge area of the touch screen, the initial horizontal coordinates corresponding to the touch operation are determined according to the capacitance parameters of k driving channels and the capacitance parameters of k sensing channels, and the horizontal touch coordinates corresponding to the touch operation are determined based on the second weight coefficient and the initial horizontal coordinates, so as to determine the target touch coordinates.
[0191] It can be understood that in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the right edge (the second edge area) of the touch screen, then after determining a second weight coefficient corresponding to the current application and the first edge area based on the mapping relationship between the preset application program and the coordinate scaling parameter, the adjustment of the horizontal touch position of the touch operation can be completed based on the second weight coefficient and the initial horizontal coordinates, and the horizontal touch coordinates corresponding to the touch operation are determined. Among them, the horizontal touch coordinates are the horizontal coordinate components in the target touch coordinates.
[0192] It should be noted that in the embodiments of the present application, the initial horizontal coordinates corresponding to the touch operation can be determined first according to the capacitance parameters of k driving channels and the capacitance parameters of k sensing channels. Among them, k capacitance differences can be determined first according to the capacitance parameters of k driving channels and the capacitance parameters of k sensing channels, and then based on k 2 capacitance differences, then based on k 2Based on the capacitance differences of these channels and the central coordinate values of the k driving channels, the horizontal coordinate component of the initial touch coordinate corresponding to the touch operation can be determined, that is, the initial horizontal coordinate corresponding to the touch operation.
[0193] Exemplarily, in some embodiments, assume that the touch area corresponding to the touch operation belongs to the right edge (the second edge area) of the touch screen, and the corresponding driving channels are Tx6, Tx7, and Tx8. Then, these 3 driving channels of Tx6, Tx7, and Tx8 and the corresponding 3 sensing channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined. Furthermore, the initial horizontal coordinate PosTx can be calculated through formulas (1), (2), and (3).
[0194] Exemplarily, in some embodiments, when determining the horizontal touch coordinate corresponding to the touch operation according to the first weight coefficient and the initial horizontal coordinate, assume that the touch area corresponding to the touch operation belongs to the left edge (the first edge area) of the touch screen, and the corresponding driving channels are Tx3, Tx4, and Tx5. Then, these 3 driving channels of Tx3, Tx4, and Tx5 and the corresponding 3 sensing channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined. Furthermore, the horizontal touch coordinate PosTx1 can be determined with reference to the following formula:
[0195] PosTx1 = k1 ×
(diff1 + diff4 + diff7) × Tx3 + (diff2 + diff5 + diff8) × Tx4 + (diff3 + diff6 + diff9) × Tx5
[0196] Wherein,
(diff1 + diff4 + diff7) × Tx3 + (diff2 + diff5 + diff8) × Tx4 + (diff3 + diff6 + diff9) × Tx5
[0197] Exemplarily, in some embodiments, for the first edge area (the left edge of the touch screen), it is often necessary to shift the detected real coordinate position corresponding to the touch operation to the left. Therefore, a reduction process needs to be performed. Thus, the first weight coefficient can be less than or equal to 1. For example, assume that the value of k1 is 0.9.
[0198] Accordingly, in the embodiments of the present application, the touch coordinates are adjusted based on a first weight coefficient less than or equal to 1, and the horizontal coordinate component PosTx1 of the finally calculated target touch coordinate can be less than or equal to the initial horizontal coordinate, that is, the target touch coordinate finally obtained after the adjustment process is on the left side of the initial touch coordinate.
[0199] Exemplarily, in some embodiments, when determining the horizontal touch coordinate corresponding to a touch operation according to the second weight coefficient and the initial horizontal coordinate, assuming that the touch area corresponding to the touch operation belongs to the right edge (the second edge area) of the touch screen, and the corresponding drive channels are Tx6, Tx7, and Tx8, then these 3 drive channels Tx6, Tx7, and Tx8 and the corresponding 3 sensing channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined, and then the horizontal touch coordinate PosTx2 can be determined with reference to the following formula:
[0200] PosTx2 = k2 ×
(diff1 + diff4 + diff7) × Tx6 + (diff2 + diff5 + diff8) × Tx7 + (diff3 + diff6 + diff9) × Tx8
[0201] Wherein,
(diff1 + diff4 + diff7) × Tx3 + (diff2 + diff5 + diff8) × Tx4 + (diff3 + diff6 + diff9) × Tx5
[0202] Exemplarily, in some embodiments, for the second edge area (the right edge of the touch screen), it is often necessary to shift the detected real coordinate position of the touch operation to the right, so stretching processing needs to be performed, and thus the second weight coefficient can be greater than or equal to 1. For example, assume that the value of k2 is 1.1.
[0203] Accordingly, in the embodiments of the present application, the touch coordinates are adjusted based on a second weight coefficient greater than or equal to 1, and the horizontal coordinate component PosTx2 of the finally calculated target touch coordinate can be greater than or equal to the initial horizontal coordinate, that is, the target touch coordinate finally obtained after the adjustment process is on the right side of the initial touch coordinate.
[0204] Further, in the embodiments of the present application, when determining the target touch coordinates corresponding to a touch operation according to the coordinate scaling parameter and the touch information, in the case where the touch area belongs to the third edge area of the touch screen, the initial vertical coordinate corresponding to the touch operation is determined according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and the vertical touch coordinate corresponding to the touch operation is determined based on the third weight coefficient and the initial vertical coordinate, so as to determine the target touch coordinates.
[0205] It can be understood that, in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the upper edge (the third edge area) of the touch screen, then after determining a third weight coefficient corresponding to the current application and the third edge area based on the mapping relationship between the preset application program and the coordinate scaling parameter, the vertical touch position of the touch operation can be adjusted based on the third weight coefficient and the initial vertical coordinate to determine the vertical touch coordinate corresponding to the touch operation. Among them, the vertical touch coordinate is the vertical coordinate component in the target touch coordinates.
[0206] Further, in the embodiments of the present application, when determining the target touch coordinates corresponding to a touch operation according to the coordinate scaling parameter and the touch information, in the case where the touch area belongs to the fourth edge area of the touch screen, the initial vertical coordinate corresponding to the touch operation is determined according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and the vertical touch coordinate corresponding to the touch operation is determined based on the fourth weight coefficient and the initial vertical coordinate, so as to determine the target touch coordinates.
[0207] It can be understood that, in the embodiments of the present application, for the case where the driving channels are arranged in the horizontal direction and the sensing channels are arranged in the vertical direction, if the touch area corresponding to the touch parameter operation belongs to the lower edge (the fourth edge area) of the touch screen, then after determining a fourth weight coefficient corresponding to the current application and the fourth edge area based on the mapping relationship between the preset application program and the coordinate scaling parameter, the vertical touch position of the touch operation can be adjusted based on the fourth weight coefficient and the initial vertical coordinate to determine the vertical touch coordinate corresponding to the touch operation. Among them, the vertical touch coordinate is the vertical coordinate component in the target touch coordinates.
[0208] It should be noted that, in the embodiments of the present application, the initial vertical coordinate corresponding to the touch operation can be determined first according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels. Among them, k capacitance differences can be determined first according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and then based on k 2 capacitance differences, then based on k 2The difference in capacitance values and the central coordinate values of k sensing channels can be used to determine the vertical coordinate component of the initial touch coordinate corresponding to the touch operation, that is, the initial vertical coordinate corresponding to the touch operation.
[0209] Exemplarily, in some embodiments, assume that the touch area corresponding to the touch operation belongs to the lower edge (the fourth edge area) of the touch screen, and the corresponding sensing channels are Rx8, Rx9, and Rx10. Then, these 3 sensing channels Rx8, Rx9, and Rx10 and the corresponding 3 driving channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined. Furthermore, the initial vertical coordinate PosRx can be calculated through formulas (8), (9), and (3).
[0210] Exemplarily, in some embodiments, when determining the vertical touch coordinate corresponding to the touch operation based on the third weight coefficient and the initial vertical coordinate, assume that the touch area corresponding to the touch operation belongs to the upper edge (the third edge area) of the touch screen, and the corresponding sensing channels are Rx2, Rx3, and Rx4. Then, these 3 sensing channels Rx2, Rx3, and Rx4 and the corresponding 3 driving channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined. Furthermore, the vertical touch coordinate PosRx1 can be determined with reference to the following formula:
[0211] PosRx1 = k3 ×
(diff1 + diff4 + diff7) × Rx2 + (diff2 + diff5 + diff8) × Rx3 + (diff3 + diff6 + diff9) × Rx4
[0212] Where,
(diff1 + diff4 + diff7) × Rx2 + (diff2 + diff5 + diff8) × Rx3 + (diff3 + diff6 + diff9) × Rx4
[0213] Exemplarily, in some embodiments, for the third edge area (the upper edge of the touch screen), it is often necessary to move the detected real coordinate position of the touch operation upward, so a reduction process needs to be performed. Therefore, the third weight coefficient can be less than or equal to 1. For example, assume that the value of k3 is 0.9.
[0214] Accordingly, in the embodiments of the present application, the touch coordinates are adjusted based on a third weight coefficient less than or equal to 1, and the vertical coordinate component PosRx1 of the finally calculated target touch coordinate can be less than or equal to the initial vertical coordinate, that is, the target touch coordinate finally obtained after the adjustment process is above the initial touch coordinate.
[0215] Exemplarily, in some embodiments, when determining the vertical touch coordinate corresponding to a touch operation according to a fourth weight coefficient and an initial vertical coordinate, assuming that the touch area corresponding to the touch operation belongs to the lower edge (the fourth edge area) of the touch screen, and the corresponding sensing channels are Rx8, Rx9, and Rx10, then these 3 sensing channels Rx8, Rx9, and Rx10 and the corresponding 3 driving channels together form 9 points from 1 to 9. Based on the capacitance parameters of each channel, the 9 capacitance differences diff1 - diff9 corresponding to these 9 points can be further determined, and then the vertical touch coordinate PosRx2 can be determined with reference to the following formula:
[0216] PosRx2 = k4 ×
(diff1 + diff4 + diff7) × Rx8 + (diff2 + diff5 + diff8) × Rx9 + (diff3 + diff6 + diff9) × Rx10
[0217] Where,
(diff1 + diff4 + diff7) × Rx8 + (diff2 + diff5 + diff8) × Rx9 + (diff3 + diff6 + diff9) × Rx10
[0218] Exemplarily, in some embodiments, for the fourth edge area (the lower edge of the touch screen), it is often necessary to move the detected real coordinate position of the touch operation downward, so stretching processing needs to be performed, and thus the fourth weight coefficient can be greater than or equal to 1. For example, assume that the value of k4 is 1.1.
[0219] Accordingly, in the embodiments of the present application, the touch coordinates are adjusted based on a fourth weight coefficient greater than or equal to 1, and the vertical coordinate component PosRx2 of the finally calculated target touch coordinate can be greater than or equal to the initial vertical coordinate, that is, the target touch coordinate finally obtained after the adjustment process is below the initial touch coordinate.
[0220] It can be seen that in the embodiments of the present application, when performing scaling processing on the initial touch coordinates corresponding to a touch operation, a weight coefficient group corresponding to the edge area can be selected to adjust the touch coordinates belonging to different edge areas, that is, different driving channels or sensing channels use different weight values for scaling processing; alternatively, a weight coefficient corresponding to the edge area can be selected to adjust the touch coordinates belonging to different edge areas, that is, different driving channels or sensing channels use the same weight coefficient for scaling processing. The present application does not make specific limitations.
[0221] It can be understood that in the embodiments of the present application, if the touch area corresponding to a touch operation belongs to the middle area of the touch screen, then it is possible to choose not to perform scaling processing on the initial touch coordinates corresponding to the touch operation, but directly perform touch response to the touch operation based on the initial touch coordinates.
[0222] It can be understood that in the embodiments of the present application, when the target area corresponding to a touch operation only belongs to the upper edge or the lower edge (the third edge area or the fourth edge area), only the corresponding weight coefficient group or weight coefficient is used to adjust the touch coordinates in the vertical direction, while the touch coordinates in the horizontal direction remain unchanged; when the target area corresponding to a touch operation only belongs to the left edge or the right edge (the first edge area or the second edge area), only the corresponding weight coefficient group or weight coefficient is used to adjust the touch coordinates in the horizontal direction, while the touch coordinates in the vertical direction remain unchanged.
[0223] Correspondingly, in the embodiments of the present application, when the target area corresponding to a touch operation belongs to the upper edge (or the lower edge) and the left edge (or the right edge) at the same time, for example, the target area corresponding to the touch operation belongs to the upper edge and the right edge at the same time, then while using the corresponding weight coefficient group or weight coefficient to adjust the touch coordinates in the vertical direction, it is also necessary to use the corresponding weight coefficient group or weight coefficient to adjust the touch coordinates in the horizontal direction.
[0224] Further, in the embodiments of the present application, Figure 9 is a schematic implementation process of the touch coordinate processing method proposed in the embodiments of the present application Figure 2 , as Figure 9 shown, the touch coordinate processing method may include the following steps:
[0225] Step 104, when the current application belongs to the preset application list, execute the process of determining the coordinate scaling parameter to determine the target touch coordinates.
[0226] In an embodiment of the present application, after obtaining a touch operation corresponding to the current application on the touch screen, the terminal device may first determine whether to perform adjustment processing on the touch coordinates based on the current application. Among them, when the current application belongs to a preset application list, the terminal device may select to execute a process for determining coordinate scaling parameters to determine the target touch coordinates.
[0227] It can be understood that in an embodiment of the present application, the terminal device may pre-set a whitelist, that is, a preset application list. Correspondingly, for the application programs in the whitelist, touch coordinate adjustment may be selected to be performed, while for the application programs outside the whitelist, touch coordinate adjustment may be selected not to be performed.
[0228] It should be noted that in an embodiment of the present application, if the current application belongs to the preset application list, it can be considered that there may be a problem of inaccurate edge response for the touch operation corresponding to the current application. Therefore, the process for determining coordinate scaling parameters may be selected to be further executed, and the initial touch coordinates of the touch operation may be scaled based on the coordinate scaling parameters, so as to determine the target touch coordinates.
[0229] Step 105: When the current application does not belong to the preset application list, determine the initially adjusted touch coordinates corresponding to the touch operation according to the touch information and the preset coordinate parameters, and determine the initially adjusted touch coordinates as the target touch coordinates.
[0230] In an embodiment of the present application, after obtaining a touch operation corresponding to the current application on the touch screen, the terminal device may first determine whether to perform adjustment processing on the touch coordinates based on the current application. Among them, when the current application does not belong to the preset application list, the terminal device may determine the initially adjusted touch coordinates corresponding to the touch operation according to the touch information and the preset coordinate parameters, and determine the initially adjusted touch coordinates as the target touch coordinates.
[0231] It should be noted that in an embodiment of the present application, if the current application does not belong to the preset application list, it can be considered that there may be no problem of inaccurate edge response for the touch operation corresponding to the current application. Therefore, the initially adjusted touch coordinates corresponding to the touch operation may be further determined according to the touch information and the preset coordinate parameters, and the initially adjusted touch coordinates may be directly determined as the target touch coordinates.
[0232] Furthermore, in an embodiment of the present application, the preset coordinate parameters may be used to perform a preliminary adjustment on the initial touch coordinates corresponding to the touch operation to determine the initially adjusted touch coordinates.
[0233] That is to say, in the embodiments of the present application, when any application is running, for the touch operations detected by the touch screen, the touch coordinates corresponding to the touch operations can be initially scaled according to the preset coordinate parameters to obtain the corresponding initially adjusted touch coordinates.
[0234] Further, in the embodiments of the present application, the preset coordinate parameters may include k first values corresponding to k driving channels. Among them, the k first weight values are all less than or equal to the k first values.
[0235] Further, in the embodiments of the present application, the preset coordinate parameters include k second values corresponding to k driving channels; among them, the k second weight values are all greater than or equal to the k second values.
[0236] It should be noted that in the embodiments of the present application, the values of the first value and / or the second value can be 1. At this time, it can be considered that the touch coordinates corresponding to the touch operations are not adjusted, but the obtained initial touch coordinates are directly used as the final initially adjusted touch coordinates or target touch coordinates.
[0237] It can be understood that in the embodiments of the present application, the k first values corresponding to the k driving channels can be used to reduce the horizontal coordinates of the touch operations belonging to the first edge region. Correspondingly, since the k first weight values are all less than or equal to the k first values, it can be considered that the adjustment degree of the initial scaling process does not exceed the adjustment degree based on the coordinate scaling parameters.
[0238] It can be understood that in the embodiments of the present application, the k second values corresponding to the k driving channels can be used to stretch the horizontal coordinates of the touch operations belonging to the second edge region. Correspondingly, since the k second weight values are all greater than or equal to the k second values, it can be considered that the adjustment degree of the initial scaling process does not exceed the adjustment degree based on the coordinate scaling parameters.
[0239] Further, in the embodiments of the present application, the preset coordinate parameters include k third values corresponding to k sensing channels; among them, the k third weight values are all less than or equal to the k third values.
[0240] Further, in the embodiments of the present application, the preset coordinate parameters include k fourth values corresponding to k sensing channels; among them, the k fourth weight values are all greater than or equal to the k fourth values.
[0241] It should be noted that in the embodiments of the present application, the values of the third value and the fourth value can be 1. At this time, it can be considered that the touch coordinates corresponding to the touch operations are not adjusted, but the corresponding initial touch coordinates are directly obtained.
[0242] It can be understood that, in the embodiments of the present application, the k third values corresponding to the k sensing channels can be used to reduce the vertical coordinates of the touch operations belonging to the third edge region. Correspondingly, the k third weight values are all less than or equal to the k third values, and it can be considered that the adjustment degree of the initial stretching and shrinking process does not exceed the adjustment degree based on the coordinate stretching and shrinking parameters.
[0243] It can be understood that, in the embodiments of the present application, the k fourth values corresponding to the k sensing channels can be used to stretch the vertical coordinates of the touch operations belonging to the fourth edge region. Correspondingly, the k fourth weight values are all greater than or equal to the k fourth values, and it can be considered that the adjustment degree of the initial stretching and shrinking process does not exceed the adjustment degree based on the coordinate stretching and shrinking parameters
[0244] That is to say, in the embodiments of the present application, in one possible case, corresponding preset coordinate parameters are set for each edge position of the touch screen. Among them, the preset coordinate parameters can include the adjustment values corresponding to each sensing channel or the sensing channels, that is, the adjustment values used by different sensing channels or sensing channels can be different.
[0245] Further, in the embodiments of the present application, the preset coordinate parameters include a fifth value; among them, the first weight coefficient is less than or equal to the fifth value.
[0246] Further, in the embodiments of the present application, the preset coordinate parameters include a sixth value; among them, the second weight coefficient is greater than or equal to the sixth value.
[0247] It should be noted that, in the embodiments of the present application, the value of the fifth value and / or the sixth value can be 1. At this time, it can be considered that the touch coordinates corresponding to the touch operation are not adjusted, but the corresponding initial touch coordinates are directly obtained.
[0248] It can be understood that, in the embodiments of the present application, the fifth value can be used to reduce the horizontal coordinates of the touch operations belonging to the first edge region. Correspondingly, the first weight coefficient is less than or equal to the fifth value, and it can be considered that the adjustment degree of the initial stretching and shrinking process does not exceed the adjustment degree based on the coordinate stretching and shrinking parameters.
[0249] It can be understood that, in the embodiments of the present application, the sixth value can be used to stretch the horizontal coordinates of the touch operations belonging to the second edge region. Correspondingly, the second weight coefficient is greater than or equal to the sixth value, and it can be considered that the adjustment degree of the initial stretching and shrinking process does not exceed the adjustment degree based on the coordinate stretching and shrinking parameters.
[0250] Further, in the embodiments of the present application, the preset coordinate parameters include a seventh value; among them, the third weight coefficient is less than or equal to the seventh value; and / or.
[0251] Further, in the embodiments of the present application, the preset coordinate parameter includes an eighth value; wherein, the fourth weight coefficient is greater than or equal to the eighth value.
[0252] It should be noted that, in the embodiments of the present application, the values of the seventh value and the eighth value can be 1. At this time, it can be considered that the touch coordinates corresponding to the touch operation are not adjusted, but the corresponding initial touch coordinates are directly obtained.
[0253] It can be understood that, in the embodiments of the present application, the seventh value can be used to reduce the vertical coordinate of the touch operation belonging to the third edge area. Correspondingly, the third weight coefficient is less than or equal to the seventh value, and it can be considered that the adjustment degree of the initial stretching and shrinking process does not exceed the adjustment degree based on the coordinate stretching and shrinking parameter.
[0254] It can be understood that, in the embodiments of the present application, the eighth value can be used to stretch the vertical coordinate of the touch operation belonging to the fourth edge area. Correspondingly, the fourth weight coefficient is greater than or equal to the eighth value, and it can be considered that the adjustment degree of the initial stretching and shrinking process does not exceed the adjustment degree based on the coordinate stretching and shrinking parameter.
[0255] That is to say, in the embodiments of the present application, another possible situation is that corresponding preset coordinate parameters are set for each edge position of the touch screen. Among them, the preset coordinate parameter can be the adjustment value corresponding to the driving channel or the sensing channel in an edge area, that is, for all the driving channels or sensing channels in the same edge area, the stretching and shrinking parameter used can be the same adjustment value.
[0256] Further, in the embodiments of the present application, Figure 10 is a schematic implementation process of the touch coordinate processing method proposed in the embodiments of the present application Figure 3 , as Figure 10 shown, the touch coordinate processing method may include the following steps:
[0257] Step 106, determine the current display state of the touch screen.
[0258] In the embodiments of the present application, after obtaining the touch operation corresponding to the current application on the touch screen, the terminal device may first determine the current display state of the touch screen.
[0259] It should be noted that, in the embodiments of the present application, the current display state of the terminal is used to indicate whether the terminal is in a landscape screen state or a portrait screen state.
[0260] It can be understood that, in the embodiments of the present application, visually, the terminal has a long side and a short side. The landscape screen state means that the long side of the terminal is located above and below, and the short side of the terminal is located on the left and right; the portrait screen state means that the short side of the terminal is located above and below, and the long side of the terminal is located on the left and right.
[0261] Further, in the embodiments of the present application, when determining the current display state of the touch screen, the terminal device may first obtain target acceleration data, and then determine the current display state based on the target acceleration data.
[0262] It should be noted that, in the embodiments of the present application, the target acceleration data includes acceleration data in a first direction, acceleration data in a second direction, and acceleration data in a third direction. The first direction, the second direction, and the third direction are perpendicular to each other in pairs. The plane formed by the first direction and the second direction is parallel to the touch screen in the touch screen module, the third direction is perpendicular to the touch screen, the first direction is along the short side direction of the touch screen, and the second direction is along the long side direction of the touch screen.
[0263] Exemplarily, in some embodiments, the target acceleration data may be collected by an acceleration sensor, and the acceleration sensor sends the collected target acceleration data to the upper-layer processing module. Among them, the acceleration sensor may be a triaxial acceleration sensor, and the triaxial acceleration sensor may collect acceleration data in three directions of the X-axis, the Y-axis, and the Z-axis. Among them, the X-axis direction represents the first direction, the Y-axis direction represents the second direction, and the Z-axis direction represents the third direction.
[0264] Further, in the embodiments of the present application, when determining the current display state based on the target acceleration data, it may be determined that the current display state is a landscape state in response to the absolute value of the acceleration data in the first direction belonging to the target value range; it may also be determined that the current display state is a portrait state in response to the absolute value of the acceleration data in the second direction belonging to the target value range.
[0265] Exemplarily, in some embodiments, Figure 11 is a schematic diagram of the current display state proposed in the embodiments of the present application Figure 1 , Figure 12 is a schematic diagram of the current display state proposed in the embodiments of the present application Figure 2 , such as Figure 11 and 12 shown. Taking the top left vertex A of the front panel of the terminal as the coordinate origin, the upper border of the front panel (the short side direction of the touch screen) is the X-axis direction, the left border of the front panel (the long side direction of the touch screen) is the Y-axis direction, and the Z-axis direction is the direction perpendicular to the plane where the front panel (touch screen) is located. The positive direction of the Z-axis is upward along the Z-axis direction from the origin, and the negative direction of the Z-axis is downward along the Z-axis direction from the origin. Among them, Figure 11 the current display state in Figure 12 is the portrait state,
[0266] Exemplarily, in some embodiments, the target value range may be 8 - 9.8. That is, when the value of the acceleration data in the first direction (X direction) is within the range of 8 - 9.8 or -8 - -9.8, it indicates the landscape screen state; when the value of the acceleration data in the second direction (Y direction) is within the range of 8 - 9.8 or -8 - -9.8, it indicates the portrait screen state.
[0267] Exemplarily, in some embodiments, when the absolute value of the acceleration data in the first direction is greater than the absolute value of the acceleration data in the second direction, the current display state can be determined to be the landscape screen state.
[0268] Exemplarily, in some embodiments, when the absolute value of the acceleration data in the second direction is greater than the absolute value of the acceleration data in the first direction, the current display state can be determined to be the portrait screen state.
[0269] Step 107: In the case where the current display state is the landscape screen state, execute the determination process of the coordinate scaling parameter to determine the target touch coordinate.
[0270] In the embodiments of the present application, after determining the current display state of the touch screen, if the current display state is the landscape screen state, it can be considered that there may be a problem of inaccurate edge response for the touch operation. Therefore, it is possible to select to further execute the determination process of the coordinate scaling parameter, and perform scaling processing on the initial touch coordinate of the touch operation based on the coordinate scaling parameter, so as to determine the target touch coordinate.
[0271] Step 108: In the case where the current display state is the portrait screen state, determine the pre - adjusted touch coordinate corresponding to the touch operation according to the touch information and the preset coordinate parameter, and determine the pre - adjusted touch coordinate as the target touch coordinate.
[0272] In the embodiments of the present application, after determining the current display state of the touch screen, if the current display state is the portrait screen state, it can be considered that there may be no problem of inaccurate edge response for the touch operation corresponding to the current application. Therefore, it is possible to select to further determine the pre - adjusted touch coordinate corresponding to the touch operation according to the touch information and the preset coordinate parameter, and directly determine the pre - adjusted touch coordinate as the target touch coordinate.
[0273] In summary, through the touch coordinate processing method proposed in the above steps 101 to 108, by adjusting the touch coordinate of the touch operation through the coordinate scaling parameter corresponding to the current application, a more accurate target touch coordinate can be obtained. For the problem that different applications or scenarios cannot be differentiated, the touch coordinate processing method proposed in the embodiments of the present application can dynamically adjust the stretching coefficient of the edge, and adopt different coordinate scaling parameters for different application programs for adjustment, improving the accuracy of touch coordinate processing.
[0274] An embodiment of the present application provides a method for processing touch coordinates. After obtaining a touch operation corresponding to the current application on the touch screen, a touch area is determined according to the touch information corresponding to the touch operation; a coordinate scaling parameter corresponding to the current application is determined according to the touch area; and a target touch coordinate corresponding to the touch operation is determined according to the coordinate scaling parameter and the touch information. That is to say, in the embodiment of the present application, for the touch operation obtained on the touch screen, an appropriate coordinate scaling parameter can be determined according to the current application and the touch area corresponding to the touch operation, so that the touch coordinates of the touch operation can be adjusted according to the coordinate scaling parameter, and thus a target touch coordinate that is more in line with the true intention of the touch operation for the current application can be obtained. Furthermore, a more accurate touch response can be made to the touch operation based on the target touch coordinate. It can be seen that the method for processing touch coordinates proposed in the embodiment of the present application can perform corresponding touch coordinate adjustments for different applications, so that the feedback touch coordinates can adapt to the control setting ranges of different applications, and thus the running application can generate a true touch response to the received touch operation, improving the flexibility and accuracy of the touch response.
[0275] Based on the above embodiment, another embodiment of the present application proposes a method for processing touch coordinates.
[0276] In one embodiment, the touch screen system (terminal device or touch coordinate processing device) determines whether the foreground-started application (current application) is in a preset white list (preset application list). If it meets the condition, the corresponding second weight coefficient (coordinate scaling parameter) is obtained by querying the application and the preset second edge weight coefficient mapping table, so as to stretch the coordinates towards the edge. If it does not meet the condition, no setting is made, and the default preset first edge stretching coefficient mapping table (preset coordinate parameter) is retained.
[0277] It can be understood that in the embodiment of the present application, for the problem that different applications or scenarios cannot be differentiated, the method for processing touch coordinates proposed in the embodiment of the present application can dynamically adjust the stretching coefficient of the edge, and different coordinate scaling parameters are used for adjustment for different application programs, improving the accuracy of touch coordinate processing.
[0278] Exemplarily, in some embodiments, assume that the current application is a game application. When the game application is running, there are controls such as shooting at the top in the horizontal screen state of the touch screen. Touch operations on the edge area may not respond. However, the method for processing touch coordinates proposed in the embodiment of the present application can perform stretching processing on the touch coordinates of the touch operation through the coordinate scaling parameter to obtain a target touch coordinate that can better reflect the true intention of the touch operation, so that a touch response can be made based on the target touch coordinate.
[0279] It can be understood that, in the embodiments of the present application, the terminal device (the touch coordinate processing device) may include an upper-layer processing module and a touch screen module. Among them, communication can be carried out between the upper-layer processing module and the touch screen module, and the touch screen module includes a memory and a processor.
[0280] Exemplarily, in some embodiments, communication can be carried out between the upper-layer processing module and the touch screen module through an Inter-Integrated Circuit (I2C) interface or a Serial Peripheral Interface (SPI) interface.
[0281] Exemplarily, in some embodiments, the touch screen module can trigger an interrupt signal through the INT pin to obtain data in the touch screen system through the upper-layer processing module.
[0282] Furthermore, in the embodiments of the present application, the mapping relationship between the application program and the coordinate scaling parameter shown in Table 1 or Table 2 above can be understood as a preset application list (whitelist). Among them, for the application programs included in the preset application list, the corresponding coordinate scaling parameters can be used to adjust the touch coordinates.
[0283] It should be noted that, in the embodiments of the present application, the touch coordinates corresponding to the touch operation can be determined through a touch center coordinate calculation method. For example, assuming that the channel where Peak is located is (Tx7, Rx9), that is, the detected touch operation corresponds to the point formed by the drive channel Tx7 and the sensing channel Rx9. At this time, taking this point as the center, the number of channels can be expanded to 3, that is, k = 3, that is, the touch operation corresponds to the drive channels Tx6, Tx7, Tx8, and the sensing channels Rx8, Rx9, Rx10. Furthermore, the initial horizontal coordinate PosTx can be calculated through formulas (1), (2), (3), and the initial vertical coordinate PosRx can be calculated through formulas (8), (9), (3).
[0284] Exemplarily, in some embodiments Figure 13 is a schematic diagram of the touch coordinates proposed in the embodiments of the present application, as Figure 13As shown, it is assumed that the touch information corresponding to the touch operation includes three drive channels, namely Tx6, Tx7, and Tx8, and the capacitance parameters of these three drive channels. It also includes three sensing channels, namely Rx8, Rx9, and Rx10, and the capacitance parameters of these three sensing channels. The three drive channels Tx6, Tx7, and Tx8 and the three sensing channels Rx8, Rx9, and Rx10 together form nine points from 1 to 9. Based on the capacitance parameters of each channel, the nine capacitance differences diff1 - diff9 corresponding to these nine points can be further determined. The center coordinate values corresponding to the three sensing channels Rx8, Rx9, and Rx10 are Rx8 = 200, Rx9 = 250, and Rx10 = 300 respectively. The center coordinate values corresponding to the three drive channels Tx6, Tx7, and Tx8 are Tx6 = 100, Tx7 = 150, and Tx8 = 200 respectively. Finally, it can be calculated that PosTx is approximately equal to 162 and PosRx is approximately equal to 248.
[0285] It should be noted that in the embodiments of the present application, the initial touch coordinates can be initially adjusted using preset coordinate parameters to obtain the touch coordinates after preliminary adjustment, and then the touch coordinates after preliminary adjustment can be determined as the corresponding target touch coordinates.
[0286] Exemplarily, in some embodiments, it is assumed that the touch operation belongs to the first edge area (left edge), and the preset coordinate parameters include three first values corresponding to the three channels Tx6, Tx7, and Tx8. Among them, the three first values are all 0.9. Then, after reducing the horizontal coordinate of the touch operation using the first value, the horizontal coordinate component of the touch coordinates after preliminary adjustment is PosTx0 = 0.9×
(diff1 + diff4 + diff7)×Tx6 + (diff2 + diff5 + diff8)×Tx7 + (diff3 + diff6 + diff9)×Tx8
[0287] It should be noted that in the embodiments of the present application, the initial touch coordinates can be scaled and adjusted using the coordinate scaling parameters corresponding to the current application to obtain the target touch coordinates.
[0288] Exemplarily, in some embodiments, if the coordinate scaling parameter is a weight coefficient group, assuming that the touch operation belongs to the first edge area (left edge), the coordinate scaling parameter may include the first weight coefficient group corresponding to the three channels of Tx6, Tx7, and Tx8. The first weight coefficient group includes three first weight values. Among them, the values of the first weight values K1, K2, and K3 corresponding to the three channels of Tx6, Tx7, and Tx8 may be 0.8, 0.8, and 0.9 respectively. Then, after reducing the horizontal coordinate of the touch operation using the first weight values K1, K2, and K3, the horizontal coordinate component of the target touch coordinate obtained is PosTx1 = 0.9×
(diff1 + diff4 + diff7)×Tx6 + (diff2 + diff5 + diff8)×Tx7 + (diff3 + diff6 + diff9)×Tx8
[0289] Exemplarily, in some embodiments, if the coordinate scaling parameter is a weight coefficient, assuming that the touch operation belongs to the first edge area (left edge), the coordinate scaling parameter may include the first weight coefficient k1 corresponding to the three channels of Tx6, Tx7, and Tx8. The value of k1 is 0.9. Then, after reducing the horizontal coordinate of the touch operation using the first weight coefficient k1, the horizontal coordinate component of the target touch coordinate obtained is PosTx1 =
(diff1 + diff4 + diff7)×Tx6×0.8 + (diff2 + diff5 + diff8)×Tx7×0.8 + (diff3 + diff6 + diff9)×Tx8×0.9
[0290] Exemplarily, in some embodiments, assuming that the touch operation belongs to the second edge area (right edge), the preset coordinate parameters include three second values corresponding to three channels of Tx6, Tx7, and Tx8. Among them, all three second values are 1.1. Then, after stretching the touch operation with the second values for the horizontal coordinate, the horizontal coordinate component of the preliminarily adjusted touch coordinate obtained is PosTx0 = 1.1×
(diff1 + diff4 + diff7)×Tx6 + (diff2 + diff5 + diff8)×Tx7 + (diff3 + diff6 + diff9)×Tx8
[0291] Exemplarily, in some embodiments, if the coordinate scaling parameter is a weight coefficient group, assuming that the touch operation belongs to the second edge area (right edge), the coordinate scaling parameter may include a second weight coefficient group corresponding to three channels of Tx6, Tx7, and Tx8. The second weight coefficient group includes three second weight values. Among them, the values of the second weight values K4, K5, and K6 corresponding to the three channels of Tx6, Tx7, and Tx8 may be 1.2, 1.2, and 1.1 respectively. Then, after stretching the touch operation with the second weight values K4, K5, and K6 for the horizontal coordinate, the horizontal coordinate component of the target touch coordinate obtained is PosTx1 =
(diff1 + diff4 + diff7)×Tx6×1.2 + (diff2 + diff5 + diff8)×Tx7×1.2 + (diff3 + diff6 + diff9)×Tx8×1.1
[0292] Exemplarily, in some embodiments, if the coordinate scaling parameter is a weight coefficient, assuming that the touch operation belongs to the second edge area (right edge), the coordinate scaling parameter may include the second weight coefficients k2 corresponding to the three channels of Tx6, Tx7, and Tx8. The value of k2 is 1.1. Then, after stretching the horizontal coordinate of the touch operation using the second weight coefficient k2, the horizontal coordinate component of the obtained target touch coordinate is PosTx1 = 1.1×
(diff1 + diff4 + diff7)×Tx6 + (diff2 + diff5 + diff8)×Tx7 + (diff3 + diff6 + diff9)×Tx8
[0293] It can be understood that in the embodiments of the present application, when the target area corresponding to the touch operation only belongs to the upper edge or the lower edge (the third edge area or the fourth edge area), only the corresponding weight coefficient group or weight coefficient is used to adjust the touch coordinate in the vertical direction, while the touch coordinate in the horizontal direction remains unchanged; when the target area corresponding to the touch operation only belongs to the left edge or the right edge (the first edge area or the second edge area), only the corresponding weight coefficient group or weight coefficient is used to adjust the touch coordinate in the horizontal direction, while the touch coordinate in the vertical direction remains unchanged.
[0294] Correspondingly, in the embodiments of the present application, when the target area corresponding to the touch operation belongs to the upper edge (or the lower edge) and the left edge (or the right edge) at the same time, for example, the target area corresponding to the touch operation belongs to the upper edge and the right edge at the same time, then while using the corresponding weight coefficient group or weight coefficient to adjust the touch coordinate in the vertical direction, it is also necessary to use the corresponding weight coefficient group or weight coefficient to adjust the touch coordinate in the horizontal direction.
[0295] Exemplarily, in some embodiments, Figure 14 Schematic diagram of the implementation process of the touch coordinate processing method proposed in the embodiments of the present application Figure 4 , such as Figure 14As shown, when adjusting the touch coordinates, it is possible to first determine whether the current application belongs to a preset application list (step 201). Among them, the upper-layer processing module can query the whitelist application list according to the name of the application started in the foreground of the current system, and determine whether the application started in the foreground is in the whitelist. If it does not belong, it is possible to choose to exit the adjustment process, that is, directly use the initial touch coordinates corresponding to the touch operation as the target touch coordinates (step 202); or, if it does not meet the whitelist of the application started in the foreground, then the upper-layer processing module can issue a first instruction. Correspondingly, the touch screen module can, according to the first instruction, choose to adjust the initial touch coordinates corresponding to the touch operation according to the preset coordinate parameters, and then use the initially adjusted touch coordinates obtained as the target touch coordinates (step 203); if it belongs, that is, it meets the whitelist of the application started in the foreground, then the upper-layer processing module can issue a second instruction. Correspondingly, the touch screen module can, according to the second instruction, determine the coordinate scaling parameter corresponding to the current application (step 204), and then adjust the initial touch coordinates corresponding to the touch operation according to the coordinate scaling parameter to finally obtain the target touch coordinates (step 205). Finally, it is possible to output and respond to the target touch coordinates corresponding to the touch operation (step 206).
[0296] Furthermore, in the embodiments of the present application, it is also possible to first determine whether the touch screen is in landscape mode. If it is in landscape mode, the touch screen system is set to enter the second edge weight coefficient, that is, the coordinate scaling parameter is used to adjust the touch coordinates, improving the edge accuracy in landscape applications, thereby further improving the accuracy of touch response. If it does not meet the landscape mode, the touch screen system is set to enter the first edge weight coefficient, that is, the preset coordinate parameter is used to adjust the touch coordinates, using the default weight system.
[0297] Exemplarily, in some embodiments, Figure 15 is a schematic implementation flow of the touch coordinate processing method proposed in the embodiments of the present application Figure 5 , such as Figure 15As shown, when adjusting the touch coordinates, the target acceleration data can be obtained first (step 301), and then the current display state can be determined using the target acceleration data (step 302). It is judged whether the current display state is a landscape state (step 303). If it is not a landscape state, the upper processing module can issue a first instruction. Accordingly, the touch screen module can select to adjust the initial touch coordinates corresponding to the touch operation according to the preset coordinate parameters, and then use the initially adjusted touch coordinates obtained as the target touch coordinates (step 304). If it is a landscape state, the upper processing module can issue a second instruction. Accordingly, the touch screen module can determine the coordinate scaling parameter corresponding to the current application according to the second instruction (step 305), and then adjust the initial touch coordinates corresponding to the touch operation using the coordinate scaling parameter to finally obtain the target touch coordinates (step 306). Finally, the target touch coordinates corresponding to the touch operation can be output and responded to (step 307).
[0298] Furthermore, in the embodiments of the present application, the adjustment parameters can also be directly determined for the differences in the edge regions, and the touch coordinates can be adjusted using the adjustment parameters.
[0299] Exemplarily, in some embodiments, it is assumed that the initial touch coordinates corresponding to the touch operation are (X1, Y1), where X1 = 1000 and Y1 = 200. The touch area corresponding to (X1, Y1) belongs to the second edge region (right edge). At this time, the coordinate scaling parameter is set to 110 / 100, and the preset coordinate parameter is 105 / 100. The two adjustment parameters are respectively used for coordinate adjustment processing. The adjustment result corresponding to the coordinate scaling parameter is X = 1000 × 110 / 100 = 1100, and the adjustment result corresponding to the preset coordinate parameter is X = 1000 × 105 / 100 = 1050. At this time, the horizontal coordinate component of the target touch coordinates obtained after adjusting the touch coordinates using the coordinate scaling parameter is larger than the horizontal coordinate component of the initially adjusted touch coordinates and is more to the right.
[0300] Exemplarily, in some embodiments, it is assumed that the initial touch coordinates corresponding to the touch operation are (X1, Y1), where X1 = 100 and Y1 = 200. The touch area corresponding to (X1, Y1) belongs to the first edge region (left edge). At this time, the coordinate scaling parameter is set to 90 / 100, and the preset coordinate parameter is 95 / 100. The two adjustment parameters are respectively used for coordinate adjustment processing. The adjustment result corresponding to the coordinate scaling parameter is X = 1000 × 90 / 100 = 90, and the adjustment result corresponding to the preset coordinate parameter is X = 1000 × 95 / 100 = 95. At this time, the horizontal coordinate component of the target touch coordinates obtained after adjusting the touch coordinates using the coordinate scaling parameter is smaller than the horizontal coordinate component of the initially adjusted touch coordinates and is more to the left.
[0301] An embodiment of the present application provides a method for processing touch coordinates. After obtaining a touch operation corresponding to the current application on the touch screen, a touch area is determined according to the touch information corresponding to the touch operation; a coordinate scaling parameter corresponding to the current application is determined according to the touch area; and a target touch coordinate corresponding to the touch operation is determined according to the coordinate scaling parameter and the touch information. That is to say, in the embodiment of the present application, for the touch operation obtained on the touch screen, an appropriate coordinate scaling parameter can be determined according to the current application and the touch area corresponding to the touch operation, so that the touch coordinates of the touch operation can be adjusted according to the coordinate scaling parameter, and thus a target touch coordinate that is more in line with the true intention of the touch operation for the current application can be obtained. Furthermore, a more accurate touch response can be performed on the touch operation based on the target touch coordinate. It can be seen that the method for processing touch coordinates proposed in the embodiment of the present application can perform corresponding touch coordinate adjustment for different applications, so that the feedback touch coordinates can adapt to the control setting ranges of different applications, and thus the running application can generate a true touch response to the received touch operation, improving the flexibility and accuracy of the touch response.
[0302] Based on the above embodiment, in another embodiment of the present application, Figure 16 is a schematic structural diagram of the composition of the touch coordinate processing device proposed in the embodiment of the present application. As Figure 16 shown, the touch coordinate processing device 11 proposed in the embodiment of the present application may include a determination unit 111.
[0303] The determination unit 111 is configured to, after obtaining a touch operation corresponding to the current application on the touch screen, determine a touch area according to the touch information corresponding to the touch operation; determine a coordinate scaling parameter corresponding to the current application according to the touch area; and determine a target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information.
[0304] In the embodiment of the present application, further, Figure 17 is a schematic structural diagram of the composition of the terminal device proposed in the embodiment of the present application. As Figure 17 shown, the terminal device 12 proposed in the embodiment of the present application may include a processor 121, a memory 122 storing executable instructions of the processor 121. Further, the software test device 10 may further include a communication interface 123 and a bus 124 for connecting the processor 121, the memory 122, and the communication interface 123.
[0305] In an embodiment of the present application, the above-mentioned processor 121 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic devices for implementing the above-mentioned processor functions may also be others, and the embodiments of the present application do not make specific limitations. The software testing device 10 may further include a memory 122, and the memory 122 may be connected to the processor 121. Among them, the memory 122 is used to store executable program codes, and the program codes include computer operation instructions. The memory 122 may include a high-speed RAM memory and may also include a non-volatile memory, for example, at least two disk memories.
[0306] In an embodiment of the present application, the bus 124 is used to connect the communication interface 123, the processor 121, and the memory 122 and for mutual communication between these devices.
[0307] In an embodiment of the present application, the memory 122 is used to store instructions and data.
[0308] Further, in an embodiment of the present application, the above-mentioned processor 121 is used to, after obtaining a touch operation corresponding to the current application on the touch screen, determine a touch area according to the touch information corresponding to the touch operation; determine a coordinate scaling parameter corresponding to the current application according to the touch area; and determine a target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information.
[0309] In practical applications, the above-mentioned memory 122 may be a volatile memory, such as a Random-Access Memory (RAM); or a non-volatile memory, such as a Read-Only Memory (ROM), a flash memory, a Hard Disk Drive (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories, and provide instructions and data to the processor 121.
[0310] In addition, in this embodiment, each functional module may be integrated in a processing unit, may exist physically separately for each unit, or two or more units may be integrated in one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional module.
[0311] If the integrated unit is implemented in the form of a software functional module and is not sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of this technical solution, may be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method of this embodiment. The foregoing storage medium includes: USB flash drives, mobile hard disks, Read Only Memories (ROMs), Random-Access Memories (RAMs), magnetic disks, or optical discs and other various media that can store program codes.
[0312] The embodiments of the present application provide a touch coordinate processing device and a terminal device. After obtaining a touch operation corresponding to a current application on a touch screen, a touch area is determined according to the touch information corresponding to the touch operation; a coordinate scaling parameter corresponding to the current application is determined according to the touch area; and a target touch coordinate corresponding to the touch operation is determined according to the coordinate scaling parameter and the touch information. That is to say, in the embodiments of the present application, for a touch operation obtained on a touch screen, an appropriate coordinate scaling parameter can be determined according to the current application and the touch area corresponding to the touch operation, so that the touch coordinates of the touch operation can be adjusted according to the coordinate scaling parameter, and thus a target touch coordinate that is more in line with the true intention of the touch operation for the current application can be obtained. Furthermore, a more accurate touch response can be made to the touch operation based on the target touch coordinate. It can be seen that the touch coordinate processing method proposed in the embodiments of the present application can perform corresponding touch coordinate adjustments for different applications, so that the feedback touch coordinates can adapt to the control setting ranges of different applications, thereby enabling the running applications to generate a true touch response to the received touch operations, and improving the flexibility and accuracy of the touch response.
[0313] The embodiments of the present application provide a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the above-mentioned touch coordinate processing method is implemented.
[0314] Specifically, the program instructions corresponding to a touch coordinate processing method in this embodiment can be stored on storage media such as optical discs, hard disks, and USB flash drives. When the program instructions corresponding to a touch coordinate processing method in the storage medium are read or executed by an electronic device, the following steps are included:
[0315] After obtaining a touch operation corresponding to a current application on a touch screen, a touch area is determined according to the touch information corresponding to the touch operation;
[0316] A coordinate scaling parameter corresponding to the current application is determined according to the touch area;
[0317] A target touch coordinate corresponding to the touch operation is determined according to the coordinate scaling parameter and the touch information.
[0318] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) containing computer-usable program code.
[0319] This application is described with reference to the schematic flow diagrams and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the schematic flow diagrams and / or block diagrams, as well as the combinations of flows and / or blocks in the schematic flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices produce means for implementing the functions specified in one or more of the flow diagrams and / or block diagrams. Figure 1 one or more of the flows Figure 1 or means for implementing the functions specified in one or more of the blocks.
[0320] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including instruction means for implementing the functions specified in one or more of the flow diagrams and / or block diagrams. Figure 1 one or more of the flows Figure 1 or means for implementing the functions specified in one or more of the blocks.
[0321] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flow diagrams and / or block diagrams. Figure 1 one or more of the flows Figure 1 or steps for implementing the functions specified in one or more of the blocks.
[0322] As described above, it is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A method for processing touch coordinates, characterized in that, The method includes: After obtaining a touch operation corresponding to the current application on the touch screen, determining a touch area according to touch information corresponding to the touch operation; Determining a coordinate scaling parameter corresponding to the current application according to the touch area; Determining a target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information.
2. The method according to claim 1, characterized in that, The method further includes: Determining the touch information corresponding to the touch operation; wherein, the k drive channels corresponding to the touch operation and capacitance parameters of the k drive channels, and the k sensing channels corresponding to the touch operation and capacitance parameters of the k sensing channels; wherein, k is an integer greater than or equal to 1.
3. The method according to claim 2, characterized in that, The method further includes: When the current application belongs to a preset application list, executing a determination process of the coordinate scaling parameter to determine the target touch coordinate; When the current application does not belong to the preset application list, determining a preliminarily adjusted touch coordinate corresponding to the touch operation according to the touch information and preset coordinate parameters, and determining the preliminarily adjusted touch coordinate as the target touch coordinate.
4. The method according to claim 3, characterized in that, The determining the coordinate scaling parameter corresponding to the current application according to the touch area includes: When the touch area belongs to a first edge area of the touch screen, determining a first weight coefficient group corresponding to the current application as the coordinate scaling parameter; wherein, the first weight coefficient group includes k first weight values corresponding to the k drive channels; When the touch area belongs to a second edge area of the touch screen, determining a second weight coefficient group corresponding to the current application as the coordinate scaling parameter; wherein, the second weight coefficient group includes k second weight values corresponding to the k drive channels.
5. The method according to claim 3, characterized in that, The determining the coordinate scaling parameter corresponding to the current application according to the touch area includes: When the touch area belongs to a third edge area of the touch screen, determining a third weight coefficient group corresponding to the current application as the coordinate scaling parameter; wherein, the third weight coefficient group includes k third weight values corresponding to the k sensing channels; When the touch area belongs to a fourth edge area of the touch screen, determining a fourth weight coefficient group corresponding to the current application as the coordinate scaling parameter; wherein, the fourth weight coefficient group includes k fourth weight values corresponding to the k sensing channels.
6. The method according to claim 4, characterized in that, The determining the target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information includes: When the touch area belongs to the first edge area of the touch screen, determine k 2 capacitance differences according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and based on the k first weight values, the k 2 capacitance differences and the central coordinate values of the k driving channels, determine the horizontal touch coordinate corresponding to the touch operation to determine the target touch coordinate; When the touch area belongs to the second edge area of the touch screen, k capacitance differences are determined according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and based on the k second weight values, the k capacitance differences, and the central coordinate values of the k driving channels, the horizontal touch coordinate corresponding to the touch operation is determined to determine the target touch coordinate. 2 capacitance differences, and based on the k second weight values, the k 2 capacitance differences and the central coordinate values of the k driving channels, the horizontal touch coordinate corresponding to the touch operation is determined to determine the target touch coordinate.
7. The method according to claim 5, characterized in that, The determining the target touch coordinate corresponding to the touch operation according to the coordinate scaling parameter and the touch information includes: When the touch area belongs to the third edge area of the touch screen, k capacitance differences are determined according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and based on the k third weight values, the k capacitance differences, and the central coordinate values of the k sensing channels, the vertical touch coordinate corresponding to the touch operation is determined to determine the target touch coordinate; 2 capacitance differences, and based on the k third weight values, the k 2 capacitance differences and the central coordinate values of the k sensing channels, the vertical touch coordinate corresponding to the touch operation is determined to determine the target touch coordinate; When the touch area belongs to the fourth edge area of the touch screen, k capacitance differences are determined according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and based on the k fourth weight values, the k capacitance differences, and the central coordinate values of the k sensing channels, the vertical touch coordinate corresponding to the touch operation is determined to determine the target touch coordinate. 2 capacitance differences, and based on the k fourth weight values, the k 2 capacitance differences and the central coordinate values of the k sensing channels, the vertical touch coordinate corresponding to the touch operation is determined to determine the target touch coordinate.
8. The method according to claim 3, characterized in that, The method further includes: When the touch area belongs to a first edge area of the touch screen, determining a first weight coefficient corresponding to the current application as the coordinate scaling parameter; When the touch area belongs to a second edge area of the touch screen, determining a second weight coefficient corresponding to the current application as the coordinate scaling parameter.
9. The method according to claim 3, characterized in that, The determining the coordinate scaling parameter corresponding to the current application according to the touch area includes: When the touch area belongs to the third edge area of the touch screen, determine the third weight coefficient corresponding to the current application as the coordinate scaling parameter; When the touch area belongs to the fourth edge area of the touch screen, determine the fourth weight coefficient corresponding to the current application as the coordinate scaling parameter.
10. The method according to claim 8, characterized in that, The determining the target touch coordinates corresponding to the touch operation according to the coordinate scaling parameter and the touch information includes: When the touch area belongs to the first edge area of the touch screen, determine the initial horizontal coordinate corresponding to the touch operation according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and determine the horizontal touch coordinate corresponding to the touch operation based on the first weight coefficient and the initial horizontal coordinate, so as to determine the target touch coordinates; When the touch area belongs to the second edge area of the touch screen, determine the initial horizontal coordinate corresponding to the touch operation according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and determine the horizontal touch coordinate corresponding to the touch operation based on the second weight coefficient and the initial horizontal coordinate, so as to determine the target touch coordinates.
11. The method according to claim 9, characterized in that, The determining the target touch coordinates corresponding to the touch operation according to the coordinate scaling parameter and the touch information includes: When the touch area belongs to the third edge area of the touch screen, determine the initial vertical coordinate corresponding to the touch operation according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and determine the vertical touch coordinate corresponding to the touch operation based on the third weight coefficient and the initial vertical coordinate, so as to determine the target touch coordinates; When the touch area belongs to the fourth edge area of the touch screen, determine the initial vertical coordinate corresponding to the touch operation according to the capacitance parameters of the k driving channels and the capacitance parameters of the k sensing channels, and determine the vertical touch coordinate corresponding to the touch operation based on the fourth weight coefficient and the initial vertical coordinate, so as to determine the target touch coordinates.
12. The method according to any one of claims 3-11, characterized in that, The method further includes: Determine the current display state of the touch screen; When the current display state is the landscape screen state, execute the determination process of the coordinate scaling parameter to determine the target touch coordinates; When the current display state is the portrait screen state, determine the initially adjusted touch coordinates corresponding to the touch operation according to the touch information and the preset coordinate parameters, and determine the initially adjusted touch coordinates as the target touch coordinates.
13. A processing device for touch coordinates, characterized in that, The touch coordinate processing device includes: a determination unit, The determination unit is configured to, after obtaining the touch operation corresponding to the current application on the touch screen, determine the touch area according to the touch information corresponding to the touch operation; determine the coordinate scaling parameter corresponding to the current application according to the touch area; and determine the target touch coordinates corresponding to the touch operation according to the coordinate scaling parameter and the touch information.
14. A terminal device, characterized in that, The terminal device includes: a processor and a memory; wherein, The memory is used for storing a computer program that can run on the processor; The processor is used for executing the method according to any one of claims 1-12 when running the computer program.
15. A computer-readable storage medium, on which a program is stored, characterized in that, When the program is executed by the processor, the method according to any one of claims 1-12 is implemented.