CN109144309B - Touch control method and device, storage medium and terminal equipment - Google Patents

Touch control method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN109144309B
CN109144309B CN201810793710.2A CN201810793710A CN109144309B CN 109144309 B CN109144309 B CN 109144309B CN 201810793710 A CN201810793710 A CN 201810793710A CN 109144309 B CN109144309 B CN 109144309B
Authority
CN
China
Prior art keywords
touch
equipment
current
event
data
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.)
Active
Application number
CN201810793710.2A
Other languages
Chinese (zh)
Other versions
CN109144309A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810793710.2A priority Critical patent/CN109144309B/en
Publication of CN109144309A publication Critical patent/CN109144309A/en
Priority to PCT/CN2019/096543 priority patent/WO2020015704A1/en
Application granted granted Critical
Publication of CN109144309B publication Critical patent/CN109144309B/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/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/0416Control or interface arrangements specially adapted for digitisers

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)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a touch control method and a device, when a down event to one touch device is detected at any time, if the touch data reported by other touch devices is judged to exist at the current time and the response priority of the other touch devices is higher than that of the current touch device, the touch data of the other touch devices are continuously reported until the up event to the other touch devices is detected, the touch data of the current touch device in a preset first time period is discarded, and when the priority of the other touch devices is higher than that of the current touch device, the down event is supplemented for the current touch device when the up event to the other touch devices is detected at any time, so that the phenomenon of time sequence conflict caused by the simultaneous report of the touch data by a plurality of touch devices at the same time can be avoided, and the original Android original frame can be not changed, the problem of touch abnormity caused by simultaneous operation of multiple touch devices is solved.

Description

Touch control method and device, storage medium and terminal equipment
Technical Field
The invention relates to the field of touch screens, in particular to a touch control method and device, a storage medium and terminal equipment.
Background
With the increasing of multimedia information inquiry, people increasingly talk to the touch screen, because the touch screen is the latest computer input device which is the simplest, convenient and natural input device at present and is also suitable for the national conditions of multimedia information inquiry in China, the touch screen has the advantages of firmness, durability, high reaction speed, space saving, easy communication and the like. By using the technology, the user can operate the host machine by lightly touching the icons or characters on the computer display screen with fingers, so that the man-machine interaction is more straightforward, the technology is greatly convenient for users who do not know the computer operation, and the man-machine interaction mode gives a brand-new multimedia.
The operation experience of a user is undoubtedly further improved by the multi-touch screen technology, the existing multi-touch screen technology is mainly designed on the basis of the capacitive touch screen principle, a display screen can receive the analysis and judgment of two or more contact points, and therefore more complex program operation is completed, for example, two fingers simultaneously enlarge or reduce pictures, a webpage can be browsed, fixed-point enlargement is performed at any time, and no effort is required for accessing the internet by using a mobile phone.
As shown in fig. 1, according to the android system architecture, the touch device 1 and the touch device 2 are connected to the drive layer respectively, and touch data of the touch device 1 and the touch device 2 is directly transmitted to the USB control center, and then directly transmitted to the multi-touch interface by the control center, and then directly reported to the upper Framework layer and the application layer by the multi-touch interface. As shown in fig. 2, in the process of reporting the touch data of the touch device 1 by the system, if a down event of the source touch device 2 is detected at a certain time, the touch data of the two touch devices report data at the same time, except that a time sequence conflict may be caused, so that one of the touch devices cannot display a drawing track within a probabilistic time, and when all touch points Up of the touch device 1 are touched, the state of the touch device 2 is also affected at the upper layer of the Android, which causes an abnormality in the subsequent data of the touch device 2.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a touch control method and apparatus, a storage medium, and a terminal device, which can effectively solve the problem of time sequence collision caused by reporting touch data by multiple existing touch devices at the same time, and ensure that only one touch device reports data to an upper layer at the same time.
In order to solve the above technical problem, an embodiment of the present invention provides a touch device suitable for n touch devices, where n is greater than or equal to 2, including the following steps:
when a down event of one touch device is detected at any moment, judging whether other touch devices report touch data at the current moment;
if judging that other touch equipment reports touch data at the current moment, acquiring response priorities of the other touch equipment and the current touch equipment; the current touch equipment is touch equipment which detects a down event at the current moment;
when the response priority of the other touch equipment is higher than that of the current touch equipment, continuing to report the touch data of the other touch equipment until an up event to the other touch equipment is detected, and discarding the touch data of the current touch equipment within a preset first time period; wherein the first time period is a time interval between a time when a down event of the current touch device is detected and a time when an up event of the other touch devices is detected;
if the priority of the other touch equipment is higher than that of the current touch equipment, when an up event to the other touch equipment is detected at any time, a down event is supplemented for the current touch equipment, and touch data of the current touch equipment is reported.
As an improvement of the above, the method further comprises the steps of:
and when the response priority of the other touch equipment is smaller than the response priority of the current touch equipment, stopping reporting the touch data of the other touch equipment, supplementing the up event for the other touch equipment, and starting reporting the touch data of the current touch equipment until the up event to the current touch equipment is detected.
As an improvement of the above scheme, if the priority of the other touch device is higher than that of the current touch device, when an up event to the other touch device is detected at any time, the supplementing a down event to the current touch device and starting reporting the touch data of the current touch device includes:
if the priorities of the other touch devices are greater than that of the current touch device, judging whether the number of the touch devices in the complementary down event list is equal to 1 or not when the up events to the other touch devices are detected at any time;
if the number of the touch devices in the complement down event list is equal to 1, complementing the down event for the current touch device, starting to report the touch data of the current touch device, and deleting the current touch device in the complement down event list.
As an improvement of the above, the method further comprises the steps of:
if the number of the touch devices in the complementary down event list is greater than 1, sorting the touch devices according to the response priority of the touch devices in the complementary down event list to generate a response sequence;
and according to the response sequence, sequentially reporting the touch data of each touch device from the first touch device in the response sequence.
As an improvement of the scheme, the method further comprises the following steps:
when down events to a plurality of touch devices are detected at any time, the touch devices are added into the supplementary down event list, and the touch devices are sequenced according to the response priority of the touch devices in the supplementary down event list to generate a response sequence;
and according to the response sequence, sequentially reporting the touch data of each touch device from the first touch device in the response sequence.
As an improvement of the above scheme, the sequentially reporting the touch data of each touch device from the first touch device in the response sequence includes:
starting to report the touch data of the first touch device until an up event of the first touch device is detected;
when detecting an up event of the first touch device at any time, supplementing a down event for the next touch device in the response list, and deleting the first touch device in the supplemented down event list;
responding to a down event of one touch device in the response sequence at any time, starting to report touch data of the touch device until an up event of the touch device is detected, deleting the touch device from the response sequence, and discarding touch data of the rest touch devices in the response sequence within a preset second time period; wherein the second time period is a time interval between a time when a down event of the touch device is detected and a time when an up event of the touch device is detected;
and when the up event of the touch equipment is detected at any time, supplementing a down event for the next touch equipment in the response list, and deleting the current touch equipment in the supplemented down event list.
The invention also provides a touch control device, which is suitable for n touch devices, wherein n is more than or equal to 2, and the touch control device comprises:
the first judgment module is used for judging whether other touch equipment reports touch data at the current moment when a down event of one touch equipment is detected at any moment;
the response priority acquisition module is used for judging that other touch equipment reports touch data at the current moment and acquiring the response priorities of the other touch equipment and the current touch equipment; the current touch equipment is touch equipment which detects a down event at the current moment;
a data discarding module, configured to, when the response priority of the other touch device is greater than the response priority of the current touch device, continue to report the touch data of the other touch device until an up event to the other touch device is detected, and discard the touch data of the current touch device within a preset first time period; wherein the first time period is a time interval between a time when a down event of the current touch device is detected and a time when an up event of the other touch devices is detected;
and the down event supplementing module is used for supplementing the down event for the current touch equipment and starting to report the touch data of the current touch equipment when the up event to the other touch equipment is detected at any moment if the priority of the other touch equipment is greater than that of the current touch equipment.
As an improvement of the above, the apparatus further comprises:
and the up event supplementing module is used for stopping reporting the touch data of the other touch equipment when the response priority of the other touch equipment is smaller than the response priority of the current touch equipment, supplementing up events for the other touch equipment and starting reporting the touch data of the current touch equipment until the up event of the current touch equipment is detected.
The embodiment of the invention also provides a storage medium, which comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute any one of the touch control methods.
An embodiment of the present invention further provides a terminal device, including one or more processors, a memory, and one or more programs, where:
the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs including instructions for performing any of the touch control methods described above.
Compared with the prior art, the touch control method and device, the storage medium and the terminal device provided by the embodiments of the present invention detect a down event for one of the touch devices at any time, if it is determined that there is a touch data reported by another touch device at the current time and the response priority of the another touch device is higher than the response priority of the current touch device, continue to report the touch data of the another touch device until an up event for the another touch device is detected, and discard the touch data of the current touch device within a preset first time period, and when the priority of the another touch device is higher than the current touch device, supplement the down event for the current touch device when an up event for the another touch device is detected at any time, so as to avoid a timing collision phenomenon caused by reporting the touch data by a plurality of touch devices at the same time, the method has the advantages that only one touch device reports data to the upper layer at the same time, and the problem of touch abnormity caused by simultaneous working of multiple touch devices can be solved without changing the original Android original frame.
Drawings
Fig. 1 is a schematic diagram of data reporting of a multi-touch device in the prior art;
FIG. 2 is a data flow diagram of a prior art multi-touch device provided by the prior art;
fig. 3 is a flowchart of a touch control method according to embodiment 1 of the present invention;
fig. 4 is a data flow diagram of a multi-touch device in embodiment 1 of the present invention;
fig. 5 is a flowchart of a touch control method according to embodiment 2 of the present invention;
fig. 6 is a data flow diagram of a multi-touch device in embodiment 2 of the present invention;
fig. 7 is a schematic diagram of data reporting of a multi-touch device according to the present invention;
fig. 8 is a flowchart of a touch control method according to embodiment 3 of the present invention;
fig. 9 is a flowchart of reporting touch data of each touch device in sequence in embodiment 3 of the present invention;
fig. 10 is a block diagram of a touch control device according to embodiment 4 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
Referring to fig. 2, fig. 2 is a flowchart of a method of a touch control method provided in embodiment 1 of the present invention, where the touch control method is applicable to n touch devices, n ≧ 2, and includes the following steps:
s101, when a down event of one touch device is detected at any moment, judging whether other touch devices report touch data at the current moment;
it should be noted that, for a touch device, each touch point has a corresponding down event and up event, wherein,
a down event: a finger or a pen is contacted with a touch screen (including an infrared screen, a capacitive screen, an electromagnetic screen and the like), and a down event is generated at the moment when the finger or the pen is not contacted with the touch screen;
an up event: correspondingly, when a finger or a pen contacts a touch screen (including an infrared screen, a capacitive screen, an electromagnetic screen and the like), an event generated by the moment when the finger or the pen contacts the touch screen and leaves the touch screen is an up event.
For the android system, each touch device pair has a corresponding down event and up event, wherein the down event refers to an event generated by a moment that a certain touch device is not contacted with the touched touch device; a dup event refers to an event that results from an instant a touch has been made to leave the touch screen for a certain touch device. The scheme relates to the data reporting problem of a multi-touch screen and is suitable for the situation of the android system.
When a down event of one touch device is detected at any time, and it is judged that no other touch device reports touch data at the current time, the down event of the touch device can be directly changed correspondingly, and the touch data of the touch device starts to be reported.
S102, if judging that other touch equipment reports touch data at the current moment, acquiring response priorities of the other touch equipment and the current touch equipment; the current touch equipment is touch equipment which detects a down event at the current moment;
the response priority in step S102 is preset by the user or the system, and may be set by the type, size, model, and the like of the touch device. When the response priority of a certain touch device is higher, the touch data of the touch device needs to be processed preferentially; when the response priority of a certain touch device is lower, the touch data of other touch devices with higher response priorities need to be processed preferentially.
S103, when the response priority of the other touch devices is higher than that of the current touch device, continuing to report the touch data of the other touch devices until an up event to the other touch devices is detected, and discarding the touch data of the current touch device within a preset first time period; wherein the first time period is a time interval between a time when a down event of the current touch device is detected and a time when an up event of the other touch devices is detected;
and S104, if the priorities of the other touch devices are greater than that of the current touch device, when an up event to the other touch device is detected at any time, a down event is supplemented for the current touch device, and touch data of the current touch device is reported.
The above process is described in detail below with n ═ 2 as an example. As shown in fig. 4, when the system detects a down event of the source touch device 2 at any time in the process of reporting the touch data of the touch device 1, the response priorities of the touch device 1 and the touch device 2 are first determined. If the response priority of the touch device 1 is greater than the response priority of the touch device 2, the data of the touch device 2 is masked before the touch device 1 has not yet up, as shown by the dotted line in fig. 4. For example, assuming that the touch device 1 is an infrared touch screen and the touch device 2 is an electromagnetic touch screen, in the gesture erasing process of the infrared touch screen, the writing operation of an electromagnetic pen on the electromagnetic touch screen is sensed at a certain time, and since the response priority of the infrared touch screen is greater than the response priority of the electromagnetic touch screen, the writing handwriting on the electromagnetic touch screen can be displayed only after the erasing action of the infrared touch screen is completed.
In another preferred embodiment, as shown in fig. 5, on the basis of embodiment 1, the touch control method further includes the steps of:
and S105, when the response priority of the other touch equipment is smaller than the response priority of the current touch equipment, stopping reporting the touch data of the other touch equipment, supplementing up events for the other touch equipment, and starting reporting the touch data of the current touch equipment until the up event of the current touch equipment is detected.
The above process is described in detail below with n ═ 2 as an example. As shown in fig. 6, when the system detects a down event of the source touch device 2 at any time in the process of reporting the touch data of the touch device 1, the response priorities of the touch device 1 and the touch device 2 are first determined. If the response priority of the touch device 1 is smaller than the response priority of the touch device 2, the touch device 1 needs to be compensated with an up event, the touch operation of the touch device 2 starts to be responded, and the touch data of the touch device 1 is discarded in the working process of the touch device 2. For example, in the above example, it is assumed that the touch device 1 is an infrared touch screen, the touch device 2 is an electromagnetic touch screen, and in the gesture erasing process of the infrared touch screen, the writing operation of the electromagnetic pen on the electromagnetic touch screen is sensed at a certain time, and since the response priority of the electromagnetic touch screen is greater than the response priority of the infrared touch screen, an up event is supplemented for the infrared touch screen, the erasing operation of the infrared touch screen is stopped in response, and the writing handwriting of the electromagnetic pen starts to be displayed on the electromagnetic touch screen.
As shown in fig. 7, a timing processing thread is added between the USB control center of the driving layer and the multi-touch interface, and the timing processing thread adjusts the uploading sequence of the touch data of the touch device 1 and the touch device 2 by using the touch control method, so as to avoid timing conflicts caused by the simultaneous reporting of data by two touch devices, and ensure that only the touch data of one touch device can be reported to the upper layer at the same time. As shown in fig. 4, after all touch points up of the touch device 1 are reached, the touch operation of the touch device 2 can be normally responded, the state of the touch device 2 on the upper Android layer is not affected, and the compatibility problem of the multi-touch device under the Android frame is met.
Referring to fig. 8, a flowchart of a touch control method according to embodiment 3 of the present invention is provided
S201, when a down event of one touch device is detected at any moment, judging whether other touch devices report touch data at the current moment;
s202, if judging that other touch equipment reports touch data at the current moment, acquiring response priorities of the other touch equipment and the current touch equipment; the current touch equipment is touch equipment which detects a down event at the current moment;
s203, when the response priority of the other touch devices is higher than that of the current touch device, continuing to report the touch data of the other touch devices until an up event to the other touch devices is detected, and discarding the touch data of the current touch device within a preset first time period; wherein the first time period is a time interval between a time when a down event of the current touch device is detected and a time when an up event of the other touch devices is detected;
s204, when the response priority of the other touch equipment is larger than that of the current touch equipment, adding the current touch equipment to a complementary down event list;
s205, if the priorities of the other touch devices are greater than that of the current touch device, judging whether the number of the touch devices in the complementary down event list is equal to 1 or not when up events to the other touch devices are detected at any time;
and S206, if the number of the touch devices in the complement down event list is equal to 1, complementing the down event for the current touch device, starting to report the touch data of the current touch device, and deleting the current touch device in the complement down event list.
That is, only in the case where the number of touch devices in the complement down event list is equal to 1, it is not necessary to determine which touch device is complemented with a down event first, and only the touch data of the remaining one touch device needs to be responded. There may be two cases, one where n is 2 and the other where the touch device in the supplemental down event list has been up in advance, which would also delete it in the supplemental down event list.
If the number of the touch devices in the complementary down event list is greater than 1, sorting the touch devices according to the response priority of the touch devices in the complementary down event list to generate a response sequence; and according to the response sequence, sequentially reporting the touch data of each touch device from the first touch device in the response sequence.
Preferably, as shown in fig. 9, the touch data of each touch device may be reported in sequence in the following manner:
s301, starting to report the touch data of the first touch device until an up event of the first touch device is detected;
s302, when an up event of the first touch device is detected at any time, a down event is supplemented for the next touch device in the response list, and the first touch device is deleted from the down event supplementing list;
s303, responding to a down event of one touch device in the response sequence at any time, starting to report touch data of the touch device until an up event of the touch device is detected, deleting the touch device from the response sequence, and discarding touch data of the rest touch devices in the response sequence within a preset second time period; wherein the second time period is a time interval between a time when a down event of the touch device is detected and a time when an up event of the touch device is detected;
s304, when detecting the up event of the touch equipment at any time, supplementing the down event for the next touch equipment in the response list, and deleting the current touch equipment in the supplemented down event list.
In addition, there is also a case where down events of a plurality of touch devices are detected at the same time, the plurality of touch devices may be added to the complementary down event list, the plurality of touch devices are sorted according to response priorities of the touch devices in the complementary down event list to generate a response sequence, and then touch data of each touch device is sequentially reported from a first touch device in the response sequence according to the response sequence. Preferably, the method shown in fig. 9 may be adopted to report the touch data of each touch device in turn.
Referring to fig. 10, the touch control apparatus provided in embodiment 4 of the present invention is applicable to n touch devices, where n is greater than or equal to 2, and includes:
the first judging module 11 is configured to, when a down event for one of the touch devices is detected at any time, judge whether there is touch data reported by another touch device at the current time;
a response priority obtaining module 12, configured to determine that there is touch data reported by other touch devices at the current time, and obtain response priorities of the other touch devices and the current touch device; the current touch equipment is touch equipment which detects a down event at the current moment;
a data discarding module 13, configured to, when the response priority of the other touch device is greater than the response priority of the current touch device, continue to report the touch data of the other touch device until an up event to the other touch device is detected, and discard the touch data of the current touch device within a preset first time period; wherein the first time period is a time interval between a time when a down event of the current touch device is detected and a time when an up event of the other touch devices is detected;
and a down event supplementing module 14, configured to, if the priority of the other touch device is greater than that of the current touch device, supplement a down event for the current touch device when an up event to the other touch device is detected at any time, and start reporting touch data of the current touch device.
Preferably, the apparatus further includes an up event supplementing module, configured to stop reporting the touch data of the other touch devices when the response priority of the other touch devices is smaller than the response priority of the current touch device, supplement an up event for the other touch devices, and start reporting the touch data of the current touch device until an up event for the current touch device is detected.
Preferably, the apparatus further includes a complementary down event list adding module, configured to add the current touch device to the complementary down event list when the response priority of the other touch devices is greater than the response priority of the current touch device.
The down event supplementing module 14 includes a second determining module and a supplemented down event list deleting module, where the second determining module is configured to determine whether the number of touch devices in the supplemented down event list is equal to 1 when an up event to another touch device is detected at any time if the priority of the other touch device is greater than that of the current touch device; and the down event supplementing list deleting module is used for supplementing a down event for the current touch equipment if the number of the touch equipment in the down event supplementing list is equal to 1, starting to report touch data of the current touch equipment, and deleting the current touch equipment in the down event supplementing list.
Preferably, the device further comprises a first response sequence generation module and a first reporting module, wherein the first response sequence generation module is configured to, if the number of the touch devices in the complementary down event list is greater than 1, sort the touch devices according to the response priorities of the touch devices in the complementary down event list to generate a response sequence; and the first reporting module is used for sequentially reporting the touch data of each touch device from the first touch device in the response sequence according to the response sequence.
Preferably, the apparatus further includes a second response sequence generating module and a second reporting module, where the second response sequence generating module is configured to, when a down event for multiple touch devices is detected at any time, add the multiple touch devices to the complementary down event list, and sort the touch devices according to response priorities of the touch devices in the complementary down event list to generate a response sequence; and the second reporting module is used for sequentially reporting the touch data of each touch device from the first touch device in the response sequence according to the response sequence.
Preferably, the touch data of each touch device can be reported in sequence by adopting the following modes:
starting to report the touch data of the first touch device until an up event of the first touch device is detected;
when detecting an up event of the first touch device at any time, supplementing a down event for the next touch device in the response list, and deleting the first touch device in the supplemented down event list;
responding to a down event of one touch device in the response sequence at any time, starting to report touch data of the touch device until an up event of the touch device is detected, deleting the touch device from the response sequence, and discarding touch data of the rest touch devices in the response sequence within a preset second time period; wherein the second time period is a time interval between a time when a down event of the touch device is detected and a time when an up event of the touch device is detected;
and when the up event of the touch equipment is detected at any time, supplementing a down event for the next touch equipment in the response list, and deleting the current touch equipment in the supplemented down event list.
The embodiment of the invention also provides a storage medium, which comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute any one of the touch control methods.
An embodiment of the present invention further provides a terminal device, including one or more processors, a memory, and one or more programs, where:
the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs including instructions for performing any of the touch control methods described above.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A touch control method is suitable for n touch devices, wherein n is larger than or equal to 2, and comprises the following steps:
when a down event of one touch device is detected at any moment, judging whether other touch devices report touch data at the current moment;
if judging that other touch equipment reports touch data at the current moment, acquiring response priorities of the other touch equipment and the current touch equipment; the current touch equipment is touch equipment which detects a down event at the current moment;
when the response priority of the other touch equipment is higher than that of the current touch equipment, continuing to report the touch data of the other touch equipment until an up event to the other touch equipment is detected, and discarding the touch data of the current touch equipment within a preset first time period; wherein the first time period is a time interval between a time when a down event of the current touch device is detected and a time when an up event of the other touch devices is detected;
if the priority of the other touch equipment is higher than that of the current touch equipment, when an up event to the other touch equipment is detected at any time, a down event is supplemented for the current touch equipment, and touch data of the current touch equipment is reported.
2. The touch control method of claim 1, further comprising the steps of:
and when the response priority of the other touch equipment is smaller than the response priority of the current touch equipment, stopping reporting the touch data of the other touch equipment, supplementing the up event for the other touch equipment, and starting reporting the touch data of the current touch equipment until the up event to the current touch equipment is detected.
3. The touch control method of claim 1, further comprising the steps of:
and when the response priority of the other touch equipment is greater than that of the current touch equipment, adding the current touch equipment to a complementary down event list.
4. The touch control method according to claim 3, wherein if the priority of the other touch device is higher than that of the current touch device, when an up event to the other touch device is detected at any time, the supplementing a down event for the current touch device and starting reporting the touch data of the current touch device comprises:
if the priorities of the other touch devices are greater than that of the current touch device, judging whether the number of the touch devices in the complementary down event list is equal to 1 or not when the up events to the other touch devices are detected at any time;
if the number of the touch devices in the complement down event list is equal to 1, complementing the down event for the current touch device, starting to report the touch data of the current touch device, and deleting the current touch device in the complement down event list.
5. The touch control method of claim 4, wherein the method further comprises the steps of:
if the number of the touch devices in the complementary down event list is greater than 1, sorting the touch devices according to the response priority of the touch devices in the complementary down event list to generate a response sequence;
and according to the response sequence, sequentially reporting the touch data of each touch device from the first touch device in the response sequence.
6. The touch control method of claim 1, further comprising the steps of:
when down events to a plurality of touch devices are detected at any time, the touch devices are added into the supplementary down event list, and the touch devices are sequenced according to the response priority of the touch devices in the supplementary down event list to generate a response sequence;
and according to the response sequence, sequentially reporting the touch data of each touch device from the first touch device in the response sequence.
7. The touch control method according to claim 5 or 6, wherein the reporting the touch data of each touch device in sequence from the first touch device in the response sequence comprises:
starting to report the touch data of the first touch device until an up event of the first touch device is detected;
when detecting an up event of the first touch device at any time, supplementing a down event for the next touch device in the response sequence, and deleting the first touch device in the supplemented down event list;
responding to a down event of one touch device in the response sequence at any time, starting to report touch data of the touch device until an up event of the touch device is detected, deleting the touch device from the response sequence, and discarding touch data of the rest touch devices in the response sequence within a preset second time period; wherein the second time period is a time interval between a time when a down event of the touch device is detected and a time when an up event of the touch device is detected;
and when the up event of the touch equipment is detected at any time, supplementing a down event for the next touch equipment in the response sequence, and deleting the current touch equipment in the supplemented down event list.
8. A touch control device is suitable for n touch equipment, wherein n is more than or equal to 2, and the touch control device comprises:
the first judgment module is used for judging whether other touch equipment reports touch data at the current moment when a down event of one touch equipment is detected at any moment;
the response priority acquisition module is used for judging that other touch equipment reports touch data at the current moment and acquiring the response priorities of the other touch equipment and the current touch equipment; the current touch equipment is touch equipment which detects a down event at the current moment;
a data discarding module, configured to, when the response priority of the other touch device is greater than the response priority of the current touch device, continue to report the touch data of the other touch device until an up event to the other touch device is detected, and discard the touch data of the current touch device within a preset first time period; wherein the first time period is a time interval between a time when a down event of the current touch device is detected and a time when an up event of the other touch devices is detected;
and the down event supplementing module is used for supplementing the down event for the current touch equipment and starting to report the touch data of the current touch equipment when the up event to the other touch equipment is detected at any moment if the priority of the other touch equipment is greater than that of the current touch equipment.
9. The touch control apparatus of claim 8, wherein the apparatus further comprises:
and the up event supplementing module is used for stopping reporting the touch data of the other touch equipment when the response priority of the other touch equipment is smaller than the response priority of the current touch equipment, supplementing up events for the other touch equipment and starting reporting the touch data of the current touch equipment until the up event of the current touch equipment is detected.
10. A storage medium comprising a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the touch control method according to any one of claims 1 to 7.
11. A terminal device comprising one or more processors, memory, and one or more programs, wherein:
the one or more programs stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the touch control method of any of claims 1-7.
CN201810793710.2A 2018-07-18 2018-07-18 Touch control method and device, storage medium and terminal equipment Active CN109144309B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810793710.2A CN109144309B (en) 2018-07-18 2018-07-18 Touch control method and device, storage medium and terminal equipment
PCT/CN2019/096543 WO2020015704A1 (en) 2018-07-18 2019-07-18 Touch control method and apparatus, storage medium, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810793710.2A CN109144309B (en) 2018-07-18 2018-07-18 Touch control method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN109144309A CN109144309A (en) 2019-01-04
CN109144309B true CN109144309B (en) 2020-11-10

Family

ID=64800876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810793710.2A Active CN109144309B (en) 2018-07-18 2018-07-18 Touch control method and device, storage medium and terminal equipment

Country Status (2)

Country Link
CN (1) CN109144309B (en)
WO (1) WO2020015704A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144309B (en) * 2018-07-18 2020-11-10 广州视源电子科技股份有限公司 Touch control method and device, storage medium and terminal equipment
CN109947287A (en) * 2019-02-20 2019-06-28 广州华欣电子科技有限公司 A kind of processing method, device, equipment and the storage medium of touch data missing
CN110221767A (en) * 2019-06-13 2019-09-10 广州视源电子科技股份有限公司 The control method and device of intelligent interaction device
CN114503063A (en) * 2019-11-26 2022-05-13 深圳市欢太科技有限公司 Touch response method, touch screen system, terminal, storage medium and chip
CN111208917B (en) * 2019-12-31 2022-04-08 广州视源电子科技股份有限公司 Touch data processing method and device, intelligent equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046715A (en) * 2006-03-28 2007-10-03 Lg电子株式会社 Mobile communications terminal having key input error prevention function and its method
CN102968183A (en) * 2011-12-20 2013-03-13 微软公司 Content system with auxiliary touch controller
CN103403648A (en) * 2011-02-10 2013-11-20 三星电子株式会社 Apparatus including multiple touch screens and method of changing screens therein

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681710B (en) * 2011-03-17 2016-08-10 联芯科技有限公司 Electronic equipment input method, device and electronic equipment based on this device
CN102693024A (en) * 2011-03-21 2012-09-26 汉王科技股份有限公司 Dual-touch apparatus and positioning method thereof
KR102126500B1 (en) * 2013-06-28 2020-06-25 삼성전자주식회사 Electronic apparatus and touch sensing method using the smae
CN107592556B (en) * 2017-08-08 2020-02-04 福建星网视易信息系统有限公司 Control information synthesis method based on mobile terminal, controlled terminal and mobile terminal
CN107729131A (en) * 2017-09-25 2018-02-23 努比亚技术有限公司 A kind of event-handling method, terminal and computer-readable recording medium
CN109144309B (en) * 2018-07-18 2020-11-10 广州视源电子科技股份有限公司 Touch control method and device, storage medium and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046715A (en) * 2006-03-28 2007-10-03 Lg电子株式会社 Mobile communications terminal having key input error prevention function and its method
CN103403648A (en) * 2011-02-10 2013-11-20 三星电子株式会社 Apparatus including multiple touch screens and method of changing screens therein
CN102968183A (en) * 2011-12-20 2013-03-13 微软公司 Content system with auxiliary touch controller

Also Published As

Publication number Publication date
CN109144309A (en) 2019-01-04
WO2020015704A1 (en) 2020-01-23

Similar Documents

Publication Publication Date Title
CN109144309B (en) Touch control method and device, storage medium and terminal equipment
CN103279278B (en) A kind of method and apparatus obtaining icon details in terminal interface
CN105320417B (en) Page switching method and client
CN105511781B (en) Start the method, apparatus and user equipment of application program
CN104182068A (en) Error touch identifying method and device
JP6828150B2 (en) Screen display method and terminal
WO2014075582A1 (en) Method and apparatus for storing webpage access records
WO2012130156A1 (en) Handwriting input method and apparatus for touch device, and electronic device
CN102609191A (en) Browsing interaction method for incoming messages of touchscreen cellphones
US20130100035A1 (en) Graphical User Interface Interaction Using Secondary Touch Input Device
US20130332888A1 (en) Method and device for operating list in handheld device
CN109976655A (en) Long screenshotss method, apparatus, terminal and storage medium
CN103064627A (en) Application management method and device
CN107239166A (en) It is a kind of to adjust method and the mobile terminal that interface of mobile terminal is shown
TW201413537A (en) Touch-control method for capacitive and electromagnetic dual-mode touch screen and handheld electronic device
CN105094396A (en) Element deleting method and apparatus based on touch screen
CN104252254A (en) Touch input source selecting method and electronic device
CN106843735A (en) A kind of terminal control method and mobile terminal
US20130044061A1 (en) Method and apparatus for providing a no-tap zone for touch screen displays
CN110347439A (en) Processor awakening method, device, terminal and storage medium
CN103699327A (en) Terminal equipment and selection method and selection device for touch screen terminal
CN107370874A (en) Startup method, mobile terminal and the storage medium of application
CN105159552A (en) Page flipping control method for browsing web page and user terminal
WO2015079450A2 (en) Electronic device
CN103389876A (en) Function switching method based on touch display equipment and touch display 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
GR01 Patent grant
GR01 Patent grant