[go: up one dir, main page]

CN109407823B - Electronic device and touch system - Google Patents

Electronic device and touch system Download PDF

Info

Publication number
CN109407823B
CN109407823B CN201810935486.6A CN201810935486A CN109407823B CN 109407823 B CN109407823 B CN 109407823B CN 201810935486 A CN201810935486 A CN 201810935486A CN 109407823 B CN109407823 B CN 109407823B
Authority
CN
China
Prior art keywords
touch
touch event
controlled device
electronic device
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.)
Active
Application number
CN201810935486.6A
Other languages
Chinese (zh)
Other versions
CN109407823A (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.)
Shanghai Flydigi Electronics Technology Co ltd
Original Assignee
Shanghai Flydigi Electronics Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Flydigi Electronics Technology Co ltd filed Critical Shanghai Flydigi Electronics Technology Co ltd
Priority to CN201810935486.6A priority Critical patent/CN109407823B/en
Priority to PCT/CN2019/073520 priority patent/WO2020034602A1/en
Priority to US16/768,710 priority patent/US20210170274A1/en
Publication of CN109407823A publication Critical patent/CN109407823A/en
Application granted granted Critical
Publication of CN109407823B publication Critical patent/CN109407823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/23Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
    • A63F13/235Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console using a wireless connection, e.g. infrared or piconet
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

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

Abstract

The invention relates to the technical field of touch control, and discloses an electronic device and a touch control system. The electronic device comprises a processor and a signal transmitter, wherein the processor is coupled with the signal transmitter; the signal transmitter is used for receiving the non-touch event and transmitting the non-touch event to the processor; the processor is used for receiving the non-touch event from the signal transmitter, converting the non-touch event into a touch event and feeding the touch event back to the signal transmitter; the signal transmitter is also used for receiving the touch event from the processor and transmitting the touch event to the controlled equipment so as to simulate the touch element. Through the mode, the use convenience of the game equipment can be improved.

Description

电子装置以及触控系统Electronic devices and touch systems

技术领域technical field

本发明涉及触控技术领域,特别是涉及一种电子装置以及触控系统。The present invention relates to the technical field of touch control, and in particular, to an electronic device and a touch control system.

背景技术Background technique

目前,市面上的蓝牙游戏设备在操控终端游戏时,均需要获取终端中特定的权限,才可实现操控功能,致使游戏设备接入以及控制终端游戏的过程较为复杂,游戏设备的使用便捷性不佳。At present, when the Bluetooth game devices on the market control the terminal game, they all need to obtain specific permissions in the terminal to realize the control function, which makes the process of accessing the game device and controlling the terminal game more complicated, and the use of the game device is not convenient. good.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明主要解决的技术问题是提供一种电子装置以及触控系统,能够改善游戏设备的使用便捷性。In view of this, the main technical problem to be solved by the present invention is to provide an electronic device and a touch control system, which can improve the convenience of use of the game device.

为解决上述技术问题,本发明采用的一个技术方案是:提供一种电子装置,该电子装置应用于模拟触控受控设备,受控设备包括触摸元件以及触摸板接口,该电子装置包括处理器以及信号传输器,处理器与信号传输器耦接;信号传输器用于接收非触摸事件,并传输至处理器;处理器用于接收来自信号传输器的非触摸事件,并将非触摸事件转换为触摸事件,以及将触摸事件反馈至信号传输器;信号传输器还用于接收来自处理器的触摸事件,并将触摸事件传输至受控设备,以模拟触摸触摸元件;其中,由受控设备将触摸事件传输至触摸板接口,并且该电子装置描述为一触摸屏/触摸板HID设备,用于向触摸板接口传输触摸事件。In order to solve the above technical problems, a technical solution adopted by the present invention is to provide an electronic device, which is applied to an analog touch controlled device, the controlled device includes a touch element and a touch panel interface, and the electronic device includes a processor and a signal transmitter, the processor is coupled with the signal transmitter; the signal transmitter is used for receiving the non-touch event and transmitting it to the processor; the processor is used for receiving the non-touch event from the signal transmitter and converting the non-touch event into a touch event, and feedback the touch event to the signal transmitter; the signal transmitter is also used to receive the touch event from the processor, and transmit the touch event to the controlled device to simulate touching the touch element; wherein, the controlled device sends the touch Events are transmitted to the touchpad interface, and the electronic device is described as a touchscreen/touchpad HID device for transmitting touch events to the touchpad interface.

为解决上述技术问题,本发明采用的又一个技术方案是:提供一种触控系统,该触控系统包括操作装置、受控设备以及电子装置,操作装置以及受控设备分别与电子装置连接,电子装置应用于模拟触控受控设备,受控设备包括触摸元件以及触摸板接口,电子装置包括处理器以及信号传输器,处理器与信号传输器耦接;操作装置用于生成非触摸事件;电子装置的信号传输器用于接收非触摸事件,并传输至电子装置的处理器;处理器用于接收来自信号传输器的非触摸事件,并将非触摸事件转换为触摸事件,以及将触摸事件反馈至信号传输器;信号传输器还用于接收来自处理器的触摸事件,并将触摸事件传输至受控设备,以模拟触摸触摸元件;其中,由受控设备将触摸事件传输至触摸板接口,并且电子装置描述为一触摸屏/触摸板HID设备,用于向触摸板接口传输触摸事件。In order to solve the above technical problems, another technical solution adopted by the present invention is to provide a touch control system, the touch control system includes an operating device, a controlled device and an electronic device, and the operating device and the controlled device are respectively connected to the electronic device, The electronic device is applied to simulate a touch controlled device, the controlled device includes a touch element and a touch panel interface, the electronic device includes a processor and a signal transmitter, the processor is coupled to the signal transmitter; the operating device is used to generate non-touch events; The signal transmitter of the electronic device is used to receive the non-touch event and transmit it to the processor of the electronic device; the processor is used to receive the non-touch event from the signal transmitter, convert the non-touch event into a touch event, and feed back the touch event to the electronic device. a signal transmitter; the signal transmitter is further configured to receive a touch event from the processor and transmit the touch event to the controlled device to simulate touching the touch element; wherein the controlled device transmits the touch event to the touchpad interface, and The electronic device is described as a touchscreen/touchpad HID device for transmitting touch events to the touchpad interface.

本发明的有益效果是:区别于现有技术,本发明所提供的电子装置,非触摸事件转换为触摸事件的过程并非发生在受控设备端,而是在电子装置端,其事件类别转换工作无需获取受控设备中特定的权限,因此减少了获取权限的工作,能够简化模拟触控方法的实现过程,改善应用本发明所阐述电子装置的游戏设备的使用便捷性;并且由于电子装置将其自身描述为一触摸屏和/或触摸板HID设备,受控设备将其识别为一触摸屏和/或触摸板,以使触摸事件在受控设备中能够通过触摸板接口进行传输,无需获取传输路径上的权限,以进一步简化模拟触控方法的实现过程。The beneficial effects of the present invention are: different from the prior art, in the electronic device provided by the present invention, the process of converting a non-touch event to a touch event does not occur on the controlled device side, but on the electronic device side, and the event type conversion works There is no need to obtain specific permissions in the controlled device, so the work of obtaining permissions is reduced, the implementation process of the simulated touch method can be simplified, and the use convenience of the game device using the electronic device described in the present invention is improved; Describes itself as a touch screen and/or touchpad HID device, and the controlled device recognizes it as a touch screen and/or touchpad, so that touch events can be transmitted through the touchpad interface in the controlled device without acquiring the transmission path. , to further simplify the implementation of the simulated touch method.

附图说明Description of drawings

图1是本发明模拟触控方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a method for simulating touch according to the present invention;

图2是本发明受控设备一实施例的结构示意图;2 is a schematic structural diagram of an embodiment of a controlled device of the present invention;

图3是本发明模拟触控方法第二实施例的流程示意图;FIG. 3 is a schematic flowchart of a second embodiment of a method for simulating touch according to the present invention;

图4是本发明模拟触控方法第三实施例的流程示意图;FIG. 4 is a schematic flowchart of a third embodiment of a method for simulating touch according to the present invention;

图5是本发明模拟触控方法第四实施例的流程示意图;5 is a schematic flowchart of a fourth embodiment of a method for simulating touch according to the present invention;

图6是本发明映射关系建立方法一实施例的流程示意图;6 is a schematic flowchart of an embodiment of a method for establishing a mapping relationship according to the present invention;

图7是本发明目标位置一实施例的结构示意图;7 is a schematic structural diagram of an embodiment of a target position of the present invention;

图8是本发明电子装置一实施例的结构示意图;8 is a schematic structural diagram of an embodiment of an electronic device of the present invention;

图9是本发明触控系统一实施例的结构示意图;FIG. 9 is a schematic structural diagram of an embodiment of the touch control system of the present invention;

图10是本发明触控装置组件一实施例的结构示意图;FIG. 10 is a schematic structural diagram of an embodiment of the touch device assembly of the present invention;

图11是本发明触控系统另一实施例的结构示意图;FIG. 11 is a schematic structural diagram of another embodiment of the touch control system of the present invention;

图12是本发明具有存储功能的装置一实施例的结构示意图。FIG. 12 is a schematic structural diagram of an embodiment of an apparatus with a storage function of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

在本发明一实施例所阐述的模拟触控方法中,该模拟触控方法应用于模拟触控受控设备。其包括如下步骤:在受控设备中安装一应用程序,用于获取特定的权限。完成应用程序的安装后,应用程序接收来自游戏手柄的非触摸事件,并利用已获取的权限将该非触摸事件转换为触摸事件;之后向受控设备的处理器传输该触摸事件,受控设备的处理器接收到该触摸事件后,即可从中解析出受控设备的触摸元件(可以是触摸屏和/或触摸板)“被触摸”的位置,从而完成对受控设备上触摸元件的模拟触摸。In the simulated touch method described in an embodiment of the present invention, the simulated touch method is applied to simulate a touch controlled device. It includes the following steps: installing an application program in the controlled device for obtaining specific permissions. After the installation of the application is completed, the application receives the non-touch event from the gamepad, and converts the non-touch event into a touch event with the acquired permission; then transmits the touch event to the processor of the controlled device, and the controlled device After the processor of the controller receives the touch event, it can parse out the "touched" position of the touch element (which can be a touch screen and/or a touchpad) of the controlled device, thereby completing the simulated touch on the touch element on the controlled device. .

以上可以看出,本实施例所阐述的模拟触控方法依赖于安装在受控设备上的应用程序实现模拟触控。其需要应用程序获取在受控设备上转换事件类别(将非触摸事件转换为触摸事件)的特定权限,从而将游戏手柄输出的非触摸事件转换为触摸事件,使得受控设备在接收到该触摸事件后认为其上的触摸元件被触摸,进而完成对受控设备上触摸元件的模拟触控。这就意味着上述模拟触控方法的实现,必定需要在受控设备上安装所需的应用程序以及获取特定的权限,使得上述模拟触控方法的实现过程较为复杂,对应用上述模拟触控方法的游戏手柄使用便捷性造成不良影响。It can be seen from the above that the simulated touch control method described in this embodiment relies on the application program installed on the controlled device to realize the simulated touch control. It requires the application to obtain a specific permission to convert the event category (convert non-touch events into touch events) on the controlled device, so as to convert the non-touch events output by the gamepad into touch events, so that the controlled device receives the touch event. After the event, the touch element on it is considered to be touched, and then the simulated touch on the touch element on the controlled device is completed. This means that the implementation of the above-mentioned simulated touch method must necessarily require installing the required application program on the controlled device and obtaining specific permissions, which makes the implementation process of the above-mentioned simulated touch method more complicated. The ease of use of the gamepad has a negative impact.

有鉴于此,本发明的其他实施例提供一种模拟触控方法,以简化模拟触控受控设备的实现过程,改善游戏手柄的使用便捷性。以下进行详细阐述。In view of this, other embodiments of the present invention provide a method for simulating touch control, so as to simplify the implementation process of simulating a touch-controlled device and improve the convenience of using the game handle. Details are described below.

请参阅图1-2,图1是本发明模拟触控方法第一实施例的流程示意图,图2是本发明受控设备一实施例的结构示意图。Please refer to FIGS. 1-2 , FIG. 1 is a schematic flowchart of a first embodiment of a method for simulating touch according to the present invention, and FIG. 2 is a schematic structural diagram of an embodiment of a controlled device according to the present invention.

本实施例所阐述的模拟触控方法应用于模拟触控受控设备1。受控设备1包括触摸元件11以及触摸板接口12,触摸元件11可以是受控设备1原生自带的,也可以是外接的,亦或是受控设备1同时包括原生自带的触摸元件11以及外接的触摸元件11。上述模拟触控受控设备1即为模拟触摸受控设备1上的触摸元件11。触摸元件11可以为触摸屏和/或触摸板等;其中,触摸屏定义为具有集成显示器的数字转换器,触摸板定义为未与显示器集成的数字转换器。受控设备1的触摸元件11用于向用户展示一人机交互界面,用户通过操控触摸元件11向受控设备1输入一系列控制指令,以驱使受控设备1执行相应的工作,使得用户能够得到其所需要的内容。The simulated touch method described in this embodiment is applied to simulate a touch controlled device 1 . The controlled device 1 includes a touch element 11 and a touchpad interface 12. The touch element 11 may be natively built into the controlled device 1, or externally connected, or the controlled device 1 may also include a natively built-in touch element 11. and an external touch element 11 . The above-mentioned simulated touch controlled device 1 is the touch element 11 on the simulated touch controlled device 1 . The touch element 11 may be a touch screen and/or a touch pad, etc., wherein the touch screen is defined as a digitizer with an integrated display, and the touchpad is defined as a digitizer not integrated with the display. The touch element 11 of the controlled device 1 is used to display a human-computer interaction interface to the user. The user inputs a series of control instructions to the controlled device 1 by manipulating the touch element 11 to drive the controlled device 1 to perform the corresponding work, so that the user can obtain its required content.

举例而言,受控设备的触摸屏向用户展示游戏界面,触摸屏上部分区域展示对应的游戏虚拟按键。用户通过触摸展示虚拟按键的触摸屏区域,以向受控设备输入控制指令,从而驱使游戏中的部分内容按照用户意图进行发展。例如,用户触摸触摸屏上展示“攻击”虚拟按键的区域,驱使游戏中的角色完成“攻击”动作。而本实施例所阐述的模拟触控方法即为模拟用户触控受控设备上触摸元件的过程。For example, the touch screen of the controlled device displays the game interface to the user, and a part of the area on the touch screen displays the corresponding game virtual keys. The user inputs control instructions to the controlled device by touching the touch screen area displaying virtual keys, thereby driving part of the content in the game to develop according to the user's intention. For example, the user touches the area on the touch screen displaying the "attack" virtual button, which drives the character in the game to complete the "attack" action. The touch simulation method described in this embodiment is a process of simulating a user's touch on a touch element on a controlled device.

本实施例所阐述的非触摸事件以及触摸事件均由HID设备所生成。HID(HumanInterface Device,人机交互设备)是提供人机交互的媒介。其不一定是人机接口,其他符合HID类别规范的设备都可以是HID设备。上述触摸事件定义为由描述为触摸元件或触摸板的HID设备生成的指令事件(可以由用户操控HID设备所生成等),而非触摸事件定义为由除描述为触摸元件或触摸板的HID设备之外的HID设备所生成的指令事件。Both the non-touch event and the touch event described in this embodiment are generated by the HID device. HID (HumanInterface Device, human-computer interaction device) is a medium that provides human-computer interaction. It is not necessarily a human-machine interface, and other devices that conform to the HID category specification can be HID devices. The above touch events are defined as command events generated by HID devices described as touch elements or touchpads (which can be generated by user manipulation of the HID device, etc.), while non-touch events are defined as HID devices other than those described as touch elements or touchpads. Command events generated by other HID devices.

需要说明的是,本实施例所阐述的模拟触控方法并不局限于以下步骤。It should be noted that the simulated touch control method described in this embodiment is not limited to the following steps.

S101:接收非触摸事件;S101: Receive non-touch events;

在本实施例中,接收除描述为触摸屏或触摸板的HID设备之外的HID设备所生成的非触摸事件,该非触摸事件用于对受控设备上的触摸元件进行模拟触摸。In this embodiment, a non-touch event generated by a HID device other than the HID device described as a touch screen or a touchpad is received, the non-touch event being used to simulate a touch on a touch element on the controlled device.

S102:将非触摸事件转换为触摸事件;S102: Convert non-touch events to touch events;

在本实施例中,若要受控设备识别出其上的触摸元件被触摸,受控设备需要接收到一触摸事件,该触摸事件即描述触摸元件上的某个区域被触摸。因此,为实现对受控设备触摸元件的模拟触控,就需要将用于模拟触控的非触摸事件转换为对应的触摸事件。In this embodiment, in order for the controlled device to recognize that the touch element on it is touched, the controlled device needs to receive a touch event, and the touch event describes that a certain area on the touch element is touched. Therefore, in order to realize the simulated touch on the touch element of the controlled device, it is necessary to convert the non-touch event used for the simulated touch into the corresponding touch event.

S103:将触摸事件传输至受控设备,以模拟触摸触摸元件;S103: transmit the touch event to the controlled device to simulate touching the touch element;

在本实施例中,将HID设备所生成的非触摸事件转换为触摸事件后,需要将触摸事件传输至受控设备。受控设备在接收到该触摸事件后,即会识别出其上的触摸元件被触摸以及被触摸的位置,从而完成模拟触摸触摸元件,驱使受控设备执行相应动作并可向用户展示结果。In this embodiment, after the non-touch event generated by the HID device is converted into a touch event, the touch event needs to be transmitted to the controlled device. After receiving the touch event, the controlled device will recognize that the touch element on it is touched and the touched position, thereby completing the simulation of touching the touch element, driving the controlled device to perform the corresponding action and displaying the result to the user.

可见,非触摸事件转换为触摸事件的过程并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限。相较于上述实施例所阐述的模拟触控方法,减少了获取权限的工作,因此能够简化模拟触控方法的实现过程,改善应用本实施例所阐述模拟触控方法的游戏设备的使用便捷性。It can be seen that the process of converting a non-touch event into a touch event does not occur on the controlled device side, and the event category conversion does not require specific permissions in the controlled device. Compared with the simulated touch method described in the above embodiment, the work of obtaining permission is reduced, so the implementation process of the simulated touch method can be simplified, and the convenience of use of the game device to which the simulated touch method described in this embodiment is applied can be improved. .

需要说明的是,受控设备包括一触摸板接口。触摸板接口为受控设备端的一个编程接口,用于接收来自触摸屏和/或触摸板的触摸事件,是受控设备面向触摸屏和/或触摸板的窗口。其在受控设备出厂时即已完成安装设置(原生携带),并且符合人机接口设备(HID)类别规范。在本实施例中,向受控设备传输触摸事件的一端将其自身描述为一触摸屏和/或触摸板HID设备,使得其与受控设备连接之后,受控设备将其识别为一触摸屏和/或触摸板。当受控设备接收到触摸事件后,默认该触摸事件来自于触摸屏和/或触摸板,并将该触摸事件传输至触摸板接口,从而完成对触摸屏的模拟触摸。这不同于上述实施例所阐述的模拟触控方法,利用获取的权限转换事件类别后,触摸事件并非经由受控设备的触摸板接口进行传输,并且由于其未将自身描述为触摸屏和/或触摸板HID设备,受控设备在接收到触摸事件后并不会通过触摸板接口传输该触摸事件,致使触摸事件的传输过程仍然需要获取在传输路径中所需的受控设备权限。而本实施例所阐述的模拟触控方法,通过触摸板接口传输触摸事件,无需获取特定的权限即可实现,其等同于受控设备上触摸元件所产生触摸事件的传输过程,因此能够进一步简化模拟触控方法的实现过程。It should be noted that the controlled device includes a touch panel interface. The touchpad interface is a programming interface on the controlled device side, used to receive touch events from the touchscreen and/or the touchpad, and is a window of the controlled device facing the touchscreen and/or the touchpad. It is installed and set up (natively carried) when the controlled device leaves the factory, and complies with the Human Interface Device (HID) category specification. In this embodiment, the end that transmits touch events to the controlled device describes itself as a touch screen and/or a touchpad HID device, so that after it is connected to the controlled device, the controlled device recognizes it as a touch screen and/or a touchpad HID device. or touchpad. When the controlled device receives the touch event, it defaults that the touch event comes from the touch screen and/or the touch pad, and transmits the touch event to the touch pad interface, thereby completing the simulated touch on the touch screen. This is different from the simulated touch method described in the above-mentioned embodiments. After the event category is converted using the obtained permission, the touch event is not transmitted through the touchpad interface of the controlled device, and because it does not describe itself as a touch screen and/or touch For the board HID device, the controlled device will not transmit the touch event through the touchpad interface after receiving the touch event, so that the transmission process of the touch event still needs to obtain the controlled device permission required in the transmission path. The simulated touch method described in this embodiment, however, transmits touch events through the touchpad interface without obtaining specific permissions, which is equivalent to the transmission process of touch events generated by touch elements on the controlled device, so it can be further simplified Simulate the implementation process of the touch method.

以上可以看出,本发明所提供的模拟触控方法能够实现对受控设备触摸元件的模拟触摸。其中,非触摸事件转换为触摸事件的过程并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限,因此减少了获取权限的工作,能够简化模拟触控方法的实现过程,改善应用本发明所阐述模拟触控方法的游戏设备的使用便捷性;并且由于向受控设备传输触摸事件的一端将其自身描述为一触摸屏和/或触摸板HID设备,受控设备将其识别为一触摸屏和/或触摸板,以使触摸事件在受控设备中能够通过触摸板接口进行传输,无需获取传输路径上的权限,以进一步简化模拟触控方法的实现过程。It can be seen from the above that the simulated touch method provided by the present invention can realize the simulated touch on the touch element of the controlled device. Among them, the process of converting non-touch events into touch events does not occur on the controlled device side, and the event category conversion work does not need to obtain specific permissions in the controlled device, thus reducing the work of obtaining permissions and simplifying the implementation of the simulated touch method. process, improving the convenience of use of the game device applying the simulated touch method described in the present invention; and since the end that transmits the touch event to the controlled device describes itself as a touch screen and/or touchpad HID device, the controlled device will It is identified as a touch screen and/or touch pad, so that touch events can be transmitted through the touch pad interface in the controlled device without obtaining permission on the transmission path, so as to further simplify the implementation process of the simulated touch method.

请参阅图3,图3是本发明模拟触控方法第二实施例的流程示意图。Please refer to FIG. 3 , which is a schematic flowchart of a second embodiment of a method for simulating touch according to the present invention.

本实施例所阐述的模拟触控方法应用于模拟触控受控设备,受控设备可以为带有触摸屏和/或触摸板等触摸元件的智能手机、平板电脑等移动终端设备。受控设备包括触摸元件以及触摸板接口,上述模拟触控受控设备即为模拟触摸受控设备上的触摸元件。触摸元件可以为触摸屏和/或触摸板等。受控设备的触摸元件用于向用户展示一人机交互界面,用户通过操控触摸元件向受控设备输入一系列控制指令,以驱使受控设备执行相应的工作,使得用户能够得到其所需要的内容。The simulated touch method described in this embodiment is applied to simulated touch controlled devices, and the controlled devices may be mobile terminal devices such as smart phones and tablet computers with touch elements such as touch screens and/or touch pads. The controlled device includes a touch element and a touch panel interface, and the above-mentioned simulated touch controlled equipment is a touch element on the simulated touch controlled equipment. The touch element may be a touch screen and/or a touch pad or the like. The touch element of the controlled device is used to display the human-computer interaction interface to the user. The user inputs a series of control instructions to the controlled device by manipulating the touch element to drive the controlled device to perform the corresponding work, so that the user can get the content he needs. .

需要说明的是,本实施例所阐述的模拟触控方法并不局限于以下步骤。It should be noted that the simulated touch control method described in this embodiment is not limited to the following steps.

S201:与受控设备建立通信连接;S201: establish a communication connection with the controlled device;

在本实施例中,为建立与受控设备之间的信号传输通道,以用于向受控设备传输下文所述的触摸事件等信号,需要与受控设备建立通信连接。二者之间的通信连接可以采用有线连接形式,通过导线等线缆结构与受控设备建立信号传输通道;或是,该通信连接采用无线连接形式,通过无线通讯的方式与受控设备建立信号传输通道。In this embodiment, in order to establish a signal transmission channel with the controlled device for transmitting signals such as touch events described below to the controlled device, it is necessary to establish a communication connection with the controlled device. The communication connection between the two can be in the form of a wired connection, and a signal transmission channel is established with the controlled device through a cable structure such as a wire; or, the communication connection can be in the form of a wireless connection, and a signal is established with the controlled device through wireless communication. transmission channel.

可选地,上述通信连接的无线连接形式可以包括蓝牙通信连接、wifi通信连接、红外线通信连接、运营商网络通信连接(例如2G、3G、4G等通信技术)等,在此不做限定。Optionally, the wireless connection form of the above communication connection may include Bluetooth communication connection, wifi communication connection, infrared communication connection, operator network communication connection (such as 2G, 3G, 4G and other communication technologies), etc., which are not limited here.

S202:接收非触摸事件;S202: Receive non-touch events;

在本实施例中,接收除描述为触摸屏或触摸板的HID设备之外的HID设备所生成的非触摸事件,该非触摸事件用于对受控设备上的触摸元件进行模拟触摸。其中,与HID设备之间用于传输非触摸事件等信号的信号传输通道可以采用与上述通信连接相同的形式,在此不做限定。In this embodiment, a non-touch event generated by a HID device other than the HID device described as a touch screen or a touchpad is received, the non-touch event being used to simulate a touch on a touch element on the controlled device. The signal transmission channel between the HID device and the HID device for transmitting signals such as non-touch events can be in the same form as the above-mentioned communication connection, which is not limited here.

具体地,非触摸事件可以是机械按键事件、体感控制事件以及光感控制事件等。用于生成非触摸事件的HID设备可以是键盘、鼠标、游戏杆等具备机械物理按键(例如按键、摇杆等)的HID设备,以生成机械按键事件;或者,用于生成非触摸事件的HID设备可以是体感传感器,通过检测佩戴者的体感动作,以生成体感控制事件;再者,用于生成非触摸事件的HID设备可以是感光传感器,通过检测输入/输出光强度的变化,识别用户的动作,以生成光感控制事件。Specifically, the non-touch event may be a mechanical key event, a somatosensory control event, a light sensing control event, and the like. The HID device used to generate non-touch events can be keyboards, mice, joysticks, etc. HID devices with mechanical physical keys (such as keys, joysticks, etc.) to generate mechanical key events; or, HID used to generate non-touch events The device can be a somatosensory sensor, which can generate a somatosensory control event by detecting the wearer's somatosensory action; moreover, the HID device used to generate a non-touch event can be a photosensitive sensor, which can identify the user's Action to generate light sensor control events.

S203:将非触摸事件转换为触摸事件;S203: Convert non-touch events to touch events;

在本实施例中,若要受控设备识别出其上的触摸元件被触摸,受控设备需要接收到一触摸事件,该触摸事件即描述触摸元件上的某个区域被触摸。因此,为实现对受控设备触摸元件的模拟触控,就需要将用于模拟触控的非触摸事件转换为对应的触摸事件。In this embodiment, in order for the controlled device to recognize that the touch element on it is touched, the controlled device needs to receive a touch event, and the touch event describes that a certain area on the touch element is touched. Therefore, in order to realize the simulated touch on the touch element of the controlled device, it is necessary to convert the non-touch event used for the simulated touch into the corresponding touch event.

具体地,将非触摸事件转换为触摸事件的过程即为更改非触摸事件的报告描述符的过程,以将非触摸事件转换为触摸事件。其具体为:将该非触摸事件的报告描述符更改为用于描述触摸事件的报告描述符,以使非触摸事件转换为触摸事件。Specifically, the process of converting a non-touch event into a touch event is a process of changing the report descriptor of the non-touch event, so as to convert the non-touch event into a touch event. Specifically, the report descriptor of the non-touch event is changed to a report descriptor for describing the touch event, so that the non-touch event is converted into a touch event.

以下举例描述不同事件的报告描述符,其中不同事件类别的转换即为将其报告描述符更改为目标事件的对应的报告描述符。The following examples describe report descriptors of different events, wherein the conversion of different event types is to change their report descriptors to the corresponding report descriptors of the target event.

键盘:keyboard:

Usage Page(Generic Desktop) 05 01Usage Page(Generic Desktop) 05 01

Usage(Keyboard) 09 06Usage(Keyboard) 09 06

鼠标:mouse:

Usage Page(Generic Desktop) 05 01Usage Page(Generic Desktop) 05 01

Usage(Mouse) 09 02Usage(Mouse) 09 02

触摸板接口HID设备:Touchpad interface HID device:

Figure BDA0001767716070000081
Figure BDA0001767716070000081

在HID规范中要求为了确保正确识别HID设备类别,HID设备必须使用以下任一用法声明应用程序集合:It is required in the HID specification that in order to ensure proper identification of the HID device class, the HID device must declare the application collection with either of the following usages:

1、Touch Screen(触摸屏);1. Touch Screen;

2、Touch Pad(触摸板)。2. Touch Pad (touch pad).

结合上述内容,若要实现通过操控键盘、鼠标等设备,以对受控设备上的触摸元件进行模拟触摸,就需要将键盘、鼠标等设备输出的非触摸事件的报告描述符更改为触摸板接口对应的HID设备的报告描述符,以使该非触摸事件转换为触摸事件,即触摸板接口所对应的事件类别。受控设备接收到该触摸事件后,即可识别出其为触摸板接口所对应的事件,描述有对触摸元件上的部分区域的触摸信息。Combined with the above content, if you want to simulate touches on the touch elements on the controlled device by manipulating the keyboard, mouse and other devices, you need to change the report descriptor of the non-touch event output by the keyboard, mouse and other devices to the touchpad interface. The report descriptor of the corresponding HID device, so that the non-touch event is converted into a touch event, that is, the event category corresponding to the touchpad interface. After receiving the touch event, the controlled device can recognize that it is an event corresponding to the touchpad interface, and describes touch information on a partial area on the touch element.

S204:将触摸事件传输至受控设备,以模拟触摸触摸元件;S204: transmit the touch event to the controlled device to simulate touching the touch element;

在本实施例中,将HID设备所生成的非触摸事件转换为触摸事件后,需要将触摸事件传输至受控设备。受控设备在接收到该触摸事件后,即会识别出其上的触摸元件被触摸以及被触摸的位置,从而完成模拟触摸触摸元件,驱使受控设备执行相应动作并可向用户展示结果。In this embodiment, after the non-touch event generated by the HID device is converted into a touch event, the touch event needs to be transmitted to the controlled device. After receiving the touch event, the controlled device will recognize that the touch element on it is touched and the touched position, thereby completing the simulation of touching the touch element, driving the controlled device to perform the corresponding action and displaying the result to the user.

可见,非触摸事件转换为触摸事件的过程并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限,能够简化模拟触控方法的实现过程,改善应用本实施例所阐述模拟触控方法的游戏设备的使用便捷性。It can be seen that the process of converting a non-touch event into a touch event does not occur on the controlled device side, and the event category conversion does not require obtaining specific permissions in the controlled device, which can simplify the implementation process of the simulated touch method and improve the application of the method described in this embodiment. Describes the ease of use of the game device that simulates the touch method.

并且在本实施例中,向受控设备传输触摸事件的一端将其自身描述为一触摸屏和/或触摸板HID设备,使得其与受控设备连接之后,受控设备将其识别为一触摸屏和/或触摸板。当受控设备接收到触摸事件后,默认该触摸事件来自于触摸屏和/或触摸板,并将该触摸事件传输至触摸板接口,从而完成对触摸屏的模拟触摸。通过触摸板接口传输触摸事件,无需获取特定的权限即可实现,其等同于受控设备上触摸元件所产生触摸事件的传输过程,因此能够进一步简化模拟触控方法的实现过程。And in this embodiment, the end that transmits the touch event to the controlled device describes itself as a touch screen and/or a touchpad HID device, so that after it is connected to the controlled device, the controlled device recognizes it as a touch screen and/or a touchpad HID device. / or touchpad. When the controlled device receives the touch event, it defaults that the touch event comes from the touch screen and/or the touch pad, and transmits the touch event to the touch pad interface, thereby completing the simulated touch on the touch screen. The transmission of touch events through the touchpad interface can be achieved without obtaining specific permissions, which is equivalent to the transmission process of touch events generated by touch elements on the controlled device, so the implementation process of the simulated touch method can be further simplified.

以上可以看出,本发明所提供的模拟触控方法能够实现对受控设备触摸元件的模拟触摸。其中,非触摸事件转换为触摸事件的过程并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限,因此减少了获取权限的工作,能够简化模拟触控方法的实现过程,改善应用本发明所阐述模拟触控方法的游戏设备的使用便捷性;并且由于向受控设备传输触摸事件的一端将其自身描述为一触摸屏和/或触摸板HID设备,受控设备将其识别为一触摸屏和/或触摸板,以使触摸事件在受控设备中能够通过触摸板接口进行传输,无需获取传输路径上的权限,以进一步简化模拟触控方法的实现过程。It can be seen from the above that the simulated touch method provided by the present invention can realize the simulated touch on the touch element of the controlled device. Among them, the process of converting non-touch events into touch events does not occur on the controlled device side, and the event category conversion work does not need to obtain specific permissions in the controlled device, thus reducing the work of obtaining permissions and simplifying the implementation of the simulated touch method. process, improving the convenience of use of the game device applying the simulated touch method described in the present invention; and since the end that transmits the touch event to the controlled device describes itself as a touch screen and/or touchpad HID device, the controlled device will It is identified as a touch screen and/or touch pad, so that touch events can be transmitted through the touch pad interface in the controlled device without obtaining permission on the transmission path, so as to further simplify the implementation process of the simulated touch method.

请参阅图4,图4是本发明模拟触控方法第三实施例的流程示意图。Please refer to FIG. 4 , which is a schematic flowchart of a third embodiment of a method for simulating touch according to the present invention.

本实施例所阐述的模拟触控方法应用于模拟触控受控设备。受控设备包括触摸元件以及触摸板接口,上述模拟触控受控设备即为模拟触摸受控设备上的触摸元件。触摸元件可以为触摸屏和/或触摸板等。受控设备的触摸元件用于向用户展示一人机交互界面,用户通过操控触摸元件向受控设备输入一系列控制指令,以驱使受控设备执行相应的工作,使得用户能够得到其所需要的内容。The simulated touch method described in this embodiment is applied to simulate a touch controlled device. The controlled device includes a touch element and a touch panel interface, and the above-mentioned simulated touch controlled equipment is a touch element on the simulated touch controlled equipment. The touch element may be a touch screen and/or a touch pad or the like. The touch element of the controlled device is used to display the human-computer interaction interface to the user. The user inputs a series of control instructions to the controlled device by manipulating the touch element to drive the controlled device to perform the corresponding work, so that the user can get the content he needs. .

需要说明的是,本实施例所阐述的模拟触控方法并不局限于以下步骤。It should be noted that the simulated touch control method described in this embodiment is not limited to the following steps.

S301:生成非触摸事件;S301: Generate a non-touch event;

在本实施例中,符合HID类别规范的HID设备生成非触摸事件,该非触摸事件用于对受控设备上的触摸元件进行模拟触摸。其中,该HID设备描述为除触摸屏或触摸板之外的HID设备,其可以是鼠标、键盘、游戏杆等,在此不做限定。In this embodiment, the HID device conforming to the HID class specification generates a non-touch event, and the non-touch event is used to simulate a touch on a touch element on the controlled device. Wherein, the HID device is described as a HID device other than a touch screen or a touch pad, which may be a mouse, a keyboard, a joystick, etc., which is not limited herein.

S302:将非触摸事件转换为触摸事件;S302: Convert non-touch events to touch events;

在本实施例中,若要受控设备识别出其上的触摸元件被触摸,受控设备需要接收到一触摸事件,该触摸事件即描述触摸元件上的某个区域被触摸。因此,为实现对受控设备触摸元件的模拟触控,就需要将用于模拟触控的非触摸事件转换为对应的触摸事件。In this embodiment, in order for the controlled device to recognize that the touch element on it is touched, the controlled device needs to receive a touch event, and the touch event describes that a certain area on the touch element is touched. Therefore, in order to realize the simulated touch on the touch element of the controlled device, it is necessary to convert the non-touch event used for the simulated touch into the corresponding touch event.

S303:将触摸事件传输至受控设备,以模拟触摸触摸元件;S303: transmit the touch event to the controlled device to simulate touching the touch element;

在本实施例中,将HID设备所生成的非触摸事件转换为触摸事件后,需要将触摸事件传输至受控设备。受控设备在接收到该触摸事件后,即会识别出其上的触摸元件被触摸以及被触摸的位置,从而完成模拟触摸触摸元件,驱使受控设备执行相应动作并可向用户展示结果。In this embodiment, after the non-touch event generated by the HID device is converted into a touch event, the touch event needs to be transmitted to the controlled device. After receiving the touch event, the controlled device will recognize that the touch element on it is touched and the touched position, thereby completing the simulation of touching the touch element, driving the controlled device to perform the corresponding action and displaying the result to the user.

可见,非触摸事件转换为触摸事件的过程并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限。并且在本实施例中,向受控设备传输触摸事件的一端(即上述生成非触摸事件的HID设备)将其自身描述为一触摸屏和/或触摸板HID设备,使得其与受控设备连接之后,受控设备将其识别为一触摸屏和/或触摸板。当受控设备接收到触摸事件后,默认该触摸事件来自于触摸屏和/或触摸板,并将该触摸事件传输至触摸板接口,从而完成对触摸屏的模拟触摸。通过触摸板接口传输触摸事件,无需获取特定的权限即可实现,其等同于受控设备上触摸元件所产生触摸事件的传输过程,因此能够进一步简化模拟触控方法的实现过程。It can be seen that the process of converting a non-touch event into a touch event does not occur on the controlled device side, and the event category conversion does not require specific permissions in the controlled device. And in this embodiment, the end that transmits touch events to the controlled device (that is, the above-mentioned HID device that generates non-touch events) describes itself as a touch screen and/or touchpad HID device, so that after it is connected to the controlled device, , the controlled device recognizes it as a touch screen and/or touch pad. When the controlled device receives the touch event, it defaults that the touch event comes from the touch screen and/or the touch pad, and transmits the touch event to the touch pad interface, thereby completing the simulated touch on the touch screen. The transmission of touch events through the touchpad interface can be achieved without obtaining specific permissions, which is equivalent to the transmission process of touch events generated by touch elements on the controlled device, so the implementation process of the simulated touch method can be further simplified.

以上可以看出,本发明所提供的模拟触控方法能够实现对受控设备触摸元件的模拟触摸。其中,非触摸事件转换为触摸事件的过程并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限,因此减少了获取权限的工作,能够简化模拟触控方法的实现过程,改善应用本发明所阐述模拟触控方法的游戏设备的使用便捷性;并且由于向受控设备传输触摸事件的一端将其自身描述为一触摸屏和/或触摸板HID设备,受控设备将其识别为一触摸屏和/或触摸板,以使触摸事件在受控设备中能够通过触摸板接口进行传输,无需获取传输路径上的权限,以进一步简化模拟触控方法的实现过程。It can be seen from the above that the simulated touch method provided by the present invention can realize the simulated touch on the touch element of the controlled device. Among them, the process of converting non-touch events into touch events does not occur on the controlled device side, and the event category conversion work does not need to obtain specific permissions in the controlled device, thus reducing the work of obtaining permissions and simplifying the implementation of the simulated touch method. process, improving the convenience of use of the game device applying the simulated touch method described in the present invention; and since the end that transmits the touch event to the controlled device describes itself as a touch screen and/or touchpad HID device, the controlled device will It is identified as a touch screen and/or touch pad, so that touch events can be transmitted through the touch pad interface in the controlled device without obtaining permission on the transmission path, so as to further simplify the implementation process of the simulated touch method.

请参阅图5,图5是本发明模拟触控方法第四实施例的流程示意图。Please refer to FIG. 5 . FIG. 5 is a schematic flowchart of a fourth embodiment of the simulated touch method of the present invention.

本实施例所阐述的模拟触控方法应用于模拟触控受控设备。受控设备包括触摸元件以及触摸板接口,上述模拟触控受控设备即为模拟触摸受控设备上的触摸元件。触摸元件可以为触摸屏和/或触摸板等。受控设备的触摸元件用于向用户展示一人机交互界面,用户通过操控触摸元件向受控设备输入一系列控制指令,以驱使受控设备执行相应的工作,使得用户能够得到其所需要的内容。The simulated touch method described in this embodiment is applied to simulate a touch controlled device. The controlled device includes a touch element and a touch panel interface, and the above-mentioned simulated touch controlled equipment is a touch element on the simulated touch controlled equipment. The touch element may be a touch screen and/or a touch pad or the like. The touch element of the controlled device is used to display the human-computer interaction interface to the user. The user inputs a series of control instructions to the controlled device by manipulating the touch element to drive the controlled device to perform the corresponding work, so that the user can get the content he needs. .

需要说明的是,本实施例所阐述的模拟触控方法并不局限于以下步骤。It should be noted that the simulated touch control method described in this embodiment is not limited to the following steps.

S401:与受控设备建立通信连接;S401: establish a communication connection with the controlled device;

在本实施例中,为建立与受控设备之间的信号传输通道,以用于向受控设备传输下文所述的触摸事件等信号,需要与受控设备建立通信连接。二者之间的通信连接可以采用有线连接形式,通过导线等线缆结构与受控设备建立信号传输通道;或是,该通信连接采用无线连接形式,通过无线通讯的方式与受控设备建立信号传输通道。In this embodiment, in order to establish a signal transmission channel with the controlled device for transmitting signals such as touch events described below to the controlled device, it is necessary to establish a communication connection with the controlled device. The communication connection between the two can be in the form of a wired connection, and a signal transmission channel is established with the controlled device through a cable structure such as a wire; or, the communication connection can be in the form of a wireless connection, and a signal is established with the controlled device through wireless communication. transmission channel.

其中,本实施例所阐述无线通讯的方式可以与上述实施例采用相同形式,在此就不再赘述。Wherein, the wireless communication manner described in this embodiment may adopt the same form as the above-mentioned embodiment, and details are not repeated here.

S402:生成非触摸事件;S402: Generate a non-touch event;

在本实施例中,符合HID类别规范的HID设备生成非触摸事件,该非触摸事件用于对受控设备上的触摸元件进行模拟触摸。其中,该HID设备描述为除触摸屏或触摸板之外的HID设备,其可以是鼠标、键盘、游戏杆等,在此不做限定。In this embodiment, the HID device conforming to the HID class specification generates a non-touch event, and the non-touch event is used to simulate a touch on a touch element on the controlled device. Wherein, the HID device is described as a HID device other than a touch screen or a touch pad, which may be a mouse, a keyboard, a joystick, etc., which is not limited herein.

S403:将非触摸事件转换为触摸事件;S403: Convert a non-touch event to a touch event;

在本实施例中,若要受控设备识别出其上的触摸元件被触摸,受控设备需要接收到一触摸事件,该触摸事件即描述触摸元件上的某个区域被触摸。因此,为实现对受控设备触摸元件的模拟触控,就需要将用于模拟触控的非触摸事件转换为对应的触摸事件。In this embodiment, in order for the controlled device to recognize that the touch element on it is touched, the controlled device needs to receive a touch event, and the touch event describes that a certain area on the touch element is touched. Therefore, in order to realize the simulated touch on the touch element of the controlled device, it is necessary to convert the non-touch event used for the simulated touch into the corresponding touch event.

其中,将非触摸事件转换为触摸事件的具体过程已在上述实施例中详细阐述,在此就不再赘述。The specific process of converting a non-touch event into a touch event has been described in detail in the above embodiments, and will not be repeated here.

S404:将触摸事件传输至受控设备,以模拟触摸触摸元件;S404: transmit the touch event to the controlled device to simulate touching the touch element;

在本实施例中,将HID设备所生成的非触摸事件转换为触摸事件后,需要将触摸事件传输至受控设备。受控设备在接收到该触摸事件后,即会识别出其上的触摸元件被触摸以及被触摸的位置,从而完成模拟触摸触摸元件,驱使受控设备执行相应动作并可向用户展示结果。In this embodiment, after the non-touch event generated by the HID device is converted into a touch event, the touch event needs to be transmitted to the controlled device. After receiving the touch event, the controlled device will recognize that the touch element on it is touched and the touched position, thereby completing the simulation of touching the touch element, driving the controlled device to perform the corresponding action and displaying the result to the user.

可见,非触摸事件转换为触摸事件的过程并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限,能够简化模拟触控方法的实现过程,改善应用本实施例所阐述模拟触控方法的游戏设备的使用便捷性。It can be seen that the process of converting a non-touch event into a touch event does not occur on the controlled device side, and the event category conversion does not require obtaining specific permissions in the controlled device, which can simplify the implementation process of the simulated touch method and improve the application of the method described in this embodiment. Describes the ease of use of the game device that simulates the touch method.

并且在本实施例中,向受控设备传输触摸事件的一端将其自身描述为一触摸屏和/或触摸板HID设备,使得其与受控设备连接之后,受控设备将其识别为一触摸屏和/或触摸板。当受控设备接收到触摸事件后,默认该触摸事件来自于触摸屏和/或触摸板,并将该触摸事件传输至触摸板接口,从而完成对触摸屏的模拟触摸。通过触摸板接口传输触摸事件,无需获取特定的权限即可实现,其等同于受控设备上触摸元件所产生触摸事件的传输过程,因此能够进一步简化模拟触控方法的实现过程。And in this embodiment, the end that transmits the touch event to the controlled device describes itself as a touch screen and/or a touchpad HID device, so that after it is connected to the controlled device, the controlled device recognizes it as a touch screen and/or a touchpad HID device. / or touchpad. When the controlled device receives the touch event, it defaults that the touch event comes from the touch screen and/or the touch pad, and transmits the touch event to the touch pad interface, thereby completing the simulated touch on the touch screen. The transmission of touch events through the touchpad interface can be achieved without obtaining specific permissions, which is equivalent to the transmission process of touch events generated by touch elements on the controlled device, so the implementation process of the simulated touch method can be further simplified.

以上可以看出,本发明所提供的模拟触控方法能够实现对受控设备触摸元件的模拟触摸。其中,非触摸事件转换为触摸事件的过程并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限,因此减少了获取权限的工作,能够简化模拟触控方法的实现过程,改善应用本发明所阐述模拟触控方法的游戏设备的使用便捷性;并且由于向受控设备传输触摸事件的一端将其自身描述为一触摸屏和/或触摸板HID设备,受控设备将其识别为一触摸屏和/或触摸板,以使触摸事件在受控设备中能够通过触摸板接口进行传输,无需获取传输路径上的权限,以进一步简化模拟触控方法的实现过程。It can be seen from the above that the simulated touch method provided by the present invention can realize the simulated touch on the touch element of the controlled device. Among them, the process of converting non-touch events into touch events does not occur on the controlled device side, and the event category conversion work does not need to obtain specific permissions in the controlled device, thus reducing the work of obtaining permissions and simplifying the implementation of the simulated touch method. process, improving the convenience of use of the game device applying the simulated touch method described in the present invention; and since the end that transmits the touch event to the controlled device describes itself as a touch screen and/or touchpad HID device, the controlled device will It is identified as a touch screen and/or touch pad, so that touch events can be transmitted through the touch pad interface in the controlled device without obtaining permission on the transmission path, so as to further simplify the implementation process of the simulated touch method.

请参阅图6,图6是本发明映射关系建立方法一实施例的流程示意图。Please refer to FIG. 6 , which is a schematic flowchart of an embodiment of a method for establishing a mapping relationship of the present invention.

需要说明的是,触摸事件用于描述触摸受控设备的触摸元件上的目标位置而生成的事件,而本发明所阐述的触摸事件的产生实际上并非为触摸上述触摸元件所生成的。触摸事件携带有该目标位置在触摸元件上的物理位置信息(例如位置坐标等)。It should be noted that the touch event is used to describe the event generated by touching the target position on the touch element of the controlled device, and the generation of the touch event described in the present invention is not actually generated by touching the above-mentioned touch element. The touch event carries the physical location information (eg, location coordinates, etc.) of the target location on the touch element.

并且,在实现上述实施例所阐述的模拟触控方法之前,需要建立目标位置与非触摸事件的映射关系。如此一来,当该非触摸事件生成时,即意味着对触摸元件上的目标位置的模拟触摸。以下进行详细阐述。Furthermore, before implementing the simulated touch control method described in the above embodiments, a mapping relationship between the target position and the non-touch event needs to be established. As such, when the non-touch event is generated, it means a simulated touch to the target location on the touch element. Details are described below.

S501:获取目标位置在触摸元件上的物理位置信息;S501: Obtain physical position information of a target position on a touch element;

在本实施例中,触摸元件如上述实施例所述可以为触摸屏或者是触摸板等。由于目前市面上的触摸元件通常为平面结构,其可以由两个不平行的轴线定义而得。为便于描述触摸元件2上各个位置的物理位置信息,本实施例利用两个相互垂直的坐标轴X、Y定义目标位置M在触摸元件2上的具体方位。因此,获取目标位置M在触摸元件2上的物理位置信息即为获取该目标位置M所对应坐标轴X、Y的坐标值(a,b),如图7所示。In this embodiment, the touch element may be a touch screen or a touch pad as described in the above embodiments. Since the touch elements currently on the market are usually planar structures, they can be defined by two non-parallel axes. To facilitate the description of the physical position information of each position on the touch element 2 , in this embodiment, two mutually perpendicular coordinate axes X and Y are used to define the specific orientation of the target position M on the touch element 2 . Therefore, obtaining the physical position information of the target position M on the touch element 2 is obtaining the coordinate values (a, b) of the coordinate axes X and Y corresponding to the target position M, as shown in FIG. 7 .

S502:将物理位置信息与非触摸事件建立关联;S502: Associate the physical location information with the non-touch event;

在本实施例中,由于所要模拟触摸的目标位置在触摸元件上的位置已知,当非触摸事件生成,即意味着对触摸元件上的目标位置进行模拟触摸。这就需要非触摸事件与目标位置的物理位置信息建立关联,即非触摸事件与目标位置的物理位置信息的对应关系,以当该非触摸事件生成时,即进行对触摸元件上对应该非触摸事件的目标位置的模拟触摸。In this embodiment, since the position of the target position on the touch element to be simulated touch is known, when a non-touch event is generated, it means that a simulated touch is performed on the target position on the touch element. This requires the establishment of an association between the non-touch event and the physical position information of the target position, that is, the correspondence between the non-touch event and the physical position information of the target position, so that when the non-touch event is generated, the corresponding non-touch event on the touch element is performed. The simulated touch of the event's target location.

S503:建立非触摸事件与目标位置的映射关系;S503: Establish a mapping relationship between the non-touch event and the target position;

在本实施例中,需要将目标位置的物理位置信息与非触摸事件建立关联,也就是建立非触摸事件与目标位置的映射关系,即将非触摸事件与目标位置进行捆绑。在应用上述实施例所阐述的模拟触控方法中,非触摸事件即描述对其所对应的目标位置进行模拟触摸。In this embodiment, it is necessary to associate the physical location information of the target location with the non-touch event, that is, to establish a mapping relationship between the non-touch event and the target location, that is, to bind the non-touch event and the target location. In applying the simulated touch method described in the above embodiments, the non-touch event describes the simulated touch on the target position corresponding to the non-touch event.

为实现上述方式,就需要在上述实施例所阐述的将非触摸事件转换为触摸事件的环节中,将目标位置在触摸元件上的物理位置信息(即目标位置所对应的坐标轴X、Y的坐标值)添加入触摸事件,以使受控设备接收到该触摸事件后能够解析出所模拟触摸的目标位置在触摸元件上的具体方位。In order to realize the above method, it is necessary to convert the physical position information of the target position on the touch element (that is, the coordinates of the coordinate axes X and Y corresponding to the target position) in the process of converting a non-touch event into a touch event described in the above embodiment. Coordinate value) is added to the touch event, so that after receiving the touch event, the controlled device can parse out the specific orientation of the simulated touch target position on the touch element.

进一步地,与目标位置建立关联的可以是非触摸事件,也可是生成该非触摸事件的结构,亦或是由该非触摸事件所转换而得的触摸事件,在此不做限定。Further, the target position may be associated with a non-touch event, or a structure that generates the non-touch event, or a touch event converted from the non-touch event, which is not limited herein.

并且,非触摸事件与目标位置之间的映射关系可以调整。当非触摸事件所对应触摸元件上进行模拟触摸的位置改变,可以重新绑定非触摸事件与新的目标位置的映射关系。Also, the mapping relationship between the non-touch event and the target position can be adjusted. When the position of the simulated touch on the touch element corresponding to the non-touch event changes, the mapping relationship between the non-touch event and the new target position can be re-bound.

需要说明的是,本发明所阐述的模拟触控方法可以包括有多种非触摸事件,其分别来自于不同的HID设备或是来自同一HID设备上的不同操控端(例如键盘上的不同按键等)。这就需要分别建立各种非触摸事件与触摸元件上对应的目标位置的映射关系,并且各种非触摸事件与触摸元件上对应的目标位置的映射关系能够组成一套映射方案。It should be noted that the simulated touch control method described in the present invention may include a variety of non-touch events, which come from different HID devices or from different control terminals on the same HID device (such as different keys on the keyboard, etc. ). Therefore, it is necessary to establish a mapping relationship between various non-touch events and corresponding target positions on the touch element, and the mapping relationship between various non-touch events and the corresponding target positions on the touch element can form a set of mapping schemes.

可以理解的是,更改至少部分非触摸事件所对应触摸元件上的目标位置,可以组成不同的映射方案,即调整该至少部分非触摸事件所对应的目标位置,以使该至少部分非触摸事件映射触摸元件上的新区域,实现对新区域的模拟触摸。通过上述方式,可以针对不同的应用场景以及操控内容切换不同的映射方案,以避免每次更换应用场景或操控内容时均需要重新建立映射方案,对用户的使用体验造成不良影响。It can be understood that changing the target positions on the touch elements corresponding to at least some non-touch events can form different mapping schemes, that is, adjusting the target positions corresponding to the at least some non-touch events, so that the at least some non-touch events are mapped. Touch a new area on the element to simulate a touch on the new area. In the above manner, different mapping schemes can be switched for different application scenarios and manipulation contents, so as to avoid the need to re-establish the mapping scheme every time the application scenarios or manipulation contents are changed, which will adversely affect the user experience.

进一步地,建立以及记录上述映射关系和/或映射方案的工作可以由安装于受控设备上的应用程序实现。通过在受控设备上安装所述应用程序,该应用程序中记录有非触摸事件与对应目标位置的映射关系以及映射方案。在非触摸事件转换为触摸事件后,由应用程序将目标位置的物理位置信息添加入该触摸事件。并且,由该应用程序检测当前的应用场景以及操控内容,选择合适的映射方案;或是由用户通过该应用程序选择其所需要的映射方案。Further, the work of establishing and recording the above-mentioned mapping relationship and/or mapping scheme may be implemented by an application program installed on the controlled device. By installing the application program on the controlled device, the application program records the mapping relationship between the non-touch event and the corresponding target position and the mapping scheme. After the non-touch event is converted to a touch event, the physical location information of the target location is added to the touch event by the application. In addition, the application program detects the current application scene and the manipulation content, and selects an appropriate mapping scheme; or the user selects the required mapping scheme through the application program.

举例而言,将应用场景设定为游戏手柄应用上述模拟触控方法,实现对受控设备的模拟触控。游戏手柄上通常设置有摇杆以及多个按键,用于输出非触摸事件,并且分别对应受控设备的触摸屏上的一个目标位置,各摇杆以及按键与所对应的目标位置之间的映射关系组成一套映射方案。然而,针对受控设备上不同的终端游戏,游戏手柄上的摇杆以及按键所要模拟触控的目标位置可能不同,因此需要调整映射关系。通过针对不同的操控内容(例如终端游戏等),切换不同的映射方案,能够对游戏手柄上摇杆以及按键所对应的映射关系进行整体快速调整,以快速切换到合适的映射方案,以供用户进行游戏体验。For example, the application scenario is set as the gamepad applying the above-mentioned simulated touch method to realize the simulated touch on the controlled device. The joystick and a plurality of buttons are usually set on the gamepad to output non-touch events, and respectively correspond to a target position on the touch screen of the controlled device, and the mapping relationship between each joystick and the button and the corresponding target position. Form a set of mapping schemes. However, for different terminal games on the controlled device, the target positions of the joysticks and buttons on the gamepad to be simulated may be different, so the mapping relationship needs to be adjusted. By switching between different mapping schemes for different control contents (such as terminal games, etc.), the overall and rapid adjustment of the mapping relationship corresponding to the joystick and buttons on the gamepad can be quickly switched to the appropriate mapping scheme for users Have a gaming experience.

当然,建立以及记录上述映射关系和/或映射方案并不局限于由安装于受控设备上的应用程序实现。作为替代方案,建立以及记录上述映射关系和/或映射方案的执行者可以是一个独立的装置,其与受控设备建立有上述通信连接,能够向受控设备传输经其处理后的触摸事件(例如添加对应的目标位置的物理位置信息等),实现模拟触控。Of course, establishing and recording the above-mentioned mapping relationship and/or mapping scheme is not limited to being implemented by an application program installed on the controlled device. As an alternative, the executor who establishes and records the above-mentioned mapping relationship and/or the mapping scheme may be an independent device, which establishes the above-mentioned communication connection with the controlled device and can transmit the processed touch events to the controlled device ( For example, adding the physical location information of the corresponding target location, etc.) to achieve simulated touch.

以下大致阐述本发明所提供模拟触控方法的一个应用场景,仅为论述需要,并非因此对本发明所提供模拟触控方法的应用场景造成限定。The following roughly describes an application scenario of the simulated touch method provided by the present invention, which is for discussion purposes only, and is not intended to limit the application scenarios of the simulated touch method provided by the present invention.

在本应用场景中,应用本发明所提供模拟触控方法的产品为游戏手柄,游戏手柄自身及其上的物理按键等符合HID类别规范,用于模拟触控与其连接的移动终端(例如智能手机等)。游戏手柄上的物理按键与移动终端触摸屏上的目标位置预先建立有映射关系。其模拟触控过程大致包括以下流程:In this application scenario, the product applying the simulated touch method provided by the present invention is a gamepad, and the gamepad itself and the physical buttons on it conform to the HID category specification, and are used for simulating touch and a mobile terminal (such as a smart phone) connected to it. Wait). A mapping relationship is pre-established between the physical buttons on the game handle and the target position on the touch screen of the mobile terminal. The simulated touch process generally includes the following processes:

1、游戏手柄与移动终端连接,并且游戏手柄将其描述为一触摸屏和/或触摸板HID设备;1. The gamepad is connected to the mobile terminal, and the gamepad describes it as a touch screen and/or touchpad HID device;

2、用户使用游戏手柄,并操控其上的物理按键,以生成非触摸事件;2. The user uses the gamepad and manipulates the physical buttons on it to generate non-touch events;

3、游戏手柄将该非触摸事件转换为触摸事件,并向移动终端传输该触摸事件;3. The gamepad converts the non-touch event into a touch event, and transmits the touch event to the mobile terminal;

4、移动终端接收来自游戏手柄的触摸事件,并且识别该游戏手柄为一触摸屏和/或触摸板,于是将该触摸事件传输至移动终端内的触摸板接口,由触摸板接口向移动终端的处理元件传输触摸事件,并从中解析出移动终端上的触摸元件被触摸以及被触摸的位置(实际上触摸元件并未被触摸),完成模拟触控。4. The mobile terminal receives the touch event from the gamepad, and recognizes that the gamepad is a touch screen and/or touchpad, then transmits the touch event to the touchpad interface in the mobile terminal, and processes the touchpad interface to the mobile terminal. The element transmits the touch event, and parses out the touched and touched position of the touch element on the mobile terminal (actually, the touch element is not touched), and completes the simulated touch.

为解决现有技术中游戏设备的使用便捷性不佳的技术问题,本发明提供一种电子装置,该电子装置应用于模拟触控受控设备,受控设备包括触摸屏以及触摸板接口。电子装置包括处理器以及信号传输器,处理器与信号传输器耦接。信号传输器用于接收非触摸事件,并传输至处理器。处理器用于接收来自信号传输器的非触摸事件,并将非触摸事件转换为触摸事件,以及将触摸事件反馈至信号传输器。信号传输器还用于接收来自处理器的触摸事件,并将触摸事件传输至受控设备,以模拟触摸触摸屏。其中,由受控设备将触摸事件传输至触摸板接口,并且电子装置描述为一触摸屏/触摸板HID设备,用于向触摸板接口传输触摸事件。以下进行详细阐述。In order to solve the technical problem of poor ease of use of game equipment in the prior art, the present invention provides an electronic device, which is applied to simulate a touch controlled device, and the controlled device includes a touch screen and a touch panel interface. The electronic device includes a processor and a signal transmitter, and the processor is coupled to the signal transmitter. The signal transmitter is used to receive non-touch events and transmit them to the processor. The processor is used for receiving non-touch events from the signal transmitter, converting the non-touch events into touch events, and feeding back the touch events to the signal transmitter. The signal transmitter is also used to receive touch events from the processor and transmit the touch events to the controlled device to simulate touching the touch screen. Wherein, the controlled device transmits the touch event to the touch panel interface, and the electronic device is described as a touch screen/touch panel HID device for transmitting the touch event to the touch panel interface. Details are described below.

请参阅图8,图8是本发明电子装置一实施例的结构示意图。Please refer to FIG. 8 , which is a schematic structural diagram of an embodiment of an electronic device of the present invention.

本实施例所阐述的电子装置3作为事件类别转换的媒介,用于实现上述实施例所阐述的模拟触控方法。其产品形态可以为键鼠转换器等,以将非为触摸信号的事件转换为对应的触摸信号,从而完成模拟触摸受控设备上触摸元件的动作。以下进行详细阐述。The electronic device 3 described in this embodiment is used as a medium for event type conversion, and is used to implement the analog touch method described in the above embodiment. Its product form can be a keyboard and mouse converter, etc., to convert events that are not touch signals into corresponding touch signals, so as to complete the action of simulating the touch elements on the touch-controlled device. Details are described below.

在本实施例中,电子装置3应用于模拟触控受控设备。受控设备包括有触摸元件以及触摸板接口。其中,触摸元件以及触摸板接口的技术解释已在上述实施例中详细阐述,在此就不再赘述。In this embodiment, the electronic device 3 is applied to simulate a touch controlled device. The controlled device includes a touch element and a touchpad interface. The technical explanations of the touch element and the touch panel interface have been described in detail in the above embodiments, and will not be repeated here.

在本实施例中,电子装置3包括处理器31以及信号传输器32,处理器31与信号传输器32耦接,处理器31与信号传输器32之间可以通过电路走线等耦接,以传输电信号。In this embodiment, the electronic device 3 includes a processor 31 and a signal transmitter 32, the processor 31 is coupled to the signal transmitter 32, and the processor 31 and the signal transmitter 32 may be coupled through circuit wiring, etc., to transmit electrical signals.

电子装置3实现上述实施例所阐述的模拟触控方法具体可以为:信号传输器32用于接收非触摸事件,并传输至处理器31。处理器31用于接收来自信号传输器32的非触摸事件,并将非触摸事件转换为触摸事件,以及将触摸事件反馈至信号传输器32。信号传输器32还用于接收来自处理器31的触摸事件,并将触摸事件传输至受控设备,以模拟触摸触摸元件。其中,由受控设备将触摸事件传输至触摸板接口。The electronic device 3 implements the analog touch control method described in the above-mentioned embodiments, specifically: the signal transmitter 32 is configured to receive the non-touch event and transmit it to the processor 31 . The processor 31 is used for receiving the non-touch event from the signal transmitter 32 , converting the non-touch event into a touch event, and feeding back the touch event to the signal transmitter 32 . The signal transmitter 32 is also used for receiving the touch event from the processor 31 and transmitting the touch event to the controlled device to simulate touching the touch element. Wherein, the controlled device transmits the touch event to the touch panel interface.

由于非触摸事件转换为触摸事件的过程发生在电子装置3端,并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限,能够简化模拟触控方法的实现过程,改善应用本实施例所阐述电子装置3的游戏设备的使用便捷性。Since the process of converting a non-touch event to a touch event occurs on the electronic device 3 side, not on the controlled device side, the event type conversion does not require specific permissions in the controlled device, which can simplify the implementation process of the simulated touch method. The convenience of use of the game equipment to which the electronic device 3 described in this embodiment is applied is improved.

并且在本实施例中,电子装置3将其自身描述为一触摸屏和/或触摸板HID设备,使得其与受控设备连接之后,受控设备将其识别为一触摸屏和/或触摸板。当受控设备接收到触摸事件后,默认该触摸事件来自于触摸屏和/或触摸板,并将该触摸事件传输至触摸板接口,从而完成对触摸屏的模拟触摸。通过触摸板接口传输触摸事件,无需获取特定的权限即可实现,其等同于受控设备上触摸元件所产生触摸事件的传输过程,因此能够进一步简化模拟触控方法的实现过程。And in this embodiment, the electronic device 3 describes itself as a touch screen and/or touchpad HID device, so that after it is connected to the controlled device, the controlled device recognizes it as a touch screen and/or touchpad. When the controlled device receives the touch event, it defaults that the touch event comes from the touch screen and/or the touch pad, and transmits the touch event to the touch pad interface, thereby completing the simulated touch on the touch screen. The transmission of touch events through the touchpad interface can be achieved without obtaining specific permissions, which is equivalent to the transmission process of touch events generated by touch elements on the controlled device, so the implementation process of the simulated touch method can be further simplified.

进一步地,电子装置3还包括第一端口33,第一端口33与信号传输器32耦接。第一端口33用于与操作装置连接,以接收操作装置生成的非触摸事件并将其传输至信号传输器32,由信号传输器32传输至处理器31进行事件类别转换等工作。Further, the electronic device 3 further includes a first port 33 , and the first port 33 is coupled to the signal transmitter 32 . The first port 33 is used for connecting with the operating device to receive the non-touch event generated by the operating device and transmit it to the signal transmitter 32 , and the signal transmitter 32 transmits it to the processor 31 for event category conversion and other work.

可选地,操作装置可以为符合HID类别规范的HID设备,用于生成非触摸事件。操作装置上可以设置有物理按键(包括按键、摇杆等),其可以是游戏手柄上带有物理按键的组件/部分等;或者,操作装置可以为鼠标、键盘、游戏杆、体感传感器以及感光传感器等符合HID类别规范的设备中的至少一种,用以对受控设备进行模拟触控。Optionally, the operating device may be an HID device conforming to the HID category specification, for generating a non-touch event. The operating device may be provided with physical buttons (including buttons, joysticks, etc.), which may be components/parts with physical buttons on the gamepad, etc.; or, the operating device may be a mouse, a keyboard, a joystick, a somatosensory sensor, and a photosensitive At least one of the devices that conform to the HID category specification, such as sensors, is used to simulate touch on the controlled device.

电子装置3还包括第二端口34,第二端口34与信号传输器32耦接。第二端口34用于与受控设备连接,以将触摸事件传输至受控设备。交由受控设备将触摸事件通过其上的触摸板接口传输至处理元件进行解析,完成对受控设备的触摸元件的模拟触控。The electronic device 3 also includes a second port 34 coupled to the signal transmitter 32 . The second port 34 is used to connect with the controlled device to transmit touch events to the controlled device. The controlled device transmits the touch event to the processing element through the touchpad interface on the controlled device for analysis, and completes the simulated touch on the touch element of the controlled device.

进一步地,向电子装置3输出非触摸事件的操作装置可以不止一个。对应地,电子装置3可以包括多个第一端口33,以针对各操作装置均设置一第一端口33,接收来自对应操作装置的非触摸事件。并且,第一端口33可以为一USB接口,通过数据线连接电子装置3与操作装置,以进行信号交互。Further, there may be more than one operation device outputting non-touch events to the electronic device 3 . Correspondingly, the electronic device 3 may include a plurality of first ports 33, so that each operating device is provided with a first port 33 to receive non-touch events from the corresponding operating device. In addition, the first port 33 can be a USB interface, which connects the electronic device 3 and the operating device through a data cable for signal interaction.

同理,电子装置3控制的受控设备可以不止一个。对应地,电子装置3可以包括多个第二端口34,以针对各受控设备均设置一第二端口34,用于向对应受控设备传输经转换事件类别而得的触摸事件。并且,第二端口34同样也可以为一USB接口,通过数据线连接电子装置3与受控装置,以进行信号交互。Similarly, there may be more than one controlled device controlled by the electronic device 3 . Correspondingly, the electronic device 3 may include a plurality of second ports 34, so that each controlled device is provided with a second port 34 for transmitting the touch event obtained by converting the event type to the corresponding controlled device. In addition, the second port 34 can also be a USB interface, which connects the electronic device 3 and the controlled device through a data cable for signal interaction.

以上可以看出,本发明所提供的电子装置,非触摸事件转换为触摸事件的过程并非发生在受控设备端,而是在电子装置端,其事件类别转换工作无需获取受控设备中特定的权限,因此减少了获取权限的工作,能够简化模拟触控方法的实现过程,改善应用本发明所阐述电子装置的游戏设备的使用便捷性;并且由于电子装置将其自身描述为一触摸屏和/或触摸板HID设备,受控设备将其识别为一触摸屏和/或触摸板,以使触摸事件在受控设备中能够通过触摸板接口进行传输,无需获取传输路径上的权限,以进一步简化模拟触控方法的实现过程。It can be seen from the above that, in the electronic device provided by the present invention, the process of converting a non-touch event into a touch event does not occur on the controlled device side, but on the electronic device side, and the event type conversion work does not need to obtain specific information in the controlled device. Therefore, the work of obtaining the authority is reduced, the implementation process of the simulated touch method can be simplified, and the convenience of use of the game device to which the electronic device described in the present invention is applied can be improved; and since the electronic device describes itself as a touch screen and/or Touchpad HID device, the controlled device recognizes it as a touchscreen and/or touchpad, so that touch events can be transmitted through the touchpad interface in the controlled device, without the need to obtain permissions on the transmission path, to further simplify the simulation of touch implementation of the control method.

请参阅图9,图9是本发明触控系统一实施例的结构示意图。Please refer to FIG. 9 . FIG. 9 is a schematic structural diagram of an embodiment of the touch control system of the present invention.

本实施例提供一种触控系统4用于实现上述实施例所阐述的模拟触控方法。其包括操作装置41、受控设备42以及电子装置43,操作装置41以及受控设备42分别与电子装置43连接。电子装置43应用于模拟触控受控设备42,受控设备42包括触摸元件421以及触摸板接口422。电子装置43包括处理器431以及信号传输器432,处理器431与信号传输器432耦接。其中,电子装置43为上述实施例所阐述的电子装置43,在此就不再赘述。This embodiment provides a touch control system 4 for implementing the simulated touch control method described in the above embodiments. It includes an operating device 41 , a controlled device 42 and an electronic device 43 , and the operating device 41 and the controlled device 42 are respectively connected to the electronic device 43 . The electronic device 43 is applied to simulate a touch controlled device 42 , and the controlled device 42 includes a touch element 421 and a touch panel interface 422 . The electronic device 43 includes a processor 431 and a signal transmitter 432 . The processor 431 is coupled to the signal transmitter 432 . Wherein, the electronic device 43 is the electronic device 43 described in the above-mentioned embodiments, which will not be repeated here.

操作装置41用于生成非触摸事件。电子装置43的信号传输器432用于接收非触摸事件,并传输至电子装置43的处理器431。处理器431用于接收来自信号传输器432的非触摸事件,并将非触摸事件转换为触摸事件,以及将触摸事件反馈至信号传输器432。信号传输器432还用于接收来自处理器431的触摸事件,并将触摸事件传输至受控设备42,以模拟触摸触摸元件421。其中,由受控设备42将触摸事件传输至触摸板接口422。The operating device 41 is used to generate non-touch events. The signal transmitter 432 of the electronic device 43 is used to receive the non-touch event and transmit it to the processor 431 of the electronic device 43 . The processor 431 is configured to receive the non-touch event from the signal transmitter 432 , convert the non-touch event into a touch event, and feed back the touch event to the signal transmitter 432 . The signal transmitter 432 is also used for receiving touch events from the processor 431 and transmitting the touch events to the controlled device 42 to simulate touching the touch element 421 . Wherein, the controlled device 42 transmits the touch event to the touch panel interface 422 .

进一步地,操作装置41与电子装置43之间的连接形式可以采用上述实施例所阐述的有线连接(即端口之间通过数据线连接),其也可以为无线连接。同理,受控设备42与电子装置43之间的连接形式可以采用上述实施例所阐述的有线连接,其也可以为无线连接。Further, the connection form between the operation device 41 and the electronic device 43 may adopt the wired connection described in the above-mentioned embodiments (ie, the ports are connected through a data line), and may also be a wireless connection. Similarly, the connection form between the controlled device 42 and the electronic device 43 may adopt the wired connection described in the above-mentioned embodiment, and may also be a wireless connection.

可选地,上述无线连接可以包括蓝牙通信连接、wifi通信连接、红外线通信连接、运营商网络通信连接(例如2G、3G、4G等通讯技术)等,在此不做限定。Optionally, the above wireless connection may include a Bluetooth communication connection, a wifi communication connection, an infrared communication connection, an operator network communication connection (such as 2G, 3G, 4G and other communication technologies), etc., which are not limited herein.

为解决现有技术中游戏设备的使用便捷性不佳的技术问题,本发明提供一种触控装置组件,该触控装置组件应用于模拟触控受控设备,受控设备包括触摸元件以及触摸板接口,触控装置组件包括操作装置、转换装置以及信号传输器,操作装置以及信号传输器分别与转换装置连接。操作装置上设置有物理按键,用于生成非触摸事件,操作装置用于将非触摸事件传输至转换装置。转换装置用于接收非触摸事件,并将非触摸事件转换为触摸事件,以及将触摸事件传输至信号传输器。信号传输器用于接收触摸事件,并将触摸事件传输至受控设备,以模拟触摸触摸元件。其中,由受控设备将触摸事件传输至触摸板接口,并且触控装置组件描述为一触摸屏/触摸板HID设备,用于向触摸板接口传输触摸事件。以下进行详细阐述。In order to solve the technical problem of poor ease of use of game equipment in the prior art, the present invention provides a touch control device assembly, the touch control device assembly is applied to simulate a touch controlled device, and the controlled device includes a touch element and a touch control device. The board interface, the touch device assembly includes an operation device, a conversion device and a signal transmitter, and the operation device and the signal transmitter are respectively connected with the conversion device. The operating device is provided with physical keys for generating non-touch events, and the operating device is used for transmitting the non-touch events to the converting device. The conversion device is used for receiving the non-touch event, converting the non-touch event into a touch event, and transmitting the touch event to the signal transmitter. The signal transmitter is used to receive touch events and transmit the touch events to the controlled device to simulate touching the touch element. Wherein, the controlled device transmits the touch event to the touch panel interface, and the touch device component is described as a touch screen/touch panel HID device for transmitting the touch event to the touch panel interface. Details are described below.

请参阅图10,图10是本发明触控装置组件一实施例的结构示意图。Please refer to FIG. 10 . FIG. 10 is a schematic structural diagram of an embodiment of the touch device assembly of the present invention.

本实施例所阐述的触控装置组件5用于生成非触摸事件以及作为事件类别转换的媒介,以实现上述实施例所阐述的模拟触控方法。以下进行详细阐述。The touch device component 5 described in this embodiment is used for generating non-touch events and as a medium for event type conversion, so as to realize the simulated touch method described in the above embodiments. Details are described below.

在本实施例中,触控装置组件5应用于模拟触控受控设备。受控设备包括有触摸元件以及触摸板接口。其中,触摸元件以及触摸板接口的技术解释已在上述实施例中详细阐述,在此就不再赘述。In this embodiment, the touch device component 5 is applied to simulate a touch controlled device. The controlled device includes a touch element and a touchpad interface. The technical explanations of the touch element and the touch panel interface have been described in detail in the above embodiments, and will not be repeated here.

在本实施例中,触控装置组件5包括操作装置51、转换装置52以及信号传输器53,操作装置51以及信号传输器53分别与转换装置52连接。触控装置组件5实现上述实施例所阐述的模拟触控方法具体可以为:In this embodiment, the touch device assembly 5 includes an operation device 51 , a conversion device 52 and a signal transmitter 53 , and the operation device 51 and the signal transmitter 53 are respectively connected to the conversion device 52 . The touch device component 5 implements the simulated touch control method described in the above-mentioned embodiments, which may specifically be as follows:

操作装置51用于生成非触摸事件,操作装置51用于将非触摸事件传输至转换装置52。转换装置52用于接收非触摸事件,并将非触摸事件转换为触摸事件,以及将触摸事件传输至信号传输器53。信号传输器53用于接收触摸事件,并将触摸事件传输至受控设备,以模拟触摸触摸元件。其中,由受控设备将触摸事件传输至触摸板接口,并且触控装置组件5描述为一触摸屏/触摸板HID设备,用于向触摸板接口传输触摸事件。The operating device 51 is used for generating a non-touch event, and the operating device 51 is used for transmitting the non-touch event to the converting device 52 . The converting device 52 is used for receiving the non-touch event, converting the non-touch event into a touch event, and transmitting the touch event to the signal transmitter 53 . The signal transmitter 53 is used for receiving the touch event and transmitting the touch event to the controlled device to simulate touching the touch element. Wherein, the controlled device transmits the touch event to the touch panel interface, and the touch device component 5 is described as a touch screen/touch panel HID device for transmitting the touch event to the touch panel interface.

由于非触摸事件转换为触摸事件的过程发生在触控装置组件5端,并非发生在受控设备端,其事件类别转换工作无需获取受控设备中特定的权限,能够简化模拟触控方法的实现过程,改善触控装置组件5的使用便捷性。Since the process of converting a non-touch event to a touch event occurs on the touch device component 5, not on the controlled device, the event category conversion does not require specific permissions in the controlled device, which simplifies the implementation of the simulated touch method. In the process, the convenience of use of the touch device assembly 5 is improved.

并且在本实施例中,触控装置组件5将其自身描述为一触摸屏和/或触摸板HID设备,使得其与受控设备连接之后,受控设备将其识别为一触摸屏和/或触摸板。当受控设备接收到触摸事件后,默认该触摸事件来自于触摸屏和/或触摸板,并将该触摸事件传输至触摸板接口,从而完成对触摸屏的模拟触摸。通过触摸板接口传输触摸事件,无需获取特定的权限即可实现,其等同于受控设备上触摸元件所产生触摸事件的传输过程,因此能够进一步简化模拟触控方法的实现过程。And in this embodiment, the touch device component 5 describes itself as a touch screen and/or touch pad HID device, so that after it is connected to the controlled device, the controlled device recognizes it as a touch screen and/or touch pad. . When the controlled device receives the touch event, it defaults that the touch event comes from the touch screen and/or the touch pad, and transmits the touch event to the touch pad interface, thereby completing the simulated touch on the touch screen. The transmission of touch events through the touchpad interface can be achieved without obtaining specific permissions, which is equivalent to the transmission process of touch events generated by touch elements on the controlled device, so the implementation process of the simulated touch method can be further simplified.

本实施例所阐述触控装置组件5的产品形态可以为游戏手柄,其操作装置51上设置有物理按键,例如按键511、摇杆512等,用于生成非触摸事件。用户操控操作装置51上的物理按键时,能够驱使操作装置51生成相应的非触摸事件,以对受控设备上的触摸元件进行模拟触摸。The product form of the touch device assembly 5 described in this embodiment may be a gamepad, and the operation device 51 is provided with physical keys, such as keys 511 and joysticks 512, for generating non-touch events. When the user manipulates the physical keys on the operating device 51, the operating device 51 can be driven to generate a corresponding non-touch event, so as to simulate a touch on the touch element on the controlled device.

当然,在本发明的其他实施例中,操作装置51可以为鼠标、键盘、游戏杆、体感传感器以及感光传感器等符合HID类别规范的设备中的至少一种,从而形成不同于游戏手柄的产品形态。Of course, in other embodiments of the present invention, the operating device 51 may be at least one of a mouse, a keyboard, a joystick, a somatosensory sensor, a photosensitive sensor, and other devices that conform to the HID category specification, so as to form a product form different from a gamepad .

进一步地,触控装置组件5还包括连接装置54。连接装置54、操作装置51、转换装置52以及信号传输器53为一体结构,连接装置54用于装配并固定受控设备。用户在使用触控装置组件5控制受控设备的过程中,触控装置组件5与受控设备采用装配于一体的结构形式,能够便于用户握持住触控装置组件5和/或受控设备,以提高触控装置组件5的使用便捷性,从而改善用户的使用体验。Further, the touch device assembly 5 further includes a connecting device 54 . The connecting device 54 , the operating device 51 , the converting device 52 and the signal transmitter 53 are integrated into one structure, and the connecting device 54 is used for assembling and fixing the controlled equipment. When the user uses the touch device assembly 5 to control the controlled device, the touch device assembly 5 and the controlled device adopt an integrated structure, which can facilitate the user to hold the touch device assembly 5 and/or the controlled device. , so as to improve the convenience of use of the touch device assembly 5 , thereby improving the user experience.

进一步地,操作装置51上的物理按键可以包括至少一个按键511以及摇杆512。其中,摇杆512以及至少部分按键511设置于操作装置51的顶面,以供用户左右手的拇指操控;并且,至少部分的按键511可以设置于操作装置51的侧面,供用户左右手的食指操控。Further, the physical keys on the operating device 51 may include at least one key 511 and a joystick 512 . The joystick 512 and at least some of the buttons 511 are disposed on the top surface of the operating device 51 for manipulation by the thumbs of the user's left and right hands; and at least part of the buttons 511 can be disposed on the side of the operating device 51 for manipulation by the index fingers of the user's left and right hands.

需要说明的是,操作装置51上的各按键511以及摇杆512分别对应一种非触摸事件,即对应模拟触摸受控设备上触摸元件的一个目标位置。当然,在其他实施例中,一个按键511或摇杆512可以同时对应多个目标位置,或是一个目标位置对应有多个按键511和/或摇杆512,在此不做限定。It should be noted that each key 511 and the joystick 512 on the operating device 51 respectively correspond to a non-touch event, that is, correspond to a target position of a touch element on the simulated touch-controlled device. Of course, in other embodiments, one key 511 or joystick 512 may correspond to multiple target positions at the same time, or one target position may correspond to multiple keys 511 and/or joysticks 512 , which is not limited herein.

在本发明的其他实施例中,操作装置、转换装置以及信号传输器相互独立。操作装置与转换装置,以及信号传输器与转换装置之间的连接形式为有线连接或无线连接。其中,无线连接形式可以包括蓝牙通信连接、wifi通信连接、红外线通信连接、运营商网络通信连接等。In other embodiments of the present invention, the operating device, the switching device and the signal transmitter are independent of each other. The connection form between the operation device and the conversion device, and the signal transmitter and the conversion device is a wired connection or a wireless connection. The wireless connection form may include Bluetooth communication connection, wifi communication connection, infrared communication connection, operator network communication connection, and the like.

以上可以看出,本发明所提供的触控装置组件,非触摸事件转换为触摸事件的过程并非发生在受控设备端,而是在触控装置组件端,其事件类别转换工作无需获取受控设备中特定的权限,因此减少了获取权限的工作,能够简化模拟触控方法的实现过程,改善触控装置组件的使用便捷性;并且由于触控装置组件将其自身描述为一触摸屏和/或触摸板HID设备,受控设备将其识别为一触摸屏和/或触摸板,以使触摸事件在受控设备中能够通过触摸板接口进行传输,无需获取传输路径上的权限,以进一步简化模拟触控方法的实现过程。It can be seen from the above that, in the touch device component provided by the present invention, the process of converting a non-touch event into a touch event does not occur on the controlled device side, but on the touch device component side, and the event type conversion work does not need to obtain controlled There are specific permissions in the device, thus reducing the work of obtaining permissions, simplifying the implementation process of the simulated touch method, and improving the convenience of use of the touch device component; and because the touch device component describes itself as a touch screen and/or Touchpad HID device, the controlled device recognizes it as a touchscreen and/or touchpad, so that touch events can be transmitted through the touchpad interface in the controlled device, without the need to obtain permissions on the transmission path, to further simplify the simulation of touch implementation of the control method.

请参阅图11,图11是本发明触控系统另一实施例的结构示意图。Please refer to FIG. 11 , which is a schematic structural diagram of another embodiment of the touch control system of the present invention.

在本实施例中,触控系统6包括触控装置组件61以及受控设备62,触控装置组件61与受控设备62连接,触控装置组件61应用于模拟触控受控设备62,受控设备62包括触摸元件621以及触摸板接口622,触控装置组件61包括操作装置611、转换装置612以及信号传输器613,操作装置611以及信号传输器613分别与转换装置612连接。In this embodiment, the touch system 6 includes a touch device component 61 and a controlled device 62 , the touch device component 61 is connected to the controlled device 62 , and the touch device component 61 is applied to simulate the touch controlled device 62 , and is controlled by The control device 62 includes a touch element 621 and a touch panel interface 622 . The touch device component 61 includes an operation device 611 , a conversion device 612 and a signal transmitter 613 . The operation device 611 and the signal transmitter 613 are respectively connected to the conversion device 612 .

触控系统6实现上述实施例所阐述的模拟触控方法具体可以为:操作装置611上设置有物理按键6111,用于生成非触摸事件,操作装置611用于将非触摸事件传输至转换装置612。转换装置612用于接收非触摸事件,并将非触摸事件转换为触摸事件,以及将触摸事件传输至信号传输器613。信号传输器613用于接收触摸事件,并将触摸事件传输至受控设备62,以模拟触摸触摸元件621。其中,由受控设备62将触摸事件传输至触摸板接口622,并且触控装置组件61描述为一触摸屏/触摸板HID设备,用于向触摸板接口622传输触摸事件。The touch-control system 6 can implement the simulated touch-control method described in the above-mentioned embodiments as follows: the operation device 611 is provided with a physical button 6111 for generating a non-touch event, and the operation device 611 is used for transmitting the non-touch event to the conversion device 612 . The converting device 612 is used for receiving the non-touch event, converting the non-touch event into a touch event, and transmitting the touch event to the signal transmitter 613 . The signal transmitter 613 is used for receiving touch events and transmitting the touch events to the controlled device 62 to simulate touching the touch element 621 . The controlled device 62 transmits touch events to the touch panel interface 622 , and the touch device component 61 is described as a touch screen/touch panel HID device for transmitting touch events to the touch panel interface 622 .

请参阅图12,图12是本发明具有存储功能的装置一实施例的结构示意图。Please refer to FIG. 12. FIG. 12 is a schematic structural diagram of an embodiment of a device with a storage function of the present invention.

在本实施例中,具有存储功能的装置7包括有程序数据71,程序数据71能够被执行以实现如上述实施例所阐述的模拟触控方法,在此就不再赘述。In this embodiment, the device 7 with a storage function includes program data 71 , and the program data 71 can be executed to implement the simulated touch method described in the above-mentioned embodiments, which will not be repeated here.

在本发明所提供的几个实施方式中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the device implementations described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other divisions. For example, multiple units or components may be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this implementation manner.

另外,在本发明各个实施方式中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above description is only an embodiment of the present invention, and is not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied to other related technologies Fields are similarly included in the scope of patent protection of the present invention.

Claims (10)

1.一种电子装置,其特征在于,所述电子装置应用于模拟触控受控设备,所述受控设备包括触摸元件以及触摸板接口,所述触摸板接口用于接收来自触摸屏和/或触摸板的触摸事件,所述电子装置包括处理器以及信号传输器,所述处理器与所述信号传输器耦接;1. An electronic device, characterized in that, the electronic device is applied to a simulated touch-controlled device, and the controlled device includes a touch element and a touch panel interface, and the touch panel interface is used to receive data from a touch screen and/or a touch event of a touch panel, the electronic device includes a processor and a signal transmitter, the processor is coupled to the signal transmitter; 所述信号传输器用于连接操作装置,以接收操作装置生成的非触摸事件,并传输至所述处理器;The signal transmitter is used to connect the operating device to receive the non-touch event generated by the operating device and transmit it to the processor; 所述处理器用于接收来自所述信号传输器的所述非触摸事件,并将所述非触摸事件转换为触摸事件,以及将所述触摸事件反馈至所述信号传输器,其中通过将所述非触摸事件的报告描述符更改为用于描述所述触摸事件的报告描述符,以使所述非触摸事件转换为所述触摸事件;The processor is configured to receive the non-touch event from the signal transmitter, convert the non-touch event into a touch event, and feed back the touch event to the signal transmitter, wherein by converting the non-touch event to the signal transmitter A report descriptor of a non-touch event is changed to a report descriptor for describing the touch event, so that the non-touch event is converted to the touch event; 所述信号传输器还用于接收来自所述处理器的所述触摸事件,并将所述触摸事件传输至所述受控设备,以模拟触摸所述触摸元件;其中,由所述受控设备将所述触摸事件传输至所述触摸板接口,并且所述电子装置描述为一触摸屏/触摸板HID设备,用于向所述触摸板接口传输所述触摸事件,并且所述电子装置使用触摸屏或触摸板的用法声明应用程序集合,以正确识别所述电子装置的HID设备类别。The signal transmitter is further configured to receive the touch event from the processor and transmit the touch event to the controlled device to simulate touching the touch element; wherein the controlled device transmits the touch event to the touchpad interface and the electronic device is described as a touchscreen/touchpad HID device for transmitting the touch event to the touchpad interface and the electronic device uses a touchscreen or The usage of the touchpad declares a collection of applications to correctly identify the HID device class of the electronic device. 2.根据权利要求1所述的电子装置,其特征在于,所述电子装置还包括第一端口,所述第一端口与所述信号传输器耦接,所述第一端口用于与操作装置连接,以接收所述操作装置生成的所述非触摸事件并传输至所述信号传输器。2 . The electronic device according to claim 1 , wherein the electronic device further comprises a first port, the first port is coupled to the signal transmitter, and the first port is used to communicate with an operating device. 3 . connected to receive the non-touch event generated by the operating device and transmit it to the signal transmitter. 3.根据权利要求2所述的电子装置,其特征在于,所述电子装置包括多个所述第一端口,并且所述第一端口为USB接口。3 . The electronic device according to claim 2 , wherein the electronic device comprises a plurality of the first ports, and the first ports are USB interfaces. 4 . 4.根据权利要求2所述的电子装置,其特征在于,所述操作装置上设置有物理按键,用于生成所述非触摸事件;或4. The electronic device according to claim 2, wherein a physical button is provided on the operating device for generating the non-touch event; or 所述操作装置为鼠标、键盘、游戏杆、体感传感器以及感光传感器中的至少一种。The operating device is at least one of a mouse, a keyboard, a joystick, a somatosensory sensor and a photosensitive sensor. 5.根据权利要求1所述的电子装置,其特征在于,所述电子装置还包括第二端口,所述第二端口与所述信号传输器耦接,所述第二端口用于与所述受控设备连接,以将所述触摸事件传输至所述受控设备。5 . The electronic device according to claim 1 , wherein the electronic device further comprises a second port, the second port is coupled with the signal transmitter, and the second port is used for connecting with the signal transmitter. 6 . A controlled device is connected to transmit the touch event to the controlled device. 6.根据权利要求5所述的电子装置,其特征在于,所述电子装置包括多个所述第二端口,并且所述第二端口为USB接口。6 . The electronic device according to claim 5 , wherein the electronic device comprises a plurality of the second ports, and the second ports are USB interfaces. 7 . 7.一种触控系统,其特征在于,所述触控系统包括操作装置、受控设备以及电子装置,所述操作装置以及所述受控设备分别与所述电子装置连接,所述电子装置应用于模拟触控所述受控设备,所述受控设备包括触摸元件以及触摸板接口,所述触摸板接口用于接收来自触摸屏和/或触摸板的触摸事件,所述电子装置包括处理器以及信号传输器,所述处理器与所述信号传输器耦接;7. A touch control system, characterized in that the touch control system comprises an operating device, a controlled device and an electronic device, the operating device and the controlled device are respectively connected to the electronic device, and the electronic device Applied to simulating touch control of the controlled device, the controlled device includes a touch element and a touchpad interface, the touchpad interface is used to receive touch events from a touchscreen and/or a touchpad, and the electronic device includes a processor and a signal transmitter, the processor is coupled to the signal transmitter; 所述操作装置用于生成非触摸事件;The operating device is used to generate a non-touch event; 所述电子装置的信号传输器用于接收所述非触摸事件,并传输至所述电子装置的处理器;The signal transmitter of the electronic device is configured to receive the non-touch event and transmit it to the processor of the electronic device; 所述处理器用于接收来自所述信号传输器的所述非触摸事件,并将所述非触摸事件转换为触摸事件,以及将所述触摸事件反馈至所述信号传输器,其中通过将所述非触摸事件的报告描述符更改为用于描述所述触摸事件的报告描述符,以使所述非触摸事件转换为所述触摸事件;The processor is configured to receive the non-touch event from the signal transmitter, convert the non-touch event into a touch event, and feed back the touch event to the signal transmitter, wherein by converting the non-touch event to the signal transmitter A report descriptor of a non-touch event is changed to a report descriptor for describing the touch event, so that the non-touch event is converted to the touch event; 所述信号传输器还用于接收来自所述处理器的所述触摸事件,并将所述触摸事件传输至所述受控设备,以模拟触摸所述触摸元件;其中,由所述受控设备将所述触摸事件传输至所述触摸板接口,并且所述电子装置描述为一触摸屏/触摸板HID设备,用于向所述触摸板接口传输所述触摸事件,并且所述电子装置使用触摸屏或触摸板的用法声明应用程序集合,以正确识别所述电子装置的HID设备类别。The signal transmitter is further configured to receive the touch event from the processor and transmit the touch event to the controlled device to simulate touching the touch element; wherein the controlled device transmits the touch event to the touchpad interface and the electronic device is described as a touchscreen/touchpad HID device for transmitting the touch event to the touchpad interface and the electronic device uses a touchscreen or The usage of the touchpad declares a collection of applications to correctly identify the HID device class of the electronic device. 8.根据权利要求7所述的触控系统,其特征在于,所述操作装置与所述电子装置之间的连接形式为无线连接。8 . The touch control system according to claim 7 , wherein the connection between the operating device and the electronic device is a wireless connection. 9 . 9.根据权利要求8所述的触控系统,其特征在于,所述受控设备与所述电子装置之间的连接形式为无线连接。9 . The touch control system according to claim 8 , wherein the connection between the controlled device and the electronic device is a wireless connection. 10 . 10.根据权利要求9所述的触控系统,其特征在于,所述无线连接包括蓝牙通信连接、wifi通信连接、红外线通信连接、运营商网络通信连接。10 . The touch control system according to claim 9 , wherein the wireless connection includes a Bluetooth communication connection, a wifi communication connection, an infrared communication connection, and an operator network communication connection. 11 .
CN201810935486.6A 2018-08-16 2018-08-16 Electronic device and touch system Active CN109407823B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201810935486.6A CN109407823B (en) 2018-08-16 2018-08-16 Electronic device and touch system
PCT/CN2019/073520 WO2020034602A1 (en) 2018-08-16 2019-01-28 Touch control simulation method, apparatus, and system
US16/768,710 US20210170274A1 (en) 2018-08-16 2019-01-28 Simulatively-touch method, simulatively-touch device, and touch control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810935486.6A CN109407823B (en) 2018-08-16 2018-08-16 Electronic device and touch system

Publications (2)

Publication Number Publication Date
CN109407823A CN109407823A (en) 2019-03-01
CN109407823B true CN109407823B (en) 2020-10-20

Family

ID=65464355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810935486.6A Active CN109407823B (en) 2018-08-16 2018-08-16 Electronic device and touch system

Country Status (1)

Country Link
CN (1) CN109407823B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929688A (en) * 2012-10-30 2013-02-13 Tcl通讯(宁波)有限公司 Method for realizing simulator for simulating touch screen and simulator
CN107665042A (en) * 2012-03-26 2018-02-06 苹果公司 The virtual touchpad and touch-screen of enhancing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7625287B2 (en) * 2005-10-05 2009-12-01 Nintendo Co., Ltd. Driving game steering wheel simulation method and apparatus
JP2013008365A (en) * 2011-06-23 2013-01-10 Ailive Inc Remote control with motion sensitive devices
TWM474173U (en) * 2013-02-06 2014-03-11 Areson Technology Corp Mouse module with operation of simulating touch screen
CN107329591A (en) * 2017-07-04 2017-11-07 苏州运智互动科技有限公司 The method that wireless body-sensing dual-handle simulates 2 touch screens
CN107890666A (en) * 2017-10-27 2018-04-10 上海飞智电子科技有限公司 Touch-control handheld device and its entertainment systems of application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665042A (en) * 2012-03-26 2018-02-06 苹果公司 The virtual touchpad and touch-screen of enhancing
CN102929688A (en) * 2012-10-30 2013-02-13 Tcl通讯(宁波)有限公司 Method for realizing simulator for simulating touch screen and simulator

Also Published As

Publication number Publication date
CN109407823A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN102566754B (en) Mobile device and the computing system including mobile device
EP2752749A1 (en) Processing method of touch screen device user interface and touch screen device
CN202050483U (en) Remote controller
US20200298101A1 (en) Touch control handle device and entertainment system using same
CN102629166A (en) Device for controlling computer and method for controlling computer through device
CN202197354U (en) Remote controller
CN105183236A (en) Touch screen input device and method
CN108031112A (en) Game paddle for control terminal
US20190212911A1 (en) Control input system
CN108064372A (en) Head-mounted display apparatus and its content input method
US7836461B2 (en) Computer interface system using multiple independent hardware and virtual human-computer input devices and related enabling subroutines
CN101303630B (en) Wireless control device and multi-indicator control method
CN108897457B (en) Touch device components and touch systems
CN109407823B (en) Electronic device and touch system
WO2020034602A1 (en) Touch control simulation method, apparatus, and system
US20190041997A1 (en) Pointer control in a handheld computer by way of hid commands
WO2020034603A1 (en) Analog touch control method, and touch control apparatus assembly and system
CN109254714A (en) Simulate touch control method and touch device component
JP3211484U (en) Tactile controller
CN101995982B (en) Multi-computer management device
CN109271056A (en) Analog touch method and device
CN208903228U (en) Touch device component and touch-control system
CN104657066A (en) Back control device utilization method
CN103092385B (en) General programmable touch display device
TW202230098A (en) Electronic device

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