Method and device for executing control operations, electronic device and computer program
By determining response priority labels for target controls in multi-point touch events, the method enhances control operation efficiency and accuracy in 3D simulation games, addressing issues of unintended responses and complexity in existing technologies.
Patent Information
- Application Number
- JP2024531239
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-03-01
- Filing Date
- 2022-11-29
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-11-29
AI Technical Summary
Existing 3D simulation game applications face issues with multi-point touch operations leading to unintended control responses due to superimposition or cancellation of turning speeds, orientation adjustment failures, and excessive speed changes, complicating the control process and reducing response efficiency.
A method and apparatus that determine a response priority label for each target control based on touch event information, allowing the electronic device to select and execute the appropriate control operation, thereby improving response accuracy and efficiency.
The method effectively resolves the complexity of multi-point touch operations by prioritizing control responses, ensuring accurate and efficient execution of intended control actions in 3D simulation games.
Smart Images

Figure 2024544605000001_ABST
Abstract
Description
[Technical field]
[0001] This application claims priority to a Chinese patent application bearing application number 2022101999879 and entitled “Method and apparatus for performing control operations, storage medium, and electronic device” filed with the China Patent Office on March 1, 2022, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of computers, and in particular to a method and apparatus, electronic device and computer program for performing control operations. [Background technology]
[0003] Currently, in many three-dimensional simulation game applications, controls having different control functions are usually arranged on a display interface to control a virtual character (controlled virtual character) to be controlled in a virtual game scene, so that the controlled virtual character completes a virtual game task set in the virtual game scene.
[0004] In practical application, the touch operation for each control on the display interface is often a multi-point touch operation, that is, it is often detected that multiple fingers contact the screen of a mobile phone at the same time. Take the turning control for adjusting the orientation of a controlled virtual character as an example, the turning control is used to adjust the orientation of the controlled virtual character to a target direction according to the target direction selected by the touch adjustment operation on the control. However, when the multi-point touch operation is detected on the turning control, there may be cases of overlapping or offsetting turning speeds, namely: 1) when multiple fingers slide in different directions, the adjustment of the orientation for the controlled virtual character may collide and fail; and 2) when multiple fingers slide in the same direction, the adjustment of the orientation for the controlled virtual character may be too fast.
[0005] In other words, for the present, for the control operation triggered by multi-points, it is easy to trigger unintended control operations, so that the response result may not meet the user's true needs. In other words, in the related art, due to the control operation triggered by multi-points, the user needs to try multiple times until the control operation that he really wants to select is triggered, which may cause the problem that the process of the control operation is complicated and the response efficiency is reduced. Summary of the Invention [Problem to be solved by the invention]
[0006] According to the embodiments provided in the present application, a method and apparatus, an electronic device and a computer program product for performing a control operation are provided. [Means for solving the problem]
[0007] According to one aspect of an embodiment of the present application, there is provided a method for performing a control operation, the method being performed by an electronic device, the method comprising: Acquire a touch event, in which the touch event includes (carries) touch operation information of at least two touch points, and the touch operation information includes operation positions where the at least two touch points are respectively located; determining a response priority label (also referred to as a priority tag) corresponding to the at least one target control when the manipulation location matches a control location in the display interface where the at least one target control is located; and The method includes the steps of determining a target control from among the at least one subject control according to the response priority label, and executing a target control operation indicated by the target control.
[0008] According to another aspect of an embodiment of the present application, there is provided an apparatus for performing a control operation, the apparatus comprising: an acquiring unit for acquiring a touch event, where the touch event includes touch operation information of at least two touch points, and the touch operation information includes operation positions where the at least two touch points are respectively located; a determining unit for determining a response priority label corresponding to the at least one target control when the operation position matches a control position in the display interface where the at least one target control is located; and and an execution unit for determining a target control from among the at least one subject control according to the response priority label and executing a target control operation indicated by the target control.
[0009] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided having computer-readable instructions stored thereon, the computer-readable instructions being configured, when executed, to implement the method of performing the control operations described above.
[0010] According to another aspect of an embodiment of the present application, a computer program product is provided, the computer program product including computer readable instructions stored in a computer readable storage medium, a processor of a computing device reads the computer readable instructions from the computer readable storage medium and executes the computer readable instructions to cause the computing device to perform the method for performing a control operation as described above.
[0011] According to another aspect of an embodiment of the present application, there is provided an electronic device including a memory and a processor, the memory having computer readable instructions stored therein, the processor being configured to execute the method for performing a control operation as described above in accordance with the computer readable instructions.
[0012] The details of one or more embodiments of the application are set forth in the drawings and description which follow. Other features, objects, and advantages of the application will become more apparent from the description, drawings, and claims. [Brief description of the drawings]
[0013] In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings that need to be used in the description of the embodiments or the prior art. It is obvious that the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work. [Figure 1] FIG. 2 illustrates a hardware environment for implementing one selectable control operation according to an embodiment of the present application. [Diagram 2] 4 is a flowchart of a method for performing one selectable control operation according to an embodiment of the present application. [Diagram 3] FIG. 2 illustrates a method for performing one selectable control operation according to an embodiment of the present application. [Figure 4] FIG. 13 illustrates a method for performing another selectable control operation according to an embodiment of the present application. [Diagram 5] FIG. 13 illustrates a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 6] FIG. 13 illustrates a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 7] FIG. 13 illustrates a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 8] FIG. 13 illustrates a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 9] 11 is a flowchart of a method for performing another selectable control operation according to an embodiment of the present application. [Figure 10] FIG. 13 illustrates a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 11] 11 is a flowchart of a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 12]11 is a flowchart of a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 13] 11 is a flowchart of a method for performing another selectable control operation according to an embodiment of the present application. [Figure 14] 11 is a flowchart of a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 15] 11 is a flowchart of a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 16] FIG. 2 is a diagram showing the configuration of an execution device for one selectable control operation according to an embodiment of the present application. [Figure 17] FIG. 2 is a diagram showing one selectable electronic device configuration according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] In order to allow those skilled in the art to better understand the scheme of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Of course, the described embodiments are only some of the embodiments of the present application, not all of the embodiments. In addition, all other embodiments obtained by those skilled in the art based on the embodiments of the present application without any creative work also belong to the scope of protection of the present application.
[0015] It should be noted that the terms "first", "second", etc. in the specification, claims and the drawings described above are used to distinguish between similar objects, and are not used to describe a particular order or sequence of events. As will be understood, the data used in this manner can be interchanged where appropriate, whereby the embodiments of the present application described herein may be practiced according to an order other than that shown or described herein. In addition, the terms "comprise", "have" and any variations thereof are intended to cover a non-exclusive inclusion, e.g., a process, method, system, product or apparatus comprising a series of steps or units is not limited to the steps or units expressly listed, but may also include other steps or units not expressly listed or inherent to these processes, methods, products or apparatus.
[0016] As can be understood, the specific implementation manner of the present application involves relevant data such as operation information, control operations, etc., and user permission or consent is required when applying the embodiments of the present application to a specific product or technology, and the collection, use and processing of relevant data also need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0017] In one aspect of the embodiment of the present application, a method for performing a control operation is provided. As an optional implementation manner, the method for performing a control operation can be applied to a system for performing a control operation in a hardware environment as shown in FIG. 1, but is not limited thereto. Wherein, the system for performing a control operation can include, but is not limited to, a terminal device 102, a network 104, a server 106, and a database 108. A target client is executed in the terminal device 102 (take the target client as a shooting game application client as shown in FIG. 1 as an example). The terminal device 102 includes a human-computer interaction screen, a processor, and a memory. The human-computer interaction screen is used to display a virtual game scene (a virtual shooting game scene as shown in FIG. 1), and is also used to provide a human-computer interaction interface to receive a human-computer interaction operation for controlling a virtual object controlled in the virtual scene, and the virtual object completes a game task set in the virtual scene. The processor is used for generating an interaction command according to the above-mentioned human-computer interaction operation and sending the interaction command to the server. The memory is used for storing related attribute data, such as object attribute information of the virtual object to be controlled, tool attribute information of the held tool, etc.
[0018] The server 106 also includes a processing engine, which is used to perform store or read operations on the database 108. Specifically, the processing engine is used to read from the database 108 the respective positions of each virtual object and the aiming and shooting information of the shooting implement to be used.
[0019] The specific process is as follows: Steps S102-S106: the terminal device 102 acquires a touch event (S102), in which the touch event includes touch operation information of at least two touch points; if the touch operation information indicates that the operation positions of the at least two touch points match the control position of at least one target control in the display interface, determine a response priority label corresponding to at least one target control (S104); and determine a target control from among the target controls according to the response priority label, and perform a target control operation indicated by the target control (S106). Then, step S108 is performed, in which the terminal device 102 transmits the target control operation result information to the server 106 via the network 104, and as can be understood, the target control result information is used to indicate the operation result of the target control operation. The server 106 executes step S110, in which the server 106 calculates scene response information according to the target control operation result information, and as can be understood, the scene response information is response information determined together with the virtual scene according to the target control operation result information. Thereafter, the server 106 transmits the scene response information to the terminal device 102 via the network 104, as in step S112.
[0020] As another possible implementation manner, when the terminal device 102 has a relatively powerful computing capability, the above-mentioned step S110 can also be completed by the terminal device 102. However, this is merely an example, and the present embodiment is not limited thereto.
[0021] Optionally, in this embodiment, the above-mentioned terminal device may be a terminal device in which a target client is set, and may include, but is not limited to, at least one of the following: a smartphone (e.g., Android smartphone, iOS smartphone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a client that supports the provision of a shooting game task, such as a video client, an instant communication client, a browser client, an education client, etc. The above-mentioned network may include, but is not limited to, a wired network or a wireless network, where the wired network includes a local area network, a metropolitan area network, and a wide area network, and the wireless network includes Bluetooth, WIFI, and other networks that can realize wireless communication. The above-mentioned server may be a single server, a server group consisting of multiple servers, or a cloud server. Note that these are merely examples, and the embodiment is not limited to these.
[0022] Optionally, in this embodiment, the above-mentioned control operation execution method may be applied to a game-like terminal application (APP) that completes a predetermined competitive game task in a virtual scene, for example, but not limited to, a shooting game application such as a Multiplayer Online Battle Arena (MOBA) game application. Among them, the above-mentioned competitive game task may be, but is not limited to, a game task that is completed by competitive interaction between a virtual object in an execution virtual scene controlled and operated by a current player through human-computer interaction and a virtual object controlled by another player. The competitive game task here may be, but is not limited to, executed in an application (e.g., a game APP executed in a non-standalone manner) in the form of a plug-in or applet, or executed in an application (e.g., a game APP executed in a standalone manner) in a game engine. In addition, the types of the above-mentioned game applications may include at least one of the following, but are not limited to these, namely, two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual reality (VR) game applications, augmented reality (AR) game applications, and mixed reality (MR) game applications. Note that these are merely examples, and the present embodiment is not limited to these.
[0023] In an embodiment of the present application, a touch event is obtained; when the touch operation information indicates that the operation positions of the at least two touch points match the control position of at least one target control in a display interface, a response priority label corresponding to the at least one target control is determined; and a target control is determined from the target controls according to the response priority label, and a target control operation indicated by the target control is executed. In this way, when multiple touch information included in the touch event is detected, a control operation to be finally executed can be determined based on the matching relationship between the touch event and the target control, thereby solving the technical problem that the conventional operation method for executing a control operation is highly complicated.
[0024] It should be noted that the above is merely an example, and the present embodiment is not limited thereto.
[0025] As an optional implementation manner, the above-mentioned method for performing control operations may be performed by an electronic device, as shown in Fig. 2. In this embodiment, the method is applied to a terminal. The method includes the following steps:
[0026] S202: Obtain a touch event, in which the touch event includes touch operation information of at least two touch points, and the touch operation information includes operation positions where the at least two touch points are located respectively.
[0027] In addition, the above-mentioned touch event may be a touch operation event received by the mobile terminal and acting on the display interface, such as a click operation event, a long press operation event, a drag operation event, a double click operation event, etc. In this embodiment, the above-mentioned touch operation information may include, but is not limited to, event marker (ID) information corresponding to the touch event, touch position information, touch pressure degree information, touch pressure time information, etc. Specifically, in this embodiment, the touch operation information of one long press touch operation event may include touch event A (i.e., event marker information), (40px, 120px) (i.e., position information of the event in the operation interface), 5N (touch pressure degree information) and 0.1s (touch pressure time information). The operation position refers to the action position of the touch point in the display interface, and can be specifically obtained based on the touch position information in the touch operation information, thereby determining the area touched by the touch point in the display interface. It can be understood that the specific contents of the above-mentioned touch event and touch operation information are only examples, and the type of the touch operation event and the type of the touch operation information are not limited here.
[0028] It should be noted that in this embodiment, the above-mentioned touch event may further include a touch operation event of multiple touch points. As shown in Figure 3, in the display interface of the terminal, the electronic device detects a long press operation of the left finger on the attack control 301, and also detects a left slide operation of the right finger in the display interface. As can be understood, such two touch operation events can be regarded as a touch event in this embodiment.
[0029] S204: When the operation position matches a control position where at least one target control is located in the display interface, a response priority label corresponding to the at least one target control is determined.
[0030] Next, the target control in this embodiment will be described. The target control may be an operation control for triggering various control operations in the display interface, and may include, but is not limited to, an attack control, a movement control, an aim control, a bullet refill control, and a skill control. The target control may further include a display area in the display interface other than the above-mentioned operation control. As can be seen, in this embodiment, a touch operation can be performed on a display area in the display interface other than the above-mentioned controls to generate a corresponding control effect, for example, when a sliding screen (swipe or scroll) operation is detected in the display area of a non-operation control, the viewing angle of the virtual character in the display interface can be controlled to change accordingly. Referring to Figures 3 and 4, Figure 3 shows a scene screen in the virtual visual angle of the virtual character in the figure, and the shown virtual scene shows that there is a virtual wardrobe in the corner of the left wall. When the right hand touch point B in the display area of the non-operation control in Figure 3 performs a "sliding screen to the left" operation, the interface as shown in Figure 4 is displayed, and the virtual visual angle of the virtual character in the figure changes, that is, the visual angle of the virtual character moves to the right correspondingly, so that another virtual wardrobe located in the corner of the right wall in the virtual scene is displayed.
[0031] Next, the response priority label in this embodiment will be described. It can be understood that in this embodiment, a response priority label is preset for each target control, which is used to indicate the corresponding priority of the touch operation acting on the control. For different target controls, the response priority labels can be the same or different. The setting rule can be determined according to actual needs.
[0032] For example, when the electronic device detects that the player controls the virtual character to perform a "virtual pathfinding" task in the virtual scene, it is necessary to set a highly sensitive visual angle turning control effect for the player. Therefore, the response priority of the display area of the non-operation control can be set to "1" to indicate that the response priority of the touch operation in the display area of the non-operation control is the highest, and the response priority of the other operation controls can be set to a value greater than "1" to indicate that the response priority of the touch operation for the operation control is lower than the priority of the display area of the non-operation control. In this way, when the player controls the virtual character to perform the "virtual pathfinding" task, when the player triggers multiple touch operations, it is possible to realize that the electronic device responds preferentially to the "sliding screen" operation for switching the visual angle of the virtual character, thereby improving the response effect of visual angle turning in the process of controlling the virtual character to perform the "virtual pathfinding" task by the player.
[0033] Also, for example, when it is detected that the player controls the virtual character to perform the task of "aim and shoot" in the virtual scene, since a slight change in the aiming viewing angle can affect the accuracy of the shot, it is necessary to set a high sensitivity "shooting response" effect for the player and reduce the "viewing angle switching response" effect. By setting the response priority of the "shooting control" to "1" and the response priority of the display area of the non-operation control to a value greater than "1", it is possible to indicate that the response priority of the touch operation in the display area corresponding to the shooting control is the highest, and the response priority of the touch operation in the display area of the non-operation control is lower than the priority of the display area of the shooting. In this way, when the player controls the virtual character to perform the task of "aim and shoot", when the player triggers multiple touch operations, it is possible to realize that the electronic device responds preferentially to the touch operation of the "shooting control" and responds late to the "sliding screen" operation for switching the viewing angle of the virtual character, thereby improving the shooting response effect when the player controls the virtual character to perform the task of "shooting".
[0034] S206: Determine a target control from among the at least one subject control according to the response priority label, and execute a target control operation indicated by the target control.
[0035] Wherein, the target control may be a target control that needs to be responded to, for example, a target control with the highest response priority, which is determined according to the response priority label. The target control operation is a control operation that needs to be executed, which is triggered by the corresponding target control. The above method will be specifically described below in conjunction with Figures 3 and 4.
[0036] Refer to FIG. 3, which is a diagram showing a game interface when a player controls a virtual character to perform a shooting task in a virtual scene. The diagram shows a number of operation controls for controlling a virtual character, and a screen of a visual scene corresponding to a current virtual character. In the virtual scene, it can be observed that a virtual wardrobe is displayed on the corner of the left wall of a virtual room. The interface also shows: an attack control 301 for controlling the virtual character to perform an attack operation; a movement control 302 for controlling the virtual character to perform a movement operation; a skill control 303 for controlling the virtual character to use a virtual skill; a shooting control 304 for controlling the virtual character to perform another attack operation; an ammunition refill control 305 for controlling the virtual character to perform an ammunition refill operation; and an aim control 306 for controlling the virtual character to perform an aim operation.
[0037] 3, the virtual character in the game interface is in the state of the "virtual path search" task, and the response priority of each of the above-mentioned controls is determined accordingly. First, it is determined that the response priority of the display area of the non-operation controls is "1", the response priority of the attack control 301 is "2", the response priority of the movement control 302 is "3", the response priority of the skill control 303 is "4", the response priority of the shooting control 304 is "2", the response priority of the ammunition supply control 305 is "5", and the response priority of the aim control 306 is "6".
[0038] As shown in FIG. 3, the trigger event acquired by the interface includes touch operation information of touch point A and touch operation information of touch point B, where the touch operation of touch point A is a click operation, and the touch operation information thereof includes: label information is touch event A, touch position is (40px, 120px), touch pressure degree is 5N, and touch time length is 0.1s; the touch operation of touch point B is a leftward sliding operation, and the operation information thereof includes: label information is touch event B, touch position is (540px, 150px), touch pressure degree is 5N, and touch time length is 0.5s.
[0039] Next, the electronic device can determine that the touch point A acts on the attack control 301 based on the touch operation information of the above-mentioned touch point A, and can determine that the touch point B acts on the display interface of the non-operation control based on the touch operation information of the above-mentioned touch point B. Then, the electronic device can determine that the target control is the display area of the non-operation control based on the response priority “2” of the attack control 301 and the response priority “1” of the display area of the non-operation control, that is, the electronic device performs a touch response operation corresponding to touch point B.
[0040] When "sliding screen to the left" is executed on the display area of the non-operation control, the operation effect is "switching the visual angle to the right", so the interface shown in Fig. 4 is displayed, and the electronic device displays a scene screen in which the visual angle is switched to the right based on the original visual angle. That is, the figure shows the virtual wardrobe in the corner of the left wall in the room, and since the visual angle is switched to the right, the virtual wardrobe in the corner of the right wall in the virtual room is also displayed. In this way, the execution effect for the target control operation can be realized.
[0041] Another specific embodiment of the present embodiment will be described below in conjunction with FIG. 5 and FIG.
[0042] As shown in FIG. 5, the trigger event acquired by the interface includes touch operation information of touch point C and touch operation information of touch point B, where the touch operation of touch point C is a single leftward sliding operation, and the touch operation information thereof includes: label information is touch event C, touch position is (40px, 40px), touch pressure intensity is 5N, and touch time is 0.5s; the touch operation of touch point B is a single leftward sliding operation, and the operation information thereof includes: label information is touch event B, touch position is (540px, 150px), touch pressure intensity is 5N, and touch time is 0.5s.
[0043] Then, according to the touch operation information of the above-mentioned touch point C, the electronic device can determine that the touch point C acts on the moving control 302, and the effect of the touch operation is to control the virtual character to move leftward. Also, according to the touch operation information of the above-mentioned touch point B, the electronic device can determine that the touch point B is adopted for the display interface of the non-operation control. And, according to the response priority “3” of the moving control 302 and the response priority “1” of the display area of the non-operation control, the electronic device can determine that the target control is the display area of the non-operation control, that is, the electronic device performs a touch response operation corresponding to the touch point B.
[0044] When "sliding screen to the left" is executed on the display area of the non-operation control, the operation effect is "switching the visual angle to the right", so the interface shown in Fig. 4 is displayed, and the electronic device displays a scene screen in which the visual angle is switched to the right based on the original visual angle. That is, the figure shows the virtual wardrobe in the corner of the left wall in the room, and since the visual angle is switched to the right, the virtual wardrobe in the corner of the right wall in the virtual room is also displayed. In this way, the execution effect for the target control operation can be realized.
[0045] Hereinafter, another specific embodiment of the present embodiment will be described in conjunction with FIG. 5 and FIG.
[0046] Assume that the task that needs to be executed in the game scene where the virtual character is currently located is "escape", and therefore the response priority of the movement control 302 is adjusted to "1", and the response priority of the display area of the non-operation control is adjusted to "2". When touch information of two touch points as shown in Fig. 5 is obtained, the electronic device determines that the target control is the movement control 302, that is, executes the control operation corresponding to the movement control 302. Then, as shown in Fig. 6, the virtual character is displayed moving a predetermined distance to the left from the original position, but since the viewing angle direction of the virtual character does not change, the virtual scene of other viewing angles is not displayed in Fig. 6.
[0047] In an embodiment of the present application, the electronic device obtains a touch event; when the touch operation information indicates that the operation positions of the at least two touch points match the control position of at least one target control in the display interface, determines a response priority label corresponding to the at least one target control; determines a target control from among the target controls according to the response priority label, and executes a target control operation indicated by the target control. In this way, when multiple touch events are detected, the control operation to be finally executed can be determined according to the matching relationship between the touch events and the target control, thereby solving the technical problem that the conventional operation method for executing a control operation is highly complicated.
[0048] As an optional implementation method, the step of determining a target control from among at least one target control according to the above-mentioned response priority label and executing a target control operation indicated by the target control includes the following steps:
[0049] S1: Perform sorting on the response order of at least one subject control based on the response priority label, and obtain the sorting result; and S2: When the sorting result indicates that the target control with the highest response priority is one target control, determine the target control with the highest response priority as a target control, and execute the target control operation indicated by the target control.
[0050] In this embodiment, the operation positions of at least two touch points match the control positions of multiple target controls, that is, the touch event acts on at least two target controls, so it is necessary to determine the target control that needs to respond from among the at least two target controls. The above-mentioned priority labels may be set for each target control before the start of the game, may be set based on a specific scene during the game, may be set based on the player's setting operation during the game, or may be set based on a real-time game scene. Here, the timing of determining the above-mentioned priority labels is not limited.
[0051] The above method will be described by taking the priority labels in the above embodiment as an example. Still taking Fig. 3 as an example, assume that the response priority of the display area of the non-operation control is "1", the response priority of the attack control 301 is "2", the response priority of the movement control 302 is "3", the response priority of the skill control 303 is "4", the response priority of the shooting control 304 is "2", the response priority of the ammunition refill control 305 is "5", and the response priority of the aim control 306 is "6".
[0052] Furthermore, the touch events obtained by the electronic device are three touch operations, namely, touch operation D, touch operation E, and touch operation F, and the touch points of the touch operations corresponding to each of these three touch operations correspond sequentially to the display area of a non-operated control (priority is "1"), the movement control 302 (priority is "3"), and the aim control 306 (priority is "4"), respectively. In this case, the response rearrangement results of the corresponding target controls of the determined touch operation D, touch operation E, and touch operation F are the display area of a non-operated control (priority is "1"), the movement control 302 (priority is "3"), and the aim control 306 (priority is "4").
[0053] Based on the above sorting result, the electronic device determines that the display area of the non-operated control is the target control, performs the instructed touch operation D acting on the display area of the non-operated control, and displays the scene after the corresponding viewing angle switching.
[0054] According to the method of the above-mentioned embodiment of the present application, the response order of the target controls is sorted according to the response priority labels to obtain a sorting result; when the target control with the highest response priority indicated by the sorting result is one target control, the target control with the highest response priority is determined as a target control, and the target control operation indicated by the target control is executed. In this way, when there are multiple touch operations on the current display interface, the control operation that is finally executed is determined according to the response priorities of multiple target controls corresponding to the multiple touch operations, so that the problem of response control confusion when there are multiple touch operations can be avoided, and the technical problem that the conventional operation method of executing a control operation is highly complicated can be solved.
[0055] As an optional implementation method, after sorting the response order of at least one target control based on the above-mentioned response priority label to obtain a sorting result, the following steps are further included:
[0056] S1: When the sorting result indicates that the target control with the highest response priority includes at least two target controls, determine the control operation time for each of the at least two target controls; and S2: The subject control having the earliest control operation time is determined as the target control, and the target control operation instructed by the target control is executed.
[0057] Another alternative embodiment of the above implementation scheme will now be described in conjunction with FIG.
[0058] As shown in Fig. 7, there are two touch operations in the interface, which correspond to touch point I and touch point J, respectively. Among them, touch point I acts on the attack control 301, the action time is 6:00.00 minutes after the game starts, and the duration is 0.5 seconds, that is, it lasts until 6:00.50 minutes after the game starts, and touch point J acts on the shooting control 304, the action time is 6:00.10 minutes after the game starts, and the duration is 0.3 seconds, that is, it lasts until 6:00.40 minutes after the game starts. Therefore, it can be seen that in this embodiment, the touch operation of touch point I has a certain duration, and another touch operation is detected within the duration.
[0059] Next, the electronic device determines the target control based on the priorities of the two controls corresponding to the touch point I and the touch point J. Assume that the response priority of the attack control 301 is still "2" and the response priority of the shooting control 304 is "2". That is, as can be seen, the corresponding priorities of the two controls are the same. In this case, the electronic device determines that the earliest target control is the attack control 301 based on the operation time, and performs a control operation corresponding to the attack control 301. Assume that the attack mode corresponding to the attack control 301 is sniper shooting, and the attack mode corresponding to the shooting control 304 is shotgun shooting. In this case, the final control result is to control the virtual character to perform sniper shooting.
[0060] According to the above-mentioned implementation manner of the present application, when the sorting result indicates that the target control with the highest response priority includes at least two target controls, the electronic device determines the control operation time of each of the at least two target controls; determines the target control with the earliest control operation time as the target control, and executes the target control operation indicated by the target control. In this way, the problem of response control confusion when there are multiple touch operations can be avoided, and the technical problem that the operation manner of the conventional control operation execution is highly complicated can be solved.
[0061] As an optional implementation method, the step of determining a target control from among at least one subject control according to the above-mentioned response priority label, and executing a target control operation indicated by the target control includes the following steps:
[0062] S1: when the operation positions of at least two touch points match a control position of a target control in a display interface, determine the target control as a target control; S2: Determine the touch duration on each target control for each touch point; S3: Determine the operation triggered by the touch point with the earliest touch time as the target control operation that needs to be executed; and S4: Execute the target control operation.
[0063] One alternative embodiment of the above implementation scheme is described below in conjunction with FIG.
[0064] As shown in FIG. 8, there are three touch operations on the display interface, which correspond to touch point F, touch point G, and touch point H, respectively. Among them, the touch operations corresponding to touch point F and touch point G act on the display area of the non-operated control, and the operation mode is "left sliding screen", and the touch operation of touch point H acts on the moving control 302, and the operation mode is "left sliding screen". Based on the response priority of the display area of the non-operated control being "1" and the response priority of the moving control 302 being "3", it can be determined that the sorting result is the display area of the non-operated control, the display area of the non-operated control (the two controls are tied for first place), and the moving control 302. In this case, the electronic device needs to further determine an operation corresponding to the target control from the two operations on the display area of the non-operated control.
[0065] Assume that the operation time corresponding to touch point F is 5:00.00 minutes after the game starts, and the duration is 0.5 seconds, and the operation time corresponding to touch point G is 5:00.15 minutes after the game starts, and the duration is 0.5 seconds. In this case, it can be determined that the operation corresponding to touch point F is the earliest operation, so the corresponding control operation of the area corresponding to touch point F is executed, that is, the virtual viewing angle of the game scene is switched to the right correspondingly.
[0066] According to the above-mentioned implementation manner of the present application, when the operation positions of at least two touch points match with the control position of a target control in a display interface, the electronic device determines the target control as a target control; determines the touch time of each touch point on each target control; determines the operation triggered by the touch point with the earliest touch time as the target control operation to be executed; and executes the target control operation. In this way, when there are multiple touch points on the same touch area of the display interface, it is possible to realize the control operation to be finally executed according to the order of the touch times of the touch points, and the problem of response control confusion when there are multiple touch operations can be avoided, so that the technical problem of the high complexity of the operation manner of the execution of the control operation in the past can be solved.
[0067] As an optional implementation method, after the step of executing the target control operation indicated by the above-mentioned target control, the following steps are further included.
[0068] S1: Get updated response priority label when the number of at least two touch points has changed; S2: Based on the updated response priority labels, sort the response order of the target control to obtain the updated sorted result; and S3: Based on the updated sorting result, determine the target control operation that needs to be performed.
[0069] As can be understood, in this embodiment, when there are multiple touch points on an interface and the number of touch points changes, re-sorting can be performed, and then the corresponding control operation can be performed based on the re-sorting result.
[0070] Specifically, the description will still be given in conjunction with FIG. 8. As shown in FIG. 8, there are three touch operations on the display interface of the electronic device, which correspond to touch point F, touch point G, and touch point H, respectively. Among them, the touch operations corresponding to touch point F and touch point G act on the display area of the non-operated control, and the operation mode is "left sliding screen", and touch point H acts on the moving control 302, and the operation mode is "left sliding screen". Based on the response priority of the display area of the non-operated control being "1" and the response priority of the moving control 302 being "3", it can be determined that the sorting result is the display area of the non-operated control, the display area of the non-operated control (which is tied for first place), and the moving control 302. In this case, the electronic device further determines an operation corresponding to the target control from the two operations on the display area of the non-operated control.
[0071] Assume that the electronic device determines that the operation corresponding to touch point F is a waiting operation, and after executing the corresponding control operation of the area corresponding to touch point F, the touch operation of touch point F is completed, that is, the remaining touch points in the display interface are touch point G and touch point H. In this case, the electronic device can further determine, according to the above-mentioned method, based on the priority label, that the target control among the controls corresponding to touch point G and touch point H is the display area of the non-operated control corresponding to touch point G, and execute the operation corresponding to touch point G, that is, continue to control the virtual character in the virtual scene to switch the viewing angle to the right.
[0072] According to the above-mentioned implementation manner of the present application, when the number of at least two touch points changes, the electronic device obtains an updated response priority label; according to the updated response priority label, sorts the response order of the target control, obtains an updated sorting result; and according to the updated sorting result, determines the target control operation that needs to be performed. In this way, when the number of touch points changes, it is possible to dynamically determine the next control operation to be performed based on the updated response priority label and the sorting result, and the problem of response control confusion when there are multiple touch operations can be avoided, so that the technical problem that the operation manner of the conventional control operation execution is highly complicated can be solved.
[0073] In one embodiment, the touch event includes at least one of a click event, a long press event, a drag event, or a double click event.
[0074] Wherein, the click operation event refers to an operation event where a user clicks a touch point on the display interface, the long press operation event refers to an operation event where a user long presses a touch point on the display interface, the drag operation event refers to an operation event where a user drags a touch point on the display interface, and the double click operation event refers to an operation event where a user double clicks a touch point on the display interface. The touch event may include at least one type of operation event.
[0075] In this embodiment, the touch event includes at least one of a click operation event, a long press operation event, a drag operation event, or a double click operation event, which can support determining the control operation to be finally executed according to the matching relationship between the touch event and the target control when triggering different types of operation events, thereby solving the technical problem that the conventional operation method for executing a control operation is highly complicated.
[0076] In one embodiment, the response priority label corresponding to each target control is set based on the scene to which the display interface belongs.
[0077] In different scenes, the screens displayed on the display interface may be different, so the types, numbers and distributions of the target controls in the display interface may also be different. Specifically, the response priority labels corresponding to the target controls included in the display interface are set based on the scene to which the display interface belongs. Specifically, the response priority labels may be set by default based on the scene to which the display interface belongs, or may be customized by the user according to the operation needs of the scene.
[0078] In this embodiment, the response priority label corresponding to the target control can be set based on the scene to which the display interface belongs, so that the response priority of the target control in the display interface can better meet the needs of the scene, which is advantageous to improving the processing efficiency of control operations under different scenes.
[0079] As an optional implementation method, when the above-mentioned operation position matches a control position in the display interface where at least one target control is located, the step of determining a response priority label corresponding to at least one target control includes the following steps:
[0080] S1: Obtain the response area information of each subject control in the display interface; S2: Sequentially compare the operation positions of the touch points indicated by the touch operation information with the control response areas indicated by the response area information of each target control, and obtain the comparison results; S3: When the comparison result indicates that the operation position where the touch point is located is within the control response area of the target control, determine that the operation position where the touch point is located matches the control position where the target control is located, and obtain a response priority label of the target control determined to match; and S4: The response priority labels of the target controls that are determined to match are stored in a management container.
[0081] In this embodiment, the specific implementation of the above control operation execution method will be described by taking the execution method for the sliding screen operation as an example.
[0082] As can be seen, one complete sliding screen operation includes three event phases, which may be described as press, slide and release, respectively. First, before the game is launched, three events, IE_Pressed, IE_Repeat and IE_Released, are registered with the touch component of the game engine to detect the touch events of the above three phases: press, slide and release.
[0083] In this embodiment, the above-mentioned area information of the target control may include, but is not limited to, the position information and range information in the display interface of the target control to determine the target control corresponding to the touch operation. As can be understood, the area information of the target control may be determined and saved before the game starts, and may also be changed and saved based on the player's settings during the game. For example, before the game starts, the position information and range information of the display area of multiple controls in the interface, such as attack controls, movement controls, aiming controls, etc., and non-controls may be saved, and during the game, if the game player adjusts the positions and sizes of the attack controls and movement controls, the saved position information and range information of the attack controls and movement controls may be updated accordingly. Note that the method of determining the area information of the target control is not limited here.
[0084] In a specific application, the method for performing the control operation may further include the following steps:
[0085] S1: Get touch operation information.
[0086] As shown in Fig. 9, in the process of detecting the event IE_Pressed, first, obtain touch operation information. In this embodiment, the obtained touch operation information includes at least "current finger index" (i.e., indicator information of the current touch operation) and screen position information corresponding to the touch operation.
[0087] S2: Determine the control that corresponds to the screen position information.
[0088] Specifically, when saved response area information of a target control is obtained, the position information of the current touch operation is compared with the saved response area information of the target control to determine the target control corresponding to the current touch operation.
[0089] S3: Get the priority label that matches the target control; and S4: Finally, data processing is performed.
[0090] Specifically, as shown in FIG. 10, the control position, control size, and priority label are encapsulated, and then the “current finger index”, i.e., the label information of the current touch operation, can be stored together as a keyword in a data management container.
[0091] According to the above-mentioned implementation of the present application, the electronic device obtains the response area information of the target control in the display interface; sequentially compares the operation positions of the touch points indicated by the touch operation information with the control response areas indicated by the response area information of each target control to obtain a comparison result; if the comparison result indicates that the operation position of the touch point is within the control response area of the target control, it determines that the operation position of the touch point matches the control position of the target control, and obtains the response priority label of the target control that is determined to match; and stores the response priority label of the target control that is determined to match in a management container. In this way, the trigger event of each touch operation can be accurately obtained, so that accurate detection and response of the touch operation can be realized.
[0092] As an optional implementation method, the step of determining a target control from among at least one target control according to the above-mentioned response priority label and executing a target control operation indicated by the target control includes the following steps:
[0093] S1: Read from the management container the response priority labels of the target controls that are determined to be a match; and S2: Determine a target control from among the subject controls determined to be a match based on the response priority labels, and execute a target control operation indicated by the target control.
[0094] One implementation of the above method will now be described in conjunction with FIG.
[0095] It can be understood that in this embodiment, the execution method of the sliding screen operation is not only to detect the IE_Pressed event, but also to detect the IE_Repeat event. The steps are as follows:
[0096] S1: Get touch operation information.
[0097] In the process of detecting the event IE_Repeat, it is also necessary to obtain touch operation information, which at least includes the “current finger index”, i.e., the indicator information of the current touch operation, and the screen position information corresponding to the touch operation.
[0098] Get data from S2:Pressed.
[0099] Specifically, data is obtained from the Pressed management container using the keyword "current finger index."
[0100] S3: If no corresponding data is obtained, do not perform any operation.
[0101] S4: When corresponding data is obtained, sort all data from the previous step.
[0102] As can be understood, in this embodiment, since the response process is performed for the "sliding screen operation", in order to ensure the accuracy of the detection of the "slide" event, the electronic device needs to match and obtain data in the Pressed management container with the same "current finger index", thereby ensuring that each "slide" event is triggered by a "press" event.
[0103] Next, since the data stored in the Pressed management container includes the priority of the target control corresponding to the touch operation, the electronic device sorts the target controls corresponding to all the data in the Pressed management container based on the acquired priority label.
[0104] S5: If there is only one highest priority determined, perform a sliding screen viewing angle turning operation corresponding to the target control with the highest priority.
[0105] S6: When there are multiple touches with the same highest priority, sort them according to the order of touches, and perform a sliding screen viewing angle turning corresponding to the latest single touch operation.
[0106] According to the above embodiment of the present application, the electronic device reads the response priority label of the target control determined to be matched from the management container; and determines a target control from among the target controls determined to be matched according to the response priority label, and executes the target control operation indicated by the target control. In this way, it is possible to determine the target control that needs to be finally executed according to the stored response priority label, so that accurate detection and response of the touch operation can be realized.
[0107] An optional implementation scheme further includes, after performing the target control operation indicated by said target control, removing the response priority label of the target control from the management container.
[0108] As shown in FIG. 12, in this embodiment, besides detecting the events IE_Pressed and IE_Repeat, the electronic device further detects the event IE_Released, that is, detects whether the touch event has ended.
[0109] As can be seen, in the process of detecting the event IE_Released, the touch operation information obtained by the electronic device also includes “current finger index” and “pressed screen position”, whereby data is obtained from the management container of Pressed using the keyword “current finger index”, and when the data is obtained, the electronic device deletes the above obtained data from the management container.
[0110] According to the above-mentioned embodiment of the present application, the electronic device can directly ignore released touch operations in the process of sorting touch event data in IE_Repeat by removing the response priority label of the target control from the management container after performing the target control operation indicated by the above-mentioned target control, thereby avoiding erroneous responses to multiple touch operations.
[0111] As an optional implementation method, before the step of obtaining the touch event as described above, the following steps are further included.
[0112] S1: Assign a response priority label to each subject control; S2: Obtaining response area information of a target control, in which the response area information is used to indicate a control response area in a display interface of the target control; and S3: The response priority label and response area information of the target control are encapsulated and stored in a management container.
[0113] As can be seen, in this embodiment, before obtaining a touch event, the electronic device needs to assign a response priority label to each target control and determine the response position and response area of each target control. As an optional method, the assignment of the response priority label and the determination of the response position and response area of each target control may be performed based on the game settings before the game starts, or may be performed based on the player's setting operation during the game. After each setting, the above information is encapsulated and stored in a management container, which is convenient for extracting and using the above data in subsequent operations.
[0114] According to the above-mentioned embodiment of the present application, the electronic device assigns a response priority label to each target control; obtains the response area information of the target control, in which the response area information is used to indicate the control response area in the display interface of the target control; and encapsulates the response priority label and the response area information of the target control and stores them in a management container. In this way, the priority, position and area range of the target control can be set according to needs, and the response to the touch operation can be made more accurate, so that the technical problem that the operation method of the conventional control operation execution is highly complicated can be solved.
[0115] Hereinafter, one specific embodiment of the present application will be described in conjunction with FIG. 13 and FIG.
[0116] In this embodiment, an execution method for performing processing for a sliding screen operation in a game interface is taken as an example, in which the touch events include events triggered by the sliding screen operation, and the management container includes a sliding screen manager.
[0117] FIG. 13 shows a pre-processing flow of a touch operation management method.
[0118] S1: Add multiple controls to the sliding screen manager for responding to sliding screen operations.
[0119] In the game, the controls related to the sliding screen operation include "skill control", "aiming control", "shooting control" and "screen". Correspondingly, the sliding screen operation on the "skill control" is used to adjust the aiming direction of the virtual skill, the sliding screen operation on the "aiming control" is used to adjust the aiming direction of the shooting operation, the sliding screen operation performed on the "shooting tool (skill)" is used to adjust the shooting direction of the shooting tool, and the sliding screen operation performed on the "screen" is used to adjust the viewing angle of the current virtual character. Although these four controls are all related to the sliding screen operation, their operation effects are different from each other. In addition, since the sliding screen operation is one long-term operation (compared to an instantaneous click operation), within a given time, the player may perform multiple sliding screen operations simultaneously, so it is necessary to perform response control processing for multiple operations within the same time.
[0120] S2: Assign respective response priority labels to multiple controls for sliding screen operation responses.
[0121] Specifically, in order to avoid effect interference between multiple sliding screen operations, the above-mentioned "skill control", "aim control", "fire control" and "screen" can be assigned response priorities of "3", "2", "2" and "1", respectively. In other words, in this embodiment, the response priority of the sliding screen operation on the "screen" is the highest, followed by the sliding screen operations on the "aim control" and "fire control", both of which have the same priority, and the lowest is the "skill control".
[0122] S3: Encapsulates and stores the sliding screen data for a sliding screen operation.
[0123] As shown in FIG. 10, the electronic device stores the control position, control size and priority label in a data management container in the sliding screen manager, which is convenient for calling specific data when subsequent operations are performed.
[0124] S4: After saving, refresh (update) the data in the data management container.
[0125] As can be understood, the electronic device can trigger data refresh after encapsulating and saving the existing priority data, and can also trigger data refresh when the control position is self-defined. For example, a player adjusts the position and size of a control during a game. In this case, the data in the data management container can be refreshed according to the player's adjustment operation to ensure the accuracy of the management of subsequent control operations.
[0126] In one embodiment, the sliding screen data includes a control position, a control size, and a response priority label, and encapsulating and storing the sliding screen data of the sliding screen operation includes encapsulating and processing the control position, the control size, and the response priority label, and storing a result of the encapsulation and processing in a data management container of the sliding screen manager.
[0127] Wherein, the control position refers to the position of the control for responding to the sliding screen operation in the display interface, the control size refers to the size of the control for responding to the sliding screen operation, and the response priority label is a label assigned to each of the controls for responding to the sliding screen operation. Specifically, the electronic device performs an encapsulation process on the control position, the control size, and the response priority label, and stores the result obtained by the encapsulation process in a data management container of the sliding screen manager.
[0128] In this embodiment, the control position, control size, and response priority label are encapsulated and processed before being stored in the data management container of the sliding screen manager, thereby realizing timely storage of the sliding screen data, which is convenient for ensuring the accuracy of management of subsequent control operations.
[0129] After the data preparation work, a specific implementation method of this embodiment will be described below with reference to FIG.
[0130] As can be seen, in the specific implementation process, three detection events IE_Pressed, IE_Repeat and IE_Released related to the "sliding screen operation" need to be registered in the touch component of the game engine, so that the "sliding screen operation" can be accurately determined by detecting the above-mentioned three stages of events: pressing, sliding and releasing.
[0131] Next, based on the above-mentioned three detection events, the electronic device obtains the index (i.e., the current finger index) and location (i.e., the pressed screen position) information of the touch operation, records the related information, and then the electronic device inputs the related data to the sliding screen manager to perform priority sorting, and finally performs a viewing angle turning operation corresponding to the sliding screen operation based on the sorting result.
[0132] The above method will now be described in detail with reference to FIGS.
[0133] Refer to FIG. 3, which shows two touch operations on the interface, in which the control corresponding to touch point A is the attack control 301, and the control corresponding to touch point B is the screen.
[0134] Assume that a rightward sliding operation performed by touch point A is detected by IE_Pressed, and the recorded index is "Event A" and the position information is (40px, 120px). The electronic device then inputs the Index "Event A" and the position information (40px, 120px) to the sliding screen manager, and the sliding screen manager determines that the control corresponding to "Event A" is the attack control 301 by comparing it with the position information (40px, 120px) of "Event A" based on the control position information stored in the management container, and obtains its corresponding priority "2" based on the response priority label set for the attack control 301. Finally, the electronic device stores "Event A", the position information (40px, 120px), and the priority label "2" in the Pressed container.
[0135] Assume that a left sliding operation performed by touch point B is detected by IE_Pressed, and the recorded index is "Event B" and the position information is (540px, 150px). The electronic device then inputs the Index "Event B" and the position information (540px, 150px) to the sliding screen manager, and the sliding screen manager determines that the control corresponding to "Event B" is the screen by comparing it with the position information (540px, 150px) of "Event B" based on the saved control position information in the management container, and obtains its corresponding priority "1" based on the response priority label set for the screen. Finally, the electronic device saves "Event B", the position information (540px, 150px), and the priority label "1" in the Pressed container.
[0136] Next, touch point B is detected by IE_Repeat, and the index of touch point B is recorded as "Event B" and the position information is recorded as (540px, 150px).Then, the electronic device again inputs the index of touch point B, "Event B," to the sliding screen manager and obtains data in the Pressed container.
[0137] When receiving data "Event B" corresponding to Index "Event B", position information (540px, 150px) and priority label "1", and data "Event A" of touch point A, position information (40px, 120px) and priority label "2", the electronic device compares the two events and control priorities, determines that "Event B" corresponding to touch point B is the target event, and executes "Event B". In this case, the interface is displayed as shown in FIG. 4, and the viewing angle of the virtual character is turned to the right.
[0138] After determining that the execution of the event corresponding to Index "Event B" is completed, the electronic device deletes the data corresponding to Index "Event B" from the container of Pressed. The electronic device then rearranges the remaining events in the container of Pressed. As a result, it determines to perform "Event A", that is, it controls the virtual character to perform a shooting operation in the display interface after the viewing angle is turned as shown in FIG. 4.
[0139] In one embodiment, a method for performing a control operation is provided and is performed by an electronic device, as shown in Figure 15. The method includes the following steps:
[0140] S1502: Displaying a display interface, the display interface including a target control for responding to a touch event, and the target control being disposed at a control position within the display interface; and S1504: Trigger a touch event for at least two touch points in the display interface, and when the operation positions of the at least two touch points match the control positions of at least one target control in the display interface, execute a target control operation belonging to a target type indicated by the target control.
[0141] The touch event is used to trigger the execution of a target-type control operation, and the target control is a control among at least one target control that satisfies a response priority condition.
[0142] Wherein, the display interface is an interface displayed on the screen of the electronic device, the display interface includes at least one target control for responding to the touch event, and the target control is located at a control position in the display interface, i.e., the corresponding target control is displayed at the control position in the display interface of the electronic device. The touch event may be triggered by various types of operation events. The control operation refers to an operation that the user needs to trigger by a touch event. In this embodiment, every touch event triggered by the user on at least one target control is for triggering the execution of a target-type control operation, i.e., used to trigger the same type of control operation. For example, in a game interface, the user triggers touch events on multiple target controls, for example, triggering a sliding screen operation on multiple target controls to trigger the execution of a control operation of turning the virtual camera. For the target-type control operation, different target controls have different response priorities. The response priority condition is used to control the relationship of the response of the target control to the touch event. For example, the response priority condition may be to respond according to a response order from high to low response priority, in which case the subject control with the highest response priority is determined as the target control, and a target control operation belonging to the target type indicated by the target control can be executed.
[0143] Specifically, the electronic device displays a display interface, and a target control for responding to the touch event is displayed at a control position of the display interface, and the user can trigger an interaction with the target control. A touch event is triggered for at least two touch points in the display interface, and when the operation positions of the at least two touch points match the control position of at least one target control in the display interface, the electronic device executes a target control operation belonging to a target type indicated by the target control. In a specific application, the user can trigger a touch event for at least two touch points in the display interface, and the electronic device determines the operation positions of the at least two touch points, and matches each of the operation positions with the control position of at least one target control in the display interface, and when matched, the electronic device executes a target control from the at least one target control according to a response priority condition, and executes a target control operation belonging to a target type indicated by the target control.
[0144] In this embodiment, touch events are triggered for at least two touch points in the display interface, and when the operation positions of the at least two touch points match the control positions of at least one target control in the display interface, the electronic device executes a target control operation belonging to a target type indicated by the target control that satisfies the response priority condition. In this way, when multiple touch events are detected, the control operation that is finally executed can be determined based on the matching relationship between the touch events and the target control, thereby solving the technical problem that the conventional operation method for executing a control operation is highly complicated.
[0145] In one embodiment, the touch event includes an event triggered by a sliding screen operation, and the target control operation includes a visual angle turning operation.
[0146] Among them, the sliding screen operation is a sliding screen interaction operation triggered by a user on a target control in the display interface, and the viewing angle turning operation is a control operation for changing the viewing angle corresponding to the display content of the display interface, and by changing the viewing angle, the display content in the display interface can be changed.
[0147] In this embodiment, for at least two touch points in the display interface, an event triggered by a sliding screen operation is triggered, and when the operation positions of the at least two touch points match the control position of at least one target control in the display interface, the electronic device executes a viewing angle turning operation indicated by the target control that satisfies the response priority condition. Thus, when multiple sliding screen operations are detected, the viewing angle turning operation indicated by the target control that satisfies the response priority condition can be selected and executed, thereby solving the problem that the operating method of the conventional viewing angle turning operation is highly complicated.
[0148] Although the above-mentioned embodiments of the methods are described as a combination of a series of operations for convenience of explanation, those skilled in the art will understand that the present application is not limited by the order of operations described, because some steps may be performed in other orders or simultaneously according to the present application. Also, those skilled in the art will understand that the embodiments described in the specification belong to preferred embodiments, and such operations and modules are not necessarily essential to the present application.
[0149] In another aspect of the embodiment of the present application, there is further provided a control operation execution device for implementing the above-mentioned control operation execution method. As shown in Figure 16, the device includes:
[0150] An obtaining unit 1602: used to obtain a touch event, in which the touch event includes touch operation information of at least two touch points, and the touch operation information includes operation positions where the at least two touch points are located; A determining unit 1604: used for determining a response priority label corresponding to at least one target control when the operation position matches a control position where at least one target control is located in the display interface; and An execution unit 1606: is used for determining a target control from among at least one subject control according to the response priority label, and executing a target control operation indicated by the target control.
[0151] Optionally, in this embodiment, the embodiments realized by the above-mentioned modules can refer to the embodiments of the above-mentioned methods, and the detailed description thereof will be omitted here.
[0152] Another aspect of the embodiment of the present application further provides an electronic device for implementing the above-mentioned control operation execution method. The electronic device may be a terminal device or a server as shown in Fig. 17. In this embodiment, the electronic device is a terminal device. As shown in Fig. 17, the electronic device includes a memory 1702 and a processor 1704, and the memory 1702 stores computer-readable instructions, and the processor 1704 is configured to execute steps in any of the above-mentioned method embodiments according to the computer-readable instructions.
[0153] Optionally, in this embodiment, the electronic device may be present in at least one network device of a plurality of network devices of a computer network.
[0154] Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps by computer readable instructions.
[0155] S1: obtain a touch event, in which the touch event includes touch operation information of at least two touch points, and the touch operation information includes operation positions where the at least two touch points are respectively located; S2: When the operation position matches the control position where at least one target control is located in the display interface, determine a response priority label corresponding to at least one target control; and S3: Determine a target control from among at least one subject control according to the response priority label, and execute a target control operation indicated by the target control.
[0156] Optionally, as can be understood by those skilled in the art, the configuration as shown in FIG. 16 is merely an example, and the electronic device may be a terminal device such as an in-vehicle terminal, a smartphone (e.g., Android smartphone, iOS smartphone, etc.), a tablet computer, a palm computer, a MID (Mobile Internet Devices), a PAD, etc. FIG. 17 does not limit the configuration of the electronic device described above. For example, the electronic device may further include more or fewer components (e.g., a network interface, etc.) than those shown in FIG. 17, or may have a layout different from that shown in FIG. 17.
[0157] The memory 1702 is used to store software programs and modules, such as program instructions / modules corresponding to the control operation execution method and device in the embodiment of the present application, and the processor 1704 executes the software programs and modules stored in the memory 1702 to perform various functional applications and data processing, that is, to realize the above-mentioned control operation execution method. The memory 1702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storages, flash memories, or other non-volatile solid-state memories. In some examples, the memory 1702 may further include a memory that is remotely installed with respect to the processor 1704, and these remote memory devices can be connected to the terminal through a network. Examples of the above-mentioned network may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The memory 1702 is specifically used to store information such as operation information, but is not limited thereto. 17, the above-mentioned storage 1702 may include, but is not limited to, the acquisition unit 1602, the determination unit 1604, and the execution unit 1606 in the above-mentioned control operation execution device, and may further include other units or modules in the above-mentioned control operation execution device, detailed description of which is omitted here.
[0158] Optionally, the transmission device 1706 is used to receive or transmit data over a network. The above network examples may include wired and wireless networks. In one example, the transmission device 1706 includes a Network Interface Controller (NIC), which can be connected to other network devices and routers via cables to communicate with an intranet or local area network. In one example, the transmission device 1706 is a Radio Frequency (RF) module, which can be used to communicate with the Internet in a wireless manner.
[0159] In addition, the above-mentioned electronic device may further include a display 1708, which is used to display a virtual scene of a virtual character, and may further include a connection bus 1710, which is used to connect each modular component in the above-mentioned electronic device.
[0160] In another embodiment, the terminal device or server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the nodes in the form of network communication, where the nodes may form a P2P (Peer To Peer) network, and any type of computing device, such as a server, terminal, or other electronic device, may join the P2P network to form a node in the blockchain.
[0161] In one aspect of the present application, a computer program product is further provided, the computer program product including computer readable instructions, the computer readable instructions including program code for performing the method as illustrated in the flow chart. In such an embodiment, the computer readable instructions can be downloaded and installed from a network via a communication unit and / or can be installed from a removable medium. When the computer readable instructions are executed by a central processor, they can perform various functions provided in the embodiments of the present application.
[0162] It should be noted that the sequence numbers of the above-mentioned embodiments of the present application are for illustrative purposes only and do not indicate superiority or inferiority of the embodiments.
[0163] In one aspect of the present application, a computer-readable storage medium is further provided, and a processor of a computing device reads computer-readable instructions from the computer-readable storage medium and executes the computer-readable instructions to cause the computing device to perform the method of executing the control operations described above.
[0164] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may be configured to store computer-readable instructions for performing the following steps:
[0165] S1: obtain a touch event, in which the touch event includes touch operation information of at least two touch points, and the touch operation information includes operation positions where the at least two touch points are respectively located; S2: When the operation position matches the control position where at least one target control is located in the display interface, determine a response priority label corresponding to at least one target control; and S3: Determine a target control from among at least one subject control according to the response priority label, and execute a target control operation indicated by the target control.
[0166] Optionally, in this embodiment, as can be understood by those skilled in the art, all or some of the steps in the various methods according to the above-described embodiments can be performed by instructing hardware associated with the terminal device by a program, and the program can be stored in a computer-readable storage medium, which may include a flash memory, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, etc.
[0167] The units integrated in the above-mentioned embodiments can be realized in the form of a software functional unit, or can be stored in the above-mentioned computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application may be essentially embodied in the form of a software product, or a part of the technical solution that contributes to the prior art, and the computer software product may be stored in a storage medium and include a program for causing one or more computer devices (such as personal computers, servers, or network devices) to execute all or part of the steps of the above-mentioned methods according to the embodiments of the present application.
[0168] In the above-mentioned embodiments of the present application, emphasis may be placed on the description of each embodiment, and for parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0169] In some embodiments provided in this application, it is understood that the disclosed client may be realized in other ways, among which the above-mentioned device embodiments are merely examples, for example, the division of the above-mentioned units is only a division of logical functions, and there may be other division ways in actual implementation, for example, multiple units or assemblies may be combined or integrated into another system, or some features may be omitted or not implemented. In addition, the connections or direct connections or communicative connections between each other shown or described may be indirect connections or communicative connections through some interfaces, units or modules, or may be electrical connections or other types of connections.
[0170] In addition, the units described above as separate components do not have to be physically separate, and the components shown as units do not have to be physical units, i.e., they may be located in one place or distributed among multiple network units, and some or all of the units may be selected according to actual needs to realize the technical solution of the present embodiment.
[0171] Furthermore, each functional unit in each embodiment of the present application may be integrated into one processing unit, may exist physically alone, or two or more of the units may be integrated into one unit. The above-mentioned integrated units may be realized in the form of hardware or software functional units.
[0172] Although the preferred embodiment of the present application has been described above, the present application is not limited to this embodiment, and any modification to the present application falls within the technical scope of the present application as long as it does not depart from the spirit of the present application.
Claims
1. 1. An electronic device implemented method for performing a control operation, comprising: acquiring a touch event, the touch event including touch operation information of at least two touch points, the touch operation information including operation positions where the at least two touch points are located; determining a response priority label corresponding to at least one target control when the manipulation location matches a control location in a display interface where the at least one target control is located; and determining a target control from among the at least one subject control based on the response priority label; and executing a target control operation indicated by the target control.
2. 2. The method of claim 1, determining a target control from among the at least one subject control based on the response priority label and executing a target control operation indicated by the target control, performing sorting on the response order of the at least one target control based on the response priority label to obtain a sorting result; and When the sorting result indicates that the target control with the highest response priority is one target control, the method includes a step of determining the target control with the highest response priority as a target control and executing a target control operation indicated by the target control.
3. 3. The method of claim 2, After the step of sorting the response order of the at least one target control based on the response priority label and obtaining a sorting result, the method further includes: When the sorting result indicates that the target control with the highest response priority includes at least two target controls, determining a control operation time for each of the at least two target controls; and The method includes determining a target control that has the earliest control operation time as a target control, and executing a target control operation indicated by the target control.
4. 2. The method of claim 1, determining a target control from among the at least one subject control based on the response priority label and executing a target control operation indicated by the target control, determining a target control as the target control when operation positions of the at least two touch points match a control position of a target control in the display interface; determining a touch duration on said target control for each of said touch points; determining an operation triggered by the touch point with the earliest touch time as the target control operation that needs to be executed; and The method includes the step of performing the target control operation.
5. 2. The method of claim 1, After the step of executing a target control operation indicated by the target control, the method further comprises: obtaining an updated response priority label when the number of the at least two touch points has changed; Sorting the response order of the target control based on the updated response priority label to obtain an updated sorting result; and determining a target control operation that needs to be performed based on the updated sorting results.
6. 2. The method of claim 1, The method, wherein the touch event includes at least one of a click event, a long press event, a drag event, or a double click event.
7. 2. The method of claim 1, A method, wherein a response priority label corresponding to each of the target controls is set based on a scene to which the display interface belongs.
8. 2. The method of claim 1, When the operation position matches a control position in a display interface where at least one target control is located, determining a response priority label corresponding to the at least one target control includes: obtaining response area information for each target control within the display interface; A step of sequentially comparing the operation positions where each touch point is located, which are indicated by the touch operation information, with the control response areas indicated by the response area information of each of the target controls, and obtaining a comparison result; When the comparison result indicates that the operation position where the touch point is located is within a control response area of the target control, determining that the operation position where the touch point is located matches the control position where the target control is located, and obtaining a response priority label of the target control determined to match; and storing in a management container a response priority label of the target control that is determined to be a match.
9. 9. The method of claim 8, determining a target control from among the at least one subject control based on the response priority label and executing a target control operation indicated by the target control, reading from the management container a response priority label of the target control that has been determined to be a match; and determining a target control from among the subject controls determined to be matched based on the response priority label, and executing the target control operation indicated by the target control.
10. 10. The method of claim 9, After the step of executing the target control operation indicated by the target control, the method further comprises: The method includes removing the response priority label of the target control from the management container.
11. 9. The method of claim 8, Prior to the step of capturing the touch event, the method further comprises: assigning said response priority label to each said target control; obtaining response area information for the target control, the response area information being used to indicate a control response area within the display interface of the target control; and The method includes encapsulating the response priority label and the response area information of the target control and storing them in the management container.
12. 9. The method of claim 8, The touch event includes an event triggered by a sliding screen operation, and the management container includes a sliding screen manager, and the method further includes: adding a plurality of controls to the sliding screen manager for response to the sliding screen operation; assigning a response priority label to each of a plurality of controls for response to said sliding screen operation; and encapsulating and storing sliding screen data for said sliding screen operation.
13. 13. The method of claim 12, the sliding screen data includes a control position, a control size, and the response priority label; encapsulating and storing sliding screen data of the sliding screen operation, performing an encapsulation process on the control position, the control size and the response priority label, and storing a result of the encapsulation process in a data management container of the sliding screen manager.
14. 1. An electronic device implemented method for performing a control operation, comprising: displaying a display interface, the display interface including a target control for response to touch events, the target control being provided at a control location within the display interface; and Triggering touch events for at least two touch points in the display interface, and performing a target control operation belonging to a target type indicated by a target control when an operation position of each of the at least two touch points matches a control position of at least one target control in the display interface; the touch event is used to trigger execution of a control operation of the target type; The method, wherein the target control is one of the at least one subject control that satisfies a response priority condition.
15. 15. The method of claim 14, The method, wherein the touch event includes an event triggered by a sliding screen operation, and the target control operation includes a visual angle turning operation.
16. 1. An apparatus for performing a control operation, comprising: An acquisition unit for acquiring a touch event, where the touch event includes touch operation information of at least two touch points, and the touch operation information includes operation positions where the at least two touch points are located; a determining unit for determining a response priority label corresponding to at least one target control when the operation position matches a control position in a display interface where the at least one target control is located; and an execution unit for determining a target control from among the at least one subject control based on the response priority label, and for executing a target control operation indicated by the target control.
17. 17. The apparatus of claim 16, The execution unit further comprises: Performing a sorting on the response order of the at least one target control based on the response priority label to obtain a sorting result; and When the sorting result indicates that the target control with the highest response priority is one target control, the target control with the highest response priority is determined as a target control, and a target control operation indicated by the target control is executed. The apparatus is configured so as to
18. A program for causing a computer to execute the method according to any one of claims 1 to 15.
19. An electronic device including a storage device and a processor connected to the storage device, The storage device stores a computer program, 16. An electronic device, the processor being configured to execute the computer program to implement the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Data input method, mobile terminal and computer readable storage medium
CN107562263A
Virtual object motion control method and device, electronic equipment and storage medium
CN108295466A
Virtual shooting subject control method and device, electronic equipment and storage medium
CN108339272A
Multi-touch processing method and device, equipment and storage medium
CN112817483A
Data interaction method, device and system and terminal operation equipment
CN113599800A
