CN112506379A - Touch event processing method, device, equipment and storage medium - Google Patents

Touch event processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112506379A
CN112506379A CN202011519908.5A CN202011519908A CN112506379A CN 112506379 A CN112506379 A CN 112506379A CN 202011519908 A CN202011519908 A CN 202011519908A CN 112506379 A CN112506379 A CN 112506379A
Authority
CN
China
Prior art keywords
touch event
time
execution
determining
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011519908.5A
Other languages
Chinese (zh)
Inventor
黄启立
王庆
刘树彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Zhilian Beijing Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011519908.5A priority Critical patent/CN112506379A/en
Publication of CN112506379A publication Critical patent/CN112506379A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a touch event processing method, a touch event processing device, touch event processing equipment and a storage medium, and relates to the fields of Internet of things, intelligent transportation and the like. The specific implementation scheme is as follows: determining a time interval between receiving a current touch event and receiving a last touch event; determining the execution time of the current touch event by using the time interval and the time of receiving the current touch event; and storing the current touch event into a touch event execution queue according to the execution time. According to the method and the device, the execution time of each touch event is set, and the touch events which cannot be executed at once are stored in the touch event execution queue, so that the problem of high analysis pressure of the touch events of the intelligent terminal in the related art is solved, and the situations of blocking, high power consumption, heating and the like are avoided. A large number of touch events can be handled in order.

Description

Touch event processing method, device, equipment and storage medium
Technical Field
The application relates to the technical field of computers, in particular to the fields of Internet of things, intelligent transportation and the like.
Background
The vehicle machine is a vehicle-mounted information entertainment product installed at a vehicle end, and the vehicle machine can realize interaction between people and a vehicle and information interconnection between the vehicle and an intelligent terminal such as a mobile phone and the like in terms of functions.
Under the information communication interconnection scene of intelligent terminals such as a vehicle and a mobile phone, the intelligent terminal receives a control instruction sent by the vehicle machine and executes corresponding operation. Because the touch screens of intelligent terminals such as a car machine and a mobile phone are not in a uniform product standard, touch events which are normally recognized at the car machine end are caused, the number of the touch events is increased suddenly after the touch events are transmitted to the intelligent terminals due to non-uniform product standards, and finally the situation that normal recognition cannot be realized is caused.
Disclosure of Invention
The application provides a touch event processing method, a touch event processing device, touch event processing equipment, a storage medium and a computer program product.
According to an aspect of the present application, a method for processing a touch event is provided, and the method may include:
determining a time interval between receiving a current touch event and receiving a last touch event;
determining the execution time of the current touch event by using the time interval and the time of receiving the current touch event;
and storing the current touch event into a touch event execution queue according to the execution time.
According to another aspect of the present application, there is provided a device for processing a touch event, which may include the following components:
the time interval determining module is used for determining the time interval between the current touch event and the last touch event;
the execution time determining module is used for determining the execution time of the current touch event by using the time interval and the time of receiving the current touch event;
and the touch event execution queue building module is used for storing the current touch event into a touch event execution queue according to the execution time.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform a method provided by any one of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method provided by any one of the embodiments of the present application.
According to another aspect of the application, there is provided a computer program product comprising computer instructions which, when executed by a processor, implement the method of any of the embodiments of the application.
Whether the touch screens of the car machine and the intelligent terminal have uniform product standards can be determined through the time interval between the current touch event and the last touch event. Under the condition that the touch screens of the car machine and the intelligent terminal do not have the unified product standard, the execution time of each touch event is set, and the touch events which cannot be executed immediately are stored in a touch event execution queue. The problem of big analytic pressure of intelligent terminal touch event among the prior art is solved, avoid intelligent terminal to appear blocking and pause, power consumptive soon, the condition such as generate heat. The intelligent terminal can be enabled to orderly process a large number of touch events.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a flow chart of a method for processing a touch event according to the present application;
FIG. 2 is a schematic diagram of interaction of an intelligent terminal with a vehicle machine according to the present application;
FIG. 3 is a flow chart for determining the execution time of a current touch event according to the present application;
FIG. 4 is a flow chart of a method for processing a touch event according to the present application;
FIG. 5 is a flow chart of a method for processing a touch event according to the present application;
FIG. 6 is a schematic diagram of a processing device for touch events according to the present application;
fig. 7 is a block diagram of an electronic device for implementing a method for processing a touch event according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, in an embodiment of the present application, a method for processing a touch event is provided, which may include the following steps:
s101: determining a time interval between receiving a current touch event and receiving a last touch event;
s102: determining the execution time of the current touch event by using the time interval and the time of receiving the current touch event;
s103: and storing the current touch event into a touch event execution queue according to the execution time.
The scene of the embodiment of the application can be suitable for interaction between the intelligent terminal and the vehicle machine, such as a Carlife scene. The intelligent terminal can comprise a mobile phone, an intelligent sound box and other devices. The execution subject of the above flow in the embodiment of the present application may be an intelligent terminal.
The touch event may be a touch event sent by a car machine. The judgment basis of the two touch events before and after detection by the car machine can be determined by detecting the sliding distance of the finger on the touch screen, for example, when the sliding distance of the finger on the touch screen of the car machine exceeds a corresponding threshold value, the touch event can be determined as one touch event. The ending position of the first touch event can be used as the starting position of the second touch event.
In addition, two touch events before and after can be determined according to the time for detecting the finger on the touch screen; alternatively, two touch events may be determined according to the movement of dropping or lifting the finger.
Under the condition that the intelligent terminal receives the touch event, the time interval between the current touch event and the last touch event can be determined according to the moment when the touch event is received each time.
Under the condition that the touch screens of the car machine and the intelligent terminal do not have the unified product standard, the intelligent terminal cannot process the touch events transmitted by the car machine in time. For example, the touch screen of the car machine determines two adjacent touch events at an interval of 1 to 3 milliseconds, and the intelligent terminal determines two adjacent touch events at an interval of 20 to 30 milliseconds.
Referring to fig. 2, taking a single sliding of a finger on a touch screen of a vehicle device as an example, the touch screen of the vehicle device may determine that N touch events are generated by the single sliding. Such as a touch event of a detected finger drop (corresponding to ACTION _ DOWN in fig. 2), a touch event of a detected finger slide (corresponding to multiple ACTION _ MOVE in fig. 2), a touch event of a detected finger lift (corresponding to ACTION _ UP in fig. 2) as shown in fig. 2. It should be noted that, in the case that the number of touch events is determined by using the sliding distance, the motion of one sliding of the finger may correspond to a plurality of touch events (i.e., a plurality of ACTION _ MOVEs shown in fig. 2). After the N touch events are transmitted to the intelligent terminal, the intelligent terminal receives the touch events exceeding the self processing limit in a short time, so that very large touch event analysis pressure can be caused to the intelligent terminal, and the intelligent terminal is blocked, consumes electricity quickly, generates heat and the like.
In contrast, in the embodiment of the application, whether the touch screens of the car machine and the intelligent terminal have the uniform product standard or not can be determined through the time interval between the reception of the current touch event and the reception of the last touch event.
For example, under the condition that the touch screens of the car machine and the intelligent terminal do not have a unified product standard, the execution time of each received touch event can be set according to the product standard of the intelligent terminal. And storing the touch events which cannot be executed immediately into a touch event execution queue according to the execution time. Therefore, in the subsequent touch event execution process, the touch events can be sequentially executed according to the execution time of each touch event in the touch event execution queue.
By the scheme, whether the touch screens of the vehicle and the intelligent terminal have unified product standards or not can be determined through the time interval between the current touch event and the last touch event. Under the condition that the touch screens of the car machine and the intelligent terminal do not have the unified product standard, the problem of large analysis pressure of the touch events of the intelligent terminal in the related technology is solved by setting the execution time of each touch event and storing the touch events which cannot be executed immediately into a touch event execution queue, and the situations of blocking, high power consumption, heating and the like are avoided. A large number of touch events can be handled in order.
As shown in fig. 3, in an embodiment, the step S102 may specifically include the following steps:
s301: determining a difference between the time interval and the threshold value by using the threshold value and the time interval under the condition that the time interval is not greater than the corresponding threshold value;
s302: and determining the execution time of the current touch event by using the difference and the time of the current touch event.
In the present embodiment, the time interval threshold may be set to 25 milliseconds.
In the case that the time interval between the current touch event and the last touch event is not greater than 25 milliseconds, it may indicate that the number of touch events received by the intelligent terminal exceeds the capability of the intelligent terminal to normally process the touch events. In this case, the time interval, the threshold value, and the time when the current touch event is received may be used to determine the execution time of the current touch event.
Specifically, the execution time t of the current touch eventnowCan be set as follows: t is tnow=t0-Δt+t1(ii) a In the formula, t0May represent a time interval threshold, at may represent a time interval, t1May represent the time at which the current secondary touch event was received.
In the formula, t0At may represent the difference between the time interval and the threshold.
By the scheme, the execution time of each touch event can be reasonably arranged. Therefore, the integral control of the touch event execution is realized. The problem of big analytic pressure of intelligent terminal touch event among the prior art is solved, avoid its card pause, power consumptive soon, the condition such as generate heat.
In one embodiment, step S102 may specifically include the following steps:
and under the condition that the time interval is larger than the corresponding threshold, determining the execution time of the current touch event by using the time interval and the time when the current touch event is received.
As with the above steps, the time interval threshold may be set at 25 milliseconds.
In the case that the time interval between the current touch event and the last touch event is greater than 25 milliseconds, it may indicate that the smart terminal is capable of processing the touch event under normal conditions. Based on the above, the execution time t of the current touch eventnowCan be set as follows: t is tnow=Δt+t1(ii) a Where Δ t may represent a time interval, t1May represent the time at which the current secondary touch event was received.
By the scheme, the execution time of each touch event can be reasonably arranged. Therefore, the integral control of the touch event execution is realized. The problem of big analytic pressure of intelligent terminal touch event among the prior art is solved, avoid its card pause, power consumptive soon, the condition such as generate heat.
As shown in fig. 4, in an embodiment, the method for processing a touch event may further include the following steps:
s401: determining the type of each touch event in a touch event execution queue;
s402: and under the condition that the number of the touch events of the preset type exceeds the corresponding threshold value, deleting the touch events of the preset type in the touch event execution queue.
The types of touch events may include at least a drop of a finger, a lift of a finger, and a swipe of a finger. The finger can be put down to detect the touch operation of the finger corresponding to a touch screen of the car machine; the lifting of the finger can correspond to the detection that the finger leaves the surface of the touch screen by the touch screen of the car machine; the sliding of the finger can be detected by a touch screen of the car machine corresponding to the finger sliding on the touch screen.
Among the above different types, any type may be determined as the predetermined type as needed. Or, in general, the dropping of the finger and the lifting of the finger can be used to represent the number of fingers performing the touch event, so the dropping of the finger and the lifting of the finger can be classified as important touch events.
In addition, the sliding of the finger is used for representing the track of the finger, and even if the track is slightly lost, the identification of the track is not greatly influenced. Thus, a sliding of the finger may be listed as a non-significant touch event. That is, in the case where the type of the touch event is a sliding of a finger, it may be determined as a predetermined type.
In the touch event execution queue, the number of the touch events of each type may be counted. For a predetermined type of touch event, in the case where the number thereof exceeds the corresponding threshold, a pruning process may be performed.
Exemplarily, in case the number of touch events of the predetermined type exceeds the first threshold, the number of deletions may be set to 10%; that is, out of every 10 predetermined types of touch events, 1 is deleted.
In the case where the number of predetermined types of touch events exceeds the second threshold, the number of deletions may be set to 15%.
Further, a maximum value of the number of deletions may be set to 20%. The number of the deletions can be flexibly adjusted according to the actual situation, and is not limited herein.
Through the scheme, the pressure of the intelligent terminal can be reduced in a mode of deleting the touch events of the preset type. Because the deleted touch event is the touch event of the preset type which can not influence the instruction analysis result after being demonstrated, the scheme can not influence the accuracy of the instruction analysis and can also reduce the working pressure of the intelligent terminal.
In one embodiment, in a case where the touch event includes a finger sliding event, the touch event including the finger sliding event is determined as a predetermined type of touch event.
As shown in fig. 5, in an embodiment, the method for processing a touch event may further include the following steps:
s501: polling a touch event execution queue at fixed time, and sequentially executing the touch events in the touch event execution queue according to the execution time;
s502: the executed touch event is removed from the touch event execution queue.
The polling time may be set to 1 millisecond. That is, the touch event execution queue is traversed every 1 millisecond, and the touch event is executed once according to the execution time of each touch event in the touch event execution queue.
And removing the touch event from the touch event execution queue under the condition that the touch event is executed completely.
It should be noted that the arrangement order of the touch events in the touch event execution queue may be sorted according to the execution time, or sorted according to the time when the touch event is received. The specific ordering is not limited. And during traversal, extracting the touch event to be executed from the touch event execution queue according to the execution time.
Through the scheme, the intelligent terminal can process the touch event according to the standard time interval. The problem of high energy consumption caused by processing of high-sensitivity touch events is solved. The pressure of the CPU of the intelligent terminal is released, more calculation capacity can be liberated for the intelligent terminal, and the electric quantity loss of the intelligent terminal is reduced.
In one embodiment, the touch event is a touch event sent by a vehicle end.
The current embodiment can be applied to the interactive scene of the intelligent terminal and the vehicle machine. Therefore, the touch event is a touch event sent by the vehicle end.
As shown in fig. 6, the present application provides a device for processing a touch event, which may include the following components:
a time interval determining module 601, configured to determine a time interval between receiving the current touch event and receiving the last touch event;
an execution time determining module 602, configured to determine an execution time of the current touch event by using the time interval and the time when the current touch event is received;
the touch event execution queue building module 603 is configured to store the current touch event into a touch event execution queue according to the execution time.
In an embodiment, the execution time determining module 602 may specifically include:
the difference determining submodule is used for determining the difference between the time interval and the threshold value by using the threshold value and the time interval under the condition that the time interval is not larger than the corresponding threshold value;
and the execution time determining and executing submodule is used for determining the execution time of the current touch event by using the difference and the time of the current touch event.
In an embodiment, the execution time determining module 602 may specifically be configured to:
and under the condition that the time interval is larger than the corresponding threshold, determining the execution time of the current touch event by using the time interval and the time when the current touch event is received.
In one embodiment, the apparatus for processing a touch event may further include:
the touch event type determining module is used for determining the type of each touch event in the touch event execution queue;
and the touch event execution queue adjusting module is used for deleting the touch events of the preset types in the touch event execution queue under the condition that the quantity of the touch events of the preset types exceeds the corresponding threshold value.
In one embodiment, the predetermined types include: the touch event includes a finger slide event.
In one embodiment, the apparatus for processing a touch event may further include:
the touch event execution module is used for polling the touch event execution queue at regular time and sequentially executing the touch events in the touch event execution queue according to the execution time;
and the touch event removing module is used for removing the executed touch events from the touch event execution queue.
In one embodiment, the touch event is a touch event sent by a vehicle end.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 7 is a block diagram of an electronic device according to a method for processing a touch event according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 7, the electronic apparatus includes: one or more processors 710, a memory 720, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). One processor 710 is illustrated in fig. 7.
Memory 720 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor, so that the at least one processor executes the method for processing the touch event provided by the application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the method of processing a touch event provided by the present application.
The memory 720, as a non-transitory computer readable storage medium, can be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the processing method of the touch event in the embodiment of the present application (for example, the time interval determination module 601, the execution time determination module 602, and the touch event execution queue construction module 603 shown in fig. 6). The processor 710 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 720, that is, implements the method for processing the touch event in the above method embodiments.
The memory 720 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device of the processing method of the touch event, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 720 may optionally include a memory remotely located from the processor 710, and these remote memories may be connected to the electronic device of the touch event processing method through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the touch event processing method may further include: an input device 730 and an output device 740. The processor 710, the memory 720, the input device 730, and the output device 740 may be connected by a bus or other means, such as the bus connection in fig. 7.
The input device 730 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus of a method of processing a touch event, such as an input device of a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 740 may include a display device, auxiliary lighting devices (e.g., LEDs), tactile feedback devices (e.g., vibrating motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and Virtual Private Server (VPS) service. The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (17)

1. A method for processing a touch event comprises the following steps:
determining a time interval between receiving a current touch event and receiving a last touch event;
determining the execution time of the current touch event by using the time interval and the time when the current touch event is received;
and storing the current touch event into a touch event execution queue according to the execution time.
2. The method of claim 1, wherein the determining, using the time interval and the time at which the current secondary touch event was received, the time at which the current secondary touch event was performed comprises:
determining a difference between the time interval and the threshold value using the threshold value and the time interval if the time interval is not greater than a corresponding threshold value;
and determining the execution time of the current touch event by using the difference and the time of the current touch event.
3. The method of claim 2, wherein the determining the execution time of the current secondary touch event using the time interval and the time at which the current secondary touch event was received comprises:
and under the condition that the time interval is larger than the corresponding threshold value, determining the execution time of the current touch event by using the time interval and the time of receiving the current touch event.
4. The method of claim 1, further comprising:
determining the type of each touch event in the touch event execution queue;
and under the condition that the number of the touch events of the preset type exceeds a corresponding threshold value, deleting the touch events of the preset type in the touch event execution queue.
5. The method of claim 4, wherein the predetermined type comprises: the touch event includes a finger slide event.
6. The method of any of claims 1 to 5, further comprising:
polling the touch event execution queue at fixed time, and sequentially executing the touch events in the touch event execution queue according to the execution time;
removing the touch event that has already been executed from the touch event execution queue.
7. The method of any one of claims 1 to 5, wherein the touch event is a touch event sent by a vehicle end.
8. A device for processing touch events, comprising:
the time interval determining module is used for determining the time interval between the current touch event and the last touch event;
the execution time determining module is used for determining the execution time of the current touch event by using the time interval and the time of receiving the current touch event;
and the touch event execution queue building module is used for storing the current touch event into a touch event execution queue according to the execution time.
9. The apparatus of claim 8, wherein the execution time determination module comprises:
a difference determination submodule for determining a difference between the time interval and the threshold value using the threshold value and the time interval if the time interval is not greater than a corresponding threshold value;
and the execution time determining and executing submodule is used for determining the execution time of the current touch event by using the difference and the time of the current touch event.
10. The apparatus according to claim 9, wherein the execution time determining module is specifically configured to:
and under the condition that the time interval is larger than the corresponding threshold value, determining the execution time of the current touch event by using the time interval and the time of receiving the current touch event.
11. The apparatus of claim 8, further comprising:
the touch event type determining module is used for determining the type of each touch event in the touch event execution queue;
the touch event execution queue adjusting module is used for deleting the touch events of the preset types in the touch event execution queue under the condition that the number of the touch events of the preset types exceeds a corresponding threshold value.
12. The apparatus of claim 11, wherein the predetermined type comprises: the touch event includes a finger slide event.
13. The apparatus of any of claims 8 to 11, further comprising:
the touch event execution module is used for polling the touch event execution queue at regular time and sequentially executing the touch events in the touch event execution queue according to the execution time;
a touch event removal module for removing the touch event that has been executed from the touch event execution queue.
14. The apparatus according to any one of claims 8 to 11, wherein the touch event is a touch event transmitted from a vehicle end.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
16. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
17. A computer program product comprising computer instructions which, when executed by a processor, implement the method of any one of claims 1 to 7.
CN202011519908.5A 2020-12-21 2020-12-21 Touch event processing method, device, equipment and storage medium Pending CN112506379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011519908.5A CN112506379A (en) 2020-12-21 2020-12-21 Touch event processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011519908.5A CN112506379A (en) 2020-12-21 2020-12-21 Touch event processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112506379A true CN112506379A (en) 2021-03-16

Family

ID=74922797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011519908.5A Pending CN112506379A (en) 2020-12-21 2020-12-21 Touch event processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112506379A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8487895B1 (en) * 2012-06-26 2013-07-16 Google Inc. Systems and methods for enhancing touch event processing performance
KR20140026764A (en) * 2012-08-23 2014-03-06 고려대학교 산학협력단 Method for improving the performance of touch screen in mobile device, and apparatus thereof
CN105045584A (en) * 2015-07-07 2015-11-11 东风汽车有限公司 Touch control method and system for screen of vehicle machine
CN105573536A (en) * 2014-10-16 2016-05-11 华为技术有限公司 Touch interaction processing method, device and system
WO2017047929A1 (en) * 2015-09-17 2017-03-23 주식회사 한컴플렉슬 Touch screen device capable of executing gesture combination-based event and operating method thereof
CN108829329A (en) * 2018-05-15 2018-11-16 腾讯科技(深圳)有限公司 A kind of operation object methods of exhibiting, device and readable medium
CN111143066A (en) * 2019-12-25 2020-05-12 Oppo广东移动通信有限公司 Event processing method, device, equipment and storage medium
US20200192565A1 (en) * 2017-09-05 2020-06-18 Zte Corporation Fusion method and terminal for touch messages and computer-readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8487895B1 (en) * 2012-06-26 2013-07-16 Google Inc. Systems and methods for enhancing touch event processing performance
KR20140026764A (en) * 2012-08-23 2014-03-06 고려대학교 산학협력단 Method for improving the performance of touch screen in mobile device, and apparatus thereof
CN105573536A (en) * 2014-10-16 2016-05-11 华为技术有限公司 Touch interaction processing method, device and system
CN105045584A (en) * 2015-07-07 2015-11-11 东风汽车有限公司 Touch control method and system for screen of vehicle machine
WO2017047929A1 (en) * 2015-09-17 2017-03-23 주식회사 한컴플렉슬 Touch screen device capable of executing gesture combination-based event and operating method thereof
US20200192565A1 (en) * 2017-09-05 2020-06-18 Zte Corporation Fusion method and terminal for touch messages and computer-readable storage medium
CN108829329A (en) * 2018-05-15 2018-11-16 腾讯科技(深圳)有限公司 A kind of operation object methods of exhibiting, device and readable medium
CN111143066A (en) * 2019-12-25 2020-05-12 Oppo广东移动通信有限公司 Event processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112437018A (en) Flow control method, device, equipment and storage medium for distributed cluster
CN111835592B (en) Method, apparatus, electronic device and readable storage medium for determining robustness
CN112181683A (en) Concurrent consumption method and device for message middleware
CN112153343B (en) Elevator safety monitoring method and device, monitoring camera and storage medium
CN112559086A (en) Applet page rendering method and device, electronic equipment and readable storage medium
CN111880914A (en) Resource scheduling method, resource scheduling apparatus, electronic device, and storage medium
CN111860644A (en) Abnormal account identification method, device, equipment and storage medium
CN113765873A (en) Method and apparatus for detecting abnormal access traffic
CN111177513B (en) Determination method and device of abnormal access address, electronic equipment and storage medium
CN110958250B (en) Port monitoring method and device and electronic equipment
CN114356547B (en) Low-priority blocking method and device based on processor virtualization environment
CN110782551A (en) Data processing method and device, electronic equipment and storage medium
CN112560772B (en) Face recognition method, device, equipment and storage medium
CN112506379A (en) Touch event processing method, device, equipment and storage medium
CN110781824A (en) Target detection and tracking method and device, electronic equipment and storage medium
CN113655906A (en) Folding screen control method and device
CN111726402B (en) User behavior data processing method and device, electronic equipment and storage medium
CN112527166B (en) Touch instruction processing method, device, equipment and storage medium
CN111597026B (en) Method and device for acquiring information
CN110505247B (en) Attack detection method and device, electronic equipment and storage medium
CN113691628A (en) Task switching method and device, system, electronic equipment and computer medium
CN113656422A (en) Method and device for updating human face base
CN111783872A (en) Method and device for training model, electronic equipment and computer readable storage medium
CN111857488B (en) Method and device for popping up menu in applet, electronic equipment and storage medium
CN114862655B (en) Operation control method and device for model training and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20211015

Address after: 100176 Room 101, 1st floor, building 1, yard 7, Ruihe West 2nd Road, economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Apollo Zhilian (Beijing) Technology Co.,Ltd.

Address before: 2 / F, baidu building, 10 Shangdi 10th Street, Haidian District, Beijing 100085

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right