Method and device for executing control operations, electronic device and computer program

By determining a response priority label for each control in multi-point touch operations, the method simplifies and enhances control efficiency in 3D simulation games by prioritizing the intended control response.

JP7771502B2Active Publication Date: 2025-11-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2024531239
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-03-01
Filing Date
2022-11-29
Publication Date
2025-11-18
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

In 3D simulation games, multi-point touch operations often result in unintended control responses due to overlapping or conflicting orientation adjustments, leading to complex and inefficient control processes.

Method used

A method and apparatus that determine a response priority label for each control based on touch event information, allowing the electronic device to execute the target control operation indicated by the highest priority label.

Benefits of technology

This approach simplifies control operations by prioritizing the intended control response, reducing complexity and improving response efficiency in multi-point touch scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007771502000001
    Figure 0007771502000001
  • Figure 0007771502000002
    Figure 0007771502000002
  • Figure 0007771502000003
    Figure 0007771502000003
Patent Text Reader

Abstract

A method for performing a control operation is provided, the method including: obtaining a touch event, where the touch event includes touch operation information of at least two touch points (S202); when the touch operation information indicates that an operation position where each of the at least two touch points is located matches a control position where at least one target control is located in a display interface, determining a response priority label corresponding to the at least one target control (S204); and determining a target control from among the target controls based on the response priority label, and performing a target control operation indicated by the target control (S206).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority from a Chinese patent application filed with the China Patent Office on March 1, 2022, bearing application number 2022101999879 and entitled "Method and apparatus for performing control operations, storage medium and electronic device," the entire contents of which are incorporated herein by reference.

[0002] This application relates to the field of computers, and more particularly to methods and apparatus for performing control operations, electronic devices, and computer programs. [Background technology]

[0003] Currently, in many 3D simulation game applications, controls having different control functions arranged on a display interface are usually used 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 applications, touch operations on each control on a display interface are often multi-point touch operations, that is, multiple fingers are often detected to be touching the screen of a mobile phone at the same time. For example, take a 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 based on the target direction selected by the touch adjustment operation on the control. However, when a multi-point touch operation is detected on a turning control, there may be cases where the turning speeds overlap or cancel each other out, i.e., 1) when multiple fingers slide in different directions, the orientation adjustment for the controlled virtual character may collide and fail; and 2) when multiple fingers slide in the same direction, the orientation adjustment for the controlled virtual character may be too fast.

[0005] In other words, currently, for multi-point triggered control operations, unintended control operations are easily triggered, which may result in response results that do not meet the user's true needs. In other words, in the related art, due to multi-point triggered control operations, the user needs to try multiple times until the control operation they really want to select is triggered, which may cause problems such as complicated control operation processes and reduced response efficiency. Summary of the Invention [Problem to be solved by the invention]

[0006] According to the embodiments provided in this application, a method and apparatus for performing control operations, an electronic device, and a computer program 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 operation location matches a control location in the display interface where the at least one target control is located; and The method includes the step 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 where the at least one target control is located in the display interface; and An execution unit is included for determining a target control from among the at least one subject control according to the response priority label and for 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 for performing the control operations described above.

[0010] According to another aspect of an embodiment of the present application, there is provided a computer program product, the computer program product including computer-readable instructions stored in a computer-readable storage medium, wherein 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, wherein the memory stores computer-readable instructions, and the processor is 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 present application are set forth in the drawings and description that follow. Other features, objects, and advantages of the present application will become more apparent from the description, drawings, and claims. [Brief explanation of the drawings]

[0013] In order to more clearly explain the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce 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 any creative work. [Figure 1] FIG. 2 illustrates a hardware environment for a method of performing one selectable control operation according to an embodiment of the present application. [Figure 2] 1 is a flowchart of a method for performing one selectable control operation according to an embodiment of the present application. [Figure 3] FIG. 1 illustrates a method for performing one selectable control operation according to an embodiment of the present application. [Figure 4] FIG. 10 illustrates another method for performing selectable control operations according to an embodiment of the present application. [Figure 5] FIG. 10 illustrates yet another method for performing selectable control operations according to an embodiment of the present application. [Figure 6] FIG. 10 illustrates yet another method for performing selectable control operations according to an embodiment of the present application. [Figure 7] FIG. 10 illustrates yet another method for performing selectable control operations according to an embodiment of the present application. [Figure 8] FIG. 10 illustrates yet another method for performing selectable control operations according to an embodiment of the present application. [Figure 9] 10 is a flowchart of a method for performing another selectable control operation according to an embodiment of the present application. [Figure 10] FIG. 10 illustrates yet another method for performing selectable control operations according to an embodiment of the present application. [Figure 11] 10 is a flowchart of a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 12]10 is a flowchart of a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 13] 10 is a flowchart of a method for performing another selectable control operation according to an embodiment of the present application. [Figure 14] 10 is a flowchart of a method for performing yet another selectable control operation according to an embodiment of the present application. [Figure 15] 10 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 illustrating the configuration of an execution device for one selectable control operation according to an embodiment of the present application. [Figure 17] FIG. 1 illustrates one selectable electronic device configuration according to an embodiment of the present application. DETAILED DESCRIPTION OF THE INVENTION

[0014] In order to help those skilled in the art 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 fall within the scope of protection of the present application.

[0015] It should be noted that the terms "first," "second," etc. in the specification, claims, and drawings of this application are used to distinguish between similar objects, and are not used to describe a particular order or sequence. It should be understood that data used in this manner can be interchanged where appropriate, so that the embodiments of the application described herein may be practiced in an order other than that shown or described herein. Furthermore, the terms "comprise," "have," and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the explicitly listed steps or units, but may also include other steps or units not explicitly listed or inherent in such process, method, product, or apparatus.

[0016] As can be understood, the specific implementation manner of the present application involves related data such as operation information, control operations, etc., and when applying the embodiments of the present application to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must also comply with the relevant laws, regulations and standards of relevant countries and regions.

[0017] In one aspect of an embodiment of the present application, a method for performing control operations is provided. As an optional implementation, the method for performing control operations may be applied to a control operation execution system in a hardware environment such as, but not limited to, the one shown in FIG. 1 . The control operation execution system may include, but is not limited to, a terminal device 102, a network 104, a server 106, and a database 108. The terminal device 102 executes a target client (for example, the target client is a shooting game application client as shown in FIG. 1 ). 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 (such as the virtual shooting game scene shown in FIG. 1 ) and also provides a human-computer interaction interface for receiving human-computer interaction operations to control 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 to generate interaction commands according to the above-mentioned human-computer interaction operations and send the interaction commands to the server. The memory is used to store related attribute data, such as object attribute information of the virtual object to be controlled, attribute information of the tool held, etc.

[0018] The server 106 also includes a processing engine, which is used to perform storage 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 target and the aiming and shooting information of the shooting implement to be used.

[0019] The specific process includes steps S102-S106 as follows: the terminal device 102 receives a touch event (S102), where 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 the at least one target control (S104); and determine a target control from the target controls according to the response priority label, and perform a target control operation indicated by the target control (S106). Then, in step S108, the terminal device 102 transmits the target control operation result information to the server 106 via the network 104. The target control result information is used to indicate the operation result of the target control operation. The server 106 performs step S110, where the server 106 calculates scene response information based on the target control operation result information. The scene response information is response information determined based on the target control operation result information in conjunction with the virtual scene. Thereafter, the server 106 transmits the scene response information to the terminal device 102 via the network 104 in step S112.

[0020] As another alternative 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 aforementioned terminal device may be a terminal device on which a target client is set, and may include, but is not limited to, at least one of the following: a smartphone (e.g., an Android smartphone, an iOS smartphone, etc.), a laptop, a tablet computer, a palm computer, a mobile internet device (MID), a PAD, a desktop computer, a smart TV, etc. The target client may be a client that supports providing shooting game tasks, such as a video client, an instant communication client, a browser client, or an educational client. The aforementioned 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, Wi-Fi, and other networks capable of wireless communication. The aforementioned 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 thereto.

[0022] Optionally, in this embodiment, the above-described control operation execution method may be applied to a game-type 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. The competitive game task may be, but is not limited to, a game task in which a virtual object in an executing virtual scene controlled and manipulated by a current player through human-computer interaction completes a competitive interaction with a virtual object controlled by another player. The competitive game task may be, but is not limited to, executed in an application (e.g., a game APP executed non-standalone) in the form of a plug-in or applet, or in an application (e.g., a game APP executed standalone) in a game engine. Furthermore, the types of the game applications described above may include at least one of the following, but are not limited to, 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 acquired; when the touch operation information indicates that the operation positions of at least two touch points match the control position of at least one target control in the 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, the 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 of high complexity in the conventional operation method for executing control operations.

[0024] It should be noted that the above is merely an example, and the present embodiment is not limited to this.

[0025] As an alternative implementation, the method for performing the above-mentioned control operation may be performed by an electronic device, as shown in Figure 2. In this embodiment, the method is applied to a terminal, and includes the following steps:

[0026] S202: Acquire 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, respectively.

[0027] The 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, or a double click operation event. In this embodiment, the touch operation information may include, but is not limited to, event identifier (ID) information, touch position information, touch pressure intensity information, and touch pressure duration information corresponding to the touch event. Specifically, in this embodiment, the touch operation information of a single long press touch operation event may include touch event A (i.e., event identifier information), (40px, 120px) (i.e., the position information of the event on the operation interface), 5N (touch pressure intensity information), and 0.1s (touch pressure duration information). The operation position refers to the operating position of the touch point on 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 on the display interface. It should be understood that the specific contents of the touch event and touch operation information described above are merely examples, and the types of touch operation events and touch operation information are not limited herein.

[0028] In this embodiment, the touch event may further include a touch operation event of multiple touch points. As shown in Figure 3, the electronic device detects a long press on the attack control 301 of the left hand finger on the display interface of the terminal, and also detects a leftward slide operation on the display interface of the right hand finger. As can be understood, such two touch operation events can be considered as a touch event in this embodiment.

[0029] S204: When the operation position matches the 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, an ammunition refill control, and a skill control. The target control may also include a display area in the display interface other than the above-mentioned operation controls. As can be understood, 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 a display area of ​​a non-operation control, the viewing angle of a 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 viewing angle of the virtual character in the figure, and the virtual scene shown has one 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 the "sliding screen to the left" operation, the interface as shown in Figure 4 is displayed, and the virtual viewing angle of the virtual character in the figure changes, that is, the viewing angle of the virtual character moves correspondingly to the right, 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 may be the same or different. The setting rule may be determined according to actual needs.

[0032] For example, when the electronic device detects that the player is controlling a virtual character to perform a "virtual pathfinding" task in a virtual scene, it is necessary to set a highly sensitive visual angle turning control effect for the player. Therefore, by setting the response priority of the display area of ​​the non-operation control to "1," it is possible to indicate that the response priority of touch operations in the display area of ​​the non-operation control is the highest. Furthermore, by setting the response priority of other operation controls to a value greater than "1," it is possible to indicate that the response priority of touch operations for the operation controls 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, the electronic device can prioritize the response to a "sliding screen" operation for switching the virtual character's visual angle, thereby improving the visual angle turning response effect during the process of the player controlling the virtual character to perform the "virtual pathfinding" task.

[0033] For example, when detecting that a player is controlling a virtual character to perform a task of "aiming and shooting" in a virtual scene, a slight change in the aiming angle can affect the accuracy of the shot, so it is necessary to set a highly sensitive "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 controls to a value greater than "1," it is possible to indicate that the response priority of touch operations in the display area corresponding to the shooting control is the highest, and that the response priority of touch operations in the display area of ​​the non-operation controls is lower than that of the display area for shooting. In this way, when a player controls a virtual character to perform a task of "aiming and shooting," when the player triggers multiple touch operations, the electronic device can prioritize responses to touch operations for the "shooting control" and slow responses to "sliding screen" operations for switching the virtual character's viewing angle, 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 at least one subject control according to the response priority label, and execute a target control operation indicated by the target control.

[0035] The target control is a target control that needs to be responded to, determined according to the response priority label, for example, the target control with the highest response priority. The target control operation is a control operation that needs to be executed and is triggered by the corresponding target control. The above method will be described in detail below in conjunction with Figures 3 and 4.

[0036] FIG. 3 illustrates a game interface when a player controls a virtual character to perform a shooting task in a virtual scene. The illustration shows a plurality of operation controls for controlling the virtual character and a view of the scene corresponding to the current virtual character. In the virtual scene, a virtual wardrobe can be seen displayed in the corner of the left wall of the virtual room. The interface also includes 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 "virtual path search" task state, and the response priority of each of the above-mentioned controls is determined accordingly. First, the response priority of the display area of ​​the non-operation controls is determined to be "1," the response priority of the attack control 301 is determined to be "2," the response priority of the movement control 302 is determined to be "3," the response priority of the skill control 303 is determined to be "4," the response priority of the shooting control 304 is determined to be "2," the response priority of the ammunition supply control 305 is determined to be "5," and the response priority of the aim control 306 is determined to be "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 single click operation, and the touch operation information thereof includes: label information of touch event A, a touch position of (40px, 120px), a touch pressure intensity of 5N, and a touch duration of 0.1s; and the touch operation of touch point B is a single leftward sliding operation, and the operation information thereof includes: label information of touch event B, a touch position of (540px, 150px), a touch pressure intensity of 5N, and a touch duration of 0.5s.

[0039] Next, the electronic device can determine that 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 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 will perform a touch response operation corresponding to touch point B.

[0040] When "sliding the screen to the left" is performed 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 Figure 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, in the figure, the virtual wardrobe in the corner of the left wall in the room is displayed, and because the visual angle has been 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 of the target control operation can be realized.

[0041] Another specific embodiment of this 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 of touch event C, touch position (40px, 40px), touch pressure intensity (5N), and touch duration (0.5s); and touch operation of touch point B is a single leftward sliding operation, and the operation information thereof includes: label information of touch event B, touch position (540px, 150px), touch pressure intensity (5N), and touch duration (0.5s).

[0043] Next, based on 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 this action is to control the virtual character to move left. Also, based on the touch operation information of the above-mentioned touch point B, the electronic device can determine that the touch point B is adopted as the display interface of the non-operation control. Then, based on 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 will perform a touch response operation corresponding to touch point B.

[0044] When "sliding the screen to the left" is performed 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 Figure 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 a virtual wardrobe in the corner of the left wall in the room, and because the visual angle has been switched to the right, a virtual wardrobe in the corner of the right wall in the virtual room is also displayed. In this way, the execution effect of the target control operation can be realized.

[0045] Another specific embodiment of the present embodiment will be described below in conjunction with FIGS.

[0046] Assume that the task that needs to be performed in the game scene where the virtual character currently resides 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, i.e., 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 its original position, but because the viewing angle direction of the virtual character does not change, the virtual scene from other viewing angles is not displayed in FIG. 6.

[0047] In an embodiment of the present application, the electronic device receives touch events; and 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; and determines a target control from the target controls according to the response priority label, and performs the target control operation indicated by the target control. In this way, when multiple touch events are detected, the control operation to be finally performed can be determined according to the matching relationship between the touch events and the target control, thereby solving the technical problem of high complexity in the conventional operation method for performing control operations.

[0048] As an optional implementation method, the step of determining a target control from 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: Sorting the response order of at least one subject control based on the response priority label and obtaining the sorting result; and S2: If 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 the 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, i.e., the touch event acts on at least two target controls, so it is necessary to determine a target control that requires a response 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 a setting operation by the player during the game, or may be set based on a real-time game scene.Note that the timing of determining the above-mentioned priority labels is not limited here.

[0051] The above method will be explained using the priority labels in the above embodiment as an example. Still taking Figure 3 as an example, assume 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 fire 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 these three touch operations correspond sequentially to the display area of ​​the 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 ​​the 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-described embodiment of the present application, the response order of the target controls is sorted based on the response priority labels to obtain a sorting result; if 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 the 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 to be finally executed is determined based on the response priorities of the multiple target controls corresponding to the multiple touch operations, thereby avoiding the problem of response control confusion when there are multiple touch operations, and solving the technical problem of high complexity in the operation method of executing control operations in the past.

[0055] As an alternative implementation method, after sorting the response order of at least one target control based on the above-mentioned response priority label to obtain a sorted result, the following steps may be further included:

[0056] S1: When the sorting results indicate 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 target control with 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] 7, there are two touch operations on the interface, corresponding to touch point I and touch point J. Touch point I acts on the attack control 301, its action time is 6:00.00 minutes after the game starts, its duration is 0.5 seconds, i.e., it lasts until 6:00.50 minutes after the game starts; touch point J acts on the shooting control 304, its action time is 6:00.10 minutes after the game starts, its duration is 0.3 seconds, i.e., 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 predetermined duration, and another touch operation is detected within this duration.

[0059] Next, the electronic device determines the target control based on the priorities of the two controls corresponding to touch point I and 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-described implementation method of the present application, if 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 of high complexity in the operation method of the conventional control operation execution can be solved.

[0061] As an alternative 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:

[0062] S1: when the operation positions of at least two touch points match the control positions of the target control in the display interface, determine the target control as a target control; S2: Determine the touch time 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 performed; and S4: Execute the target control operation.

[0063] One alternative embodiment of the above implementation scheme will now be described 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 use the operation method of "left sliding screen", while the touch operation at touch point H acts on the moving control 302 and uses the operation method of "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 which operation corresponds 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 has a duration of 0.5 seconds, and the operation time corresponding to touch point G is 5:00.15 minutes after the game starts and has a duration of 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 accordingly.

[0066] According to the above-described implementation of the present application, when the operation positions of at least two touch points match 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 times of each touch point on the 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 determine the control operation to be finally executed according to the order of the touch times of the touch points, which avoids the problem of response control confusion when there are multiple touch operations, and solves the technical problem of high complexity in the operation method of executing control operations in the past.

[0067] As an optional implementation method, after the step of executing the target control operation instructed 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 and obtain the updated sorted result; and S3: Based on the updated sorting results, determine the target control operation that needs to be performed.

[0069] As can be understood, in this implementation, when there are multiple touch points on the interface and the number of touch points changes, the touch points can be re-sorted, and the corresponding control operation can be performed based on the re-sorted result.

[0070] Specifically, the description will continue with reference to 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 use the operation method of "left sliding screen", while touch point H acts on the moving control 302 and uses the operation method of "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 the 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 performing 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 then perform 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 of the present application, when the number of at least two touch points changes, the electronic device obtains an updated response priority label; sorts the response order of the target control based on the updated response priority label to obtain an updated sorting result; and determines the target control operation to be performed based on the updated sorting result. 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, which avoids the problem of response control confusion when there are multiple touch operations, and solves the technical problem of high complexity in the operation method of performing conventional control operations.

[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, a click operation event refers to an operation event where a user clicks a touch point on the display interface, a long press operation event refers to an operation event where a user presses and holds a touch point on the display interface, a drag operation event refers to an operation event where a user drags a touch point on the display interface, and a double click operation event refers to an operation event where a user double clicks a touch point on the display interface. The touch events 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 performed 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 performing control operations is highly complex.

[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 particular, the screen displayed on the display interface may be different in different scenes, and therefore the types, number, and distribution of 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 the control position where at least one target control is located in the display interface, 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 target control in the display interface; S2: Sequentially compare 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 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 the response priority label of the target control determined to match; and S4: The response priority label of the target control determined to be a match is stored in the 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 sliding screen operation as an example.

[0082] As can be seen, one complete sliding screen operation includes three event stages, which may be described as press, slide, and release, respectively. First, before the game is launched, three events, IE_Pressed (press), IE_Repeat (slide), and IE_Released (release), are registered with the touch component of the game engine to detect touch events of the above three stages: press, slide, and release.

[0083] In this embodiment, the above-mentioned target control area information may include, but is not limited to, position information and range information within the display interface of the target control to determine the target control corresponding to the touch operation. As can be understood, the target control area information may be determined and saved before the game starts, or may be changed and saved during the game based on the player's settings. For example, before the game starts, position information and range information of multiple controls in the interface, such as attack controls, movement controls, aim controls, etc., and the display area of ​​non-controls may be saved. Furthermore, if the game player adjusts the position and size of the attack controls and movement controls during the game, the saved position information and range information of the attack controls and movement controls may be updated accordingly. Note that the method for determining the target control area information is not limited here.

[0084] In a specific application, the method for performing the control operation may further include the following steps:

[0085] S1: Obtain touch operation information.

[0086] 9, in the process of detecting the event IE_Pressed, touch operation information is first obtained. In this embodiment, the acquired touch operation information includes at least the "current finger index" (i.e., the indicator information of the current touch operation) and the screen position information corresponding to the touch operation.

[0087] S2: Determine the control that corresponds to the screen position information.

[0088] Specifically, when the saved response area information of the 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: Obtain the priority label that matches the target control; and S4: Finally, data processing is performed.

[0090] Specifically, as shown in Figure 10, the control position, control size, and priority label are encapsulated. (Here, encapsulation means storing a control position, a control size, and a priority label as a set, and hereinafter the same meaning applies in the same cases.) , and the "current finger index", i.e., the indicator information of the current touch operation, can be stored together as a keyword in the data management container.

[0091] According to the above-described implementation of the present application, the electronic device obtains response area information of a target control within a display interface; sequentially compares the operation positions of each touch point 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, determines that the operation position of the touch point matches the control position of the target control, obtains a response priority label of the target control determined to match; and stores the response priority label of the target control determined to match in a management container. In this way, the trigger event of each touch operation can be accurately obtained, thereby achieving accurate detection and response to touch operations.

[0092] As an optional implementation method, the step of determining a target control from 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 the response priority label of the target control determined to be a match from the control container; and S2: Based on the response priority label, a target control is determined from among the subject controls determined to be a match, and a target control operation indicated by the target control is executed.

[0094] One implementation of the above method will now be described in conjunction with FIG.

[0095] It can be seen 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: Obtain touch operation information.

[0097] In the process of detecting the event IE_Repeat, it is also necessary to obtain touch operation information, which includes at least 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] S2: Get data from 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, all data from the previous step are sorted.

[0102] As can be seen, in this embodiment, since the response processing is performed for the "sliding screen operation", in order to ensure the accuracy of the "slide" event detection, 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 management container of Pressed 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 management container of Pressed based on the acquired priority label.

[0104] S5: If there is only one determined highest priority, perform the sliding screen viewing angle turning operation corresponding to the target control with the highest priority.

[0105] S6: If there are multiple touches with the same highest priority, sort them according to the order of touches, and then perform the sliding screen viewing angle rotation corresponding to the most recent single touch operation.

[0106] According to the above-mentioned embodiment of the present application, the electronic device reads the response priority label of the target control determined to be a match from the management container; and determines a target control from the target controls determined to be a match based on the response priority label, and then performs the target control operation indicated by the target control. In this way, the target control that needs to be finally performed can be determined based on the stored response priority label, so that accurate detection and response to the touch operation can be achieved.

[0107] An optional implementation method further includes, after performing the target control operation indicated by the target control, removing the response priority label of the target control from the management container.

[0108] As shown in FIG. 12, in this embodiment, in addition to detecting the events IE_Pressed and IE_Repeat, the electronic device also detects the event IE_Released, that is, 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 the "current finger index" and the "pressed screen position", and thus, the data is obtained from the Pressed management container using the "current finger index" as a keyword, and after obtaining the data, the electronic device deletes the obtained data from the management container.

[0110] According to the above-mentioned embodiment of the present application, the electronic device can directly ignore the released touch operations in the process of sorting the 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, the following step is further included.

[0112] S1: Assign a response priority label to each subject control; S2: Obtaining 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 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 receiving 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. Alternatively, 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 game settings before the game starts, or may be performed based on player settings during the game. After each setting, the above information is encapsulated and stored in a management container, which makes it easy to extract and use 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 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 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, thereby solving the technical problem of the high complexity of the operation method of the conventional control operation execution.

[0115] A specific embodiment of the present application will be described below in conjunction with FIGS.

[0116] In this embodiment, an execution method for processing a sliding screen operation in a game interface is taken as an example, where the touch events include events triggered by the sliding screen operation, and the management container includes a sliding screen manager.

[0117] FIG. 13 shows the pre-processing flow of the touch operation management method.

[0118] S1: Add multiple controls to the sliding screen manager for responding to sliding screen operations.

[0119] In the game, controls related to sliding screen operations include "skill controls," "aiming controls," "fire controls," and "screen." Correspondingly, sliding screen operations on the "skill controls" are used to adjust the aiming direction of the virtual skill, sliding screen operations on the "aiming controls" are used to adjust the aiming direction of the shooting operation, sliding screen operations performed on the "shooting tool (skill)" are used to adjust the firing direction of the shooting tool, and sliding screen operations performed on the "screen" are used to adjust the viewing angle of the current virtual character. Although these four controls are all related to sliding screen operations, their operation effects are different from each other. Furthermore, because a sliding screen operation is a single long-term operation (compared to an instantaneous click operation), a player may perform multiple sliding screen operations simultaneously within a given period of time, and therefore, response control processing is required for multiple operations within the same period of time.

[0120] S2: Assign each response priority label to multiple controls for sliding screen operation responses.

[0121] Specifically, to avoid interference between effects of multiple sliding screen operations, the above-mentioned "skill control", "aiming control", "fire control" and "screen" can be assigned response priorities of "3", "2", "2" and "1", respectively. In other words, in this embodiment, the sliding screen operation on the "screen" has the highest response priority, followed by the sliding screen operations on the "aiming control" and "fire control", both of which have the same priority, and the "skill control" has the lowest response priority.

[0122] S3: Encapsulates and stores the sliding screen data of 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 a self-defined change in control position is made. 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 in response to the player's adjustment operation, thereby ensuring the accuracy of 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 the results of the encapsulation and processing in a data management container of the sliding screen manager.

[0127] Wherein, the control position refers to the location 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 control for responding to the sliding screen operation. Specifically, the electronic device performs an encapsulation process on the control position, control size, and response priority label, and stores the result obtained by the encapsulation process in the 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 sliding screen data, which is convenient for ensuring the accuracy of management of subsequent control operations.

[0129] After the preliminary data preparation work, a specific implementation method of this embodiment will be explained below with reference to FIG.

[0130] As can be seen, in the specific implementation process, three detection events related to the "sliding screen operation", IE_Pressed, IE_Repeat and IE_Released, 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 three detection events, the electronic device obtains the index (i.e., the index of the current finger) and location (i.e., the pressed screen position) information of the touch operation, records the related information, and then inputs the related data into 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 be specifically described below with reference to FIGS.

[0133] Referring to FIG. 3, it shows two touch operations on the interface, of 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, which compares the position information (40px, 120px) of "Event A" with the position information of "Event A" stored in the management container, thereby determining that the control corresponding to "Event A" is the attack control 301, and obtaining 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) into the sliding screen manager, and the sliding screen manager compares the position information (540px, 150px) of "Event B" with the position information of "Event B" stored in the management container, thereby determining that the control corresponding to "Event B" is the screen, and obtaining its corresponding priority "1" based on the response priority label set for the screen. Finally, the electronic device stores "Event B", the position information (540px, 150px), and the priority label "1" in the Pressed container.

[0136] Next, touch point B is detected using 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 acquires 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" corresponding to 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 Figure 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 complete, 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 execute "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 if the operation positions of the at least two touch points match the control positions of at least one target control in the display interface, perform 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 at least one target control that satisfies a response priority condition.

[0142] The display interface is an interface displayed on the screen of an electronic device. The display interface includes at least one target control for responding to a touch event, and the target control is located at a control position on the display interface, i.e., the corresponding target control is displayed at the control position on the display interface of the electronic device. Touch events may be triggered by various types of operation events. A control operation refers to an operation that needs to be triggered by a user through a touch event. In this embodiment, all touch events triggered by a user on at least one target control are used to trigger the execution of a target-type control operation, i.e., to trigger the same type of control operation. For example, in a game interface, a user may trigger touch events on multiple target controls, such as triggering a sliding screen operation on multiple target controls to trigger the execution of a control operation for turning a virtual camera. For target-type control operations, different target controls have different response priorities. The response priority condition is used to control the order in which the target control responds to a touch event. For example, the response priority condition may be to respond in accordance with the response order from high to low response priority, in which case the target control with the highest response priority is determined as the target control, and then the 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 a touch event is displayed at a control position on the display interface, allowing a user to trigger an interaction with the target control. 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 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, a user can trigger touch events 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. If a match is found, the electronic device executes the target control from the at least one target control based on a response priority condition, and executes the target control operation belonging to the target type indicated by the target control.

[0144] In this embodiment, when touch events are triggered for at least two touch points in the display interface, and 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 the 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 ultimately executed can be determined based on the matching relationship between the touch events and the target control, thereby solving the technical problem of high complexity in the operation method of the conventional control operation execution.

[0145] In one embodiment, the touch event includes an event triggered by a sliding screen operation, and the target control operation includes a viewing 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 that changes 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, an event triggered by a sliding screen operation 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 visual angle turning operation indicated by the target control that satisfies the response priority condition. Thus, when multiple sliding screen operations are detected, the visual angle turning operation indicated by the target control that satisfies the response priority condition can be selected and executed, thereby solving the problem of high complexity in the conventional visual angle turning operation method.

[0148] Although the above-described embodiments of the methods are described as a combination of a series of operations for the sake of convenience, those skilled in the art will understand that the present application is not limited by the order of the operations described, because some steps may be performed in other orders or simultaneously according to the present application. Furthermore, 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 acquiring unit 1602: used to acquire 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 1604: used for determining a response priority label corresponding to at least one target control when the operation position matches the control position where at least one target control is located in the display interface; and An execution unit 1606: is used to determine a target control from at least one subject control according to the response priority label, and execute 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 above-mentioned embodiments of the methods, and the detailed description thereof will be omitted here.

[0152] Another aspect of an embodiment of the present application further provides an electronic device for performing the above-described control operation execution method. The electronic device may be a terminal device or a server as shown in Fig. 17. In this embodiment, an example will be described in which the electronic device is a terminal device. As shown in Fig. 17, the electronic device includes a memory 1702 and a processor 1704, where computer-readable instructions are stored in the memory 1702, and the processor 1704 is configured to execute steps in any of the above-described method embodiments according to the computer-readable instructions.

[0153] Optionally, in this embodiment, the electronic device may be at least one of a plurality of network devices of a computer network.

[0154] Optionally, in this embodiment, the processor may be configured to perform the following steps with computer readable instructions:

[0155] S1: Acquire 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; 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 will be understood by those skilled in the art, the configuration 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., an Android smartphone, an iOS smartphone, etc.), a tablet computer, a palm computer, a mobile internet device (MID), 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 methods and devices in the embodiments of the present application. The processor 1704 executes the software programs and modules stored in the memory 1702 to perform various functional applications and data processing, i.e., to realize the control operation execution methods described above. The memory 1702 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1702 may further include a memory device located remotely from the processor 1704, and the remote memory device may be connected to the terminal via a network. Examples of such networks 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 to such information. 17, the storage 1702 may include, but is not limited to, the acquisition unit 1602, the determination unit 1604, and the execution unit 1606 in the control operation execution device, and may further include other units or modules in the control operation execution device, detailed descriptions of which will be omitted here.

[0158] Optionally, the transmission device 1706 is used to receive or transmit data over a network. Specific examples of such networks 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 wirelessly.

[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, which may be a blockchain system, and may be formed by connecting multiple 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 become 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 executing a method such as that illustrated in the flowchart. 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 executed by a central processor, the computer-readable instructions can perform various functions provided in the embodiments of the present application.

[0162] It should be noted that the sequential numbers of the above-mentioned examples of the present application are for illustrative purposes only and do not indicate the superiority or inferiority of the examples.

[0163] In one aspect of the present application, a computer-readable storage medium is further provided, wherein 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 above-mentioned method for performing control operations.

[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: Acquire 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; 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 will 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 through a program, and the program can be stored in a computer-readable storage medium, which may include flash memory, ROM (Read-Only Memory), RAM (Random Access Memory), a magnetic disk, an optical disk, etc.

[0167] The units integrated in the above-mentioned embodiments may be realized in the form of a software functional unit, or may 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, in essence, or a part that makes a contribution to the prior art, or all or a part of the technical solution, may be embodied in the form of a software product, and the computer software product is stored in a storage medium and includes a program for causing one or more computer devices (such as personal computers, servers, or network devices) to execute all or a part of the steps of the above-mentioned methods according to each embodiment of the present application.

[0168] In the above-described embodiments of the present application, emphasis may be placed on the description of each embodiment, and for parts 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 should be understood that the disclosed client may be implemented in other ways. The above-described device embodiments are merely examples. For example, the division of the above units is merely a division of logical functions. In actual implementation, other division methods may be used. For example, multiple units or assemblies may be combined or integrated into another system, or some features may be omitted or not implemented. Furthermore, the connections, direct connections, or communicative connections between devices shown or described may be indirect connections or communicative connections via several interfaces, units, or modules, or may be electrical or other types of connections.

[0170] Furthermore, 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 across multiple network units, and some or all of these units can be selected according to actual needs to realize the technical solution of this 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 integrated units described above may be realized in the form of hardware or in the form of 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. A method for performing a control operation performed by an electronic device, 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 operation position matches a control position in the display interface where the at least one target control is located; and determining a target control from 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 from the at least one target control based on the response priority label, and executing a target control operation indicated by the target control, Sorting 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, determining the target control with the highest response priority as a target control and executing a target control operation indicated by the target control, 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 the control operation time for each of the at least two target controls; and determining a target control having the earliest control operation time as a target control, and executing a target control operation indicated by the target control; The method, wherein the target control operation includes a view angle turning operation.

2. 2. The method of claim 1, determining a target control from the at least one target 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 the operation positions of the at least two touch points match a control position of the target control in the display interface; determining a touch time on the respective target control for each of the 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 performing the target control operation.

3. 2. The method of claim 1, After the step of executing the target control operation indicated by the target control, the method further comprises: When the number of the at least two touch points has changed, acquiring the updated response priority label; 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.

4. 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.

5. 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.

6. 2. The method of claim 1, When the operation position matches a control position where at least one target control is located in a display interface, determining a response priority label corresponding to the at least one target control includes: obtaining response area information for each target control in the display interface; A step of sequentially comparing the operation positions where each touch point indicated by the touch operation information is located with the control response areas indicated by the response area information of each target control, and obtaining a comparison result; 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, 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 a response priority label of the target control determined to be a match in an administrative container.

7. 7. The method of claim 6, determining a target control from the at least one target control based on the response priority label, and executing a target control operation indicated by the target control, reading from the management container the response priority label of the target control determined to be a match; and determining a target control from among the subject controls determined to be a match based on the response priority label, and executing the target control operation indicated by the target control.

8. 8. The method of claim 7, 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.

9. 7. The method of claim 6, Before the step of acquiring 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 a step of storing the response priority label and the response area information of the target control as a set in the management container.

10. 7. The method of claim 6, 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 responding to the sliding screen operation; and storing sliding screen data for said sliding screen operation as a set.

11. 11. The method of claim 10, the sliding screen data includes a control position, a control size, and the response priority label; The step of storing the sliding screen data of the sliding screen operation as a set includes: The method includes a step of performing a process for storing the control position, the control size, and the response priority label as a set, and storing a result obtained by the process in a data management container of the sliding screen manager.

12. 1. A device for performing a control operation, comprising: an acquiring unit for 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; a determining unit for determining a response priority label corresponding to at least one target control when the operation position matches a control position where the at least one target control is located in a display interface; and an execution unit that determines a target control from among the at least one subject control based on the response priority label, and executes a target control operation indicated by the target control; The execution unit: Sorting the response order of the at least one target control based on the response priority label to obtain a sorted result; and 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 a target control operation indicated by the target control; After sorting the response order of the at least one target control based on the response priority label and obtaining a sorting result, the execution unit further: If 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 determining the target control having the earliest control operation time as a target control, and executing a target control operation instructed by the target control; The apparatus, wherein the target control operation includes a visual angle turning operation.

13. A program for causing a computer to execute the method according to any one of claims 1 to 11.

14. An electronic device including a memory and a processor connected to the memory, The storage device stores a computer program, 12. An electronic device, wherein the processor is configured to execute the computer program to implement the method of any one of claims 1 to 11.

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