Touch event reporting method, device, terminal and storage medium

By judging the application scenario in the terminal and adjusting the touch accuracy, the problem of insufficient touch recognition in the prior art is solved, and a better touch experience and user interaction is achieved.

CN113031814BActive Publication Date: 2024-11-12GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110292806.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-18
Publication Date
2024-11-12
Estimated Expiration
2041-03-18

AI Technical Summary

Technical Problem

In the prior art, it is difficult to adjust the touch accuracy according to the scene of the application in touch recognition, resulting in insufficient diversification of the touch experience.

Method used

By introducing an upper-level processing module into the terminal, we can determine whether the application is in the target scenario and send instructions to the touch screen module to adjust the touch accuracy to match the needs of the application and improve the diversity of touch recognition.

Benefits of technology

When the application is in the target scenario, improve touch accuracy to improve the touch experience. It is suitable for scenarios that require high accuracy. When non-target scenarios, reduce accuracy to prevent noise jitter and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113031814B_ABST
    Figure CN113031814B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a touch event reporting method, device, terminal and storage medium, and relate to the field of terminal technology. The method includes: in response to an application in the foreground running state being in a target scene, the upper processing module sends a first instruction to the touch screen module; the touch screen module sets the touch accuracy of the touch screen module to a first touch accuracy based on the first instruction; and reports the first touch event to the upper processing module according to the first touch accuracy. The embodiments of the present application determine whether the application is in the target scene, and when the application is in the target scene, sets the touch accuracy to high touch accuracy, and reports the touch event according to high touch accuracy. The present application adjusts the touch accuracy for the application, thereby improving the diversity of touch recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a touch event reporting method, device, terminal and storage medium. Background Art

[0002] With the development of terminal technology, a mobile terminal is usually provided with a touch screen, and the touch screen can sense a user's touch operation on the touch screen.

[0003] In related technologies, the basic principle of a touch screen is usually capacitive sensing. When a user's finger or object touches the sensing material on the touch screen surface, the capacitance changes, and the touch screen calculates the number of fingers or objects currently pressing the touch screen surface through an algorithm. Summary of the invention

[0004] The present application provides a touch event reporting method, device, terminal and storage medium. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides a touch event reporting method, the method comprising:

[0006] In response to the application in the foreground running state being in the target scene, the upper layer processing module sends a first instruction to the touch screen module;

[0007] The touch screen module sets the touch accuracy of the touch screen module to a first touch accuracy based on the first instruction; and reports a first touch event to the upper-layer processing module according to the first touch accuracy.

[0008] On the other hand, an embodiment of the present application provides a touch event reporting device, the device comprising:

[0009] In response to the application in the foreground running state being in the target scene, the upper layer processing module is used to send a first instruction to the touch screen module;

[0010] The touch screen module is used to set the touch accuracy of the touch screen module to a first touch accuracy based on the first instruction; and report a first touch event to the upper-layer processing module according to the first touch accuracy.

[0011] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the touch event reporting method as described in the above aspects.

[0012] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the touch event reporting method as described in the above aspects.

[0013] In another aspect, an embodiment of the present application provides a computer program product, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the above-mentioned touch event reporting method.

[0014] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:

[0015] By determining whether the application is in the target scene, when the application is in the target scene, the touch accuracy is set to high touch accuracy, and touch events are reported according to the high touch accuracy. This application adjusts the touch accuracy for the application and improves the diversity of touch recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flow chart of a touch event reporting method provided by an embodiment of the present application;

[0017] Figure 2 is a flow chart of a touch event reporting method provided by another embodiment of the present application;

[0018] Figure 3 is a flow chart of a touch event reporting method provided by another embodiment of the present application;

[0019] Figure 4 is a block diagram of a touch event reporting device provided by an embodiment of the present application;

[0020] Figure 5 This is a structural block diagram of a terminal provided by an embodiment of the present application. DETAILED DESCRIPTION

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

[0022] Please refer to Figure 1 , which shows a flow chart of a touch event reporting method provided by an embodiment of the present application. The method can be applied in a terminal, and the method may include the following steps.

[0023] Step 101: In response to an application in a foreground running state being in a target scene, an upper layer processing module sends a first instruction to a touch screen module.

[0024] The application in the foreground running state refers to the state in which the user interface of the application is displayed on the touch screen of the terminal. The application can be any application, and the application can be a social application, a game application, a video application, a music application, etc.

[0025] The target scene refers to a scene in which an application needs to use high touch accuracy. Exemplarily, when an application in the foreground running state is in an application whitelist, the application is in a target scene, and the application whitelist is used to indicate at least one application in a target scene. Exemplarily, the target scene can also be referred to as a target state (a state in which an application needs to use high touch accuracy) or other names, which are not limited in the embodiments of the present application. Exemplarily, when an application in the foreground running state is an application of a preset type, the application is in a target scene. For example, when an application in the foreground running state is a game application, the application is in a target scene.

[0026] An upper-layer processing module refers to a module in a terminal that has an upper-layer service function. In an embodiment of the present application, an upper-layer processing module refers to a module used to determine whether an application is in a target scene. Exemplarily, the upper-layer processing module may also be referred to as an upper-layer system service, a terminal system, a terminal system service, etc., which is not limited in the embodiment of the present application. In an embodiment of the present application, a terminal refers to an electronic device with a touch screen. Exemplarily, a terminal may include electronic devices such as mobile phones, tablet computers, PCs (Personal Computers), smart wearable devices, etc., which is not limited in the embodiment of the present application. Exemplarily, an upper-layer processing module is a software module. The upper-layer processing module is mainly used to process operating systems, user interfaces, and applications, etc.

[0027] The touch screen module refers to a module related to the touch screen in the terminal. The upper layer processing module and the touch screen module can communicate with each other. Exemplarily, the upper layer processing module and the touch screen module can communicate with each other through an I2C (Inter-Integrated Circuit) interface or an SPI (Serial Peripheral Interface) interface.

[0028] The first instruction is an instruction for setting the touch accuracy of the touch screen module to the first touch accuracy. Touch accuracy refers to the ability of the touch screen to sense the minimum change of the user touching the touch screen. The smaller the touch accuracy, the greater the ability of the touch screen to sense the minimum change of the user touching the touch screen. Exemplarily, touch accuracy can also be referred to as touch resolution, touch coordinate resolution, touch reporting range, etc., which is not limited in the embodiments of the present application.

[0029] Step 102: The touch screen module sets the touch accuracy of the touch screen module to the first touch accuracy based on the first instruction.

[0030] Exemplarily, the first touch accuracy is higher than the current original touch accuracy of the terminal. The higher the touch accuracy, the higher the accuracy recognition capability, and the better the touch experience.

[0031] The touch screen module sets the touch accuracy of the touch screen module from the original touch accuracy to the first touch accuracy based on the first instruction.

[0032] Exemplarily, the first touch accuracy may include 0.25, 0.5, 0.2, etc. When the first touch accuracy is 0.25, it means that one coordinate scale in the original coordinate system of the touch screen is split into 4 coordinate scales; when the first touch accuracy is 0.5, it means that one coordinate scale in the original coordinate system of the touch screen is split into 2 coordinate scales; when the first touch accuracy is 0.2, it means that one coordinate scale in the original coordinate system of the touch screen is split into 5 coordinate scales.

[0033] Step 103: The touch screen module reports the first touch event to the upper layer processing module according to the first touch accuracy.

[0034] The first touch event may be any touch event, and the first touch event is used to indicate the touch behavior triggered by the user on the user interface of the application program collected by the touch screen module. Exemplarily, the first touch event refers to the touch point when the user touches the touch screen, that is, the coordinate range when the user touches the touch screen.

[0035] The embodiment of the present application determines the touch accuracy that matches the application based on the application, which can improve the touch experience for some scenes that require high-precision touch.

[0036] To summarize, in the technical solution provided in the embodiment of the present application, by judging whether the application is in the target scene, when the application is in the target scene, the touch accuracy is set to high touch accuracy, and the touch event is reported according to the high touch accuracy. The present application adjusts the touch accuracy for the application, thereby improving the diversity of touch recognition.

[0037] Please refer to Figure 2 , which shows a flow chart of a touch event reporting method provided by another embodiment of the present application. The method can be applied in a terminal, and the method may include the following steps.

[0038] Step 201: The upper layer processing module obtains an application whitelist.

[0039] The application whitelist is used to indicate a set of applications in the target scenario, and the application set includes at least one application. The application whitelist can be set by the user. For example, the user can select the application that he wants to be in the target scenario in the setting interface, and the terminal receives an add instruction for the application and adds the application to the application whitelist.

[0040] The application whitelist may be stored in a memory, and the upper layer processing module accesses the memory to obtain the application whitelist.

[0041] Step 202: In response to the application being in the application whitelist, the upper layer processing module sends a first instruction to the touch screen driving unit.

[0042] When the application is in the application whitelist, it indicates that the application is in the target scenario, and the upper layer processing module sends a first instruction to the touch screen module.

[0043] In a possible implementation, after the upper-layer processing module obtains the application whitelist, it is also necessary to perform the following steps:

[0044] First, the upper layer processing module obtains the identification information of the application.

[0045] Second, the upper layer processing module determines whether the application whitelist includes the identification information of the application program.

[0046] Third, in response to the application whitelist including identification information of the application, the upper-layer processing module determines that the application is in the application whitelist.

[0047] Fourth, in response to the application whitelist not including the identification information of the application program, the upper-layer processing module determines that the application program is not in the application whitelist.

[0048] The application whitelist may include identification information of at least one application, where the identification information is used to uniquely identify the application. The identification information of the application may be the name of the application, the package name (the name of the application's installation package), etc. In a possible implementation, a technician may set a corresponding serial number for each application. The serial number is the identification information of the application. Different applications have different corresponding serial numbers. When the identification information of the application is a serial number, the application whitelist may include at least one serial number.

[0049] Taking the identification information of the application as the name of the application as an example, the upper-layer processing module obtains the name of the application in the foreground running state, and the upper-layer processing module compares the name of the application in the foreground running state with the identification of at least one application included in the application whitelist to determine whether the application whitelist includes the name of the application in the foreground running state. In response to the application whitelist including the name of the application in the foreground running state, the upper-layer processing module determines that the application is in the application whitelist and the application is in the target scenario; in response to the application whitelist not including the name of the application in the foreground running state, the upper-layer processing module determines that the application is not in the application whitelist and the application is not in the target scenario.

[0050] In an illustrative embodiment, the touch screen module includes a touch screen driver unit and a touch screen component unit. Exemplarily, the touch screen driver unit is a software unit, and the touch screen component unit is a hardware unit. The touch screen component unit may also have its own CPU (Central Processing Unit) and memory, and may also perform data calculations (including but not limited to converting touch information based on the touch screen into touch coordinates). The touch screen driver unit is used to receive instructions from the upper processing module and communicate with the touch screen component unit.

[0051] Correspondingly, the touch screen driving unit receives the first instruction from the upper layer processing module.

[0052] Step 203: The touch screen driving unit sends the first instruction to the touch screen component unit.

[0053] The touch screen driving unit forwards the first instruction from the upper layer processing module to the touch screen component unit.

[0054] Step 204: the touch screen component unit sets the touch accuracy to the first touch accuracy.

[0055] In a possible implementation, this step includes the following sub-steps:

[0056] Step 204a: the touch screen component unit accesses the register, and determines the first touch precision corresponding to the first instruction from the correspondence relationship between at least one instruction and the touch precision stored in the register.

[0057] The touch screen module includes a register, which is a memory of the touch screen component. The register stores at least one correspondence between an instruction and touch accuracy. The touch screen can determine the touch accuracy corresponding to the instruction from the upper processing module based on the correspondence.

[0058] Step 204b: the touch screen component unit sets the touch accuracy to the first touch accuracy.

[0059] The touch screen component unit sets the touch accuracy from the current original touch accuracy of the terminal to the first touch accuracy.

[0060] Step 205: The touch screen component unit reports the first touch event to the upper layer processing module according to the first touch accuracy.

[0061] In an illustrative embodiment, the first touch event includes: the touch coordinates of the touch screen in the touch screen module when the user touches it. For example, taking the first touch accuracy of 0.25 as an example for description, the touch coordinates of the touch screen in the touch screen module when the user touches it can be reported by the touch screen component unit as 4. It should be noted that the touch coordinates reported by the touch screen component unit are integers.

[0062] In a possible implementation, the upper processing module receives the touch coordinates of the touch screen from the touch screen component unit, and the upper processing module needs to convert the touch coordinates into actual processing data. The upper processing module needs to multiply the touch coordinates by the touch accuracy to obtain the actual processing data. For example, the touch coordinates reported by the touch screen component unit are 1, and the touch accuracy is 0.25, then the upper processing module determines 1*0.25=0.25 as the actual processing data. For another example, the touch coordinates reported by the touch screen component unit are 2, and the touch accuracy is 0.25, then the upper processing module determines 2*0.25=0.5 as the actual processing data. After obtaining the actual processing data, the upper processing module responds to the user's touch operation based on the actual processing data.

[0063] Exemplarily, there is a proportional mapping relationship between the touch coordinate system and the display resolution. For example, if the display resolution is 1080*2400, the range of X in the touch coordinate system is 0-1080*(1 / touch accuracy), and the range of Y is 0-1080*(1 / touch accuracy).

[0064] Exemplarily, there is also a proportional conversion relationship between the touch coordinate system and the actual physical size of the touch screen. For example, the actual length of the touch screen is 12 cm, and the corresponding X range is 0-1080*5, then the minimum precision range of the recognized operation can be 0.0222 mm per pixel.

[0065] In summary, in the technical solution provided in the embodiment of the present application, by obtaining the identification information of the application, when the identification information of the application is in the application whitelist, the touch accuracy is adjusted, and the operation is simple.

[0066] Please refer to Figure 3 , which shows a flow chart of a touch event reporting method provided by another embodiment of the present application. The method can be applied in a terminal, and the method may include the following steps.

[0067] Step 301: In response to an application in a foreground running state being in a target scene, an upper layer processing module sends a first instruction to a touch screen module.

[0068] In a possible implementation, step 301 includes the following sub-steps:

[0069] Step 301a: The upper layer processing module determines an instruction corresponding to the application type of the application based on the application type of the application.

[0070] Exemplarily, different application types may correspond to different instructions. The terminal stores the correspondence between each application type and its corresponding instructions, and the upper-layer processing module can determine the instructions corresponding to the application type of the application in the foreground running state based on the correspondence. Exemplarily, the touch accuracy corresponding to the following application types can be reduced in sequence: game applications, shooting applications, social applications, life applications, etc. (this example is only exemplary and can be set according to actual conditions, and the embodiments of this application are not limited to this).

[0071] Because commands correspond to touch accuracy, different commands correspond to different touch accuracy. Determining commands based on application types can make the touch accuracy more diverse and better meet the touch recognition requirements of the application.

[0072] Step 301b: The upper layer processing module determines the instruction corresponding to the application type of the application program as the first instruction.

[0073] Step 301c: The upper layer processing module sends a first instruction to the touch screen module.

[0074] In a possible implementation, the same application type may correspond to different instructions. The instructions corresponding to the application can be set by the user. For example, the user can set the instructions corresponding to each application in the setting interface, and the user can also set the instructions corresponding to each application type in the setting interface.

[0075] Step 302: The touch screen module sets the touch accuracy of the touch screen module to the first touch accuracy based on the first instruction.

[0076] Step 303: The touch screen module reports the first touch event to the upper layer processing module according to the first touch accuracy.

[0077] The description of step 302 and step 303 can be found in the above embodiment, which will not be repeated here.

[0078] Step 304: In response to the application not being in the target scene, the upper layer processing module sends a second instruction to the touch screen module.

[0079] In the embodiment of the present application, the second instruction refers to an instruction for setting the touch accuracy of the touch screen module to the second touch accuracy.

[0080] When the application is not in the target scene, it means that the application may not need higher touch accuracy. The accuracy of the second touch accuracy is lower than that of the first touch accuracy. The second touch accuracy can be the same as the current original touch accuracy of the terminal, or it can be higher than the original touch accuracy but lower than the first touch accuracy. Assuming that the current original touch accuracy of the terminal can be the same as the display resolution, for example, assuming that the display resolution is 1080*2400, the original coordinate range of the touch screen can also be 1080*2400, that is, the original touch accuracy can be 1. Exemplarily, the second touch accuracy is the original touch accuracy. In response to the application not being in the target scene, the upper-level processing module sends a second instruction to the touch screen module, and the above-mentioned second instruction refers to an instruction for setting the touch accuracy of the touch screen module to the original touch accuracy.

[0081] It should be noted that the terminal only executes one of step 301 and step 304 at the same time, that is, if the terminal executes step 301, it will not execute steps 304 to 306, and if the terminal executes step 304, it will not execute steps 301 to 303.

[0082] Step 305: The touch screen module sets the touch accuracy of the touch screen module to the second touch accuracy based on the second instruction.

[0083] Step 306: The touch screen module reports the second touch event to the upper layer processing module according to the second touch accuracy.

[0084] The second touch event may be any touch event, and the second touch event may be the touch coordinates of the touch screen in the touch screen module when the user touches the touch screen.

[0085] Taking the second touch accuracy of 1 as an example, the touch screen module reports that the touch coordinate of the user touching the touch screen is 4, then the upper-layer processing module determines 4 as the actual processing data, and responds to the user's touch operation based on the actual processing data.

[0086] When the application is not in the target scenario, setting a lower-precision touch progress can prevent the side effects of jitter caused by excessive precision and noise jitter, further improving the user experience.

[0087] Step 307: In response to the application program switching from the foreground running state to the background running state or the application program switching from the foreground running state to the closed state, the upper layer processing module sends a third instruction to the touch screen module.

[0088] In the embodiment of the present application, the third instruction refers to an instruction for setting the touch accuracy of the touch screen module to a third touch accuracy.

[0089] Exemplarily, the accuracy of the third touch accuracy is lower than the accuracy of the first touch accuracy. The third touch accuracy may be the same as the second touch accuracy. The third touch accuracy may be the same as the original touch accuracy, or may be higher than the original touch accuracy but lower than the first touch accuracy.

[0090] Exemplarily, assuming that the third touch accuracy is the original touch accuracy, in response to the application switching from the foreground running state to the background running state or the application switching from the foreground running state to the closed state, the upper-level processing module sends a third instruction to the touch screen module, and the above-mentioned third instruction is an instruction for setting the touch accuracy of the touch screen module to the original touch accuracy.

[0091] When an application switches from a foreground running state to a background running state or from a foreground running state to a closed state, the terminal may display the user interface of other applications or the system desktop, which is not limited in this embodiment of the present application.

[0092] It should be noted that step 307 should be executed after step 303 .

[0093] Step 308: The touch screen module sets the touch control accuracy of the touch screen module to the third touch control accuracy based on the third instruction.

[0094] The touch screen module switches the touch control accuracy of the touch screen module from the first touch control accuracy to the third touch control accuracy based on the third instruction.

[0095] Step 309: The touch screen module reports the third touch event to the upper layer processing module according to the third touch accuracy.

[0096] Taking the third touch accuracy of 1 as an example, the touch screen module reports that the touch coordinate of the user touching the touch screen is 4, then the upper-layer processing module determines 4 as the actual processing data, and responds to the user's touch operation based on the actual processing data.

[0097] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0098] Please refer to Figure 4 , which shows a block diagram of a touch event reporting device provided by an embodiment of the present application, the device has the function of implementing the above method example, the function can be implemented by hardware, or by hardware executing corresponding software. The device 400 may include:

[0099] In response to the application in the foreground running state being in the target scene, the upper layer processing module 410 is used to send a first instruction to the touch screen module;

[0100] The touch screen module 420 is configured to set the touch accuracy of the touch screen module to a first touch accuracy based on the first instruction; and report a first touch event to the upper-layer processing module according to the first touch accuracy.

[0101] To summarize, in the technical solution provided in the embodiment of the present application, by judging whether the application is in the target scene, when the application is in the target scene, the touch accuracy is set to high touch accuracy, and the touch event is reported according to the high touch accuracy. The present application adjusts the touch accuracy for the application, thereby improving the diversity of touch recognition.

[0102] In an exemplary embodiment, the upper layer processing module 410 is used to:

[0103] Get the application whitelist;

[0104] In response to the application being in the application whitelist, sending the first instruction to the touch screen module.

[0105] In an exemplary embodiment, the upper layer processing module 410 is further used to:

[0106] Obtaining identification information of the application;

[0107] Determining whether the application whitelist includes identification information of the application program;

[0108] In response to the application whitelist including identification information of the application program, it is determined that the application program is in the application whitelist.

[0109] In an exemplary embodiment, the upper layer processing module 410 is further used to:

[0110] In response to the application whitelist not including the identification information of the application program, the upper layer processing module determines that the application program is not in the application whitelist.

[0111] In an exemplary embodiment, in response to the application not being in the target scene, the upper layer processing module 410 is configured to send a second instruction to the touch screen module;

[0112] The touch screen module 420 is configured to set the touch accuracy of the touch screen module to a second touch accuracy based on the second instruction; and report a second touch event to the upper layer processing module according to the second touch accuracy.

[0113] In an exemplary embodiment, in response to the application switching from the foreground running state to the background running state or the application switching from the foreground running state to the closed state, the upper layer processing module 410 is further used to send a third instruction to the touch screen module;

[0114] The touch screen module 420 is further configured to set the touch accuracy of the touch screen module to a third touch accuracy based on the third instruction; and report a third touch event to the upper layer processing module according to the third touch accuracy.

[0115] In an exemplary embodiment, the upper layer processing module 410 is used to:

[0116] Based on the application type of the application, determining an instruction corresponding to the application type of the application;

[0117] Determine an instruction corresponding to the application type of the application as the first instruction;

[0118] The first instruction is sent to the touch screen module.

[0119] In the exemplary embodiment, the touch screen module includes a touch screen driving unit and a touch screen component unit (not shown in the figure);

[0120] The touch screen driving unit is configured to receive a first instruction from the upper layer processing module and send the first instruction to the touch screen component unit;

[0121] The touch screen component unit is used to set the touch accuracy to the first touch accuracy.

[0122] In an exemplary embodiment, the touch screen assembly unit is used to:

[0123] Accessing a register, and determining a first touch precision corresponding to the first instruction from a correspondence relationship between at least one instruction and touch precision stored in the register;

[0124] The touch accuracy is set to the first touch accuracy.

[0125] In an exemplary embodiment, the first touch event includes: touch coordinates of a touch screen in the touch screen module when a user touches the touch screen.

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

[0127] Please refer to Figure 5 , which shows a structural block diagram of a terminal provided by an embodiment of the present application.

[0128] The terminal in the embodiment of the present application may include one or more of the following components: a processor 510 and a memory 520 .

[0129] The processor 510 may include one or more processing cores. The processor 510 uses various interfaces and lines to connect various parts in the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 520, and calling data stored in the memory 520. Optionally, the processor 510 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 510 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU) and a modem. Among them, the CPU mainly processes the operating system and application programs, etc.; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 510, and it can be implemented separately through a chip.

[0130] Optionally, the processor 510 implements the methods provided by the above-mentioned various method embodiments when executing the program instructions in the memory 520.

[0131] The memory 520 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 520 includes a non-transitory computer-readable storage medium. The memory 520 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data created according to the use of the terminal, etc.

[0132] The structure of the above terminal is only illustrative. In actual implementation, the terminal may include more or fewer components, such as a display screen (touch screen), etc. This embodiment does not limit this.

[0133] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0134] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein a computer program is stored in the computer-readable storage medium. The computer program is loaded and executed by a processor of a computer device to implement the various steps in the above-mentioned touch event reporting method embodiment.

[0135] In an exemplary embodiment, a computer program product is provided, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the above touch event reporting method.

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

Claims

1. A touch event reporting method, characterized in that: The method comprises: In response to an application in a foreground running state being in a target scene, an upper-layer processing module determines, based on an application type of the application, an instruction corresponding to the application type of the application, the upper-layer processing module refers to a module in a terminal having an upper-layer service function, and the instruction corresponding to the application type of the application is set by a user; determines the instruction corresponding to the application type of the application as a first instruction; and sends the first instruction to a touch screen module, the touch screen module refers to a module in the terminal related to the touch screen, the touch screen module includes a touch screen driving unit and a touch screen component unit, the touch screen driving unit is a software unit, and the touch screen component unit is a hardware unit; The touch screen driving unit receives a first instruction from the upper layer processing module; and sends the first instruction to the touch screen component unit; The touch screen component unit accesses a register, and determines a first touch accuracy corresponding to the first instruction from a correspondence between at least one instruction and touch accuracy stored in the register, wherein the touch accuracy refers to the ability of the touch screen to sense a minimum change caused by a user touching the touch screen, and the first touch accuracy is higher than an original touch accuracy of the terminal device; the touch screen component unit sets the touch accuracy to the first touch accuracy; and reports a first touch event to the upper layer processing module according to the first touch accuracy; The method further comprises: In response to the application not being in the target scene, the upper-layer processing module sends a second instruction to the touch screen module; based on the second instruction, the touch screen module sets the touch accuracy of the touch screen module to a second touch accuracy, where the second touch accuracy is higher than the original touch accuracy but lower than the first touch accuracy; and reports a second touch event to the upper-layer processing module according to the second touch accuracy; In response to the application switching from the foreground running state to the background running state or the application switching from the foreground running state to the closed state, the upper-level processing module sends a third instruction to the touch screen module; the touch screen module sets the touch accuracy of the touch screen module to a third touch accuracy based on the third instruction, and the third touch accuracy is the same as the original touch accuracy; and reports a third touch event to the upper-level processing module according to the third touch accuracy.

2. The method according to claim 1, characterized in that In response to the application in the foreground running state being in the target scene, the upper layer processing module sends a first instruction to the touch screen module, including: The upper layer processing module obtains the application whitelist; In response to the application being in the application whitelist, the upper layer processing module sends the first instruction to the touch screen module.

3. The method according to claim 2, characterized in that After the upper layer processing module obtains the application whitelist, it also includes: The upper layer processing module obtains identification information of the application; The upper layer processing module determines whether the application whitelist includes identification information of the application program; In response to the application whitelist including identification information of the application program, the upper-layer processing module determines that the application program is in the application whitelist.

4. The method according to claim 3, characterized in that After the upper layer processing module determines whether the application whitelist includes the identification information of the application program, it also includes: In response to the application whitelist not including the identification information of the application program, the upper layer processing module determines that the application program is not in the application whitelist.

5. The method according to any one of claims 1 to 4, characterized in that: The first touch event includes: the touch coordinates of the touch screen in the touch screen module when the user touches it.

6. A touch event reporting device, characterized in that: The device comprises: In response to an application in a foreground running state being in a target scene, an upper-layer processing module is used to determine, based on an application type of the application, an instruction corresponding to the application type of the application, the upper-layer processing module refers to a module in a terminal having an upper-layer service function, and the instruction corresponding to the application type of the application is set by a user; determine the instruction corresponding to the application type of the application as a first instruction; send the first instruction to a touch screen module, the touch screen module refers to a module in the terminal related to the touch screen, the touch screen module includes a touch screen driving unit and a touch screen component unit, the touch screen driving unit is a software unit, and the touch screen component unit is a hardware unit; The touch screen driving unit is configured to receive a first instruction from the upper layer processing module and send the first instruction to the touch screen component unit; The touch screen component unit is used to access the register, determine a first touch accuracy corresponding to the first instruction from the correspondence between at least one instruction and the touch accuracy stored in the register, the touch accuracy refers to the ability of the touch screen to sense the minimum change of the user touching the touch screen, and the first touch accuracy is higher than the original touch accuracy of the terminal device; set the touch accuracy to the first touch accuracy; and report the first touch event to the upper layer processing module according to the first touch accuracy; The upper layer processing module is further configured to, in response to the application not being in the target scene, send a second instruction to the touch screen module; the touch screen module is configured to set the touch accuracy of the touch screen module to a second touch accuracy based on the second instruction, the second touch accuracy being higher than the original touch accuracy but lower than the first touch accuracy; and report a second touch event to the upper layer processing module according to the second touch accuracy; The upper-layer processing module is also used to send a third instruction to the touch screen module in response to the application switching from the foreground running state to the background running state or the application switching from the foreground running state to the closed state; the touch screen module is used to set the touch accuracy of the touch screen module to a third touch accuracy based on the third instruction, and the third touch accuracy is the same as the original touch accuracy; and report a third touch event to the upper-layer processing module according to the third touch accuracy.

7. A terminal, characterized in that: The terminal includes a processor and a memory, the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the touch event reporting method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the touch event reporting method according to any one of claims 1 to 5.

9. A computer program product, characterized in that The computer program product includes a computer program, the computer program is stored in a computer-readable storage medium, and the computer program is loaded and executed by a processor of a terminal to implement the touch event reporting method according to any one of claims 1 to 5.