A touch event control method, device and computer readable storage medium

By monitoring screen touch events and generating synchronization signals, controlling the execution of drawing and touch tasks, the problem of the processing of touch events in smart terminal devices is limited by screen refresh rate, achieving faster response and higher touch control Experience.

CN112612372BActive Publication Date: 2024-11-22NUBIA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011527957.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-22
Publication Date
2024-11-22
Estimated Expiration
2040-12-22

AI Technical Summary

Technical Problem

In the prior art, the touch event processing of smart terminal devices is limited by the screen refresh rate, and cannot fully utilize the potential of hardware touch event sampling rate, resulting in limited room for improving user touch response sensitivity.

Method used

By monitoring screen touch events, determine whether its sampling rate is greater than the screen drawing refresh rate, generate a synchronization signal to regulate the execution of drawing and touch tasks, use flag information to perform corresponding tasks within the preset period, ensuring that the system power consumption is not increased Quickly respond to touch events in the case of

Benefits of technology

It realizes that without increasing system power consumption, the high sampling rate and high refresh rate of the screen are fully utilized, significantly improving the user's touch experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112612372B_ABST
    Figure CN112612372B_ABST
Patent Text Reader

Abstract

The present invention discloses a touch event control method, device and computer-readable storage medium, wherein the method comprises: if the sampling rate of the touch event is greater than the refresh rate of screen drawing, then when the touch event is received, a synchronization signal for reporting to an application is generated; then, the flag information contained in the synchronization signal is identified, wherein the flag information comprises a first flag for indicating the execution of a drawing task and a touch task and a second flag for executing the touch task. An efficient touch event control scheme is implemented, so that the touch event can be quickly responded to without increasing the system power consumption, the high sampling rate and high refresh rate of the screen are fully utilized, and the user's touch experience is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile communications, and in particular to a touch event control method, device and computer-readable storage medium. Background Art

[0002] In the prior art, with the continuous development of intelligent terminal devices, in order to meet the increasingly high requirements of users for the touch sensitivity of the device and the refresh rate of the display interface, a variety of high refresh rate devices have been produced at this stage. For example, the sampling and reporting rate of screen touch events of some current gaming phones can reach up to 240Hz, but according to the design of the touch event processing mechanism of the Android system, the application in the interface UI thread needs to monitor the vertical synchronization Vsync signal of the system screen refresh before it can really start processing, that is, according to the beat of the system compilation (Choregropher), touch, drawing and animation events are processed simultaneously in one Vsync signal cycle. However, it should be noted that the Vsync signal cycle of the screen refresh rate can only reach 144Hz at most at present, which makes it impossible to truly bring into play the potential of the hardware touch event sampling rate of up to 240Hz, and there is still room for improvement in the sensitivity of the user's touch response. Summary of the invention

[0003] In order to solve the above technical defects in the prior art, the present invention proposes a touch event control method, which includes:

[0004] Monitor the touch events of the screen, and determine whether the sampling rate of the touch events is greater than the refresh rate of the screen drawing;

[0005] If the sampling rate of the touch event is greater than the refresh rate of the screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated;

[0006] Identifying flag information contained in the synchronization signal, wherein the flag information includes a first flag for indicating execution of a drawing task and a touch task and a second flag for executing the touch task;

[0007] If the synchronization signal includes the first flag, the drawing task and the touch task are executed within a preset period; if the synchronization signal includes the second flag, the touch task is executed within a preset period.

[0008] Optionally, the monitoring of the touch event of the screen and determining whether the sampling rate of the touch event is greater than the refresh rate of the screen drawing include:

[0009] Get the hardware configuration information of the current screen;

[0010] The sampling rate of the touch event is acquired according to the hardware configuration information.

[0011] Optionally, the monitoring of the touch events of the screen and determining whether the sampling rate of the touch events is greater than the refresh rate of the screen drawing further include:

[0012] Acquire the display content of the screen;

[0013] Determine the refresh rate when performing the screen drawing on the display content.

[0014] Optionally, monitoring the touch event of the screen and determining whether the sampling rate of the touch event is greater than the refresh rate of screen drawing include:

[0015] Monitoring the touch event at the sampling rate;

[0016] If the sampling rate of the touch event is less than or equal to the refresh rate of the screen drawing, the drawing task is performed at the frequency of the sampling rate or the frequency of the refresh rate.

[0017] Optionally, if the sampling rate of the touch event is greater than the refresh rate of screen drawing, when the touch event is received, generating a synchronization signal for reporting to the application includes:

[0018] Determining a first number of synchronization signals obtained at the sampling rate within the preset period, and determining a second number of synchronization signals obtained at the refresh rate within the preset period;

[0019] A difference amount between the first amount and the second amount is determined.

[0020] Optionally, if the sampling rate of the touch event is greater than the refresh rate of screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated, further comprising:

[0021] Determine, within the preset period, the first type of synchronization signals which are equal to the second number according to a preset second interval condition;

[0022] Within the preset period, the second type of synchronization signals having the same number as the difference are determined according to a preset first interval condition.

[0023] Optionally, identifying flag information contained in the synchronization signal, wherein the flag information includes a first flag for indicating execution of a drawing task and a touch task and a second flag for executing the touch task, comprises:

[0024] Presetting a first flag for indicating execution of a drawing task and a touch task, and a second flag for executing the touch task;

[0025] The first flag is added to the first type of synchronization signal, and the second flag is added to the second type of synchronization signal.

[0026] Optionally, if the synchronization signal includes the first flag, executing the drawing task and the touch task within a preset period, and if the synchronization signal includes the second flag, executing the touch task within a preset period, includes:

[0027] Detecting whether the touch task is completed;

[0028] If the touch task has been completed, the first flag and the second flag in the synchronization signal are cancelled.

[0029] The present invention also proposes a touch event regulation device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the touch event regulation method as described above when executed by the processor.

[0030] The present invention further proposes a computer-readable storage medium, on which a touch event control program is stored. When the touch event control program is executed by a processor, the steps of any of the above touch event control methods are implemented.

[0031] The touch event control method, device and computer-readable storage medium of the present invention are implemented by monitoring the touch events of the screen and judging whether the sampling rate of the touch events is greater than the refresh rate of the screen drawing; if the sampling rate of the touch events is greater than the refresh rate of the screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated; then, the flag information contained in the synchronization signal is identified, wherein the flag information includes a first flag for indicating the execution of the drawing task and the touch task and a second flag for executing the touch task; finally, if the synchronization signal contains the first flag, the drawing task and the touch task are executed within a preset period, and if the synchronization signal contains the second flag, the touch task is executed within a preset period. An efficient touch event control scheme is implemented, so that the touch event can be quickly responded to without increasing the system power consumption, and the high sampling rate and high refresh rate of the screen are fully utilized, which greatly improves the user's touch experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0033] Figure 1 It is a hardware structure diagram of a mobile terminal involved in the present invention;

[0034] Figure 2 is a communication network system architecture diagram provided by an embodiment of the present invention;

[0035] Figure 3 is a flow chart of a first embodiment of a touch event control method of the present invention;

[0036] Figure 4 is a flow chart of a second embodiment of a touch event control method of the present invention;

[0037] Figure 5 is a flow chart of a third embodiment of a touch event control method of the present invention;

[0038] Figure 6 is a flow chart of a fourth embodiment of a touch event control method of the present invention;

[0039] Figure 7 is a flow chart of a fifth embodiment of a touch event control method of the present invention;

[0040] Figure 8 is a flow chart of a sixth embodiment of a touch event control method of the present invention;

[0041] Fig. 9 is a flow chart of a seventh embodiment of a touch event control method of the present invention;

[0042] Fig.10 FIG. 8 is a flow chart of an eighth embodiment of a touch event control method according to the present invention. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0045] The terminal may be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0046] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will appreciate that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed-type terminals.

[0047] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0048] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:

[0049] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0050] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0051] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0052] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0053] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0054] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0055] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0056] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0057] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.

[0058] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0059] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0060] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0061] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.

[0062] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.

[0063] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are sequentially connected for communication.

[0064] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.

[0065] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .

[0066] EPC20 3 It may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MME 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME 2031 is a control node that processes signaling between UE 201 and EPC 203, and provides bearer and connection management. HSS 2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).

[0067] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.

[0068] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new network systems, etc., which are not limited here.

[0069] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.

[0070] Embodiment 1

[0071] Figure 3 FIG. 1 is a flow chart of a first embodiment of a touch event control method of the present invention. A touch event control method, the method comprising:

[0072] S1, monitoring the touch events of the screen, and determining whether the sampling rate of the touch events is greater than the refresh rate of the screen drawing;

[0073] S2. If the sampling rate of the touch event is greater than the refresh rate of the screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated;

[0074] S3, identifying flag information contained in the synchronization signal, wherein the flag information includes a first flag for indicating execution of a drawing task and a touch task and a second flag for executing the touch task;

[0075] S4. If the synchronization signal includes the first flag, the drawing task and the touch task are executed within a preset period; if the synchronization signal includes the second flag, the touch task is executed within a preset period.

[0076] Optionally, in this embodiment, in order to make the screen drawing task and the screen touch task response consistent, after the screen hardware detects the touch event and reports it, the period of the vertical synchronization Vsync signal used to notify the application interface UI thread refresh is quickly increased to a state consistent with the touch sampling period; in order to achieve the above effect, in this embodiment, some preset flag FLAG feature information is carried in the Vsync signal, that is, the first flag and the second flag of this embodiment, which are used to distinguish and identify that a part of the Vsync signal is a normal signal for the drawing refresh and touch event processing of the application UI thread, and the other part of the Vsync signal only processes touch events but is not used for drawing refresh signals;

[0077] Optionally, in this embodiment, based on the above technical foundation, the screen refresh rate of the device is 120Hz and the touch sampling rate is 240Hz for explanation, wherein the Vsync signal is reported to the application UI thread at 240Hz, but every one or more Vsync signals have a FLAG flag carried in the Vsync signal, which is used to indicate that the application only processes touch events but not drawing events. Then, when the touch event processing is completed, everything returns to normal, thereby achieving the purpose of realizing the application to quickly process touch events without increasing the system power consumption, and at the same time, achieving the same touch event processing response speed as the screen sampling rate, thereby bringing a better user experience;

[0078] Optionally, in this embodiment, as described in the above example, specifically, first, when the screen touch system monitors the user touch event sent in, the period of the Vsync signal that the system notifies the APP application UI thread to refresh is quickly increased to a frequency consistent with the touch sampling rate; wherein, a FLAG information field is added to the Vsync signal, the first flag FLAG1 indicates that after the application receives this Vsync signal, it can normally perform tasks such as drawing and touch event processing within the period again, and the second flag FLAG2 indicates that after the application receives this Vsync signal, it can only process touch events and cannot perform other tasks such as drawing; then, As explained in the one-second cycle, according to the touch sampling rate, s touch events are reported in one second, and the screen refresh rate has t events reported in one second (s>t). At this time, among the Vsync signals reported to the application within one second, t FLAGs carried are FLAG1, and the remaining st Vsync signals carry FLAG2. Finally, the system can perform corresponding task execution instructions according to the detected vertical synchronization signals carrying different flags, and when it is detected that the application has completed the logical processing of this touch event, the normal vertical synchronization signal is restored, that is, the cycle and behavior of the vertical synchronization signal are restored to the default state.

[0079] The beneficial effect of this embodiment is that by monitoring the touch events of the screen, it is determined whether the sampling rate of the touch events is greater than the refresh rate of the screen drawing; if the sampling rate of the touch events is greater than the refresh rate of the screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated; then, the flag information contained in the synchronization signal is identified, wherein the flag information includes a first flag for indicating the execution of the drawing task and the touch task and a second flag for executing the touch task; finally, if the synchronization signal contains the first flag, the drawing task and the touch task are executed within a preset period, and if the synchronization signal contains the second flag, the touch task is executed within a preset period. An efficient touch event control scheme is implemented, so that touch events can be quickly responded to without increasing the system power consumption, the high sampling rate and high refresh rate of the screen are fully utilized, and the user's touch experience is greatly improved.

[0080] Embodiment 2

[0081] Figure 4 : is a flow chart of the second embodiment of the touch event control method of the present invention. Based on the above embodiment, the touch event of the screen is monitored, and at the same time, it is determined whether the sampling rate of the touch event is greater than the refresh rate of the screen drawing, including:

[0082] S01, obtaining the hardware configuration information of the current screen;

[0083] S02: Acquire a sampling rate of the touch event according to the hardware configuration information.

[0084] Optionally, in this embodiment, the default sampling rate of touch events is determined according to the current hardware configuration and driver configuration of the screen;

[0085] Optionally, in this embodiment, the adjusted sampling rate is determined according to the power consumption control condition of the current device, for example, when the device is under lower power consumption control, a lower sampling rate is determined;

[0086] Optionally, in this embodiment, the adjusted sampling rate is determined according to the scene characteristics of the current device, for example, when the device is under game operation control, a higher sampling rate is determined.

[0087] The beneficial effect of this embodiment is that by obtaining the hardware configuration information of the current screen, and then obtaining the sampling rate of the touch event according to the hardware configuration information, an efficient touch event control scheme is implemented, and a rich sampling rate confirmation condition is provided, so that the touch event can be quickly responded to without increasing the power consumption of the system, and the high sampling rate and high refresh rate of the screen are fully utilized, which greatly improves the user's touch experience.

[0088] Embodiment 3

[0089] Figure 5 : is a flow chart of the third embodiment of the touch event control method of the present invention. Based on the above embodiment, the touch event of the screen is monitored, and at the same time, before determining whether the sampling rate of the touch event is greater than the refresh rate of the screen drawing, it also includes:

[0090] S03, obtaining the display content of the screen;

[0091] S04: Determine the refresh rate when performing the screen drawing on the display content.

[0092] Optionally, in this embodiment, the refresh rate of the corresponding screen drawing is determined according to the type of application to which the displayed content belongs. For example, if it is a game-type application, a higher refresh rate is determined to improve the user's viewing experience;

[0093] Optionally, in this embodiment, the refresh rate of the corresponding screen drawing is determined according to the application to which the displayed content belongs or the function of the application. For example, if it belongs to a game application or is in the middle of a game, a higher refresh rate is determined to enhance the user's gaming experience.

[0094] Optionally, in this embodiment, the refresh rate of the corresponding screen drawing is determined according to the content characteristics of the displayed content. For example, if the content characteristic is a static image, a lower refresh rate is determined to save power consumption.

[0095] The beneficial effect of this embodiment is that, by acquiring the display content of the screen and then determining the refresh rate when the display content is drawn on the screen, an efficient touch event control scheme is implemented, and a rich refresh rate confirmation condition is provided, so that the touch event can be quickly responded to without increasing the power consumption of the system, and the high sampling rate and high refresh rate of the screen are fully utilized, which greatly improves the user's touch experience.

[0096] Embodiment 4

[0097] Figure 6 4 is a flow chart of a fourth embodiment of the touch event control method of the present invention. Based on the above embodiment, the touch event of the screen is monitored, and at the same time, it is determined whether the sampling rate of the touch event is greater than the refresh rate of the screen drawing, including:

[0098] S11, monitoring the touch event at the sampling rate;

[0099] S12: If the sampling rate of the touch event is less than or equal to the refresh rate of the screen drawing, the drawing task is executed at the frequency of the sampling rate or the frequency of the refresh rate.

[0100] Optionally, in this embodiment, during the process of monitoring the touch event, the current refresh rate and sampling rate are determined to facilitate subsequent determination;

[0101] Optionally, in this embodiment, if the sampling rate of the touch event is less than or equal to the refresh rate of the screen drawing, it is determined that the response to the touch event can be synchronized with the refresh rate, that is, the drawing task is executed at the frequency of the refresh rate;

[0102] Optionally, in this embodiment, if the sampling rate of the touch event is less than or equal to the refresh rate of the screen drawing, in order to synchronize the touch event with the drawing task, the drawing task will be executed at the frequency of the sampling rate.

[0103] The beneficial effect of this embodiment is that by monitoring the touch event at the sampling rate; if the sampling rate of the touch event is less than or equal to the refresh rate of the screen drawing, the drawing task is executed at the frequency of the sampling rate or the frequency of the refresh rate. An efficient touch event control scheme is implemented, and a processing method is provided when the sampling rate of the touch event is less than or equal to the refresh rate of the screen drawing, so that the touch event can be responded to quickly without increasing the power consumption of the system, and the high sampling rate and high refresh rate of the screen are fully utilized, which greatly improves the user's touch experience.

[0104] Embodiment 5

[0105] Figure 7 : is a flowchart of the fifth embodiment of the touch event control method of the present invention. Based on the above embodiment, if the sampling rate of the touch event is greater than the refresh rate of the screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated, including:

[0106] S21, determining a first number of synchronization signals obtained at the sampling rate within the preset period, and determining a second number of synchronization signals obtained at the refresh rate within the preset period;

[0107] S22. Determine a difference between the first quantity and the second quantity.

[0108] Optionally, in this embodiment, the preset period is a time period for calculating the signal difference of different frequencies. It can be understood that in the process of receiving a normal touch event, the reception time of the touch event is used as the time period of the above signal difference;

[0109] Optionally, in this embodiment, as described in the above example, a preset period of one second is used for explanation. According to the touch sampling rate, s touch events are reported in one second, and the screen refresh rate is t events reported in one second, where s>t. At this time, among the Vsync signals reported to the application within one second, t of them carry FLAG1, and the remaining difference number of st Vsync signals carry FLAG2.

[0110] The beneficial effect of this embodiment is that by determining the first number of synchronization signals obtained at the sampling rate within the preset period, and determining the second number of synchronization signals obtained at the refresh rate within the preset period; and then determining the difference between the first number and the second number, an efficient touch event control scheme is implemented, and a marking method for different signals is provided, so that touch events can be responded to quickly without increasing system power consumption, making full use of the high sampling rate and high refresh rate of the screen, and greatly improving the user's touch experience.

[0111] Embodiment 6

[0112] Figure 8 is a flow chart of a sixth embodiment of the touch event control method of the present invention. Based on the above embodiment, if the sampling rate of the touch event is greater than the refresh rate of the screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated, and further includes:

[0113] S23, determining, within the preset period, the same number of first-type synchronization signals as the second number according to a preset second interval condition;

[0114] S24. Determine, within the preset period, a second type of synchronization signal having the same number as the difference according to a preset first interval condition.

[0115] Optionally, in this embodiment, since the refresh rate and the sampling rate are different, the first marks are added to the second number of synchronization signals one by one at intervals according to a preset second interval condition;

[0116] Optionally, in this embodiment, similarly, since the refresh rate and the sampling rate are different, the second marks are added one by one in the synchronization signals of the difference quantity at intervals according to the preset first interval condition;

[0117] Optionally, in this embodiment, the above two interval conditions can be set according to the range of the difference. For example, when the refresh rate is half of the sampling rate, a first flag is set for each signal interval and a second flag is set for each signal interval.

[0118] The beneficial effect of this embodiment is that by determining the first type of synchronization signal that is the same as the second number according to the preset second interval condition within the preset period; and then determining the second type of synchronization signal that is the same as the difference number according to the preset first interval condition within the preset period, an efficient touch event control scheme is implemented, and an interval setting method for marking different signals is provided, so that touch events can be responded to quickly without increasing system power consumption, and the high sampling rate and high refresh rate of the screen are fully utilized, which greatly improves the user's touch experience.

[0119] Embodiment 7

[0120] Fig. 9 is a flow chart of the seventh embodiment of the touch event control method of the present invention. Based on the above embodiment, the flag information contained in the synchronization signal is identified, wherein the flag information includes a first flag for indicating the execution of a drawing task and a touch task and a second flag for executing the touch task, including:

[0121] S31, presetting a first flag for indicating execution of a drawing task and a touch task, and a second flag for executing the touch task;

[0122] S32: adding the first flag to the first type of synchronization signal, and adding the second flag to the second type of synchronization signal.

[0123] Optionally, in this embodiment, in each touch event, after the first flag and the second flag are determined separately according to the above embodiment, the first flag is added to the first type of synchronization signal, and the second flag is added to the second type of synchronization signal;

[0124] Optionally, in this embodiment, when the refresh rate and sampling rate of the device remain unchanged, in any touch event, the same steps of adding the first flag to the first type of synchronization signal and adding the second flag to the second type of synchronization signal are performed.

[0125] The beneficial effect of this embodiment is that by presetting a first flag for indicating the execution of a drawing task and a touch task, and a second flag for executing the touch task; then, adding the first flag to the first type of synchronization signal, and adding the second flag to the second type of synchronization signal, an efficient touch event control scheme is implemented, and a marking method under different touch event generation conditions is provided, so that touch events can be responded to quickly without increasing system power consumption, and the high sampling rate and high refresh rate of the screen are fully utilized, which greatly improves the user's touch experience.

[0126] Embodiment 8

[0127] Fig.10 is a flow chart of an eighth embodiment of the touch event control method of the present invention. Based on the above embodiment, if the synchronization signal includes the first flag, the drawing task and the touch task are executed within a preset period, and if the synchronization signal includes the second flag, the touch task is executed within a preset period, including:

[0128] S41, detecting whether the touch task is completed;

[0129] S42: If the touch task has been completed, cancel the first flag and the second flag in the synchronization signal.

[0130] Optionally, in this embodiment, as described in the above example, when the refresh rate and sampling rate of the device remain unchanged, in any touch event, the same adding of the first flag to the first type of synchronization signal and the adding of the second flag to the second type of synchronization signal are performed, that is, the touch task has been completed, then the first flag and the second flag in the synchronization signal are revoked and saved, so as to be used for the next touch event response;

[0131] Optionally, in this embodiment, when the refresh rate or sampling rate of the device changes dynamically, if the touch task has been executed once, the first flag and the second flag in the synchronization signal are revoked, and the real-time marking is performed again when responding to a new touch event next time.

[0132] The beneficial effect of this embodiment is that by detecting whether the touch task is completed; if the touch task is completed, the first flag and the second flag in the synchronization signal are cancelled. An efficient touch event control scheme is implemented, and a marking method for multiple touch events is provided, so that touch events can be responded to quickly without increasing system power consumption, and the high sampling rate and high refresh rate of the screen are fully utilized, which greatly improves the user's touch experience.

[0133] Embodiment 9

[0134] Based on the above embodiments, the present invention also proposes a touch event regulation device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the touch event regulation method as described in any one of the above items when executed by the processor.

[0135] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the device embodiment, which will not be repeated here.

[0136] Embodiment 10

[0137] Based on the above embodiments, the present invention further proposes a computer-readable storage medium, which stores a touch event control program. When the touch event control program is executed by a processor, the steps of the touch event control method as described in any one of the above items are implemented.

[0138] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the medium embodiment, which will not be repeated here.

[0139] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0140] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0142] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A touch event control method, characterized in that: The method comprises: Monitor the touch events of the screen, and determine whether the sampling rate of the touch events is greater than the refresh rate of the screen drawing; If the sampling rate of the touch event is greater than the refresh rate of the screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated; Identifying flag information contained in the synchronization signal, wherein the flag information includes a first flag for indicating execution of a drawing task and a touch task and a second flag for executing the touch task; If the synchronization signal includes the first flag, the drawing task and the touch task are executed within a preset period; if the synchronization signal includes the second flag, the touch task is executed within a preset period; The monitoring of the touch event of the screen and determining whether the sampling rate of the touch event is greater than the refresh rate of the screen drawing include: Get the hardware configuration information of the current screen; Acquire a sampling rate of the touch event according to the hardware configuration information; The monitoring of the touch events of the screen and determining whether the sampling rate of the touch events is greater than the refresh rate of the screen drawing further include: Acquire the display content of the screen; Determining the refresh rate when performing the screen drawing on the display content; The monitoring of the touch events of the screen and determining whether the sampling rate of the touch events is greater than the refresh rate of the screen drawing include: Monitoring the touch event at the sampling rate; If the sampling rate of the touch event is less than or equal to the refresh rate of the screen drawing, the drawing task is performed at the frequency of the sampling rate or the frequency of the refresh rate; If the sampling rate of the touch event is greater than the refresh rate of the screen drawing, when the touch event is received, a synchronization signal for reporting to the application is generated, including: Determining a first number of synchronization signals obtained at the sampling rate within the preset period, and determining a second number of synchronization signals obtained at the refresh rate within the preset period; determining a difference between the first quantity and the second quantity; Determine, within the preset period, the first type of synchronization signals which are equal to the second number according to a preset second interval condition; Determine, within the preset period, a second type of synchronization signal having the same number as the difference according to a preset first interval condition; The identifying the flag information contained in the synchronization signal, wherein the flag information includes a first flag for indicating execution of a drawing task and a touch task and a second flag for executing the touch task, comprises: Presetting a first flag for indicating execution of a drawing task and a touch task, and a second flag for executing the touch task; adding the first mark to the first type of synchronization signal, and adding the second mark to the second type of synchronization signal; If the synchronization signal includes the first flag, the drawing task and the touch task are executed within a preset period, and if the synchronization signal includes the second flag, the touch task is executed within a preset period, including: Detecting whether the touch task is completed; If the touch task has been completed, the first flag and the second flag in the synchronization signal are cancelled.

2. A touch event control device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the touch event control method according to claim 1 are implemented.

3. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a touch event control program, and when the touch event control program is executed by the processor, the steps of the touch event control method according to claim 1 are implemented.