CN112328163A - 一种双屏显示设备的触摸控制方法 - Google Patents
一种双屏显示设备的触摸控制方法 Download PDFInfo
- Publication number
- CN112328163A CN112328163A CN202011249397.XA CN202011249397A CN112328163A CN 112328163 A CN112328163 A CN 112328163A CN 202011249397 A CN202011249397 A CN 202011249397A CN 112328163 A CN112328163 A CN 112328163A
- Authority
- CN
- China
- Prior art keywords
- touch
- display screen
- main
- screen
- event
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 238000012545 processing Methods 0.000 claims abstract description 3
- 230000009977 dual effect Effects 0.000 claims 1
- 230000000694 effects Effects 0.000 description 4
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了双屏显示设备的触摸控制方法,包括如下步骤:触摸屏辅助服务初始化,划分主触摸区域和副触摸区域;检测触摸事件并判断触摸事件发生在主触摸区域还是副触摸区域,将触摸事件标记为对应显示屏的display ID信息;触摸事件坐标根据主/副触摸区域和主/副显示屏的分辨率的宽高比例做缩放处理,转换为对应显示屏上的触摸事件坐标;事件分发服务根据display ID分发事件到对应显示屏上的应用程序。该方法只使用一张触摸屏实现对主显示屏和副显示屏的分别触摸控制,从而节约成本。
Description
技术领域
本发明涉及触摸控制方法技术领域,具体涉及一种双屏显示设备的触摸控制方法。
背景技术
随着显示设备和触控技术的发展,电子设备也不局限于一张显示屏,双屏双触控设备的应用也越来越广泛,尤其是双屏双触控的广告机设备在各大商场和居民小区等人流量大的公共场所被广泛使用。但是目前双屏双触控设备的做法通常都是主显示屏和副显示屏分别对接一张触摸屏,主触摸屏对应主显示屏,副触摸屏对应副显示屏。当触摸事件发生在主触摸屏时,则触摸事件分发到主显示屏上对应的应用程序;当触摸屏事件发生在副触摸屏时,将触摸事件分发到副显示屏上对应的应用程序。从而实现双屏双触控效果。这种方式成本偏高,对于需要节约成本的厂商来说,就不是特别划算,因此需要一种成本较低的双屏双触控实现方案。
发明内容
本发明的目的在于提供一种双屏显示设备的触摸控制方法,可以只使用一张触摸屏实现对主显示屏和副显示屏的分别触摸控制,从而节约成本。
为了达到上述技术效果,本发明提供了如下技术方案:
一种双屏显示设备的触摸控制方法,包括如下步骤:
(1)触摸屏辅助服务初始化,划分主触摸区域和副触摸区域;
(2)检测触摸事件并判断触摸事件发生在主触摸区域还是副触摸区域,将触摸事件标记为对应显示屏的display ID信息。
(3)触摸事件坐标根据主/副触摸区域和主/副显示屏的分辨率的宽高比例做缩放处理,转换为对应显示屏上的触摸事件坐标;
(4)事件分发服务根据display ID分发事件到对应显示屏上的应用程序。
进一步的技术方案为,所述步骤(1)具体为触摸屏辅助服务依据主显示屏及副显示屏的分辨率范围,将位于主显示屏范围的触摸屏区域划分主触摸区域,通过系统属性记录主触摸区域坐标范围,位于副显示屏上的触摸区域划分为副触摸区域,通过系统属性记录副触摸区域坐标范围。
进一步的技术方案为,所述步骤(2)具体为在触摸事件分发之前,根据触摸事件的坐标为依据,判断触摸事件发生的哪个触摸区域,对于发生在主触摸区域的事件标识为主显示屏的display ID,发生在副触摸区域的事件标识为副显示屏的display ID。
进一步的技术方案为,所述步骤(3)具体为计算主/副触摸区域和主/副显示屏分辨率的宽高比例,触摸事件坐标与该比例相乘,将触摸坐标转换到显示屏上对应坐标。
与现有技术相比,本发明具有如下有益效果:默认情况下,对于配置和一张触摸屏的Android设备,触摸屏设备只会映射到主显示屏,即触控操作只作用在显示在主显示屏的应用。为了实现单触摸屏的异触效果,就需要对触摸事件的分发流程做处理,将位于主显示屏的触控事件分发给主显示屏上的应用程序,位于副显示屏上的触控事件分发给副显示屏上的应用程序。传统的双屏双触控方案需要对接两张触摸屏才能实现对主显示屏和副显示屏的触摸控制。本发明从一张触摸屏控制主显示屏和副显示屏的触控操作角度触发,将发生在主触摸区域的事件分发给当前主显示屏上显示的应用程序,发生在副触摸区域的事件分发给当前副显示屏上显示的应用程序,实现双屏双控制效果,可以只使用一张触摸屏实现对主显示屏和副显示屏的分别触摸控制,从而节约成本。
附图说明
图1为本发明的双屏显示设备的触摸控制流程框图。
具体实施方式
下面结合附图和具体实施例对本发明进行进一步的解释和说明。
实施例1
如图1所示,本发明提供了一种双屏显示设备的触摸控制方法,包括如下步骤:
步骤一、触摸屏辅助服务依据主显示屏及副显示屏的分辨率范围,将位于主显示屏范围的触摸屏区域划分主触摸区域,通过系统属性记录主触摸区域坐标范围,位于副显示屏上的触摸区域划分为副触摸区域,通过系统属性记录副触摸区域坐标范围。
步骤二、因为Android分发触摸事件是根据触摸事件的display ID信息,决定分发触摸事件给哪一个显示屏幕的应用程序,通常情况下,Android设备上的每一个显示屏,都有一个唯一的display ID标识,主显示屏的display ID是0,副显示屏的display ID是非0。所以在触摸事件分发之前,根据触摸事件的坐标为依据,判断触摸事件发生的哪个触摸区域,对于发生在主触摸区域的事件标识为主显示屏的display ID,发生在副触摸区域的事件标识为副显示屏的display ID。
步骤三、计算主/副触摸区域和主/副显示屏分辨率的宽高比例,触摸事件坐标与该比例相乘,将触摸坐标转换到显示屏上对应坐标
步骤四、Android事件分发服务根据触摸事件的display ID信息将触摸事件分发到指定显示屏上的应用程序。
尽管这里参照本发明的解释性实施例对本发明进行了描述,上述实施例仅为本发明较佳的实施方式,本发明的实施方式并不受上述实施例的限制,应该理解,本领域技术人员可以设计出很多其他的修改和实施方式,这些修改和实施方式将落在本申请公开的原则范围和精神之内。
Claims (4)
1.一种双屏显示设备的触摸控制方法,其特征在于,包括如下步骤:
(1)触摸屏辅助服务初始化,划分主触摸区域和副触摸区域;
(2)检测触摸事件并判断触摸事件发生在主触摸区域还是副触摸区域,将触摸事件标记为对应显示屏的displayID信息;
(3)触摸事件坐标根据主/副触摸区域和主/副显示屏的分辨率的宽高比例做缩放处理,转换为对应显示屏上的触摸事件坐标;
(4)事件分发服务根据display ID分发事件到对应显示屏上的应用程序。
2.根据权利要求1所述的双屏显示设备的触摸控制方法,其特征在于,所述步骤(1)具体为触摸屏辅助服务依据主显示屏及副显示屏的分辨率范围,将位于主显示屏范围的触摸屏区域划分主触摸区域,通过系统属性记录主触摸区域坐标范围,位于副显示屏上的触摸区域划分为副触摸区域,通过系统属性记录副触摸区域坐标范围。
3.根据权利要求1所述的双屏显示设备的触摸控制方法,其特征在于,所述步骤(2)具体为在触摸事件分发之前,根据触摸事件的坐标为依据,判断触摸事件发生的哪个触摸区域,对于发生在主触摸区域的事件标识为主显示屏的displayID,发生在副触摸区域的事件标识为副显示屏的displayID。
4.根据权利要求1所述的双屏显示设备的触摸控制方法,其特征在于,所述步骤(3)具体为计算主/副触摸区域和主/副显示屏分辨率的宽高比例,触摸事件坐标与该比例相乘,将触摸坐标转换到显示屏上对应坐标。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011249397.XA CN112328163A (zh) | 2020-11-10 | 2020-11-10 | 一种双屏显示设备的触摸控制方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011249397.XA CN112328163A (zh) | 2020-11-10 | 2020-11-10 | 一种双屏显示设备的触摸控制方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112328163A true CN112328163A (zh) | 2021-02-05 |
Family
ID=74317740
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011249397.XA Pending CN112328163A (zh) | 2020-11-10 | 2020-11-10 | 一种双屏显示设备的触摸控制方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112328163A (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115857786A (zh) * | 2023-02-27 | 2023-03-28 | 蔚来汽车科技(安徽)有限公司 | 用于实现触控交互的方法和触控交互设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104777969A (zh) * | 2014-01-10 | 2015-07-15 | 北京正文科技有限公司 | 一种使用触摸屏进行多屏幕显示互动的操作方法 |
CN106201320A (zh) * | 2016-07-28 | 2016-12-07 | 西安酷派软件科技有限公司 | 用户界面控制方法及系统 |
WO2018040502A1 (zh) * | 2016-08-31 | 2018-03-08 | 中兴通讯股份有限公司 | 屏幕操控方法、装置、终端及计算机存储介质 |
CN108469945A (zh) * | 2018-03-26 | 2018-08-31 | 广州视源电子科技股份有限公司 | 一种显示终端及其控制方法、装置和存储介质 |
US20190339854A1 (en) * | 2017-01-18 | 2019-11-07 | Zte Corporation | Multi-screen interaction touch display method, apparatus, storage medium and terminal |
-
2020
- 2020-11-10 CN CN202011249397.XA patent/CN112328163A/zh active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104777969A (zh) * | 2014-01-10 | 2015-07-15 | 北京正文科技有限公司 | 一种使用触摸屏进行多屏幕显示互动的操作方法 |
CN106201320A (zh) * | 2016-07-28 | 2016-12-07 | 西安酷派软件科技有限公司 | 用户界面控制方法及系统 |
WO2018040502A1 (zh) * | 2016-08-31 | 2018-03-08 | 中兴通讯股份有限公司 | 屏幕操控方法、装置、终端及计算机存储介质 |
US20190339854A1 (en) * | 2017-01-18 | 2019-11-07 | Zte Corporation | Multi-screen interaction touch display method, apparatus, storage medium and terminal |
CN108469945A (zh) * | 2018-03-26 | 2018-08-31 | 广州视源电子科技股份有限公司 | 一种显示终端及其控制方法、装置和存储介质 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115857786A (zh) * | 2023-02-27 | 2023-03-28 | 蔚来汽车科技(安徽)有限公司 | 用于实现触控交互的方法和触控交互设备 |
CN115857786B (zh) * | 2023-02-27 | 2023-07-07 | 蔚来汽车科技(安徽)有限公司 | 用于实现触控交互的方法和触控交互设备 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103226453B (zh) | 一种手机屏幕的显示和操作映射到计算机类终端的方法 | |
CN110069580B (zh) | 道路标注显示方法、装置、电子设备及存储介质 | |
CN106445243B (zh) | 智能设备的触摸响应装置和方法 | |
CN111049973B (zh) | 一种屏幕显示的控制方法、电子设备及计算机可读存储介质 | |
EP1093050A3 (en) | Information processing system and screen display method | |
CN112328163A (zh) | 一种双屏显示设备的触摸控制方法 | |
US20100053092A1 (en) | Control Method for Touch Screen Device | |
CN109491532A (zh) | 触摸显示装置及其驱动方法 | |
CN112465945A (zh) | 一种模型生成方法、装置、存储介质及计算机设备 | |
US8130204B2 (en) | Environment synchronized image manipulation | |
EP1764730A4 (en) | INTELLECTUAL PROPERTY PRODUCTION SUPPORT PROCESS BY AN INTELLECTUAL MANAGEMENT SYSTEM OF THE LINKED TYPE, INFORMATION PROCESSING SYSTEM WITH A SUBLICENCE MANAGEMENT FUNCTION AND COMPUTER PROGRAM | |
CN114356260A (zh) | 一种双屏交互方法、装置、设备及介质 | |
CN104376834A (zh) | 一种亮度调整方法及电子设备 | |
CN103164142B (zh) | 一种画中画界面下屏幕触点位置的调整方法及电子设备 | |
CN107688431B (zh) | 基于雷达定位的人机交互方法 | |
CN103558957A (zh) | 一种移动终端屏幕操作的方法及装置 | |
CN112929734A (zh) | 投屏方法、装置和电子设备 | |
CN102339221B (zh) | 一种基于Windows CE平台的应用程序界面处理方法 | |
CN106990830A (zh) | 一种信息显示方法及装置 | |
WO2023226252A1 (zh) | 游戏中的显示方法、装置、终端设备及存储介质 | |
CN114625983B (zh) | 房源信息展示方法和装置、电子设备和可读存储介质 | |
CN109901749A (zh) | 一种触摸显示屏和显示终端 | |
CN105630383B (zh) | 一种在人机交互过程中提升关注度的方法和系统 | |
CN105094536A (zh) | 一种信息显示方法及电子设备 | |
CN113870219A (zh) | 投影字体颜色选择方法、装置、电子设备及存储介质 |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210205 |