WO2020015704A1 - 触摸控制方法及装置、存储介质、终端设备 - Google Patents

触摸控制方法及装置、存储介质、终端设备 Download PDF

Info

Publication number
WO2020015704A1
WO2020015704A1 PCT/CN2019/096543 CN2019096543W WO2020015704A1 WO 2020015704 A1 WO2020015704 A1 WO 2020015704A1 CN 2019096543 W CN2019096543 W CN 2019096543W WO 2020015704 A1 WO2020015704 A1 WO 2020015704A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
touch device
current
event
time
Prior art date
Application number
PCT/CN2019/096543
Other languages
English (en)
French (fr)
Inventor
邱伟波
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
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 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2020015704A1 publication Critical patent/WO2020015704A1/zh

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

Definitions

  • the present invention relates to the field of touch screens, and in particular, to a touch control method and device, a storage medium, and a terminal device.
  • touch screen is the latest computer input device, it is the simplest, most convenient, natural and suitable for China's multimedia information query.
  • Equipment, touch screen has many advantages such as rugged, fast response, space saving, easy to communicate and so on.
  • users can easily operate the host by simply touching the icon or text on the computer display screen with their fingers, which makes the human-computer interaction more straightforward.
  • This technology greatly facilitates those who do not understand the computer Operating users, this kind of human-computer interaction gives multimedia a whole new look.
  • the advent of multi-touch screen technology will undoubtedly further improve the user's operating experience.
  • the existing multi-touch screen technology is mainly designed based on the principle of capacitive touch screen.
  • the display screen can accept the analysis and judgment of two or more contact points. This completes more complicated program operations, such as zooming in or out of a picture with two fingers at the same time, browsing the web page, zooming in at any time, and using a mobile phone to access the Internet is no longer laborious.
  • touch device 1 and touch device 2 are connected to the driver layer respectively.
  • the touch data of touch device 1 and touch device 2 are directly transmitted to the USB control center, and then transmitted directly to the multi-point by the control center.
  • the touch interface is then reported directly to the upper-layer Framework layer and application layer by the multi-touch interface.
  • the system reports the touch data of touch device 1
  • the down event of source touch device 2 is detected at a certain time
  • the touch data of two touch devices will report the data at the same time.
  • the timing conflict makes one of the touch devices unable to display the drawing trajectory in a probabilistic time, and when all touch points of touch device 1 are Up, the state of touch device 2 is also affected in the upper layer of Android, resulting in subsequent data of touch device 2. An exception occurred.
  • the technical problem to be solved by the embodiments of the present invention is to provide a touch control method and device, a storage medium, and a terminal device, which can effectively solve the timing conflict caused by multiple touch devices reporting touch data at the same time, and ensure that only one A touch device reports data to the upper layer.
  • an embodiment of the present invention provides a method applicable to n touch devices, n ⁇ 2, including the following steps:
  • the current touch device is a touch device that detects a down event at the current time
  • the touch data of the other touch device is continuously reported until an up event to the other touch device is detected, and the preset is discarded
  • the touch data of the current touch device in a first time period of time; wherein the first time period is a time 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 device is detected Time interval
  • the priority of the other touch device is greater than that of the current touch device, when an up event on the other touch device is detected at any time, a down event is compensated for the current touch device, and the touch data of the current touch device is started to be reported .
  • the method further includes the steps:
  • the touch data of the current touch device includes:
  • the number of touch devices in the list of supplementary down events is equal to 1, compensating for the down event of the current touch device, starting to report the touch data of the current touch device, and placing the current touch device in the supplementary Removed from the down event list.
  • the method further includes the steps:
  • the touch data of each touch device is reported in sequence.
  • the method further includes steps:
  • the multiple touch devices are added to the supplementary down event list, and according to the response priority of the touch device in the supplemental down event list, Sequencing the touch device to generate a response sequence;
  • the touch data of each touch device is reported in sequence.
  • the reporting of touch data of each touch device in sequence from the first touch device in the response sequence includes:
  • the down event is compensated for the next touch device in the response list, and the first touch device is deleted from the list of down events;
  • the touch data of the touch device is reported until the up event of the touch device is detected, and the touch device is deleted from the response sequence And discard the touch data of the remaining touch devices in the response sequence within a preset second time period; wherein the second time period is the time when the down event of the touch device is detected and the touch is detected The time interval between the moments of the device's up event;
  • the down event is compensated for the next touch device in the response list, and the current touch device is deleted from the list of down events.
  • the invention also needs to provide a touch control device corresponding to n touch devices, n ⁇ 2, including:
  • a first determination module configured to determine whether a touch event is reported by another touch device at the current time when a down event on one of the touch devices is detected at any time;
  • the response priority obtaining module is configured to determine that other touch devices are reporting touch data at the current moment, and obtain response priorities of the other touch devices and the current touch device; wherein the current touch device is a device that detects a down event at the current moment. Touch device
  • 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 touch data of the other touch device until an up to the other touch device is detected Event, and discard the touch data of the current touch device within a preset first time period; wherein the first time period is the time when the down event of the current touch device is detected and the other touch devices are detected The time interval between the moments of the up event;
  • the down event supplement module is configured to, if the priority of the other touch device is greater than the current touch device, when an up event on the other touch device is detected at any time, the down event is supplemented for the current touch device and the report is started.
  • the touch data of the current touch device is described.
  • the device further includes:
  • the up event supplement module is configured to stop reporting touch data of the other touch device when the response priority of the other touch device is lower than the response priority of the current touch device, and to supplement the up event for the other touch device , And start reporting touch data of the current touch device until an up event is detected for the current touch device.
  • An embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is located is controlled to execute the touch control method according to any one of the foregoing.
  • 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, and the programs include a method for performing a touch control method according to any one of the above.
  • the touch control method and device, storage medium, and terminal device provided by the embodiments of the present invention, when a down event on one of the touch devices is detected at any time, if it is determined that other touch devices are reported at the current time When the touch data is touched and the response priority of the other touch device is greater than the response priority of the current touch device, the touch data of the other touch device is continued to be reported until an up event on the other touch device is detected, And discards the touch data of the current touch device within a preset first time period, and when the priority of the other touch device is greater than the current touch device, when an up event on the other touch device is detected at any time
  • Compensating for the current touch device down event can avoid timing conflicts caused by multiple touch devices reporting touch data at the same time, ensuring that only one touch device reports data to the upper layer at the same time, and can not change the original Android original frame situation Next, solve the problem of abnormal touch caused by multiple touch devices working at the same time.
  • FIG. 1 is a schematic diagram of data reporting of a multi-touch device in the prior art
  • FIG. 2 is a schematic diagram of a data flow of a multi-touch device in the prior art 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 schematic diagram of a data flow 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 schematic diagram of a data flow 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 in the present invention.
  • FIG. 9 is a flowchart of sequentially reporting touch data of each touch device according to Embodiment 3 of the present invention.
  • FIG. 10 is a structural block diagram of a touch control device according to Embodiment 4 of the present invention.
  • FIG. 2 is a method flowchart of a touch control method according to Embodiment 1 of the present invention.
  • the touch control method is applicable to n touch devices, n ⁇ 2, and includes the following steps:
  • each touch point has a corresponding down event and an up event.
  • Down event a finger or pen that touches the touch screen (including infrared screen, capacitive screen, electromagnetic screen, etc.).
  • the event generated by the moment when no contact has been made is the down event;
  • Corresponding event occurs when a finger or a pen touches the touch screen (including infrared screen, capacitive screen, electromagnetic screen, etc.) from the moment it has touched and left the touch screen.
  • the touch screen including infrared screen, capacitive screen, electromagnetic screen, etc.
  • each touch device pair has a corresponding down event and an up event, where the down event refers to an event generated by a touch device from the moment it has not been touched; the up event refers to the An event that occurs when a touch device is touched off the touch screen.
  • the down event of the touch device can be directly correspondingly changed to start reporting touch data of the touch device.
  • the response priority in step S102 is set in advance by the user or the system, and can be set by touching the device type, size, and model.
  • the response priority of a touch device is higher, the touch data of the touch device needs to be processed first; when the response priority of a touch device is lower, the touch of other touch devices with higher response priority needs to be processed first data.
  • n 2 as an example.
  • 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, before the touch device 1 is not up, the data of the touch device 2 is shielded, as shown by the dotted line in FIG. 4.
  • touch device 1 is an infrared touch screen
  • touch device 2 is an electromagnetic touch screen.
  • the writing operation of the electromagnetic pen on the electromagnetic touch screen is sensed at a certain moment. Because the response priority of the infrared touch screen is greater than The response of the electromagnetic touch screen has priority, so it is necessary to wait for the erasing action of the infrared touch screen to be completed before the writing handwriting on the electromagnetic touch screen can be displayed.
  • the touch control method further includes steps:
  • n 2 as an example.
  • 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 lower than the response priority of the touch device 2, the touch device 1 needs to compensate for the up event and start to respond to the touch operation of the touch device 2.
  • the Touch Data Discard For example, in the above example, it is assumed that the touch device 1 is an infrared touch screen and the touch device 2 is an electromagnetic touch screen.
  • the writing operation of the electromagnetic pen on the electromagnetic touch screen is sensed at a certain time.
  • the response priority is higher than the response priority of the infrared touch screen. Therefore, the infrared touch screen compensates for the up event, stops responding to the erase operation of the infrared touch screen, and starts to display the electromagnetic pen writing handwriting on the electromagnetic touch screen.
  • a timing processing thread is added between the USB control center of the driver layer and the multi-touch interface.
  • the timing processing thread adjusts the upload order of the touch data of the touch device 1 and the touch device 2 by using the touch control method described above. To avoid timing conflicts when two touch devices report data at the same time, ensure that only one touch device's touch data can be reported to the upper layer at the same time.
  • FIG. 4 after all touch points of the touch device 1 are up, the touch operation of the touch device 2 can be normally responded without affecting the state of the touch device 2 in the upper layer of Android, and the compatibility of multi-touch devices under the Android framework is satisfied .
  • FIG. 8 is a flowchart of a touch control method according to Embodiment 3 of the present invention.
  • the touch devices are sorted and generated according to the response priority of the touch devices in the supplemental down event list.
  • Response sequence according to the response sequence, starting from the first touch device in the response sequence, reporting touch data of each touch device in turn.
  • the touch data of each touch device can be reported sequentially in the following manner:
  • S303 In response to a down event on one of the touch devices in the response sequence at any time, start reporting touch data of the touch device until an up event of the touch device is detected, and remove the touch device from the response sequence. Delete and discard the touch data of the remaining touch devices in the response sequence within a preset second time period; wherein the second time period is the time when the down event of the touch device is detected and the The time interval between the moments of the up event of the touch device;
  • the multiple touch devices may be added to the supplementary down event list, and according to the touch device in the supplementary down event list According to the response priority, the multiple touch devices are sorted to generate a response sequence, and then according to the response sequence, starting from the first touch device in the response sequence, the touch data of each touch device is reported in sequence.
  • the method shown in FIG. 9 may be used to report the touch data of each touch device in turn.
  • a touch control device provided in Embodiment 4 of the present invention is applicable to n touch devices, n ⁇ 2, including:
  • the first determining module 11 is configured to determine whether there is another touch device reporting touch data at the current time when a down event on one of the touch devices is detected at any time;
  • the response priority acquisition module 12 is configured to determine that other touch devices are reporting touch data at the current time, and obtain response priorities of the other touch devices and the current touch device; wherein the current touch device detects a down event at the current time. Touch device
  • the data discarding module 13 is 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 it detects the up event, and discarding touch data of the current touch device within a preset first time period; wherein the first time period is the time when the down event of the current touch device is detected and the other touches are detected The time interval between the moments of the device's up event;
  • the down event supplementing module 14 is configured to, if the priority of the other touch device is higher than the current touch device, when an up event on the other touch device is detected at any time, the down event is supplemented for the current touch device and the report is started. Touch data of the current touch device.
  • the apparatus further includes an up event supplement module configured to stop reporting touch data of the other touch devices when the response priority of the other touch devices is lower than the response priority of the current touch device, as The other touch device compensates for the up event and starts to report the touch data of the current touch device until an up event for the current touch device is detected.
  • an up event supplement module configured to stop reporting touch data of the other touch devices when the response priority of the other touch devices is lower than the response priority of the current touch device, as The other touch device compensates for the up event and starts to report the touch data of the current touch device until an up event for the current touch device is detected.
  • the apparatus further includes a supplemental down event list adding module configured to add the current touch device to the supplemental down event when a response priority of the other touch device is greater than a response priority of the current touch device. List.
  • a supplemental down event list adding module configured to add the current touch device to the supplemental down event when a response priority of the other touch device is greater than a response priority of the current touch device. List.
  • the down event supplementing module 14 includes a second judgment module and a supplemental down event list deletion module, wherein the second judgment module is configured to, if the priority of the other touch device is greater than the current touch device, when any moment When an up event on another touch device is detected, it is determined whether the number of touch devices in the supplemental down event list is equal to 1; the supplemental down event list deletion module is set to if the number of touched devices in the supplemental down event list is equal to 1, the down event for the current touch device is reported, and the touch data of the current touch device is reported, and the current touch device is deleted from the list of the down event.
  • the affiliated device further includes 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 touch devices in the make-down event list is greater than 1, according to the The compensation priority of the touch device in the down event list is used to sort the touch devices to generate a response sequence; the first reporting module is configured to, according to the response sequence, from the first touch device in the response sequence Start by reporting the touch data of each touch device in turn.
  • the first response sequence generation module is configured to, if the number of touch devices in the make-down event list is greater than 1, according to the The compensation priority of the touch device in the down event list is used to sort the touch devices to generate a response sequence
  • the first reporting module is configured to, according to the response sequence, from the first touch device in the response sequence Start by reporting the touch data of each touch device in turn.
  • the apparatus further includes a second response sequence generating module and a second reporting module, wherein the second response sequence generating module is configured to: when a down event on multiple touch devices is detected simultaneously at any time, The plurality of touch devices are added to the supplemental down event list, and the touch devices are sorted to generate a response sequence according to the response priority of the touch devices in the supplemental down event list; the second reporting module is set According to the response sequence, starting from the first touch device in the response sequence, the touch data of each touch device is reported in sequence.
  • the second response sequence generating module is configured to: when a down event on multiple touch devices is detected simultaneously at any time, The plurality of touch devices are added to the supplemental down event list, and the touch devices are sorted to generate a response sequence according to the response priority of the touch devices in the supplemental down event list; the second reporting module is set According to the response sequence, starting from the first touch device in the response sequence, the touch data of each touch device is reported in sequence.
  • the touch data of each touch device can be reported sequentially in the following ways:
  • the down event is compensated for the next touch device in the response list, and the first touch device is deleted from the list of down events;
  • the touch data of the touch device is reported until the up event of the touch device is detected, and the touch device is deleted from the response sequence And discard the touch data of the remaining touch devices in the response sequence within a preset second time period; wherein the second time period is the time when the down event of the touch device is detected and the touch is detected The time interval between the moments of the device's up event;
  • the down event is compensated for the next touch device in the response list, and the current touch device is deleted from the list of down events.
  • An embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is located is controlled to execute the touch control method according to any one of the foregoing.
  • 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, and the programs include a method for performing a touch control method according to any one of the above.
  • the touch data of the other touch device is continuously reported until an up event is detected on the other touch device, and the touch data of the current touch device is discarded within a preset first time period.

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

一种触摸控制方法及装置,所述方法包括:当任意时刻检测到对其中一触摸设备的down事件时,判断当前时刻是否存在其他触摸设备在上报触摸数据(S101);若判断当前时刻存在其他触摸设备在上报触摸数据,获取所述其他触摸设备和当前触摸设备的响应优先级;其中,所述当前触摸设备为当前时刻检测到down事件的触摸设备(S102);当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据;其中,所述第一时间段为检测到所述当前触摸设备的down事件的时刻和检测到所述其他触摸设备的up事件的时刻之间的时间间隔(S103);若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补down事件,并开始上报所述当前触摸设备的触摸数据(S104)。所述方法可避免同一时刻多个触摸设备同时上报触摸数据而导致时序冲突现象,可在不改动原有Android原始框架情况下,解决多种触摸设备同时工作导致触摸异常问题。

Description

触摸控制方法及装置、存储介质、终端设备
本申请要求于2018年7月18日提交中国专利局、申请号为201810793710.2、申请名称“触摸控制方法及装置、存储介质、终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及触摸屏领域,尤其涉及一种触摸控制方法及装置、存储介质、终端设备。
背景技术
随着多媒体信息查询的与日俱增,人们越来越多地谈到触摸屏,因为触摸屏作为一种最新的电脑输入设备,它是目前最简单、方便、自然的而且又适用于中国多媒体信息查询国情的输入设备,触摸屏具有坚固耐用、反应速度快、节省空间、易于交流等许多优点。利用这种技术,用户只要用手指轻轻地指碰计算机显示屏上的图符或文字就能实现对主机操作,从而使人机交互更为直截了当,这种技术极大方便了那些不懂电脑操作的用户,这种人机交互方式赋予了多媒体以崭新的。
而多触摸屏技术的出现无疑进一步改善了用户的操作体验,现有多点触摸屏的技术主要以电容式触摸屏原理为基础进行设计的,显示屏能够接受两个或更多接触点的分析判断,以此完成更加复杂的程序操作,比如两个手指同时作用放大或缩小图片,还可浏览网页,随时定点放大,使用手机访问互联网不再费劲。
如图1所示,根据安卓系统架构,触摸设备1和触摸设备2分别与驱动层连接,通过触摸设备1和触摸设备2的触摸数据直接传入USB控制中心,再由控制中心直接传递至多点触摸接口,再由多点触摸接口直接向上层的Framework 层和应用层上报。如图2所示,当系统在上报触摸设备1的触摸数据的过程中,若在某一时刻检测到来源触摸设备2的down事件时,两个触摸设备的触摸数据同时上报数据,除了会导致时序冲突,使得其中一个触摸设备在概率性的时间内无法显示绘制轨迹,且在触摸设备1所有触摸点Up的时候,触摸设备2的状态在Android上层同样受影响,导致触摸设备2后续的数据发生了异常.
发明内容
本发明实施例所要解决的技术问题在于,提供一种触摸控制方法及装置、存储介质、终端设备,能有效解决现有多个触摸设备同时上报触摸数据而导致时序冲突现象,确保同一时刻只有一种触摸设备往上层报数据。
为了解决上述技术问题,本发明实施例提供了一种适用于n个触摸设备,n≥2,包括以下步骤:
当任意时刻检测到对其中一触摸设备的down事件时,判断当前时刻是否存在其他触摸设备在上报触摸数据;
若判断当前时刻存在其他触摸设备在上报触摸数据,获取所述其他触摸设备和当前触摸设备的响应优先级;其中,所述当前触摸设备为当前时刻检测到down事件的触摸设备;
当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据;其中,所述第一时间段为检测到所述当前触摸设备的down事件的时刻和检测到所述其他触摸设备的up事件的时刻之间的时间间隔;
若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补down事件,并开始上报所述当前触摸设备的触摸数据。
作为上述方案的改进,所述方法还包括步骤:
当所述其他触摸设备的响应优先级小于所述当前触摸设备的响应优先级时,则停止上报所述其他触摸设备的触摸数据,为所述其他触摸设备补up事件,并开始上报所述当前触摸设备的触摸数据直到检测到对所述当前触摸设备的up事件。
作为上述方案的改进,所述若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补down事件,并开始上报所述当前触摸设备的触摸数据包括:
若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,判断所述补down事件列表中的触摸设备的数量是否等于1;
若所述补down事件列表中的触摸设备的数量等于1,则为所述当前触摸设备补down事件,开始上报所述当前触摸设备的触摸数据,为并将所述当前触摸设备在所述补down事件列表中删除。
作为上述方案的改进,所述方法还包括步骤:
若所述补down事件列表中的触摸设备的数量大于1时,根据所述补down事件列表中所述触摸设备的响应优先级,对所述触摸设备进行排序生成响应序列;
根据所述响应序列,从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据。
作为上述方案的改进,还包括步骤:
当任意时刻同时检测到对多个触摸设备的down事件时,将所述多个触摸设备添加至所述补down事件列表中,根据所述补down事件列表中所述触摸设备的响应优先级,对所述触摸设备进行排序生成响应序列;
根据所述响应序列,从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据。
作为上述方案的改进,所述从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据包括:
开始上报所述第一个触摸设备的触摸数据直到检测到所述第一个触摸设备的up事件;
当任意时刻检测所述第一个触摸设备的up事件时,为所述响应列表中的下一个触摸设备补down事件,并将所述第一个触摸设备在所述补down事件列表中删除;
响应于任意时刻对所述响应序列中其中一触摸设备的down事件,开始上报所述触摸设备的触摸数据直到检测到所述触摸设备的up事件,将所述触摸设备从所述响应序列中删除,并丢弃预设的第二时间段内所述响应序列中的剩余触摸设备的触摸数据;其中,所述第二时间段为检测到所述触摸设备的down事件的时刻和检测到所述触摸设备的up事件的时刻之间的时间间隔;
当任意时刻检测所述触摸设备的up事件时,为所述响应列表中的下一个触摸设备补down事件,并将所述当前触摸设备在所述补down事件列表中删除。
本发明还得对应提供了一种触摸控制装置,适用于n个触摸设备,n≥2,包括:
第一判断模块,设置为当任意时刻检测到对其中一触摸设备的down事件时,判断当前时刻是否存在其他触摸设备在上报触摸数据;
响应优先级获取模块,设置为判断当前时刻存在其他触摸设备在上报触摸数据,获取所述其他触摸设备和当前触摸设备的响应优先级;其中,所述当前触摸设备为当前时刻检测到down事件的触摸设备;
数据丢弃模块,设置为当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据;其中,所述第一时间段为检测到所述当前触摸设备的down事件的时刻和检测到所述其他触摸设备的up事件的时刻之间的时间间隔;
down事件补充模块,设置为若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补 down事件,并开始上报所述当前触摸设备的触摸数据。
作为上述方案的改进,所述装置还包括:
up事件补充模块,设置为当所述其他触摸设备的响应优先级小于所述当前触摸设备的响应优先级时,则停止上报所述其他触摸设备的触摸数据,为所述其他触摸设备补up事件,并开始上报所述当前触摸设备的触摸数据直到检测到对所述当前触摸设备的up事件。
本发明实施例还提供了一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在的设备执行上述任一项所述的触摸控制方法。
本发明实施例还提供了一种终端设备,包括一个或多个处理器、存储器以及一个或多个程序,其中:
所述一个或多个程序被存储在所述存储器中,并且被配置为由所述一个或多个处理器执行,所述程序包括用于执行上述任一项所述的触摸控制方法。
与现有技术相比,本发明实施例提供的触摸控制方法及装置、存储介质、终端设备,通过任意时刻检测到对其中一触摸设备的down事件时,若判断当前时刻存在其他触摸设备在上报触摸数据时,且所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据,而当所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为所述当前触摸设备补down事件,可避免多个触摸设备同时上报触摸数据而导致时序冲突现象,确保同一时刻只有一种触摸设备往上层报数据,可在不改动原有Android原始框架情况下,解决多种触摸设备同时工作导致触摸异常问题。
附图说明
图1是现有技术中多触摸设备的数据上报示意图;
图2是现有技术提供的现有技术中多触摸设备的数据流示意图;
图3是本发明实施例1提供的一种触摸控制方法的流程图;
图4是本发明实施例1中多触摸设备的数据流示意图;
图5是本发明实施例2提供的一种触摸控制方法的流程图;
图6是本发明实施例2中多触摸设备的数据流示意图;
图7是本发明中多触摸设备的数据上报示意图;
图8是本发明实施例3提供的一种触摸控制方法的流程图;
图9是本发明实施例3依次上报每一触摸设备的触摸数据的流程图;
图10是本发明实施例4提供的一种触摸控制装置的结构框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本技术领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图2所示,图2是本发明实施例1提供的一种触摸控制方法的方法流程图,所述触摸控制方法适用于n个触摸设备,n≥2,包括以下步骤:
S101、当任意时刻检测到对其中一触摸设备的down事件时,判断当前时刻是否存在其他触摸设备在上报触摸数据;
需要说明的是,对于触摸设备而言,每个触摸点,均有对应的down事件和up事件,其中,
down事件:手指或者笔,接触到触摸屏(包括红外屏、电容屏、电磁屏等),由未接触到已接触的一瞬间所产生的事件,即为down事件;
up事件:对应的,手指或者笔,接触到触摸屏(包括红外屏、电容屏、电磁屏等)由已接触到离开触摸屏的一瞬间产生的事件,即为up事件。
对于安卓系统而言,每个触摸设备对存在对应的down事件和up事件,其中,down事件是指对于某一触摸设备由未接触到已接触的一瞬间所产生的事件;up 事件是指对于某一触摸设备由已接触到离开触摸屏的一瞬间产生的事件。本方案涉及到多触摸屏的数据上报问题,适用于对于上述对于安卓系统的情况。
当任意时刻检测到对其中一触摸设备的down事件时,且判断当前时刻不存在其他触摸设备在上报触摸数据,可直接相应改触摸设备的down事件,开始上报该触摸设备的触摸数据。
S102、若判断当前时刻存在其他触摸设备在上报触摸数据,获取所述其他触摸设备和当前触摸设备的响应优先级;其中,所述当前触摸设备为当前时刻检测到down事件的触摸设备;
其中,步骤S102中的响应优先级由用户或系统预先设置,可通过触摸设备类型、大小和型号等进行设置。当某一触摸设备的响应优先级更高时,需优先处理该触摸设备的触摸数据;当某一触摸设备的响应优先级更低时,需优先处理其他响应优先级更高的触摸设备的触摸数据。
S103、当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据;其中,所述第一时间段为检测到所述当前触摸设备的down事件的时刻和检测到所述其他触摸设备的up事件的时刻之间的时间间隔;
S104、若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补down事件,并开始上报所述当前触摸设备的触摸数据。
下面以n=2为例对上述过程进行详细说明。如图4所示,当系统在上报触摸设备1的触摸数据的过程中,若任意时刻检测到来源触摸设备2的down事件时,首先判断触摸设备1和触摸设备2的响应优先级。若触摸设备1的响应优先级大于触摸设备2的响应优先级,则在触摸设备1还没有up之前,先屏蔽触摸设备2的数据,如图4中虚线所示。例如,假设触摸设备1是红外触摸屏,触摸设备2是电磁触摸屏,在红外触摸屏的手势擦除过程中,在某一时刻感应到电磁触摸屏上电磁笔的书写操作,由于红外触摸屏的响应优先级大于电磁触 摸屏的响应优先级,因此需等待红外触摸屏的擦除动作完成,才能显示电磁触摸屏上的书写笔迹。
在另一优选实施例中,如图5所示,在实施例1的基础上,所述触摸控制方法还包括步骤:
S105、当所述其他触摸设备的响应优先级小于所述当前触摸设备的响应优先级时,则停止上报所述其他触摸设备的触摸数据,为所述其他触摸设备补up事件,并开始上报所述当前触摸设备的触摸数据直到检测到对所述当前触摸设备的up事件。
下面以n=2为例对上述过程进行详细说明。如图6所示,当系统在上报触摸设备1的触摸数据的过程中,若任意时刻检测到来源触摸设备2的down事件时,首先判断触摸设备1和触摸设备2的响应优先级。若触摸设备1的响应优先级小于触摸设备2的响应优先级,则需要把触摸设备1补up事件,开始响应触摸设备2的触摸操作,且在触摸设备2工作过程中,将触摸设备1的触摸数据丢弃。例如,上述例子中,假设触摸设备1是红外触摸屏,触摸设备2是电磁触摸屏,在红外触摸屏的手势擦除过程中,在某一时刻感应到电磁触摸屏上电磁笔的书写操作,由于电磁触摸屏的响应优先级大于红外触摸屏的响应优先级,因此为红外触摸屏补up事件,停止响应红外触摸屏的擦除操作,开始在电磁触摸屏上显示电磁笔的书写笔迹。
如图7所示,驱动层USB控制中心和多点触摸接口之间加入了时序处理线程,该时序处理线程采用上述的触摸控制方法对触摸设备1和触摸设备2的触摸数据的上传顺序进行调整,避免出现两个触摸设备同时上报数据导致时序冲突,确保同一时刻只有一种触摸设备的触摸数据可以往上层上报。如图4所示,当触摸设备1的所有触摸点up之后,可正常响应触摸设备2的触摸操作,不会影响触摸设备2在Android上层的状态,满足Android框架下多触摸设备的兼容性问题。
参见图8,为本发明实施例3提供的一种触摸控制方法的流程图
S201、当任意时刻检测到对其中一触摸设备的down事件时,判断当前时刻 是否存在其他触摸设备在上报触摸数据;
S202、若判断当前时刻存在其他触摸设备在上报触摸数据,获取所述其他触摸设备和当前触摸设备的响应优先级;其中,所述当前触摸设备为当前时刻检测到down事件的触摸设备;
S203、当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据;其中,所述第一时间段为检测到所述当前触摸设备的down事件的时刻和检测到所述其他触摸设备的up事件的时刻之间的时间间隔;
S204、当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,将所述当前触摸设备添加至补down事件列表中;
S205、若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,判断所述补down事件列表中的触摸设备的数量是否等于1;
S206、若所述补down事件列表中的触摸设备的数量等于1,则为所述当前触摸设备补down事件,开始上报所述当前触摸设备的触摸数据,为并将所述当前触摸设备在所述补down事件列表中删除。
也就是说,只有在所述补down事件列表中的触摸设备的数量等于1的情况下,才无需确定先为那个触摸设备补down事件,仅需响应剩余的一个触摸设备的触摸数据。上述可存在两种情况,一种为n=2的情况,另一种为在补down事件列表中的触摸设备已经提前up了,这种情况也会将其在所述补down事件列表中删除。
而另外的一种情况是,若所述补down事件列表中的触摸设备的数量大于1时,根据所述补down事件列表中所述触摸设备的响应优先级,对所述触摸设备进行排序生成响应序列;根据所述响应序列,从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据。
优选地,如图9所示,可采用以下方式依次上报每一触摸设备的触摸数据:
S301、开始上报所述第一个触摸设备的触摸数据直到检测到所述第一个触摸设备的up事件;
S302、当任意时刻检测所述第一个触摸设备的up事件时,为所述响应列表中的下一个触摸设备补down事件,并将所述第一个触摸设备在所述补down事件列表中删除;
S303、响应于任意时刻对所述响应序列中其中一触摸设备的down事件,开始上报所述触摸设备的触摸数据直到检测到所述触摸设备的up事件,将所述触摸设备从所述响应序列中删除,并丢弃预设的第二时间段内所述响应序列中的剩余触摸设备的触摸数据;其中,所述第二时间段为检测到所述触摸设备的down事件的时刻和检测到所述触摸设备的up事件的时刻之间的时间间隔;
S304、当任意时刻检测所述触摸设备的up事件时,为所述响应列表中的下一个触摸设备补down事件,并将所述当前触摸设备在所述补down事件列表中删除。
此外,还存在一种情况为同一时刻检测到多个触摸设备的down事件,可将所述多个触摸设备添加至所述补down事件列表中,根据所述补down事件列表中所述触摸设备的响应优先级,对所述多个触摸设备进行排序生成响应序列,然后根据所述响应序列,从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据。优选地,可采用如图9所示的方法依次上报每一触摸设备的触摸数据。
参见图10为本发明实施例4提供的触摸控制装置,适用于n个触摸设备,n≥2,包括:
第一判断模块11,设置为当任意时刻检测到对其中一触摸设备的down事件时,判断当前时刻是否存在其他触摸设备在上报触摸数据;
响应优先级获取模块12,设置为判断当前时刻存在其他触摸设备在上报触摸数据,获取所述其他触摸设备和当前触摸设备的响应优先级;其中,所述当前触摸设备为当前时刻检测到down事件的触摸设备;
数据丢弃模块13,设置为当所述其他触摸设备的响应优先级大于所述当前 触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据;其中,所述第一时间段为检测到所述当前触摸设备的down事件的时刻和检测到所述其他触摸设备的up事件的时刻之间的时间间隔;
down事件补充模块14,设置为若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补down事件,并开始上报所述当前触摸设备的触摸数据。
优选地,所述装置还包括up事件补充模块,设置为当所述其他触摸设备的响应优先级小于所述当前触摸设备的响应优先级时,则停止上报所述其他触摸设备的触摸数据,为所述其他触摸设备补up事件,并开始上报所述当前触摸设备的触摸数据直到检测到对所述当前触摸设备的up事件。
优选地,所述装置还包括补down事件列表添加模块,设置为当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,将所述当前触摸设备添加至补down事件列表中。
所述down事件补充模块14包括第二判断模块和补down事件列表删除模块,其中,所述第二判断模块设置为若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,判断所述补down事件列表中的触摸设备的数量是否等于1;补down事件列表删除模块设置为若所述补down事件列表中的触摸设备的数量等于1,则为所述当前触摸设备补down事件,开始上报所述当前触摸设备的触摸数据,为并将所述当前触摸设备在所述补down事件列表中删除。
优选地,所属装置还包括第一响应序列生成模块和第一上报模块,其中,所述第一响应序列生成模块设置为若所述补down事件列表中的触摸设备的数量大于1时,根据所述补down事件列表中所述触摸设备的响应优先级,对所述触摸设备进行排序生成响应序列;第一上报模块设置为根据所述响应序列,从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据。
优选地,所述装置还包括第二响应序列生成模块和第二上报模块,其中, 所述第二响应序列生成模块设置为当任意时刻同时检测到对多个触摸设备的down事件时,将所述多个触摸设备添加至所述补down事件列表中,根据所述补down事件列表中所述触摸设备的响应优先级,对所述触摸设备进行排序生成响应序列;所述第二上报模块设置为根据所述响应序列,从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据。
优选地,可采用以下方式依次上报每一触摸设备的触摸数据:
开始上报所述第一个触摸设备的触摸数据直到检测到所述第一个触摸设备的up事件;
当任意时刻检测所述第一个触摸设备的up事件时,为所述响应列表中的下一个触摸设备补down事件,并将所述第一个触摸设备在所述补down事件列表中删除;
响应于任意时刻对所述响应序列中其中一触摸设备的down事件,开始上报所述触摸设备的触摸数据直到检测到所述触摸设备的up事件,将所述触摸设备从所述响应序列中删除,并丢弃预设的第二时间段内所述响应序列中的剩余触摸设备的触摸数据;其中,所述第二时间段为检测到所述触摸设备的down事件的时刻和检测到所述触摸设备的up事件的时刻之间的时间间隔;
当任意时刻检测所述触摸设备的up事件时,为所述响应列表中的下一个触摸设备补down事件,并将所述当前触摸设备在所述补down事件列表中删除。
本发明实施例还提供了一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在的设备执行上述任一项所述的触摸控制方法
本发明实施例还提供了一种终端设备,包括一个或多个处理器、存储器以及一个或多个程序,其中:
所述一个或多个程序被存储在所述存储器中,并且被配置为由所述一个或多个处理器执行,所述程序包括用于执行上述任一项所述的触摸控制方法。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变 形,这些改进和变形也应视为本发明的保护范围。
工业实用性
在本发明实施例中,通过任意时刻检测到对其中一触摸设备的down事件时,若判断当前时刻存在其他触摸设备在上报触摸数据时,且所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据,而当所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为所述当前触摸设备补down事件,从而避免多个触摸设备同时上报触摸数据而导致时序冲突现象,确保同一时刻只有一种触摸设备往上层报数据,可在不改动原有Android原始框架情况下,解决多种触摸设备同时工作导致触摸异常问题。

Claims (12)

  1. 一种触摸控制方法,适用于n个触摸设备,n≥2,包括以下步骤:
    当任意时刻检测到对其中一触摸设备的down事件时,判断当前时刻是否存在其他触摸设备在上报触摸数据;
    若判断当前时刻存在其他触摸设备在上报触摸数据,获取所述其他触摸设备和当前触摸设备的响应优先级;其中,所述当前触摸设备为当前时刻检测到down事件的触摸设备;
    当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据;其中,所述第一时间段为检测到所述当前触摸设备的down事件的时刻和检测到所述其他触摸设备的up事件的时刻之间的时间间隔;
    若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补down事件,并开始上报所述当前触摸设备的触摸数据。
  2. 如权利要求1所述的触摸控制方法,其中,还包括步骤:
    当所述其他触摸设备的响应优先级小于所述当前触摸设备的响应优先级时,则停止上报所述其他触摸设备的触摸数据,为所述其他触摸设备补up事件,并开始上报所述当前触摸设备的触摸数据直到检测到对所述当前触摸设备的up事件。
  3. 如权利要求1所述的触摸控制方法,其中,还包括步骤:
    当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,将所述当前触摸设备添加至补down事件列表中。
  4. 如权利要求3所述的触摸控制方法,其中,所述若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补down事件,并开始上报所述当前触摸设备的触摸数据包括:
    若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,判断所述补down事件列表中的触摸设备的数量是否等于1;
    若所述补down事件列表中的触摸设备的数量等于1,则为所述当前触摸设备补down事件,开始上报所述当前触摸设备的触摸数据,并将所述当前触摸设备在所述补down事件列表中删除。
  5. 如权利要求4所述的触摸控制方法,其中,所述方法还包括步骤:
    若所述补down事件列表中的触摸设备的数量大于1时,根据所述补down事件列表中所述触摸设备的响应优先级,对所述触摸设备进行排序生成响应序列;
    根据所述响应序列,从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据。
  6. 如权利要求1所述的触摸控制方法,其中,还包括步骤:
    当任意时刻同时检测到对多个触摸设备的down事件时,将所述多个触摸设备添加至所述补down事件列表中,根据所述补down事件列表中所述触摸设备的响应优先级,对所述触摸设备进行排序生成响应序列;
    根据所述响应序列,从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据。
  7. 如权利要求5所述的触摸控制方法,其中,所述从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据包括:
    开始上报所述第一个触摸设备的触摸数据直到检测到所述第一个触摸设备的up事件;
    当任意时刻检测所述第一个触摸设备的up事件时,为响应列表中的下一个触摸设备补down事件,并将所述第一个触摸设备在所述补down事件列表中删除;
    响应于任意时刻对所述响应序列中其中一触摸设备的down事件,开始上报所述触摸设备的触摸数据直到检测到所述触摸设备的up事件,将所述触摸设备从所述响应序列中删除,并丢弃预设的第二时间段内所述响应序列中的剩余触摸设备的触摸数据;其中,所述第二时间段为检测到所述触摸设备的down事件的时刻和检测到所述触摸设备的up事件的时刻之间的时间间隔;
    当任意时刻检测所述触摸设备的up事件时,为所述响应列表中的下一个触摸设备补down事件,并将所述当前触摸设备在所述补down事件列表中删除。
  8. 一种触摸控制装置,适用于n个触摸设备,n≥2,包括:
    第一判断模块,设置为当任意时刻检测到对其中一触摸设备的down事件时,判断当前时刻是否存在其他触摸设备在上报触摸数据;
    响应优先级获取模块,设置为判断当前时刻存在其他触摸设备在上报触摸数据,获取所述其他触摸设备和当前触摸设备的响应优先级;其中,所述当前触摸设备为当前时刻检测到down事件的触摸设备;
    数据丢弃模块,设置为当所述其他触摸设备的响应优先级大于所述当前触摸设备的响应优先级时,则继续上报所述其他触摸设备的触摸数据直到检测到对所述其他触摸设备的up事件,并丢弃预设的第一时间段内所述当前触摸设备的触摸数据;其中,所述第一时间段为检测到所述当前触摸设备的down事件的时刻和检测到所述其他触摸设备的up事件的时刻之间的时间间隔;
    down事件补充模块,设置为若所述其他触摸设备的优先级大于所述当前触摸设备,则当任意时刻检测到对其他触摸设备的up事件时,为当前触摸设备补 down事件,并开始上报所述当前触摸设备的触摸数据。
  9. 如权利要求8所述的触摸控制装置,其中,所述装置还包括:
    up事件补充模块,设置为当所述其他触摸设备的响应优先级小于所述当前触摸设备的响应优先级时,则停止上报所述其他触摸设备的触摸数据,为所述其他触摸设备补up事件,并开始上报所述当前触摸设备的触摸数据直到检测到对所述当前触摸设备的up事件。
  10. 一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在的设备执行权利要求1~7任一项所述的触摸控制方法。
  11. 一种终端设备,包括一个或多个处理器、存储器以及一个或多个程序,其中:
    所述一个或多个程序被存储在所述存储器中,并且被配置为由所述一个或多个处理器执行,所述程序包括用于执行权利要求1~7任一项所述的触摸控制方法。
  12. 如权利要求6所述的触摸控制方法,其中,所述从所述响应序列中的第一个触摸设备开始,依次上报每一触摸设备的触摸数据包括:
    开始上报所述第一个触摸设备的触摸数据直到检测到所述第一个触摸设备的up事件;
    当任意时刻检测所述第一个触摸设备的up事件时,为响应列表中的下一个触摸设备补down事件,并将所述第一个触摸设备在所述补down事件列表中删除;
    响应于任意时刻对所述响应序列中其中一触摸设备的down事件,开始上报 所述触摸设备的触摸数据直到检测到所述触摸设备的up事件,将所述触摸设备从所述响应序列中删除,并丢弃预设的第二时间段内所述响应序列中的剩余触摸设备的触摸数据;其中,所述第二时间段为检测到所述触摸设备的down事件的时刻和检测到所述触摸设备的up事件的时刻之间的时间间隔;
    当任意时刻检测所述触摸设备的up事件时,为所述响应列表中的下一个触摸设备补down事件,并将所述当前触摸设备在所述补down事件列表中删除。
PCT/CN2019/096543 2018-07-18 2019-07-18 触摸控制方法及装置、存储介质、终端设备 WO2020015704A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810793710.2A CN109144309B (zh) 2018-07-18 2018-07-18 触摸控制方法及装置、存储介质、终端设备
CN201810793710.2 2018-07-18

Publications (1)

Publication Number Publication Date
WO2020015704A1 true WO2020015704A1 (zh) 2020-01-23

Family

ID=64800876

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096543 WO2020015704A1 (zh) 2018-07-18 2019-07-18 触摸控制方法及装置、存储介质、终端设备

Country Status (2)

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

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144309B (zh) * 2018-07-18 2020-11-10 广州视源电子科技股份有限公司 触摸控制方法及装置、存储介质、终端设备
CN109947287A (zh) * 2019-02-20 2019-06-28 广州华欣电子科技有限公司 一种触摸数据缺失的处理方法、装置、设备及存储介质
CN110221767A (zh) * 2019-06-13 2019-09-10 广州视源电子科技股份有限公司 智能交互设备的控制方法和装置
CN114503063A (zh) * 2019-11-26 2022-05-13 深圳市欢太科技有限公司 触摸响应方法及触摸屏系统、终端、存储介质、芯片
CN111208917B (zh) * 2019-12-31 2022-04-08 广州视源电子科技股份有限公司 触摸数据处理方法、装置、智能设备和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681710A (zh) * 2011-03-17 2012-09-19 联芯科技有限公司 电子设备输入方法、装置及基于该装置的电子设备
CN102693024A (zh) * 2011-03-21 2012-09-26 汉王科技股份有限公司 一种双触控装置及其定位方法
US20150002413A1 (en) * 2013-06-28 2015-01-01 Samsung Electronics Co., Ltd. Electronic device and touch sensing method thereof
CN107592556A (zh) * 2017-08-08 2018-01-16 福建星网视易信息系统有限公司 基于移动终端的控制信息合成方法及受控终端和移动终端
CN107729131A (zh) * 2017-09-25 2018-02-23 努比亚技术有限公司 一种事件处理方法、终端及计算机可读存储介质
CN109144309A (zh) * 2018-07-18 2019-01-04 广州视源电子科技股份有限公司 触摸控制方法及装置、存储介质、终端设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100826532B1 (ko) * 2006-03-28 2008-05-02 엘지전자 주식회사 이동 통신 단말기 및 그의 키 입력 검출 방법
KR101842906B1 (ko) * 2011-02-10 2018-05-15 삼성전자주식회사 복수의 터치스크린을 가지는 장치 및 복수의 터치스크린을 가지는 장치의 화면 변경방법
US20130154958A1 (en) * 2011-12-20 2013-06-20 Microsoft Corporation Content system with secondary touch controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681710A (zh) * 2011-03-17 2012-09-19 联芯科技有限公司 电子设备输入方法、装置及基于该装置的电子设备
CN102693024A (zh) * 2011-03-21 2012-09-26 汉王科技股份有限公司 一种双触控装置及其定位方法
US20150002413A1 (en) * 2013-06-28 2015-01-01 Samsung Electronics Co., Ltd. Electronic device and touch sensing method thereof
CN107592556A (zh) * 2017-08-08 2018-01-16 福建星网视易信息系统有限公司 基于移动终端的控制信息合成方法及受控终端和移动终端
CN107729131A (zh) * 2017-09-25 2018-02-23 努比亚技术有限公司 一种事件处理方法、终端及计算机可读存储介质
CN109144309A (zh) * 2018-07-18 2019-01-04 广州视源电子科技股份有限公司 触摸控制方法及装置、存储介质、终端设备

Also Published As

Publication number Publication date
CN109144309B (zh) 2020-11-10
CN109144309A (zh) 2019-01-04

Similar Documents

Publication Publication Date Title
WO2020015704A1 (zh) 触摸控制方法及装置、存储介质、终端设备
TW591398B (en) Method of implementing a plurality of system tray areas
CA2841195C (en) Method and apparatus for multitasking
RU2416120C2 (ru) Копирование текста с использованием сенсорного дисплея
CN110058782B (zh) 基于交互式电子白板的触摸操作方法及其系统
JP6828150B2 (ja) 画面表示方法および端末
US20130067400A1 (en) Pinch To Adjust
WO2020048026A1 (zh) 批注显示方法、装置、设备和存储介质
EP3002664A1 (en) Text processing method and touchscreen device
JP6041989B2 (ja) 静電容量方式と電磁誘導方式のデュアルモードタッチスクリーンのタッチ制御方法及びハンドヘルド電子装置
CN104850296B (zh) 显示页面内容的方法及装置
EP2472381A2 (en) Method and apparatus for providing mouse right click function in touch screen terminal
US9025878B2 (en) Electronic apparatus and handwritten document processing method
US20130332888A1 (en) Method and device for operating list in handheld device
US20140237412A1 (en) Method and electronic device for displaying virtual keypad
US9529463B1 (en) Method and device for reducing latency for rendering and displaying stylus strokes
US10459737B2 (en) Waking and sleeping a display among a plurality of displays using gestures
US20160299893A1 (en) Method and apparatus for displaying images
US20220335943A1 (en) Human-computer interaction method, apparatus, and system
US9092085B2 (en) Configuring a touchpad setting based on the metadata of an active application of an electronic device
CN102830918A (zh) 移动终端及该移动终端调节显示字体大小的方法
WO2016173307A1 (zh) 一种消息复制方法和装置、以及智能终端
US20220004287A1 (en) Layout method, device and equipment for window control bars
US20150062047A1 (en) Information processor, control method and program
JP5778558B2 (ja) 情報通信装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19837267

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19837267

Country of ref document: EP

Kind code of ref document: A1