CN115686330A - Event triggering method and device, terminal equipment and storage medium - Google Patents

Event triggering method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115686330A
CN115686330A CN202211358830.2A CN202211358830A CN115686330A CN 115686330 A CN115686330 A CN 115686330A CN 202211358830 A CN202211358830 A CN 202211358830A CN 115686330 A CN115686330 A CN 115686330A
Authority
CN
China
Prior art keywords
events
triggering
event
operation signals
input information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211358830.2A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202211358830.2A priority Critical patent/CN115686330A/en
Publication of CN115686330A publication Critical patent/CN115686330A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention provides an event triggering method, an event triggering device, terminal equipment and a storage medium, and relates to the technical field of computers. The event triggering method comprises the following steps: receiving at least two input operation signals; triggering at least two events simultaneously according to at least two operation signals; and if the at least two events are successfully triggered and have the target events bound in advance, triggering and executing the target events. The method and the device have the advantages that at least two events are triggered by at least two operation signals at the same time, the target event is triggered and executed based on the simultaneous triggering of the at least two events, and the flexibility of triggering and executing the event is improved.

Description

Event triggering method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an event triggering method and apparatus, a terminal device, and a storage medium.
Background
The connection between the terminal device and the external device is becoming more and more popular, the terminal device can be controlled through the external device or a control displayed on an interface of the terminal device, for example, a game running on the terminal device can be controlled through the external device, and the control of the terminal device also becomes a research hotspot.
In the related art, the terminal device may establish a corresponding relationship between different trigger signals and events, and trigger and execute the corresponding event after monitoring the trigger signals.
However, in the related art, the problem of poor flexibility exists in that the corresponding event is triggered and executed after the trigger signal is monitored.
Disclosure of Invention
The present invention is directed to provide an event triggering method, an event triggering apparatus, a terminal device and a storage medium, so as to solve the above-mentioned deficiencies in the prior art.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides an event triggering method, where the method includes:
receiving at least two input operation signals;
triggering at least two events simultaneously according to the at least two operation signals;
and if the at least two events are successfully triggered and have the target events bound in advance, triggering and executing the target events.
Optionally, after the triggering of at least two events according to the at least two operation signals simultaneously, the method further includes:
caching the triggering results of the at least two events;
if the at least two events are successfully triggered and have the target event bound in advance, triggering and executing the target event, including:
and if the cached triggering results of the at least two events indicate that the at least two events are both successfully triggered and the at least two events have the target event, triggering and executing the target event.
Optionally, before the triggering and executing the target event, if the at least two events are successfully triggered and the at least two events have a target event that is pre-bound, the method further includes:
creating the target event through an event creation panel;
binding the target event with the at least two events, and configuring the trigger condition of the target event as follows: both of the at least two events trigger success.
Optionally, the at least two operation signals are at least two first operation signals; the triggering of at least two events simultaneously according to the at least two operation signals comprises:
respectively determining at least two pieces of first input information corresponding to the at least two pieces of first operation signals;
and triggering the at least two events simultaneously by adopting a preset first mapping relation between the input information and the events according to the at least two pieces of first input information.
Optionally, the target event includes: a target game event, and/or an interface display event.
Optionally, if the target event includes: if the interface displays an event, the target event is triggered and executed, and the method comprises the following steps:
and triggering and executing the interface display event to display the at least two pieces of first input information.
Optionally, the at least two operation signals are at least two second operation signals; the triggering of at least two events simultaneously according to the at least two second operation signals includes:
respectively determining at least two pieces of second input information corresponding to the at least two second operation signals;
and triggering the at least two events simultaneously by adopting a preset second mapping relation between the input information and the events according to the at least two second input information.
Optionally, if the target event includes: if the interface displays an event, the target event is triggered and executed, and the method comprises the following steps:
and triggering and executing the interface display event to display the at least two pieces of second input information.
Optionally, if the at least two operation signals are operation signals input through a handle, the at least two first input information are at least two handle key information; alternatively, the first and second electrodes may be,
and if the at least two operation signals are operation signals input through an operation interface, the at least two pieces of first input information are at least two pieces of interface control information.
In a second aspect, an embodiment of the present invention further provides an event triggering apparatus, where the apparatus includes:
the receiving module is used for receiving at least two input operation signals;
the triggering module is used for simultaneously triggering at least two events according to the at least two operation signals;
and the execution module is used for triggering and executing the target event if the at least two events are successfully triggered and have the target event bound in advance.
Optionally, the apparatus further comprises:
the cache module is used for caching the triggering results of the at least two events;
the execution module is configured to trigger and execute the target event if the cached trigger results of the at least two events indicate that the at least two events are both successfully triggered and the at least two events have the target event.
Optionally, the apparatus further comprises:
the creation module is used for creating the target event through an event creation panel;
a configuration module, configured to bind the target event with the at least two events, and configure a trigger condition of the target event as: both of the at least two events trigger success.
Optionally, the at least two operation signals are at least two first operation signals; the triggering module is specifically configured to determine at least two pieces of first input information corresponding to the at least two pieces of first operation signals, respectively; and triggering the at least two events simultaneously by adopting a preset first mapping relation between the input information and the events according to the at least two pieces of first input information.
Optionally, the target event includes: a target game event, and/or an interface display event.
Optionally, if the target event includes: and the execution module is specifically used for triggering and executing the interface display event so as to display the at least two pieces of first input information.
Optionally, the at least two operation signals are at least two second operation signals; the triggering module is specifically configured to determine at least two pieces of second input information corresponding to the at least two second operation signals, respectively; and triggering the at least two events simultaneously by adopting a preset second mapping relation between the input information and the events according to the at least two second input information.
Optionally, if the target event includes: and the execution module is specifically used for triggering and executing the interface display event so as to display the at least two pieces of second input information.
Optionally, if the at least two operation signals are operation signals input through a handle, the at least two first input information are at least two handle key information; alternatively, the first and second electrodes may be,
and if the at least two operation signals are operation signals input through an operation interface, the at least two pieces of first input information are at least two pieces of interface control information.
In a third aspect, an embodiment of the present invention further provides a terminal device, including: a memory storing a computer program executable by the processor, and a processor implementing the event triggering method according to any of the first aspect when the computer program is executed by the processor.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is read and executed, the event triggering method according to any one of the above first aspects is implemented.
The invention has the beneficial effects that: the embodiment of the invention provides an event triggering method, which comprises the following steps: receiving at least two input operation signals; triggering at least two events simultaneously according to at least two operation signals; and if the at least two events are successfully triggered and have the target event bound in advance, triggering and executing the target event. The method and the device have the advantages that at least two events are triggered by at least two operation signals at the same time, the target event is triggered and executed based on the simultaneous triggering of the at least two events, and the flexibility of triggering and executing the event is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of an event triggering method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an event triggering method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an event triggering method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating an event triggering method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an event triggering method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an event trigger device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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 application.
In the description of the present application, it should be noted that if the terms "upper", "lower", etc. are used for indicating the orientation or positional relationship based on the orientation or positional relationship shown in the drawings or the orientation or positional relationship which is usually arranged when the product of the application is used, the description is only for convenience of describing the application and simplifying the description, but the indication or suggestion that the referred device or element must have a specific orientation, be constructed in a specific orientation and operation, and thus, cannot be understood as the limitation of the application.
Furthermore, the terms first, second and the like in the description and in the claims, as well as 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.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
In the related art, the terminal device may establish a corresponding relationship between different trigger signals and events, and trigger and execute corresponding events after monitoring the trigger signals. However, in the related art, the problem of poor flexibility exists in that the corresponding event is triggered and executed after the trigger signal is monitored.
In view of the above technical problems in the related art, the present application provides an event triggering method, which simultaneously triggers at least two events according to at least two input operation signals, and triggers and executes a target event if the at least two events are both successfully triggered and have a pre-bound target event, so that triggering based on the at least two events is realized to trigger and execute the target event, and flexibility of triggering and executing the event is improved.
The embodiment of the application provides an event triggering method, which is applied to a terminal device, where the terminal device may have a touch function, or the terminal device may be connected to an external device, and optionally, the external device may include at least one of the following: mouse, keyboard, handle, etc. The terminal device may be any one of: smart phones, tablet computers, notebook computers, desktop computers, and the like.
An event triggering method provided in the embodiments of the present application is explained below.
Fig. 1 is a schematic flowchart of an event triggering method according to an embodiment of the present invention, and as shown in fig. 1, the method may include:
and S101, receiving at least two input operation signals.
In the embodiment of the application, the external device may send at least two operation signals to the terminal device in response to the input operation, and the terminal device may receive the at least two operation signals sent by the external device; or, the terminal device may respond to a touch operation for the display interface to acquire at least two operation signals.
Of course, other ways of receiving the at least two input operation signals may also be adopted, and this is not particularly limited by the embodiments of the present application.
And S102, simultaneously triggering at least two events according to at least two operation signals.
In some embodiments, a mapping relationship between the preset operation signal and the preset event is adopted, and at least two events are triggered simultaneously according to at least two operation signals input simultaneously. Wherein at least two events are only triggered and not executed.
For example, if the operation signal a and the event a have a mapping relationship and the operation signal b and the event b also have a mapping relationship, the operation signal a and the operation signal b can be input at the same time to trigger the event a and the event b at the same time. Of course, this is only an example, and the number of operation signals and the number of events are not particularly limited in this document.
In addition, if each of the at least two operation signals is input at a different time, that is, not simultaneously input, a corresponding event may be triggered and executed according to the operation signal.
S103, if the at least two events are successfully triggered and have the target event bound in advance, triggering and executing the target event.
In the embodiment of the application, if the at least two events are triggered successfully, whether the at least two events have the pre-bound target event is determined according to the binding relationship between the preset event and the preset target event, and if the at least two events have the pre-bound target event, the target event is triggered and executed.
It should be noted that triggering and executing the target event may control an interface on the terminal device, and may also control specific content of an application program running on the terminal device, which is not specifically limited in this embodiment of the present application.
In summary, an embodiment of the present invention provides an event triggering method, including: receiving at least two input operation signals; triggering at least two events simultaneously according to at least two operation signals; and if the at least two events are successfully triggered and have the target events bound in advance, triggering and executing the target events. The method and the device have the advantages that at least two events are triggered by at least two operation signals at the same time, the target event is triggered and executed based on the simultaneous triggering of the at least two events, and the flexibility of triggering and executing the event is improved.
Optionally, fig. 2 is a schematic flow diagram of an event triggering method according to an embodiment of the present invention, and as shown in fig. 2, after the process of triggering at least two events simultaneously according to at least two operation signals in S102 is executed, the method may further include:
s201, caching the triggering results of at least two events.
And caching the triggering results of at least two events through the data result.
In the above S103, if the at least two events are successfully triggered and the at least two events have a target event bound in advance, the process of triggering and executing the target event may include:
s202, if the cached triggering results of the at least two events indicate that the at least two events are both successfully triggered and have target events, triggering and executing the target events.
In some embodiments, if the trigger results of the at least two cached events are True, if the trigger results of the at least two cached events indicate that the at least two events are both successfully triggered, the target event is triggered and executed when it is determined that the at least two events have the pre-bound target event according to the binding relationship between the preset event and the preset target event.
In summary, the triggering results of at least two events are cached; if the trigger results of the at least two cached events indicate that the at least two events are triggered successfully and the at least two events have target events, the target events are triggered and executed, and the reliability of data processing is improved.
Optionally, fig. 3 is a schematic flow diagram of an event triggering method according to an embodiment of the present invention, as shown in fig. 3, where if at least two events are successfully triggered and at least two events have a target event bound in advance in S103, before triggering and executing a process of the target event, the method may further include:
s301, creating a target event through an event creating panel.
In some embodiments, the target event may be created through the event creation panel in the event mode based on the event mode of the input system of the preset engine. The preset engine may be a game engine, for example, unity (a real-time interactive content creation and operation platform), and the input system may be an input system in Unity.
S302, binding the target event with at least two events, and configuring the trigger conditions of the target event as follows: at least two events both trigger success.
Wherein, the at least two events can also be bound with the at least two trigger signals, and the configuration triggers the at least two events based on the at least two trigger signals.
In addition, if at least two trigger signals trigger at least two events at the same time, and the at least two events are successfully triggered at the same time, the trigger condition of the target event is met, and the target event is executed.
In the embodiment of the application, the event can be bound with the trigger signal and can also be bound with the event, so that the triggering and the execution of the event are more flexible.
In conclusion, the target event is created through the event creation panel; binding a target event with at least two events, and configuring the trigger condition of the target event as follows: at least two events both trigger success. By adopting the mode to create the target event and configure the trigger condition of the target event, the convenience of creation and configuration is improved, and the efficiency of creation and configuration is also improved.
Optionally, the at least two operation signals are at least two first operation signals, fig. 4 is a flowchart of an event triggering method according to an embodiment of the present invention, as shown in fig. 4, a process of triggering at least two events simultaneously according to the at least two operation signals in S102 may include:
s401, at least two pieces of first input information corresponding to the at least two first operation signals are determined respectively.
Wherein each first operation signal may correspond to one first input information. The first input information is used to characterize an object of an operation.
It should be noted that, if the first operation signal is a signal input by using an external device, the first input information is used to represent a key on the external device for operation; if the first operation signal is a signal input by touch operation, the first input information is used for representing a control on an interface of operation.
S402, according to the at least two pieces of first input information, adopting a preset first mapping relation between the input information and the events, and simultaneously triggering the at least two events.
In this embodiment of the present application, the preset first mapping relationship between the input information and the event may include: a first mapping between the at least two first input information and the at least two events.
In summary, at least two first input information corresponding to the at least two first operation signals are respectively determined, and the at least two events are triggered simultaneously by using the preset first mapping relationship between the input information and the events according to the at least two first input information, so that the triggering of the events can be more flexible based on the first input information.
Optionally, the target event includes: a target game event, and/or an interface display event.
Wherein, the target event may only include: a target game event, or, simply comprising: the interface displays the event or, simultaneously: target game events and interface display events.
In some embodiments, when the target game event is triggered and executed, the content in the game application program running on the terminal device can be controlled, for example, the movement, attack, defense and the like of a virtual character in the game can be controlled. When the interface display event is triggered and executed, the interface on the terminal device may be controlled, for example, the interface may be controlled to be switched, or the control on the interface may be switched and selected.
Optionally, if the target event may include: and triggering and executing a target event by the interface display event, wherein the target event comprises the following steps:
and triggering and executing an interface display event to display at least two pieces of first input information.
And triggering and executing the interface display event, wherein at least two pieces of first input information can be displayed simultaneously.
For example, the event bound by the target event c may include: the event a is bound with the first trigger signal a, and the event b is bound with the first trigger signal b, where the first trigger signal a is generated by pressing the key x (pressing the key x to input the first trigger signal a), that is, the first input information a may be the trigger key x, and the second trigger signal b is generated by pressing the key y (pressing the key y to input the first trigger signal b), that is, the first input information b may be the trigger key y, and displaying at least two pieces of first input information may include: the trigger key x and key y are displayed.
Optionally, the at least two operation signals are at least two second operation signals.
Fig. 5 is a flowchart illustrating an event triggering method according to an embodiment of the present invention, and as shown in fig. 5, the process of triggering at least two events simultaneously according to at least two second operation signals in S102 may include:
s501, at least two pieces of second input information corresponding to the at least two second operation signals are determined respectively.
And modifying the corresponding relation of at least two first input information originally corresponding to the at least two second operation signals, wherein in the modified corresponding relation, the at least two second input information corresponding to the at least two second operation signals.
Of course, only a part of the at least two pieces of first input information may be modified to be the second input information, which is not specifically limited in the embodiment of the present application.
For example, the event bound by the target event c may include: the event a is bound with the first trigger signal a, and the event b is bound with the first trigger signal b, where the first trigger signal a is generated by pressing the key x (pressing the key x to input the first trigger signal a), that is, the first input information a may be the trigger key x, and the second trigger signal b is generated by pressing the key y (pressing the key y to input the first trigger signal b), that is, the first input information b may be the trigger key y, and displaying at least two pieces of first input information may include: the trigger key x and key y are displayed. The first trigger signal a is generated by pressing the key x (pressing the key x, inputting the first trigger signal a), that is, the first input information a may be the trigger key x, and modified in that the first trigger signal a is generated by pressing the key lt (pressing the key lt, inputting the first trigger signal a), and the second input information may be the trigger key lt, and then the second input information and the first input information b may be displayed, that is, the trigger key lt and the key y are displayed.
S502, according to the at least two second input information, a preset second mapping relation between the input information and the events is adopted, and the at least two events are triggered simultaneously.
In this embodiment of the present application, the preset second mapping relationship between the input information and the event may include: a second mapping between the at least two second input information and the at least two events.
Optionally, if the target event includes: and triggering and executing a target event by the interface display event, wherein the target event comprises the following steps:
and triggering and executing the interface display event to display at least two pieces of second input information.
It should be noted that the keys or controls operated corresponding to the at least two pieces of second input information are different from the keys or controls operated corresponding to the at least two pieces of first input information, and the at least two pieces of second input information are also different from the at least two pieces of first input information.
For example, the event bound by the target event c may include: the event a is bound with the second trigger signal a, and the event b is bound with the second trigger signal b, where the second trigger signal a is generated by pressing the key m (pressing the key m, inputting the second trigger signal a), that is, the second input information a may be the trigger key m, and the second trigger signal b is generated by pressing the key n (pressing the key n, inputting the second trigger signal b), that is, the second input information b may be the trigger key n, and displaying the at least two pieces of first input information may include: and displaying a trigger key m and a key n.
In summary, at least two second input information corresponding to the at least two second operation signals are respectively determined, and the at least two events are simultaneously triggered by using the preset second mapping relationship between the input information and the events according to the at least two second input information, so that the triggering of the at least two events based on the second input information can be realized, and the triggering of the events is more flexible.
In the embodiment of the application, the triggering of the event is through program registration binding.
Optionally, if the at least two operation signals are operation signals input through the handle, the at least two first input information are at least two handle key information; alternatively, the first and second electrodes may be,
and if the at least two operation signals are operation signals input through the operation interface, the at least two pieces of first input information are at least two pieces of interface control information.
In some embodiments, at least two operation signals are input to the terminal device by operating keys on the handles, the at least two first input information are key information on the at least two handles, and the at least two handle key information are used for representing pressed keys.
In some embodiments, at least two operation signals are input to the terminal device through a control displayed on the touch operation interface, the at least two pieces of first input information are pieces of control information on the at least two interfaces, and the at least two pieces of interface control information are used for representing the control of the touch operation.
The embodiment of the invention provides an event triggering method, which is used for binding events and events, can be applied to an operation scene input through an operation interface and can also be applied to an operation scene input through handle keys, and the application scene is flexible and wide.
In summary, an embodiment of the present invention provides an event triggering method, including: receiving at least two input operation signals; triggering at least two events simultaneously according to at least two operation signals; and if the at least two events are successfully triggered and have the target events bound in advance, triggering and executing the target events. The method and the device have the advantages that at least two events are triggered by at least two operation signals at the same time, the target event is triggered and executed based on the simultaneous triggering of the at least two events, and the flexibility of triggering and executing the event is improved.
The following describes an event triggering apparatus, a terminal device, a storage medium, and the like for executing the event triggering method provided in the present application, and for specific implementation processes and technical effects, reference is made to relevant contents of the foregoing method, and details are not described below.
Fig. 6 is a schematic structural diagram of an event trigger device according to an embodiment of the present invention, and as shown in fig. 6, the event trigger device may include:
a receiving module 601, configured to receive at least two input operation signals;
a triggering module 602, configured to trigger at least two events simultaneously according to the at least two operation signals;
an executing module 603, configured to trigger and execute the target event if the at least two events are both successfully triggered and the at least two events have a pre-bound target event.
Optionally, the apparatus further comprises:
the cache module is used for caching the triggering results of the at least two events;
the executing module 603 is configured to trigger and execute the target event if the cached trigger results of the at least two events indicate that both the at least two events are successfully triggered and the at least two events have the target event.
Optionally, the apparatus further comprises:
the creation module is used for creating the target event through an event creation panel;
a configuration module, configured to bind the target event with the at least two events, and configure a trigger condition of the target event as: both of the at least two events trigger success.
Optionally, the at least two operation signals are at least two first operation signals; the triggering module 602 is specifically configured to determine at least two pieces of first input information corresponding to the at least two first operation signals, respectively; and triggering the at least two events simultaneously by adopting a preset first mapping relation between the input information and the events according to the at least two pieces of first input information.
Optionally, the target event includes: a target game event, and/or an interface display event.
Optionally, if the target event includes: the executing module 603 is specifically configured to trigger and execute the interface display event to display the at least two pieces of first input information.
Optionally, the at least two operation signals are at least two second operation signals; the triggering module 602 is specifically configured to determine at least two pieces of second input information corresponding to the at least two second operation signals, respectively; and triggering the at least two events simultaneously by adopting a preset second mapping relation between the input information and the events according to the at least two second input information.
Optionally, if the target event includes: the executing module 603 is specifically configured to trigger and execute the interface display event to display the at least two pieces of second input information.
Optionally, if the at least two operation signals are operation signals input through a handle, the at least two first input information are at least two handle key information; alternatively, the first and second electrodes may be,
and if the at least two operation signals are operation signals input through an operation interface, the at least two pieces of first input information are at least two pieces of interface control information.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 7, the terminal device may include: a processor 701, a memory 702.
The memory 702 is used for storing programs, and the processor 701 calls the programs stored in the memory 702 to execute the above method embodiments.
By way of example, the method may comprise:
receiving at least two input operation signals;
triggering at least two events simultaneously according to the at least two operation signals;
and if the at least two events are successfully triggered and have the target event bound in advance, triggering and executing the target event.
Optionally, after the triggering of at least two events according to the at least two operation signals simultaneously, the method further includes:
caching the triggering results of the at least two events;
if the at least two events are successfully triggered and the at least two events have a pre-bound target event, triggering and executing the target event, including:
and if the cached triggering results of the at least two events indicate that the at least two events are both successfully triggered and the at least two events have the target event, triggering and executing the target event.
Optionally, before the triggering and executing the target event, if the at least two events are successfully triggered and the at least two events have a target event that is pre-bound, the method further includes:
creating the target event through an event creation panel;
binding the target event with the at least two events, and configuring the trigger condition of the target event as follows: both of the at least two events trigger success.
Optionally, the at least two operation signals are at least two first operation signals; the triggering of at least two events simultaneously according to the at least two operation signals includes:
respectively determining at least two pieces of first input information corresponding to the at least two first operation signals;
and triggering the at least two events simultaneously by adopting a preset first mapping relation between the input information and the events according to the at least two pieces of first input information.
Optionally, the target event includes: a target game event, and/or an interface display event.
Optionally, if the target event includes: if the interface displays an event, the target event is triggered and executed, and the method comprises the following steps:
and triggering and executing the interface display event to display the at least two pieces of first input information.
Optionally, the at least two operation signals are at least two second operation signals; the triggering of at least two events simultaneously according to the at least two second operation signals includes:
respectively determining at least two pieces of second input information corresponding to the at least two second operation signals;
and triggering the at least two events simultaneously by adopting a preset second mapping relation between the input information and the events according to the at least two second input information.
Optionally, if the target event includes: if the interface displays an event, the target event is triggered and executed, and the method comprises the following steps:
and triggering and executing the interface display event to display the at least two pieces of second input information.
Optionally, if the at least two operation signals are operation signals input through a handle, the at least two first input information are at least two handle key information; alternatively, the first and second electrodes may be,
and if the at least two operation signals are operation signals input through an operation interface, the at least two pieces of first input information are at least two pieces of interface control information.
In summary, at least two events are triggered by at least two operation signals at the same time, and the target event is triggered and executed based on the simultaneous triggering of at least two events, so that the flexibility of triggering and executing the event is improved.
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
By way of example, the method may comprise:
receiving at least two input operation signals;
triggering at least two events simultaneously according to the at least two operation signals;
and if the at least two events are successfully triggered and have the target events bound in advance, triggering and executing the target events.
Optionally, after the triggering of at least two events according to the at least two operation signals simultaneously, the method further includes:
caching the triggering results of the at least two events;
if the at least two events are successfully triggered and the at least two events have a pre-bound target event, triggering and executing the target event, including:
and if the cached triggering results of the at least two events indicate that the at least two events are both successfully triggered and the at least two events have the target event, triggering and executing the target event.
Optionally, before triggering and executing the target event if the at least two events are successfully triggered and the at least two events have a pre-bound target event, the method further includes:
creating the target event through an event creation panel;
binding the target event with the at least two events, and configuring the trigger condition of the target event as follows: the at least two events each trigger a success.
Optionally, the at least two operation signals are at least two first operation signals; the triggering of at least two events simultaneously according to the at least two operation signals includes:
respectively determining at least two pieces of first input information corresponding to the at least two pieces of first operation signals;
and triggering the at least two events simultaneously by adopting a preset first mapping relation between the input information and the events according to the at least two pieces of first input information.
Optionally, the target event includes: a target game event, and/or an interface display event.
Optionally, if the target event includes: if the interface displays an event, the target event is triggered and executed, and the method comprises the following steps:
and triggering and executing the interface display event to display the at least two pieces of first input information.
Optionally, the at least two operation signals are at least two second operation signals; the triggering of at least two events simultaneously according to the at least two second operation signals includes:
respectively determining at least two pieces of second input information corresponding to the at least two second operation signals;
and triggering the at least two events simultaneously by adopting a preset second mapping relation between the input information and the events according to the at least two second input information.
Optionally, if the target event includes: if the interface displays an event, the target event is triggered and executed, and the method comprises the following steps:
and triggering and executing the interface display event to display the at least two pieces of second input information.
Optionally, if the at least two operation signals are operation signals input through a handle, the at least two pieces of first input information are at least two pieces of handle key information; alternatively, the first and second electrodes may be,
and if the at least two operation signals are operation signals input through an operation interface, the at least two pieces of first input information are at least two pieces of interface control information.
In summary, at least two events are triggered by at least two operation signals at the same time, and the target event is triggered and executed based on the simultaneous triggering of at least two events, so that the flexibility of triggering and executing the event is improved.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of 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, devices or units, and may be in an electrical, mechanical 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 network 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, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (in english: processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. An event triggering method, the method comprising:
receiving at least two input operation signals;
triggering at least two events simultaneously according to the at least two operation signals;
and if the at least two events are successfully triggered and have the target events bound in advance, triggering and executing the target events.
2. The method of claim 1, wherein after triggering at least two events simultaneously according to the at least two operation signals, the method further comprises:
caching the triggering results of the at least two events;
if the at least two events are successfully triggered and the at least two events have a pre-bound target event, triggering and executing the target event, including:
and if the cached triggering results of the at least two events indicate that the at least two events are both successfully triggered and the at least two events have the target event, triggering and executing the target event.
3. The method of claim 1, wherein before triggering and executing the target event if the at least two events are successfully triggered and the at least two events have a pre-bound target event, the method further comprises:
creating the target event through an event creation panel;
binding the target event with the at least two events, and configuring the trigger condition of the target event as follows: both of the at least two events trigger success.
4. The method of claim 1, wherein the at least two operation signals are at least two first operation signals; the triggering of at least two events simultaneously according to the at least two operation signals includes:
respectively determining at least two pieces of first input information corresponding to the at least two pieces of first operation signals;
and triggering the at least two events simultaneously by adopting a preset first mapping relation between the input information and the events according to the at least two pieces of first input information.
5. The method of claim 1, wherein the target event comprises: a target game event, and/or an interface display event.
6. The method of claim 4, wherein if the target event comprises: if the interface displays an event, the target event is triggered and executed, and the method comprises the following steps:
and triggering and executing the interface display event to display the at least two pieces of first input information.
7. The method of claim 1, wherein the at least two operation signals are at least two second operation signals; the triggering of at least two events simultaneously according to the at least two second operation signals includes:
respectively determining at least two pieces of second input information corresponding to the at least two second operation signals;
and triggering the at least two events simultaneously by adopting a preset second mapping relation between the input information and the events according to the at least two second input information.
8. The method of claim 7, wherein if the target event comprises: if the interface displays an event, the target event is triggered and executed, and the method comprises the following steps:
and triggering and executing the interface display event to display the at least two pieces of second input information.
9. The method according to claim 4 or 6, wherein if the at least two operation signals are operation signals input through a handle, the at least two first input information are at least two handle key information; alternatively, the first and second electrodes may be,
and if the at least two operation signals are operation signals input through an operation interface, the at least two pieces of first input information are at least two pieces of interface control information.
10. An event triggering apparatus, comprising:
the receiving module is used for receiving at least two input operation signals;
the triggering module is used for simultaneously triggering at least two events according to the at least two operation signals;
and the execution module is used for triggering and executing the target event if the at least two events are successfully triggered and have the target event bound in advance.
11. A terminal device, comprising: a memory storing a computer program executable by the processor, and a processor implementing the event triggering method of any one of claims 1-9 when executing the computer program.
12. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when read and executed, implements the event triggering method of any of the preceding claims 1-9.
CN202211358830.2A 2022-11-01 2022-11-01 Event triggering method and device, terminal equipment and storage medium Pending CN115686330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211358830.2A CN115686330A (en) 2022-11-01 2022-11-01 Event triggering method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211358830.2A CN115686330A (en) 2022-11-01 2022-11-01 Event triggering method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115686330A true CN115686330A (en) 2023-02-03

Family

ID=85047930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211358830.2A Pending CN115686330A (en) 2022-11-01 2022-11-01 Event triggering method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115686330A (en)

Similar Documents

Publication Publication Date Title
CN105204744B (en) Method and device for starting application program and electronic equipment
CN108287657B (en) Skill applying method and device, storage medium and electronic equipment
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
CN106951335B (en) Process daemon method and mobile terminal
CN107066188B (en) A kind of method and terminal sending screenshot picture
CN105324753A (en) Invoking an application from a web page or other application
CN111840988B (en) Game skill triggering method, game skill triggering device, game client and medium
CN112416201B (en) Application cache cleaning method and device, electronic equipment and medium
CN108984255B (en) Remote assistance method and related equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN104115101A (en) Input pointer delay
CN112929254A (en) Message processing method and device and electronic equipment
CN112764834A (en) Control action binding method, device, equipment and storage medium
CN112799571A (en) Display control method, device, terminal and storage medium for secondary confirmation
CN115686330A (en) Event triggering method and device, terminal equipment and storage medium
EP4273670A1 (en) Interaction method and apparatus, and storage medium
CN112988426A (en) Message processing method and device
CN113824841A (en) Notification message processing method and device, electronic equipment and readable storage medium
CN112764862A (en) Application program control method and device and electronic equipment
CN112214297A (en) Application switching method and electronic equipment
CN108415656B (en) Display control method, device, medium and electronic equipment in virtual scene
CN112764622A (en) Icon moving method and device and electronic equipment
CN107678632B (en) Resource transfer method, terminal and computer readable storage medium
CN113821147A (en) Key binding method, device and system
CN113162840B (en) Display method, display device, electronic apparatus, and readable storage medium

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