CN114780013A - Touch screen operation identification method and device, terminal device and medium - Google Patents

Touch screen operation identification method and device, terminal device and medium Download PDF

Info

Publication number
CN114780013A
CN114780013A CN202210487358.6A CN202210487358A CN114780013A CN 114780013 A CN114780013 A CN 114780013A CN 202210487358 A CN202210487358 A CN 202210487358A CN 114780013 A CN114780013 A CN 114780013A
Authority
CN
China
Prior art keywords
touch
touched key
state
touched
key
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.)
Granted
Application number
CN202210487358.6A
Other languages
Chinese (zh)
Other versions
CN114780013B (en
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.)
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
BDstar Intelligent and Connected Vehicle 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 BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority to CN202210487358.6A priority Critical patent/CN114780013B/en
Publication of CN114780013A publication Critical patent/CN114780013A/en
Application granted granted Critical
Publication of CN114780013B publication Critical patent/CN114780013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04104Multi-touch detection in digitiser, i.e. details about the simultaneous detection of a plurality of touching locations, e.g. multiple fingers or pen and finger

Landscapes

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

Abstract

The invention provides a method and a device for identifying touch screen operation, terminal equipment and a medium, wherein the method comprises the following steps: acquiring touch data of a touched key in a touch screen; the touched keys are a plurality of keys which are touched simultaneously; analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key, and reporting the touch state of the touched key to an operating system; and when the last touch data is analyzed and the touch state of the touched key is the target state, changing the touch state of each touched key into a release state, and reporting the release state of each touched key to the operating system. The invention can avoid the problem of false dead state caused by unstable data and improve the user experience.

Description

Touch screen operation identification method and device, terminal device and medium
Technical Field
The invention relates to the technical field of data transmission, in particular to a method and a device for identifying touch screen operation, terminal equipment and a medium.
Background
At present, the mainstream design method of the display screen of the vehicle-mounted entertainment system is to use an MCU chip to control the display screen, and a touch chip is integrated on the side of the display screen. When the host computer needs to acquire the touch information, the touch information needs to be received through the MCU chip and then is transmitted to the host computer through the communication rule established in a unified mode. In order to satisfy the flexibility of installing the host computer, a long wiring harness is usually used for connecting the split screens. However, under the influence of the aging of the wiring harness, when the screen is clicked by multiple fingers, if the lifting event of one of the fingers is not uploaded to the host, the host considers that the current key is not released all the time, and then other touch data are not processed, so that a false dead state occurs, and a user mistakenly considers that the vehicle is dead, and the user experience is influenced.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a terminal device and a medium for identifying a touch screen operation, so as to avoid the problem of a false death state caused by unstable data and improve user experience.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for identifying a touch screen operation, including: acquiring touch data of a touched key in a touch screen; the touched keys are a plurality of keys which are touched simultaneously; analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key, and reporting the touch state of the touched key to an operating system; and when the last touch data is analyzed and the touch state of the touched key obtained by analysis is a target state, changing the touch state of each touched key into a release state, and reporting the release state of each touched key to the operating system.
In one embodiment, the touch data includes: the touch ID, the touch coordinate and the touch identifier of the touched key, wherein the touch identifier is used for indicating the touch state of the touched key.
In one embodiment, the step of analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key includes: and analyzing the touch state of each touched key based on the touch identifier of each touched key.
In one embodiment, the step of sequentially analyzing the touch data of each touched key to obtain the touch state of the touched key includes: if the touch ID of the touched key is the valid ID, analyzing the touch data of the valid ID to obtain the touch state of the valid ID; and if the touch ID of the touched key is the invalid ID, changing the touch state of the touched key corresponding to the invalid ID into a release state.
In one embodiment, the method further comprises: and judging whether the touch ID of the touched key is a valid ID or not based on the touch coordinate of the touched key.
In one embodiment, the step of determining whether the touch ID of the touched key is a valid ID based on the touch coordinates of the touched key includes: judging whether the touch coordinate of the touched key is within the resolution range of the touch screen; if yes, determining that the touch ID of the touched key is a valid ID; if not, determining that the touch ID of the touched key is an invalid ID.
In one embodiment, the method further comprises: and storing the acquired touch data of the touched key into a cache region.
In a second aspect, an embodiment of the present invention provides an apparatus for identifying a touch screen operation, including: the data acquisition module is used for acquiring touch data of a touched key in the touch screen; the touched keys are a plurality of keys which are touched simultaneously; the analysis module is used for analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key and reporting the touch state of the touched key to the operating system; and the release module is used for changing the touch state of each touched key into a release state and reporting the release state of each touched key to the operating system when the last touch data is analyzed and the touch state of the touched key obtained through analysis is the target state.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a touch screen, a processor, and a memory, where the memory stores computer-executable instructions capable of being executed by the processor, and the processor executes the computer-executable instructions to implement the steps of any one of the methods provided in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the methods provided in the first aspect.
The embodiment of the invention has the following beneficial effects:
according to the method, the device, the terminal device and the medium for identifying the touch screen operation, provided by the embodiment of the invention, firstly, touch data of a touched key (a plurality of keys touched at the same time) in a touch screen is obtained; then, sequentially analyzing the touch data of each touched key to obtain the touch state of the touched key, and reporting the touch state of the touched key to an operating system; and finally, when the last touch data is analyzed and the touch state of the touched key obtained through analysis is the target state, changing the touch state of each touched key into a release state, and reporting the release state of each touched key to the operating system. In the method, when a plurality of fingers click screen keys, touch data of each touched key can be normally reported to an operating system; meanwhile, when the last touch data (namely the received touch data of the last finger) is analyzed and the touch state is the target state, all the received touched keys are released again (namely the touch state of each touched key is changed into the release state), so that the normal state can be recovered even if the host does not receive the release state in the touch data, the problem of a false dead state of the host caused by unstable data is avoided, and the user experience is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an identification method for a touch screen operation according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for identifying a touch screen operation according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an identification apparatus for touch screen operation according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
At present, when a screen is clicked by multiple fingers, if a lifting event of one finger is not uploaded to a host, the host considers that a current key is not released all the time, and other touch data are not processed, so that a false dead state occurs, a user mistakenly considers that a vehicle is dead, and user experience is influenced; in addition, the car machine is in the in-process of assembly debugging hot plug, and the mistake is touched the operation very easily and is appeared, makes and is touched the button and is in unreleased state always, leads to the mistake to judge the product as the defective products.
Based on this, the method, the device, the terminal device and the medium for identifying the touch screen operation provided by the embodiment of the invention can avoid the problem of a false death state caused by unstable data, and improve the user experience.
To facilitate understanding of the present embodiment, first, a detailed description is given of an identification method of a touch screen operation disclosed in the embodiment of the present invention, which may be executed by a terminal device with a touch screen, such as a smart phone, a computer, an iPad, a vehicle-mounted entertainment system, and so on, referring to a flowchart of an identification method of a touch screen operation shown in fig. 1, which illustrates that the method mainly includes the following steps S101 to S103:
step S101: acquiring touch data of a touched key in a touch screen; the touched keys are a plurality of keys which are touched simultaneously.
In one embodiment, when a plurality of fingers simultaneously click on a screen, touch data of a plurality of touched keys can be acquired, wherein the touch data of each touched key comprises: a touch ID, touch coordinates and a touch identifier of the touched key, the touch identifier indicating a touch state of the touched key, such as: when the touch flag is 1, the touch state of the corresponding touched key is a pressed state. In addition, the number of touched keys, namely the hand index of simultaneously clicking the screen, can be acquired.
Step S102: and analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key, and reporting the touch state of the touched key to an operating system.
In an embodiment, the touch state of the touched key may be obtained through analysis based on the touch identifier of each touched key, and the analyzed touch state of the touched key is reported to the operating system.
Step S103: and when the last touch data is analyzed and the touch state of the touched key obtained by analysis is a target state, changing the touch state of each touched key into a release state, and reporting the release state of each touched key to the operating system.
Specifically, in the embodiment of the present invention, when the current analyzed touch data of the last finger is and the touch state is the target state (such as the release state), all the acquired touched keys are released again, that is, the touch state of each touched key is changed to the release state, and the release state is reported to the operating system, so that each touched key is released, and a false dead state is avoided.
According to the identification method for touch screen operation provided by the embodiment of the invention, when a plurality of fingers click screen keys, touch data of each touched key can be normally reported to an operating system; meanwhile, when the last touch data (namely the received touch data of the last finger) is analyzed and the touch state is the target state, all the received touched keys are released again (namely the touch state of each touched key is changed into the release state), so that the normal state can be recovered even if the host does not receive the release state in the touch data, the data instability is avoided, and the user experience is improved.
In an embodiment, in order to facilitate analysis and processing of the acquired touch data, the method provided in the embodiment of the present invention further includes: and storing the acquired touch data of the touched key into a cache region. Based on this, in the embodiment of the present invention, data may be sequentially read from the buffer area according to the touch ID of the touched key for analysis and processing.
Further, in order to ensure that the host system can be normally used, before analyzing the touch state of each touched key, touch coordinates need to be judged to determine that the user clicks an effective area of the touch screen, and a touch message can be normally received. In particular, the method can be realized by the following modes including but not limited to: and judging whether the touch ID of the touched key is a valid ID or not based on the touch coordinate of the touched key.
In a specific embodiment, whether the touch coordinate of the touched key is within the resolution range of the touch screen or not can be judged; if yes, determining that the touch ID of the touched key is a valid ID; if not, determining that the touch ID of the touched key is an invalid ID.
Further, if the touch ID of the touched key is a valid ID, the touch data of the valid ID is analyzed to obtain the touch state of the valid ID. Specifically, the touch identifier of the valid ID may be analyzed to obtain the touch state of the valid ID, and the touch state and the touch coordinate are uploaded to the operating system together.
And if the touch ID of the touched key is the invalid ID, changing the touch state of the touched key corresponding to the invalid ID into the release state. Specifically, touch data of an invalid ID may be filtered out, and a corresponding touch state may be changed to a release state.
For example, assuming that three fingers simultaneously click the screen, it can be obtained that the number of touched keys is 3, the touch IDs of the touched keys are ID1, ID2 and ID3, respectively, and the touch coordinate and the touch identifier corresponding to each touch ID. Firstly, touch coordinates corresponding to ID1, ID2 and ID3 are judged, if the touch coordinates of ID1 and ID3 are located in the resolution range of the touch screen, the ID1 and ID3 are determined to be valid IDs, the touch coordinates of ID2 are not located in the resolution range of the touch screen, and the ID2 is determined to be invalid ID; then, the touch state of each touched key is analyzed in sequence, because the IDs 1 and 3 are valid IDs, the touch states of the IDs 1 and 3 can be obtained through analysis according to the touch identifications corresponding to the IDs 1 and 3, the touch coordinates and the touch states of the IDs 1 and 3 are reported to the operating system, and the ID2 is an invalid ID, so that the touch state of the ID2 is changed into a release state.
When the last touch data is analyzed, that is, the touch data corresponding to the ID3 is analyzed, and the touch state corresponding to the ID3 is the release state, all of the IDs 1, 2, and 3 are changed to the release state, and are reported to the operating system.
For convenience of understanding, an embodiment of the present invention further provides another identification method for a touch screen operation, and referring to a flowchart of the another identification method for a touch screen operation shown in fig. 2, it is shown that the method mainly includes the following steps S201 to S207:
step S201: the touch screen communication bus is initialized.
Specifically, the touch screen communication bus is initialized, so that the initialization of the touch data receiving bus is realized, and the communication link is normal.
Step S202: touch data is received.
In one embodiment, the receipt of touch data is handled primarily by an interrupt thread. When the screen notification is received and a touch event is generated, the host reads touch messages of the touch screen through the touch screen communication bus, and puts all the read touch messages into a touch data cache (buffer), namely, obtains touch data of a touched key in the touch screen, and stores the obtained touch data of the touched key into a cache region.
Step S203: judging whether the touch coordinate of the touched key is in the resolution range of the touch screen; if so, step S204 is executed, otherwise, step S207 is executed.
In one embodiment, the acquired touch data includes: the number of touched keys, a touch ID, touch coordinates and a touch identification. After the touch data is acquired, in order to enable the system to work normally, the touch coordinate needs to be judged first, if the touch coordinate of the touched key is located in the resolution range of the current touch screen, the key ID of the touched key is determined to be valid, and if not, the key ID of the touched key is determined to be invalid.
Step S204: and analyzing the touch state of the effective ID, and uploading the touch state and the touch coordinate of the effective ID to an operating system.
Specifically, when the touch coordinate is within the resolution range of the current touch screen, the touch coordinate is considered to be valid, that is, the touch ID of the touched key corresponding to the touch coordinate is valid, so that the touch identifier of the valid ID can be analyzed to obtain the touch state of the valid ID, and the touch state and the touch coordinate are uploaded to the operating system together.
Step S205: judging whether the current effective ID is the last touch ID or not and the touch state is a release state; if so, step S206 is executed, otherwise, the process returns to step S202.
Step S206: and changing the touch states of all the touched keys into release states, and reporting the release states of all the touched keys to an operating system.
Specifically, when a plurality of fingers simultaneously touch the screen module, the number of touched keys (namely, the number of touched fingers) and touch data of each touched key can be acquired, then under the condition that touch coordinates are effective, the touch data of each touched key are sequentially analyzed, when the last touch data is analyzed and the touch state of the touched key obtained by analysis is a release state, the current maximum number of keys (namely, the number of touched keys) is acquired, all keys are sequentially released, namely, the touch state is adjusted to be the release state, and the release states of all the touched keys are reported to an operating system, so that all the touch states in the current system are ensured to be in the release state; and when the touch state does not accord with the judgment condition, continuously waiting for the next frame of touch data.
Step S207: the touch state of the invalid ID is changed to the release state.
Specifically, when the touch coordinate of the touched key is not within the resolution range of the touch screen, the touch coordinate is considered to be invalid, that is, the touch ID of the touched key corresponding to the touch coordinate is invalid. In order to ensure that the touch of the host system is in the release state under the abnormal condition, invalid data can be filtered out, and the corresponding touch state is changed into the release state.
The method provided by the embodiment of the invention can detect the key ID received each time and the corresponding touch state, and inquire the number of fingers pressed by the current key. When a plurality of fingers click, the data can be normally reported to the operating system firstly, and meanwhile, when the touch data of the last key is detected and the touch state is the release state, all keys received historically can be released again, so that the system can be recovered to the normal state after the operation even if the host does not receive the release state of the last group of touch data, the false death problem caused by unstable data to the host is solved, and the touch failure problem caused by hot plugging during the assembly and debugging of the vehicle machine can be improved.
As to the method for identifying a touch screen operation provided in the foregoing embodiment, an embodiment of the present invention further provides an apparatus for identifying a touch screen operation, and referring to a schematic structural diagram of an apparatus for identifying a touch screen operation shown in fig. 3, the apparatus may include the following components:
the data acquisition module 301 is configured to acquire touch data of a touched key in a touch screen; the touched keys are a plurality of keys which are touched simultaneously.
The analyzing module 302 is configured to sequentially analyze the touch data of each touched key to obtain a touch state of the touched key, and report the touch state of the touched key to the operating system.
And a releasing module 303, configured to, when the last touch data is analyzed and the touch state of the touched key obtained through the analysis is the target state, adjust the touch state of each touched key to a releasing state, and report the releasing state of each touched key to the operating system.
According to the identification device for touch screen operation provided by the embodiment of the invention, when a plurality of fingers click screen keys, touch data of each touched key can be normally reported to an operating system; meanwhile, when the last touch data (namely the received touch data of the last finger) is analyzed and the touch state is the target state, all the received touched keys are released again (namely the touch state of each touched key is changed into the release state), so that the normal state can be recovered even if the host does not receive the release state in the touch data, the problem of a false dead state of the host caused by unstable data is avoided, and the user experience is improved.
In one embodiment, the touch data includes: the touch ID, the touch coordinate and the touch identifier of the touched key are used for indicating the touch state of the touched key; the parsing module 302 is further configured to: and analyzing the touch identification of each touched key to obtain the touch state of the touched key.
In an embodiment, the parsing module 302 is further configured to: if the touch ID of the touched key is the valid ID, analyzing the touch data of the valid ID to obtain the touch state of the valid ID; and if the touch ID of the touched key is the invalid ID, changing the touch state of the touched key corresponding to the invalid ID into the release state.
In an embodiment, the apparatus further includes a determining module, configured to: and judging whether the touch ID of the touched key is a valid ID or not based on the touch coordinate of the touched key.
In an embodiment, the determining module is further configured to: judging whether the touch coordinate of the touched key is within the resolution range of the touch screen; if yes, determining that the touch ID of the touched key is a valid ID; if not, determining that the touch ID of the touched key is an invalid ID.
In an embodiment, the apparatus further includes a cache module, configured to: and storing the acquired touch data of the touched key into a cache region.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention also provides terminal equipment, and particularly, the terminal equipment comprises a touch screen, a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above embodiments.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, where the terminal device 100 includes: the system comprises a processor 40, a memory 41, a bus 42, a communication interface 43 and a touch screen 44, wherein the processor 40, the communication interface 43 and the memory 41 are connected through the bus 42; the processor 40 is arranged to execute executable modules, such as computer programs, stored in the memory 41.
The Memory 41 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
The bus 42 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The memory 41 is used for storing a program, the processor 40 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 40, or implemented by the processor 40.
The processor 40 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of hardware integrated logic circuits or software in the processor 40. The Processor 40 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 41, and the processor 40 reads the information in the memory 41 and completes the steps of the method in combination with the hardware thereof.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for identifying a touch screen operation is characterized by comprising the following steps:
acquiring touch data of a touched key in a touch screen; the touched keys are a plurality of keys which are touched simultaneously;
analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key, and reporting the touch state of the touched key to an operating system;
and when the last touch data is analyzed and the touch state of the touched key is the target state, changing the touch state of each touched key into a release state, and reporting the release state of each touched key to an operating system.
2. The method for identifying a touch screen operation according to claim 1, wherein the touch data includes: the touch control method comprises a touch ID, touch coordinates and a touch identifier of a touched key, wherein the touch identifier is used for indicating the touch state of the touched key.
3. The method for identifying the touch screen operation according to claim 2, wherein the step of analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key includes:
and analyzing the touch state of each touched key based on the touch identifier of each touched key to obtain the touch state of the touched key.
4. The method for identifying the touch screen operation according to claim 2, wherein the step of analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key includes:
if the touch ID of the touched key is the effective ID, analyzing the touch data of the effective ID to obtain the touch state of the effective ID;
and if the touch ID of the touched key is an invalid ID, changing the touch state of the touched key corresponding to the invalid ID into a release state.
5. The method for identifying a touch screen operation according to claim 4, further comprising:
and judging whether the touch ID of the touched key is a valid ID or not based on the touch coordinate of the touched key.
6. The method for identifying the touch screen operation according to claim 5, wherein the step of determining whether the touch ID of the touched key is a valid ID based on the touch coordinate of the touched key comprises:
judging whether the touch coordinate of the touched key is in the resolution range of the touch screen;
if yes, determining that the touch ID of the touched key is a valid ID;
and if not, determining that the touch ID of the touched key is an invalid ID.
7. The method for identifying a touch screen operation according to claim 1, further comprising:
and storing the acquired touch data of the touched key into a cache area.
8. An apparatus for recognizing a touch screen operation, comprising:
the data acquisition module is used for acquiring touch data of a touched key in the touch screen; the touched keys are a plurality of keys which are touched simultaneously;
the analysis module is used for analyzing the touch data of each touched key in sequence to obtain the touch state of the touched key and reporting the touch state of the touched key to an operating system;
and the release module is used for changing the touch state of each touched key into a release state and reporting the release state of each touched key to an operating system when the last touch data is analyzed and the touch state of the touched key obtained through analysis is a target state.
9. A terminal device comprising a touch screen, a processor and a memory, the memory storing computer-executable instructions executable by the processor to perform the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 7.
CN202210487358.6A 2022-05-06 2022-05-06 Identification method and device for touch screen operation, terminal equipment and medium Active CN114780013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210487358.6A CN114780013B (en) 2022-05-06 2022-05-06 Identification method and device for touch screen operation, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210487358.6A CN114780013B (en) 2022-05-06 2022-05-06 Identification method and device for touch screen operation, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN114780013A true CN114780013A (en) 2022-07-22
CN114780013B CN114780013B (en) 2024-06-25

Family

ID=82434638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210487358.6A Active CN114780013B (en) 2022-05-06 2022-05-06 Identification method and device for touch screen operation, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN114780013B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880416A (en) * 2012-08-31 2013-01-16 广东欧珀移动通信有限公司 Remote control unlocking method for mobile equipment in remote control protocol (RCP) communication process
WO2016028341A1 (en) * 2014-08-19 2016-02-25 Touchsensor Technologies, Llc Capacitive sensor filtering apparatus, method, and system
CN108363507A (en) * 2018-01-11 2018-08-03 广东欧珀移动通信有限公司 Compensation method, device, electronic equipment and the storage medium of touchscreen dead region
CN109947287A (en) * 2019-02-20 2019-06-28 广州华欣电子科技有限公司 A kind of processing method, device, equipment and the storage medium of touch data missing
US20200272320A1 (en) * 2019-02-25 2020-08-27 Ncr Corporation Gestural touch interface
CN113641292A (en) * 2021-07-09 2021-11-12 荣耀终端有限公司 Method and electronic equipment for operating on touch screen

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880416A (en) * 2012-08-31 2013-01-16 广东欧珀移动通信有限公司 Remote control unlocking method for mobile equipment in remote control protocol (RCP) communication process
WO2016028341A1 (en) * 2014-08-19 2016-02-25 Touchsensor Technologies, Llc Capacitive sensor filtering apparatus, method, and system
CN108363507A (en) * 2018-01-11 2018-08-03 广东欧珀移动通信有限公司 Compensation method, device, electronic equipment and the storage medium of touchscreen dead region
CN109947287A (en) * 2019-02-20 2019-06-28 广州华欣电子科技有限公司 A kind of processing method, device, equipment and the storage medium of touch data missing
US20200272320A1 (en) * 2019-02-25 2020-08-27 Ncr Corporation Gestural touch interface
CN113641292A (en) * 2021-07-09 2021-11-12 荣耀终端有限公司 Method and electronic equipment for operating on touch screen

Also Published As

Publication number Publication date
CN114780013B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
US11360842B2 (en) Fault processing method, related apparatus, and computer
CN109558282B (en) PCIE link detection method, system, electronic equipment and storage medium
CN110262918B (en) Process crash analysis method and device, distributed equipment and storage medium
CN107145782B (en) Abnormal application program identification method, mobile terminal and server
CN113468515A (en) User identity authentication method and device, electronic equipment and storage medium
CN110647472A (en) Breakdown information statistical method and device, computer equipment and storage medium
CN116016653A (en) Information pushing method and device of blockchain, electronic equipment and storage medium
CN109558315B (en) Method, device and equipment for determining test range
CN112380094B (en) RPA business process processing method and device
CN112506693A (en) Method and device for recording abnormal information, storage medium and electronic equipment
CN106708591B (en) Character detection method and device for operating system
CN114780013A (en) Touch screen operation identification method and device, terminal device and medium
CN111124519A (en) Method and system for optimizing starting speed of android application program based on input response
CN106657316B (en) Message withdrawing method and device
CN108763053B (en) Method for generating buried point name and terminal equipment
CN107168776B (en) Event statistical method, device, equipment and storage medium
CN112333206B (en) Safety test method and device and electronic equipment
CN105335657B (en) A kind of program bug detection method and device
CN111786856A (en) Browser environment checking method and device
CN109039813B (en) Method, system and equipment for detecting internet access
CN110704219A (en) Hardware fault reporting method and device and computer storage medium
CN110874277B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN108388797B (en) Intrusion detection method and device and electronic equipment
CN111506477B (en) Log capture method and device of touch screen and mobile terminal
CN106095445B (en) Installation method, device and the terminal of driver

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
GR01 Patent grant
GR01 Patent grant