CN108628650B - Touch event processing method and device and intelligent interaction equipment - Google Patents

Touch event processing method and device and intelligent interaction equipment Download PDF

Info

Publication number
CN108628650B
CN108628650B CN201810229817.4A CN201810229817A CN108628650B CN 108628650 B CN108628650 B CN 108628650B CN 201810229817 A CN201810229817 A CN 201810229817A CN 108628650 B CN108628650 B CN 108628650B
Authority
CN
China
Prior art keywords
touch event
target application
touch
forwarded
events
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
CN201810229817.4A
Other languages
Chinese (zh)
Other versions
CN108628650A (en
Inventor
向淘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810229817.4A priority Critical patent/CN108628650B/en
Publication of CN108628650A publication Critical patent/CN108628650A/en
Priority to PCT/CN2018/112716 priority patent/WO2019179104A1/en
Application granted granted Critical
Publication of CN108628650B publication Critical patent/CN108628650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/046Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The invention discloses a touch event processing method and device and intelligent interaction equipment. Wherein, the method comprises the following steps: a first system intercepts touch events of a preset type, wherein the first system is a system of the equipment; and the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system accessing the equipment through an external channel, and the target application in the second system responds to the touch event. The invention solves the technical problem that in the dual system in the prior art, when an externally accessed system runs a plurality of application programs, the application programs on the lower layer lose focus, so that the dual system cannot run normally.

Description

Touch event processing method and device and intelligent interaction equipment
Technical Field
The invention relates to the field of computers, in particular to a touch event processing method and device and intelligent interaction equipment.
Background
For a dual system device, having a main system provided by the device itself and other systems accessed through the interface, taking Android TV as an example, the device is provided with interfaces such as HDMI/VGA besides the Android module, the interfaces can display the pictures of the Windows/Android/Mac OS/Linux system and the like, namely, the Android TV provides a display channel for other systems supporting picture output such as HDMI to display, at this time, two system pictures are displayed on the Android TV display screen, one is the picture of the Android TV system and the picture of external channels such as HDMI, when the picture of the Android TV has a partial hollow (transparent) area, the picture of the external channel can be displayed, so that the pictures of the two systems can be displayed, and at the moment, if the touch data of the Android TV is transmitted to the external channel input system in real time, the external channel input system can be operated.
In a dual system, when the system runs multiple applications such that there are multiple windows, only one of the application's windows can get focus. When a touch event occurs, focus switching is performed, the clicked window gets focus, and the previous window loses focus.
For example: and running a full-screen playing PPT through an external channel access point system, starting an annotation application by a user, wherein the annotation application is positioned above the PPT playing application, and when a finger touches a screen for annotation, the PPT application loses focus, so that the playing is stopped.
Aiming at the problem that in a dual system in the prior art, when an externally accessed system runs a plurality of application programs, the application programs on the lower layer lose focus and cannot run normally, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing a touch event and intelligent interaction equipment, which are used for at least solving the technical problem that in a dual system in the prior art, when an externally accessed system runs a plurality of application programs, the lower-layer application programs lose focus and cannot run normally.
According to an aspect of the embodiments of the present invention, there is provided a method for processing a touch event, including: a first system intercepts touch events of a preset type, wherein the first system is a system of the equipment; and the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system accessing the equipment through an external channel, and the target application in the second system responds to the touch event.
Further, the target application in the second system has an interface corresponding to the first system, and the first system forwards the intercepted touch event to the process of the target application in the second system through the interface.
Further, before the first system intercepts the touch event of the predetermined type, the first system receives a prohibition instruction, wherein the prohibition instruction is issued after the second system starts the target application, and is used for controlling the first system to prohibit forwarding the touch event of the predetermined type to the system process of the second system.
Further, the target application is an annotation application, and the annotation application generates an annotation track according to the touch event.
Further, the predetermined type of touch event is an electromagnetic touch event.
According to an aspect of the embodiments of the present invention, there is provided a method for processing a touch event, including: monitoring a touch event forwarded by a first system by a target application of a second system, wherein the first system sends the touch event of a predetermined type to the target application of the second system, the first system is a system of the device itself, and the second system is a system accessing the device through an external channel; the target application in the second system responds to the received touch event.
Further, the target application in the second system has an interface corresponding to the first system, and the target application of the second system listens to the touch event forwarded by the first system through the interface.
Further, before the target application of the second system monitors the touch event forwarded by the first system, after the target application is started, the second system sends a prohibition instruction to the first system, wherein the prohibition instruction is used for controlling the first system to prohibit forwarding of the touch event of the predetermined type to the system process of the second system.
According to an aspect of an embodiment of the present invention, there is provided an intelligent interactive device, including: the method comprises the steps that a first system of the intelligent interaction equipment intercepts touch events of a preset type and forwards the touch events to a process of a target application in a second system; and accessing a second system of the intelligent interaction device through the external channel, wherein the target application in the second system responds to the received touch event.
Further, the target application in the second system has an interface corresponding to the first system, and the first system is used for forwarding the touch event to the process of the target application in the second system through the interface.
Further, the second system is further configured to start the target application, and send a prohibition instruction to the first system, where the prohibition instruction is used to control the first system to prohibit forwarding the touch event to a system process of the second system.
According to an aspect of the embodiments of the present invention, there is provided a touch event processing apparatus, including: the intercepting module is used for intercepting a touch event of a preset type by a first system, wherein the first system is a system of the equipment; and the forwarding module is used for the first system to forward the intercepted touch event to the process of the target application in the second system, wherein the second system is a system which accesses the equipment through an external channel, and the target application in the second system responds to the touch event.
According to an aspect of the embodiments of the present invention, there is provided a touch event processing apparatus, including: the monitoring module is used for monitoring the touch event forwarded by the first system by the target application of the second system, wherein the first system sends the touch event of the preset type to the target application of the second system, the first system is a system of the device, and the second system is a system which is accessed into the device through an external channel; and the response module is used for responding the received touch event by the target application in the second system.
According to an aspect of the embodiments of the present invention, there is provided a storage medium including a stored program, wherein, when the program is executed, a device on which the storage medium is located is controlled to perform the following steps: a first system intercepts touch events of a preset type, wherein the first system is a system of the equipment; and the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system accessing the equipment through an external channel, and the target application in the second system responds to the touch event.
According to an aspect of the embodiments of the present invention, there is provided a processor, configured to execute a program, where the program executes the following steps: a first system intercepts touch events of a preset type, wherein the first system is a system of the equipment; and the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system accessing the equipment through an external channel, and the target application in the second system responds to the touch event.
In the embodiment of the invention, a first system intercepts a touch event of a predetermined type, wherein the first system is a system of the device, the first system forwards the touch event to a process of a target application in a second system, the second system is a system accessing the device through an external channel, and the target application in the second system responds to the touch event. According to the scheme, the touch event of the preset type is directly forwarded to the process of the target application through the first system, so that the touch event for controlling the target application cannot be distributed through the second system, and therefore, the currently running program of the second system does not lose focus.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of processing a touch event according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of processing touch events according to an embodiment of the invention;
FIG. 3 is a flow chart of an alternative method of processing touch events according to embodiments of the present invention;
FIG. 4 is a schematic diagram of an intelligent interaction device, according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a processing device for touch events according to an embodiment of the present invention; and
FIG. 6 is a schematic diagram of a processing device for touch events according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for processing touch events, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that herein.
Fig. 1 is a flowchart of a method for processing a touch event according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, a first system intercepts touch events of a preset type, wherein the first system is a system of the equipment.
Specifically, the touch event is generated by a user operating a touch frame, in an optional embodiment, taking an intelligent interactive tablet with an Android system as an example, a first system of the intelligent interactive tablet is an Android system and is implemented by an Android module integrated in the intelligent interactive tablet, and when the intelligent interactive tablet provides an HDMI/VGA interface, a PC module (e.g., a Windows module, an Android module, a Mac OS module, Linux, etc.) may be inserted through the interface to obtain a second system of the intelligent interactive tablet.
The predetermined type of touch event is a touch event for controlling the target application, the type of the touch event may be determined according to a generation manner of the touch event, and may include an electromagnetic touch event, a capacitive touch event, an infrared touch event, and the like. In an alternative embodiment, in the case that annotation is required when the second system plays the PPT, the annotation can be implemented by writing an event, so that a predetermined type of touch event can be set as an electromagnetic touch event.
And step S104, the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system which accesses the equipment through an external channel, and the target application in the second system responds to the touch event.
Specifically, the target application may be an application that needs to be superimposed on an upper layer of another application for use, such as an annotation application.
In this case, the first system may actually serve as a virtual touch frame of the second system, and after the touch event is forwarded to the second system by the first system, the touch event is distributed to a corresponding application by the second system, thereby causing focus switching. In the above steps, the first system directly forwards the touch event to the process of the target application in the second system, so that the application in the second system below the target application is not out of focus.
In step S104, the touch event obtained by the target application of the second system may be responded to. In an alternative embodiment, the target application is an annotation application, and the annotation application of the second system generates an annotation track according to the touch event.
It should be noted here that since the touch event received by the target application is not distributed by the second system, the application underlying the target application is not out of focus. And because the touch events of the preset type are intercepted by the first system and directly forwarded to the target application, the touch events of other types are still forwarded to the second system by the first system and are distributed by the second system, and therefore the control of the application below the target application can be continued through the touch events of other types.
In an alternative embodiment, the PPT application is still running on the second system, and the target application is an annotation application in the second system. And when the second system plays PPT, starting an annotation application, wherein the annotation application is applied to the upper layer of the PPT, if the first system forwards all touch events to the annotation application according to the normal forwarding flow of the touch events, the PPT application loses focus, and the playing is stopped. According to the scheme provided by the application, the second system can directly forward the electromagnetic touch event to the process of the annotation application of the second system, so that the electromagnetic touch event is not distributed by the second system, and therefore the PPT application is not out of focus. The user can annotate with the electromagnetic pen, and the user can control the PPT to play with the finger.
As can be seen from the above, in the above embodiments of the present application, the first system intercepts a predetermined type of touch event, where the first system is a system of the device itself, and forwards the touch event to a process of a target application in the second system, where the second system is a system accessing the device through an external channel, and the target application in the second system responds to the touch event. According to the scheme, the touch event of the preset type is directly forwarded to the process of the target application through the first system, so that the touch event for controlling the target application cannot be distributed through the second system, and therefore, the currently running program of the second system does not lose focus.
Optionally, according to the foregoing embodiment of the present application, the target application in the second system has an interface corresponding to the first system, and the process of forwarding the intercepted touch event to the target application in the second system by the first system includes: the first system forwards the intercepted touch event to a process of a target application in the second system through an interface.
In order for the first system to be able to forward a predetermined type of touch event directly to a target application in the second system without passing through a system process of the second system, an interface of the first system may be provided in the target application, thereby enabling the first system to communicate directly with a process of the target application in the second system.
Optionally, according to the above embodiment of the present application, before the first system intercepts the predetermined type of touch event, the method further includes: and the first system receives a prohibition instruction, wherein the prohibition instruction is sent out after the second system starts the target application and is used for controlling the first system to prohibit the touch event of the preset type from being forwarded to the system process of the second system.
In an alternative embodiment, after the second system starts the target program, a disable instruction is sent to the first system to inform the first system to enter a step of intercepting a touch event of a predetermined type.
Optionally, according to the foregoing embodiment of the present application, the target application is an annotation application, and the responding of the touch event by the target application in the second system includes: the annotation application generates an annotation trace based on the touch event.
Optionally, according to the above embodiments of the present application, the predetermined type of touch event is an electromagnetic touch event.
Example 2
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for processing touch events, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that herein.
Fig. 2 is a flowchart of a method for processing a touch event according to an embodiment of the present invention, as shown in fig. 2, the method includes the steps of:
step S202, a target application of the second system monitors a touch event forwarded by the first system, where the first system sends the touch event of a predetermined type to the target application of the second system, the first system is a system of the device itself, and the second system is a system accessing the device through an external channel.
Specifically, the target application may be an application that needs to be used superimposed on an upper layer of another application. The first system and the second system are the same as in the embodiment.
The target application in the second system listens to the touch events forwarded by the first system upon startup in order to respond to a predetermined type of touch event after it is received. In the above step S202, the system process of the second system cannot receive the predetermined type of touch event, but is received by the target application.
Step S204, the target application in the second system responds to the received touch event.
In step S204, the touch event obtained by the target application of the second system may be responded to. In an alternative embodiment, the target application is an annotation application, and the annotation application of the second system generates an annotation track according to the touch event.
It should be noted here that since the touch event received by the target application is not distributed by the second system, the application underlying the target application is not out of focus. And because the touch events of the preset type are intercepted by the first system and directly forwarded to the target application, the touch events of other types are still forwarded to the second system by the first system and are then forwarded by the second system, so that the application at the lower layer of the target application can be continuously controlled through the touch events of other types, and meanwhile, the target application can also respond to the touch events of the preset type.
As can be seen from the above, in the above embodiment of the present application, the target application of the second system monitors the touch event forwarded by the first system, where the first system sends the touch event of the predetermined type to the target application of the second system, the first system is a system of the device itself, the second system is a system accessing the device through an external channel, and the target application in the second system responds to the received touch event. According to the scheme, the touch event of the preset type is directly forwarded to the process of the target application through the first system, so that the touch event for controlling the target application cannot be distributed through the second system, and therefore, the currently running program of the second system does not lose focus.
Optionally, according to the foregoing embodiment of the present application, the target application in the second system has an interface corresponding to the first system, and the monitoring, by the target application of the second system, of the touch event forwarded by the first system includes: and the target application of the second system listens the touch event forwarded by the first system through the interface.
In order for the first system to be able to forward a predetermined type of touch event directly to a target application in the second system without passing through a system process of the second system, an interface of the first system may be provided in the target application, thereby enabling the first system to communicate directly with a process of the target application in the second system.
Optionally, according to the foregoing embodiment of the present application, before the target application of the second system monitors the touch event forwarded by the first system, the method further includes: and after starting the target application, the second system sends a prohibition instruction to the first system, wherein the prohibition instruction is used for controlling the first system to prohibit the forwarding of the touch event of the preset type to the system process of the second system.
In an alternative embodiment, after the second system starts the target program, a disable instruction is sent to the first system to inform the first system to enter a step of intercepting a touch event of a predetermined type.
Fig. 3 is a flowchart of an alternative touch event processing method according to an embodiment of the present invention, and the touch event processing method is described below with reference to the example shown in fig. 3.
S31, the second system initiates annotation.
The second system is a system (such as windows \ Linux \ Android and the like) accessed and displayed by external channel interfaces such as HDMI/VGA and the like of the equipment, and touch operation is realized by receiving touch data forwarded by the first system of the equipment. The second system starts the annotating application in a self-starting mode and a started mode, wherein the self-starting mode means that the annotating application has a background thread to monitor the running state of other software in real time, and if the software is started and the software is in a self-starting list of the annotating application, the annotating software can be automatically started; the activated mode is a passive mode that a user clicks an annotation button to activate an annotation application.
S32, the first system intercepts a predetermined type of touch event.
When the second system comments are started, the forwarding process of the touch event of the first system is informed, and the forwarding of the touch event of the preset type to the second system is stopped.
S33, forwarding the touch event of the predetermined type.
After intercepting the touch event of the preset type, the first system forwards the touch event to the application appointed by the second system in a forwarding mode different from the mode of forwarding the event to the system process of the second system.
S34, the annotation application receives the touch event.
The annotating software receives touch events from the first system from a specific channel (such as a predetermined interface), and other applications cannot respond to the events.
And S35, drawing a handwriting curve.
And after the annotation application takes the touch event, drawing a handwriting curve to the canvas according to the coordinate value of the touch event.
And S36, judging whether to quit the annotation application.
If the annotation application is exited, the first system no longer intercepts the predetermined type of touch event, and if the annotation process is not exited, it proceeds to step S32.
Example 3
According to an embodiment of the present invention, an embodiment of an intelligent interactive device for a touch event is provided, and fig. 4 is a schematic diagram of the intelligent interactive device according to the embodiment of the present invention, as shown in fig. 4, the device includes:
the first system 10 of the intelligent interactive device itself intercepts touch events of a predetermined type and forwards the intercepted touch events to the processes of the target applications in the second system.
And accessing the second system 20 of the intelligent interactive device through the external channel, wherein the target application in the second system responds to the received touch event.
Specifically, the touch event is generated by a user operating a touch frame, in an optional embodiment, taking an intelligent interactive tablet with an Android system as an example, a first system of the intelligent interactive tablet is an Android system and is implemented by an Android module integrated in the intelligent interactive tablet, and when the intelligent interactive tablet provides an HDMI/VGA interface, a PC module (e.g., a Windows module, an Android module, a Mac OS module, Linux, etc.) may be inserted through the interface to obtain a second system of the intelligent interactive tablet.
The predetermined type of touch event is a touch event for controlling the target application, the type of the touch event may be determined according to a generation manner of the touch event, and may include an electromagnetic touch event, a capacitive touch event, and an infrared touch event, if the writing event needs to be intercepted, the predetermined type of touch event may be set as the electromagnetic touch event, and if the control event needs to be intercepted, the predetermined type of touch event may be set as the capacitive touch event or the infrared touch event.
It should be noted here that since the touch event received by the target application is not distributed by the second system, the application underlying the target application is not out of focus. And because the touch events of the preset type are intercepted by the first system and directly forwarded to the target application, the touch events of other types are still forwarded to the first system by the second system and are then forwarded by the first system, and therefore the application of the lower layer of the target application can be continuously controlled through the touch events of other types.
As can be seen from the above, in the above embodiments of the present application, the first system of the intelligent interaction device itself intercepts the touch event of the predetermined type, and forwards the touch event to the process of the target application in the second system, and the target application in the second system, which is accessed to the intelligent interaction device through the external channel, responds to the received touch event. According to the scheme, the touch event of the preset type is directly forwarded to the process of the target application through the first system, so that the touch event for controlling the target application cannot be distributed through the second system, and therefore, the currently running program of the second system does not lose focus.
Optionally, according to the foregoing embodiment of the present application, the target application in the second system has an interface corresponding to the first system, and the first system is configured to forward the touch event to the process of the target application in the second system through the interface.
In order for the first system to be able to forward a predetermined type of touch event directly to a target application in the second system without passing through a system process of the second system, an interface of the first system may be provided in the target application, thereby enabling the first system to communicate directly with a process of the target application in the second system.
Optionally, according to the foregoing embodiment of the present application, the second system is further configured to start the target application, and send a prohibition instruction to the first system, where the prohibition instruction is used to control the first system to prohibit forwarding of the predetermined type of touch event to the system process of the second system.
In an alternative embodiment, after the second system starts the target program, a disable instruction is sent to the first system to inform the first system to enter a step of intercepting a touch event of a predetermined type.
Example 4
According to an embodiment of the present invention, there is provided an embodiment of a processing apparatus for a touch event, and fig. 5 is a schematic diagram of the processing apparatus for a touch event according to the embodiment of the present invention, as shown in fig. 5, the apparatus includes:
an intercepting module 50, configured to intercept a predetermined type of touch event by a first system, where the first system is a system of the device itself.
A forwarding module 52, configured to forward, by the first system, the intercepted touch event to a process of a target application in a second system, where the second system is a system that accesses the device through an external channel, and the target application in the second system responds to the touch event.
Example 5
According to an embodiment of the present invention, there is provided an embodiment of a processing apparatus for a touch event, and fig. 6 is a schematic diagram of the processing apparatus for a touch event according to the embodiment of the present invention, as shown in fig. 6, the apparatus includes:
the monitoring module 60 is configured to monitor a touch event forwarded by a first system by a target application of a second system, where the first system sends the touch event of a predetermined type to the target application of the second system, the first system is a system of a device itself, and the second system is a system that accesses the device through an external channel.
A response module 62, configured to respond to the received touch event by the target application in the second system.
Example 6
According to an embodiment of the present invention, there is provided a storage medium including a stored program, wherein, when the program runs, a device on which the storage medium is located is controlled to execute the following steps: a first system intercepts touch events of a preset type, wherein the first system is a system of the equipment; and the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system accessing the equipment through an external channel, and the target application in the second system responds to the touch event.
Example 7
According to an embodiment of the present invention, there is provided a processor, configured to execute a program, where the program executes the following steps: a first system intercepts touch events of a preset type, wherein the first system is a system of the equipment; and the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system accessing the equipment through an external channel, and the target application in the second system responds to the touch event.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for processing a touch event, comprising:
a first system intercepts touch events of a preset type, wherein the first system is a system of equipment, and the touch events of the preset type are touch events for controlling a target application;
the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system which is accessed to the equipment through an external channel, and the target application in the second system responds to the touch event;
touch events of other types than the predetermined type are forwarded by the first system to the second system and distributed by the second system.
2. The method of claim 1, wherein the target application in the second system has an interface corresponding to the first system, and wherein the first system forwards the intercepted touch event to a process of the target application in the second system, comprising: the first system forwards the intercepted touch event to a process of a target application in the second system through the interface.
3. The method of claim 1, wherein prior to the first system intercepting the touch event of the predetermined type, the method further comprises:
and the first system receives a prohibition instruction, wherein the prohibition instruction is sent out after the target application is started by the second system and is used for controlling the first system to prohibit the touch event of the preset type from being forwarded to the system process of the second system.
4. The method of claim 1, wherein the target application is an annotation application, and wherein the target application in the second system responds to the touch event and comprises: and the annotation application generates an annotation track according to the touch event.
5. The method of claim 4, wherein the predetermined type of touch event is an electromagnetic touch event.
6. A method for processing a touch event, comprising:
monitoring a touch event forwarded by a first system by a target application of a second system, wherein the touch event of a predetermined type is sent to the target application of the second system by the first system, the first system is a system of a device itself, the second system is a system which is accessed to the device through an external channel, and the touch event of the predetermined type is the touch event for controlling the target application;
the target application in the second system responds to the received touch event;
and the second system receives other types of touch events except the touch events of the preset type forwarded by the first system and distributes the other types of touch events.
7. The method of claim 6, wherein the target application in the second system has an interface corresponding to the first system, and wherein the listening of the touch events forwarded by the first system by the target application of the second system comprises: and the target application of the second system monitors the touch event forwarded by the first system through the interface.
8. The method of claim 7, wherein before the target application of the second system listens for the touch event forwarded by the first system, the method further comprises:
and after the target application is started, the second system sends a prohibition instruction to the first system, wherein the prohibition instruction is used for controlling the first system to prohibit the touch event of a preset type from being forwarded to a system process of the second system.
9. An intelligent interaction device, comprising:
the method comprises the steps that a first system of the intelligent interaction equipment intercepts touch events of a preset type and forwards the touch events to a process of a target application in a second system, wherein the touch events of the preset type are the touch events for controlling the target application;
accessing the second system of the intelligent interaction device through an external channel, wherein a target application in the second system responds to the received touch event;
the first system also forwards other types of touch events, except for the predetermined type of touch event, to a second system for distribution by the second system.
10. The device of claim 9, wherein the target application in the second system has an interface corresponding to the first system, and wherein the first system is configured to forward the touch event to a process of the target application in the second system through the interface.
11. The device of claim 9, wherein the second system is further configured to launch the target application and send a disable instruction to the first system, wherein the disable instruction is configured to control the first system to disable forwarding of the touch event of a predetermined type to a system process of the second system.
12. An apparatus for processing a touch event, comprising:
the system comprises an intercepting module, a processing module and a processing module, wherein the intercepting module is used for a first system to intercept touch events of a preset type, the first system is a system of the equipment, and the touch events of the preset type are touch events used for controlling target application;
a forwarding module, configured to forward, by the first system, the intercepted touch event to a process of a target application in a second system, where the second system is a system that accesses the device through an external channel, and the target application in the second system responds to the touch event; touch events of other types than the predetermined type are forwarded by the first system to the second system and distributed by the second system.
13. An apparatus for processing a touch event, comprising:
the monitoring module is used for monitoring a touch event forwarded by a first system by a target application of a second system, wherein the first system sends the touch event of a preset type to the target application of the second system, the first system is a system of equipment, the second system is a system accessed to the equipment through an external channel, and the touch event of the preset type is the touch event used for controlling the target application;
a response module for the target application in the second system to respond to the received touch event;
and the distribution module is used for receiving other types of touch events except the preset type of touch events forwarded by the first system by the second system and distributing the other types of touch events.
14. A storage medium, characterized in that the storage medium includes a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the following steps: intercepting touch events of a preset type by a first system, wherein the first system is a system of the equipment; the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system which is accessed to the equipment through an external channel, and the target application in the second system responds to the touch event; touch events of other types than the predetermined type are forwarded by the first system to the second system and distributed by the second system.
15. A processor, wherein the processor is configured to execute a program, wherein the program executes to perform the following steps: intercepting touch events of a preset type by a first system, wherein the first system is a system of the equipment; the first system forwards the intercepted touch event to a process of a target application in a second system, wherein the second system is a system which is accessed to the equipment through an external channel, and the target application in the second system responds to the touch event; touch events of other types than the predetermined type are forwarded by the first system to the second system and distributed by the second system.
CN201810229817.4A 2018-03-20 2018-03-20 Touch event processing method and device and intelligent interaction equipment Active CN108628650B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810229817.4A CN108628650B (en) 2018-03-20 2018-03-20 Touch event processing method and device and intelligent interaction equipment
PCT/CN2018/112716 WO2019179104A1 (en) 2018-03-20 2018-10-30 Touch event processing method and apparatus, and smart interaction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810229817.4A CN108628650B (en) 2018-03-20 2018-03-20 Touch event processing method and device and intelligent interaction equipment

Publications (2)

Publication Number Publication Date
CN108628650A CN108628650A (en) 2018-10-09
CN108628650B true CN108628650B (en) 2020-03-17

Family

ID=63696119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810229817.4A Active CN108628650B (en) 2018-03-20 2018-03-20 Touch event processing method and device and intelligent interaction equipment

Country Status (2)

Country Link
CN (1) CN108628650B (en)
WO (1) WO2019179104A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628650B (en) * 2018-03-20 2020-03-17 广州视源电子科技股份有限公司 Touch event processing method and device and intelligent interaction equipment
CN109614178A (en) * 2018-09-04 2019-04-12 广州视源电子科技股份有限公司 Annotate display methods, device, equipment and storage medium
CN109375981A (en) * 2018-10-31 2019-02-22 四川长虹教育科技有限公司 Touch exchange method for intelligent interaction large-size screen monitors
CN109697004B (en) * 2018-12-28 2021-04-27 广州视源电子科技股份有限公司 Method, device and equipment for writing annotation by touch equipment and storage medium
CN109828820B (en) * 2019-02-20 2021-08-20 广州视源电子科技股份有限公司 Focus refreshing method and device of application window, storage medium and terminal
CN110708581B (en) * 2019-08-27 2021-09-24 海信视像科技股份有限公司 Display device and method for presenting multimedia screen saver information
WO2022134179A1 (en) * 2020-12-25 2022-06-30 安徽鸿程光电有限公司 Target area setting method and apparatus, electronic device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104768207A (en) * 2015-03-10 2015-07-08 西安酷派软件科技有限公司 Event interception and capture method, event interception and capture device and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8402472B2 (en) * 2007-09-14 2013-03-19 International Business Machines Corporation Network management system event notification shortcut
CN103226445A (en) * 2013-05-10 2013-07-31 广东国笔科技股份有限公司 Handwriting input method, system and terminal
CN106681801B (en) * 2016-05-09 2019-07-23 腾讯科技(深圳)有限公司 The execution method and apparatus of event
CN108628650B (en) * 2018-03-20 2020-03-17 广州视源电子科技股份有限公司 Touch event processing method and device and intelligent interaction equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104768207A (en) * 2015-03-10 2015-07-08 西安酷派软件科技有限公司 Event interception and capture method, event interception and capture device and terminal

Also Published As

Publication number Publication date
CN108628650A (en) 2018-10-09
WO2019179104A1 (en) 2019-09-26

Similar Documents

Publication Publication Date Title
CN108628650B (en) Touch event processing method and device and intelligent interaction equipment
CN109275040B (en) Interaction method, device and system based on live game
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
US11295035B2 (en) Application freezing management method, device and terminal
US10448081B2 (en) Multimedia information processing method, terminal, and computer storage medium for interactive user screen
EP2908231A1 (en) Object suspension realizing method and device
US20160105389A1 (en) Method, server and electronic devices of synchronizing notification messages for electronic devices
US9437158B2 (en) Electronic device for controlling multi-display and display control method thereof
US10349020B2 (en) Information processing method and electronic apparatus
US20160249321A1 (en) Method of synchronizing notification messages for electronic devices and electronic devices
US20170116299A1 (en) Method and electronic device for synchronizing member benefits among multiple devices
US20160328149A1 (en) Display screen-based physical button simulation method and electronic device
US20120210215A1 (en) Method and apparatus for providing networked assistance and feedback control for consumer electronic devices
CN112199029B (en) Dual-system device, writing method thereof and interactive intelligent panel
US10091452B2 (en) Electronic device and method for recording and displaying script
KR20230047172A (en) Video call interaction method and device
CN104423938A (en) Information processing method and electronic device
WO2022171054A1 (en) Display refreshing method and apparatus, and electronic device
CN113391751A (en) Interface display method and device, storage medium and electronic equipment
US20160357497A1 (en) File shared browsing method and system
EP4060999A1 (en) Video playback method and video playback apparatus
WO2017166789A1 (en) System locking method and apparatus
US9412339B2 (en) Display method and display device
Lee et al. A-mash: providing single-app illusion for multi-app use through user-centric UI mashup
WO2022237669A1 (en) Display control method and apparatus

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