Method and apparatus for controlling execution of an operation, storage medium, and electronic device
Patent Information
- Application Number
- CN202210199987.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-01
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2042-03-01
AI Technical Summary
[0006]本发明实施例提供了一种控制操作的执行方法和装置、存储介质及电子设备,以至少解决现有控制操作过程的响应效率较差的技术问题
[0012]在本发明实施例中,获取触控事件;在触控操作信息指示至少两个触控点各自所在的操作位置与显示界面中至少一个对象控件所在的控件位置相匹配的情况下,确定至少一个对象控件对应的响应优先级标签;按照响应优先级标签,从对象控件中确定出目标控件,并执行目标控件所指示的目标控制操作,从而在检测到触控事件包括的多个触控信息的情况下,根据触控事件与对象控件的匹配关系确定最终执行的控制操作,进而解决了现有控制操作的执行的操作方式复杂度高的技术问题。
Smart Images

Figure CN116726475B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computers, and more specifically, to a management method and apparatus for controlling operations, a storage medium, and an electronic device. Background Technology
[0002] Nowadays, in many 3D simulation game applications, virtual characters in the virtual game scene are usually controlled by controls with different control functions configured on the display interface, so that they can complete the virtual game tasks set in the virtual game scene.
[0003] In practical applications, touch operations on various controls on the display interface are often multi-touch operations, meaning that multiple fingers are frequently detected touching the phone screen simultaneously. For example, consider a steering control used to adjust the orientation of a controlled virtual character. This control adjusts the virtual character's orientation to the target orientation selected by the touch operation on the control. However, when multi-touch operations are detected on the steering control, situations arise where the steering speed overlaps or cancels out: 1) If multiple fingers slide in different directions, the orientation adjustment of the controlled virtual character will conflict and fail; 2) If multiple fingers slide in the same direction, the orientation adjustment speed of the controlled virtual character will be too fast.
[0004] In other words, current multi-point triggered control operations can easily trigger control operations that are not intended to be performed, resulting in responses that fail to meet the user's actual needs. In other words, in related technologies, multi-point triggered control operations force users to make multiple attempts to trigger the control operation truly intended, leading to a complex control process and slow response efficiency.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] The present invention provides a method and apparatus for executing control operations, a storage medium and an electronic device, to at least solve the technical problem of poor response efficiency in existing control operation processes.
[0007] According to one aspect of the present invention, a method for executing a control operation is provided, comprising: acquiring a touch event, wherein the touch event carries touch operation information of at least two touch points; determining a response priority label corresponding to at least one object control when the touch operation information indicates that the operation position of each of the at least two touch points matches the control position of at least one object control in the display interface; determining a target control from the object controls according to the response priority label, and executing the target control operation indicated by the target control.
[0008] According to another aspect of the present invention, an execution device for control operations is also provided, comprising: an acquisition unit for acquiring touch events, wherein the touch events carry touch operation information of at least two touch points; a determination unit for determining a response priority label corresponding to at least one object control when the touch operation information indicates that the operation positions of at least two touch points match the control positions of at least one object control in the display interface; and an execution unit for determining a target control from the object controls according to the response priority label and executing the target control operation indicated by the target control.
[0009] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the execution method of the above-described control operation when it is run.
[0010] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the execution method of the control operations described above.
[0011] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the execution method of the control operation described above through the computer program.
[0012] In this embodiment of the invention, a touch event is acquired; when the touch operation information indicates that the operation position of at least two touch points matches the control position of at least one object control in the display interface, a response priority label corresponding to at least one object control is determined; according to the response priority label, a target control is determined from the object controls, and the target control operation indicated by the target control is executed. Thus, when multiple touch information included in the touch event are detected, the final control operation to be executed is determined according to the matching relationship between the touch event and the object control, thereby solving the technical problem of high complexity in the execution mode of existing control operations. Attached Figure Description
[0013] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0014] Figure 1This is a schematic diagram of the hardware environment for an optional control operation execution method according to an embodiment of the present invention;
[0015] Figure 2 This is a flowchart of an optional control operation execution method according to an embodiment of the present invention;
[0016] Figure 3 This is a schematic diagram of an optional control operation execution method according to an embodiment of the present invention;
[0017] Figure 4 This is a schematic diagram of another optional control operation execution method according to an embodiment of the present invention;
[0018] Figure 5 This is a schematic diagram of another optional control operation execution method according to an embodiment of the present invention;
[0019] Figure 6 This is a schematic diagram of another optional control operation execution method according to an embodiment of the present invention;
[0020] Figure 7 This is a schematic diagram of another optional control operation execution method according to an embodiment of the present invention;
[0021] Figure 8 This is a schematic diagram of another optional control operation execution method according to an embodiment of the present invention;
[0022] Figure 9 This is a flowchart of another optional control operation execution method according to an embodiment of the present invention;
[0023] Figure 10 This is a schematic diagram of another optional control operation execution method according to an embodiment of the present invention;
[0024] Figure 11 This is a flowchart of another optional control operation execution method according to an embodiment of the present invention;
[0025] Figure 12 This is a flowchart of another optional control operation execution method according to an embodiment of the present invention;
[0026] Figure 13 This is a flowchart of another optional control operation execution method according to an embodiment of the present invention;
[0027] Figure 14 This is a flowchart of another optional control operation execution method according to an embodiment of the present invention;
[0028] Figure 15 This is a schematic diagram of the structure of an execution device for an optional control operation according to an embodiment of the present invention;
[0029] Figure 16 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation
[0030] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0032] It is understood that in the specific embodiments of this application, data related to operation information and control operations are involved. When the above embodiments of this application are applied to specific products or technologies, it is necessary to obtain the user's authorization or consent, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0033] According to one aspect of the present invention, a method for executing a control operation is provided. As an optional implementation, the method for executing the control operation may be applied to, but is not limited to, [examples of other methods]. Figure 1 The hardware environment shown illustrates a control operation execution system, which may include, but is not limited to, terminal device 102, network 104, server 106, and database 108. Terminal device 102 runs a target client (e.g., ...). Figure 1 As shown, taking a shooting game application client as an example. The aforementioned terminal device 102 includes a human-computer interaction screen, a processor, and a memory. The human-computer interaction screen is used to display virtual game scenes (such as...). Figure 1The virtual shooting game scene shown also provides a human-computer interaction interface to receive human-computer interaction operations for controlling virtual objects within the virtual scene. These virtual objects will complete game tasks set within the virtual scene. The processor generates interaction instructions in response to the aforementioned human-computer interaction operations and sends these instructions to the server. The memory stores relevant attribute data, such as object attribute information of the controlled virtual objects and attribute information of the held items.
[0034] In addition, server 106 includes a processing engine for performing store or read operations on database 108. Specifically, the processing engine reads the position of each virtual object and the aiming and firing information of the shooting tools it uses from database 108.
[0035] The specific process is as follows: As in steps S102-S106, a touch event is acquired in the terminal device 102, where the touch event carries touch operation information for at least two touch points. If the touch operation information indicates that the operation positions of at least two touch points match the control positions of at least one object control in the display interface, a response priority label corresponding to at least one object control is determined. According to the response priority label, a target control is identified from the object controls, and the target control operation indicated by the target control is executed. Then, step S108 is executed, where the terminal device 102 sends the target control operation result information to the server 106 via network 104. It can be understood that the target control result information is used to indicate the operation result of the target control operation. The server 106 will execute step S110, whereby the server 106 calculates scene response information based on the target control operation result information. It can be understood that the scene response information is determined based on the target control operation result information combined with the virtual scene. Then, as in step S112, the server 106 sends the scene response information to the terminal device 102 via network 104.
[0036] As another optional implementation, when the terminal device 102 has powerful computing capabilities, the above-mentioned step S110 can also be performed by the terminal device 102. This is just an example, and no limitation is made in this embodiment.
[0037] Optionally, in this embodiment, the terminal device can be a terminal device configured with a target client, which may include, but is not limited to, at least one of the following: mobile phone (such as Android phone, iOS phone, etc.), laptop computer, tablet computer, PDA, MID (Mobile Internet Devices), PAD, desktop computer, smart TV, etc. The target client can be a video client, instant messaging client, browser client, educational client, or other client that supports providing shooting game tasks. The network can include, but is not limited to, wired networks and wireless networks. The wired network includes: local area network (LAN), metropolitan area network (MAN), and wide area network (WAN). The wireless network includes: Bluetooth, Wi-Fi, and other networks that enable wireless communication. The server can be a single server, a server cluster consisting of multiple servers, or a cloud server. The above is merely an example, and no limitation is made in this embodiment.
[0038] Optionally, in this embodiment, the execution method of the above-mentioned control operation can be applied, but is not limited to, to game-type terminal applications (APPs) that complete predetermined competitive game tasks in a virtual scene, such as shooting game applications in Multiplayer Online Battle Arena (MOBA) applications. The aforementioned competitive game task can be, but is not limited to, a game task completed by the current player through human-computer interaction control operations, where virtual objects in the virtual scene interact with virtual objects controlled by other players. This competitive game task can, but is not limited to, run as a plugin or mini-program within an application (such as a non-standalone game APP), or run within a game engine within an application (such as a standalone game APP). The types of the aforementioned game applications can include, but are not limited to, at least one of the following: 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. The above is merely an example, and this embodiment does not impose any limitations on it.
[0039] In this embodiment of the invention, a touch event is acquired; when the touch operation information indicates that the operation position of at least two touch points matches the control position of at least one object control in the display interface, a response priority label corresponding to at least one object control is determined; according to the response priority label, a target control is determined from the object controls, and the target control operation indicated by the target control is executed. Thus, when multiple touch information included in the touch event are detected, the final control operation to be executed is determined according to the matching relationship between the touch event and the object control, thereby solving the technical problem of high complexity in the execution mode of existing control operations.
[0040] The above is merely an example, and no limitation is made in this embodiment.
[0041] As an optional implementation method, such as Figure 2 As shown, the method for executing the above control operation includes the following steps:
[0042] S202, Obtain a touch event, wherein the touch event carries touch operation information of at least two touch points;
[0043] It should be noted that the aforementioned touch events can be touch operation events received by the mobile terminal and applied to the display interface, such as click operation events, long press operation events, drag operation events, double-click operation events, etc. In this embodiment, the aforementioned touch event information may include, but is not limited to, event marker information, touch position information, touch pressure information, touch press time information, etc., 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 marker information), (40px, 120px) (i.e., the position information of the event on the operation interface), 5N (touch pressure information), and 0.1s (touch press time information). It is understood that the specific content of the aforementioned touch events and touch operation information is only an example, and the types of touch operation events and touch operation information are not limited here.
[0044] It should be understood that, in this embodiment, the aforementioned touch events may also include touch operation events for multiple touch points, such as... Figure 3 As shown, in the terminal's display interface, a long press operation of the left-hand finger on the attack control 301 was detected, and a leftward swipe operation of the right-hand finger on the display interface was detected. It can be understood that the above two touch operation events can be regarded as touch events in this embodiment.
[0045] S204, when the touch operation information indicates that the operation positions of at least two touch points match the control positions of at least one object control in the display interface, determine the response priority label corresponding to at least one object control;
[0046] Next, the object controls in this embodiment will be explained. Object controls can be operation controls used to trigger various control operations in the display interface, including but not limited to attack controls, movement controls, aiming controls, reload controls, and skill controls. Object controls can also include display areas in the display interface other than the aforementioned operation controls. It is understood that in this embodiment, performing touch operations on display areas other than the aforementioned controls can also produce corresponding control effects, such as: when a swipe operation is detected in a display area other than an operation control, the viewpoint of the virtual character in the display interface can be controlled to change accordingly. Figure 3 , Figure 4 As shown, Figure 3 The image shows a scene from the virtual perspective of a virtual character. The virtual scene depicts a virtual wardrobe in the left corner. Assuming... Figure 3 If the right hand performs a "swipe left" operation on touch point B in the non-operation control display area, the following will be displayed: Figure 4 As shown, the virtual perspective of the virtual character in the image has changed, that is, the virtual character's perspective has moved to the right, thus revealing another virtual wardrobe in the right corner of the virtual scene.
[0047] Next, the response priority labels in this embodiment will be explained. It is understood that in this embodiment, a response priority label is pre-configured for each object control to indicate the corresponding priority of touch operations applied to that control. The response priority labels may be the same or different for different object controls. The configuration principle can be determined according to actual needs.
[0048] For example, when a player is controlling a virtual character to perform a "virtual exploration" task in a virtual scene, a sensitive view-turning control effect needs to be configured for the player. This can be achieved by configuring the response priority of the display area for non-operational controls to "1," indicating that touch operations in this area have the highest response priority. The response priority of other operation controls can be configured to values greater than "1," indicating that touch operations on these controls have a lower priority than those on the non-operational control display area. This ensures that when a player triggers multiple touch operations while controlling the virtual character to perform a "virtual exploration" task, the "swipe" operation used to switch the virtual character's view will receive priority, thus improving the view-turning responsiveness during the "virtual exploration" process.
[0049] For example, when a player is controlling a virtual character to perform an "aiming and shooting" task in a virtual scene, even slight changes in the aiming perspective can affect shooting accuracy. Therefore, a sensitive "shooting response" is needed, while the "view switching response" is reduced. This can be achieved by configuring the priority of the "shooting control" to "1" and configuring the response priority of the display area for non-operational controls to a value greater than "1." This indicates that touch operations in the display area corresponding to the shooting control have the highest response priority, while touch operations in the display area for non-operational controls have a lower priority than those in the shooting display area. This ensures that when a player triggers multiple touch operations while controlling the virtual character to perform an "aiming and shooting" task, touch operations related to the "shooting control" are responded to first, while "swipe" operations used to switch the virtual character's view are responded to with a delayed response, thus improving the shooting response effect when the player controls the virtual character to perform the "shooting task."
[0050] S206, determine the target control from the object controls according to the response priority label, and execute the target control operation indicated by the target control.
[0051] The following combination Figure 3 , Figure 4 The above methods will be explained in detail.
[0052] like Figure 3 The diagram shows a game interface where a player controls a virtual character to perform shooting missions in a virtual scene. The diagram illustrates multiple control buttons for the virtual character and the corresponding scene view. In this virtual scene, a virtual wardrobe is visible in the left corner of the virtual room. The interface also shows an attack control 301 for controlling the virtual character to perform an attack; a movement control 302 for controlling the virtual character to perform a movement; a skill control 303 for controlling the virtual character to use virtual skills; a shooting control 304 for controlling the virtual character to perform another attack; a reload control 305 for controlling the virtual character to reload; and a scope control 306 for controlling the virtual character to aim.
[0053] Continue as Figure 3 As shown, the virtual character in the game interface is in a "virtual exploration" mission state, thus determining the response priority of each of the above controls. First, the response priority of the display area of the non-operation control is determined to be "1", the response priority of the attack control 301 is "2", the response priority of the movement control 302 is "3", the response priority of the skill control 303 is "4", the response priority of the shooting control 304 is "2", the response priority of the reload control 305 is "5", and the response priority of the scope control 306 is "6".
[0054] like Figure 3 As shown, the trigger events obtained in this interface include touch operation information of touch point A and touch operation information of touch point B. The touch operation of touch point A is a single click operation, and its touch operation information includes: label information: touch event A, touch position: (40px, 120px), touch pressure: 5N, touch press time: touch duration: 0.1s; the touch operation of touch point B is a single swipe left operation, and its operation information includes: label information: touch event B, touch position: (540px, 150px), touch pressure: 5N, touch duration: 0.5s.
[0055] Furthermore, based on the touch operation information of touch point A, it can be determined that touch point A acts on the attack control 301, and based on the touch operation information of touch point B, it can be determined that touch point B acts on the display interface of a non-operational control. Furthermore, based on the response priority "2" of the attack control 301 and the response priority "1" of the display area of the non-operational control, it is determined that the target control is the display area of the non-operational control, i.e., the touch response operation corresponding to touch point B is executed.
[0056] Since performing a "swipe left" operation on the display area of non-operational controls results in a "switch view to the right," the displayed interface appears as follows: Figure 4 As shown, the scene is displayed by switching the viewpoint to the right from the original perspective. That is, the image not only shows the virtual wardrobe in the left corner of the room, but also, due to the rightward shift of the viewpoint, the virtual wardrobe in the right corner of the virtual room. This achieves the effect of executing target control operations.
[0057] The following combination Figure 5 , Figure 4 Another specific embodiment of this implementation will be described below.
[0058] like Figure 5 As shown, the trigger events obtained in this interface include touch operation information for touch point C and touch operation information for touch point B. The touch operation for touch point C is a left swipe, and its touch operation information includes: label information: touch event C, touch position: (40px, 40px), touch pressure: 5N, touch duration: 0.5s. The touch operation for touch point B is also a left swipe, and its operation information includes: label information: touch event B, touch position: (540px, 150px), touch pressure: 5N, touch duration: 0.5s.
[0059] Furthermore, based on the touch operation information of touch point C, it can be determined that touch point C acts on the motion control 302, and its effect is to control the virtual character to move to the left. Based on the touch operation information of touch point B, it can be determined that touch point B acts on the display interface of a non-operational control. Furthermore, based on the response priority "3" of the motion control 302 and the response priority "1" of the display area of the non-operational control, the target control is determined to be the display area of the non-operational control, i.e., the touch response operation corresponding to touch point B is executed.
[0060] Since performing a "swipe left" operation on a non-operational control display area results in a "switch view to the right" effect, the displayed interface appears as follows: Figure 4 As shown, the scene is displayed by switching the viewpoint to the right from the original perspective. That is, the image not only shows the virtual wardrobe in the left corner of the room, but also, due to the rightward shift of the viewpoint, the virtual wardrobe in the right corner of the virtual room. This achieves the effect of executing target control operations.
[0061] The following combination Figure 5 , Figure 6 Another specific embodiment of this implementation will be described below.
[0062] Assuming the current game scene where the virtual character is located requires the task of "escaping," the response priority of the movement control 302 is adjusted to "1," and the response priority of the display area of non-operational controls is adjusted to "2." In obtaining... Figure 5 Given the touch information from the two touch points shown, the target control is determined to be the motion control 302, and the control operation corresponding to the motion control 302 is executed. Furthermore, as... Figure 6 As shown, the virtual character moves a distance to the left from its original position, but this does not change the virtual character's viewing direction. Figure 6 Other perspectives of the virtual scene are not shown.
[0063] In this embodiment of the invention, touch events are acquired; when the touch operation information indicates that the operation positions of at least two touch points match the control positions of at least one object control in the display interface, a response priority label corresponding to at least one object control is determined; according to the response priority label, a target control is determined from the object controls, and the target control operation indicated by the target control is executed. Thus, when multiple touch events are detected, the final control operation to be executed is determined based on the matching relationship between the touch events and the object controls, thereby solving the technical problem of high complexity in the execution mode of existing control operations.
[0064] As an optional implementation, the above-described method of determining the target control from the object controls according to the response priority label and executing the target control operation indicated by the target control includes:
[0065] S1, sort the response order of object controls according to the response priority label to obtain the sorting result;
[0066] S2, if the sorting result indicates that the object control with the highest response priority is an object control, determine the object control with the highest response priority as the target control, and execute the target control operation indicated by the target control.
[0067] It should be noted that, in this embodiment, the aforementioned priority labels can be configured for each object control before the game starts, configured during the game based on a specific scenario, configured during the game based on player settings, or configured based on the real-time game scenario. There are no restrictions on when the aforementioned priority labels are determined.
[0068] The above method will be explained using the priority label in the above embodiment as an example. Continuing with... Figure 3 For example, assuming the response priority of the display area of the non-operation control is "1", the response priority of the attack control 301 is "2", the response priority of the movement control 302 is "3", the response priority of the skill control 303 is "4", the response priority of the shooting control 304 is "2", the response priority of the reload control 305 is "5", and the response priority of the scope control 306 is "6".
[0069] Furthermore, assuming that three touch operations are obtained, touch operation D, touch operation E, and touch operation F, and the touch points corresponding to the touch operations correspond to the display area of the non-operation control (priority "1"), the movement control 302 (priority "3"), and the scope control 306 (priority "4") respectively, the response order of the corresponding object controls for touch operation D, touch operation E, and touch operation F is determined to be: display area of the non-operation control (priority "1"), movement control 302 (priority "3"), and scope control 306 (priority "4").
[0070] Based on the sorting results above, the display area of the non-operation control is determined as the target control, and the touch operation D indicated by the non-operation control is executed on the display area of the non-operation control, thereby displaying the scene after the corresponding viewpoint switch.
[0071] The method described in the above embodiments of this application sorts the response order of object controls according to the response priority label to obtain a sorting result. When the sorting result indicates that the object control with the highest response priority is a single object control, the object control with the highest response priority is determined as the target control, and the target control operation indicated by the target control is executed. Thus, when there are multiple touch operations in the current display interface, the final control operation to be executed is determined according to the response priority of the multiple target controls corresponding to the multiple touch operations. This avoids the problem of chaotic control response when there are multiple touch operations and solves the technical problem of high complexity in the execution of existing control operations.
[0072] As an optional implementation, after sorting the response order of object controls according to the response priority label and obtaining the sorting result, the method further includes:
[0073] S1, if the sorting result indicates that the object control with the highest response priority includes at least two object controls, determine the control operation time of each of the at least two object controls;
[0074] S2 identifies the object control with the earliest control operation time as the target control and executes the target control operation indicated by the target control.
[0075] The following combination Figure 7 Another alternative embodiment of the above-described implementation method will be described.
[0076] like Figure 7 As shown, in this interface, there are two touch operations corresponding to touch point I and touch point J. Touch point I is applied to the attack control 301, with an application time of 6:00:00 after the game starts and a duration of 0.5 seconds, i.e., continuing until 6:00:50 after the game starts. Touch point J is applied to the shooting control 304, with an application time of 6:00:10 after the game starts and a duration of 0.3 seconds, i.e., continuing until 6:00:40 after the game starts. It can be seen that in this embodiment, the touch operation of touch point I has a duration, and during this duration, another touch operation is detected.
[0077] Next, the target control is determined based on the priority of the two controls corresponding to touch points I and J. The response priority of the fake attack control 301 is "2", and the response priority of the shooting control 304 is also "2". It is evident that the two controls have the same priority. Therefore, based on the operation time, the earliest target control is determined to be the attack control 301, and the control operation corresponding to the attack control 301 is executed. Assuming the attack method corresponding to the attack control 301 is sniper shooting, and the attack method corresponding to the shooting control 304 is shotgun shooting, the final control result is to control the virtual character to perform sniper shooting.
[0078] Through the above-described embodiments of this application, when the sorting result indicates that the object control with the highest response priority includes at least two object controls, the control operation time of each of the at least two object controls is determined; the object control with the earliest control operation time is determined as the target control, and the target control operation indicated by the target control is executed, thereby avoiding the problem of chaotic control response when there are multiple touch operations, and solving the technical problem of high complexity in the existing control operation execution method.
[0079] As an optional implementation, the above-described method of determining the target control from the object controls according to the response priority label and executing the target control operation indicated by the target control includes:
[0080] S1, if the operation positions of at least two touch points match the control position of an object control in the display interface, determine an object control as the target control;
[0081] S2, determine the touch time of each touch point on the target control;
[0082] S3 determines the operation triggered by the touch point with the earliest touch time as the target control operation to be executed;
[0083] S4, execute the target control operation.
[0084] The following combination Figure 8 An optional embodiment of the above-described implementation method will be described.
[0085] like Figure 8As shown, there are three touch operations on the display interface, corresponding to touch points F, G, and H. The touch operations corresponding to touch points F and G are applied to the display area of the non-operational control, with the operation method being "swipe left". The touch operation at touch point H is applied to the moving control 302, with the operation method being "swipe left". Based on the response priority of the non-operational control's display area being "1" and the response priority of the moving control 302 being "3", the sorting result can be determined as: non-operational control's display area and non-operational control's display area (both controls are tied for first place), then moving control 302. Further analysis is needed to determine the operation corresponding to the target control from the two operations on the non-operational control's display area.
[0086] Assuming the operation time corresponding to touch point F is 5:00:00 after the game starts, and the duration is 0.5 seconds, and the operation time corresponding to touch point G is 5:00:15 after the game starts, and the duration is also 0.5 seconds, it can be determined that the operation corresponding to touch point F is the earliest operation. Therefore, the control operation corresponding to the area corresponding to touch point F is executed, which corresponds to switching the virtual view of the game scene to the right.
[0087] Through the above-described embodiments of this application, when the operation positions of at least two touch points match the control position of an object control in the display interface, an object control is identified as a target control; the touch time of each touch point on the target control is determined; the operation triggered by the touch point with the earliest touch time is identified as the target control operation to be executed; and the target control operation is executed. This achieves the determination of the final control operation to be executed based on the order of touch times of the touch points when there are multiple touch points in the same touch area of the display interface, thereby avoiding the problem of chaotic control response when there are multiple touch operations and solving the technical problem of high complexity in the execution of existing control operations.
[0088] As an optional implementation, after executing the target control operation indicated by the target control, the method further includes:
[0089] S1, if the number of at least two touch points changes, obtain the updated response priority label;
[0090] S2, sort the response order of object controls according to the updated response priority labels to obtain the updated sorting result;
[0091] S3 determines the target control operation to be performed based on the updated sorting results.
[0092] It is understood that in this embodiment, if there are multiple touch points on the interface and the number of touch points changes, they will be reordered, and the corresponding control operation will be executed according to the reordering result.
[0093] Specifically, continue to combine Figure 8 Please provide an explanation. For example... Figure 8 As shown, there are three touch operations on the display interface, corresponding to touch points F, G, and H. Touch points F and G are applied to the display area of the non-operational control, with the operation being "swipe left". Touch point H is applied to the moving control 302, with the operation being "swipe left". Based on the response priority of "1" for the display area of the non-operational control and "3" for the moving control 302, the ranking can be determined as: display area of the non-operational control and the non-operational control display area (tied for first), then moving control 302. Furthermore, the operation corresponding to the target control can be further determined from the two operations on the display area of the non-operational control.
[0094] After determining that the operation corresponding to touch point F is the operation to be executed, and executing the control operation corresponding to the area corresponding to touch point F, assuming that 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. Further, according to the method described above, based on the priority label, from the controls corresponding to touch points G and H, the target control is determined to be the display area of the non-operational control corresponding to touch point G, and the operation corresponding to touch point G is executed, that is, continuing to control the virtual character in the virtual scene to switch the view to the right.
[0095] Through the above-described embodiments of this application, when the number of at least two touch points changes, an updated response priority label is obtained; the response order of the object controls is sorted according to the updated response priority label to obtain an updated sorting result; and the target control operation to be executed is determined according to the updated sorting result. This enables the dynamic determination of the next control operation to be executed based on the updated response priority label and the sorting result when the number of touch points changes, thereby avoiding the problem of chaotic control response when there are multiple touch operations and solving the technical problem of high complexity in the execution of existing control operations.
[0096] As an optional implementation, when the touch operation information indicates that the operation positions of at least two touch points match the control positions of at least one object control on the display interface, determining the response priority label corresponding to at least one object control includes:
[0097] S1, obtain the response area information of the object control in the display interface;
[0098] S2, compare the operation position of each touch point indicated by the touch operation information with the control response area indicated by the response area information of each object control in turn to obtain the comparison result;
[0099] S3, if the comparison result indicates that the operation position of the touch point is located within the control response area of the object control, determine that the operation position of the touch point matches the control position of the object control, and obtain the response priority label of the determined matching object control;
[0100] S4. Save the response priority label of the matched object control to the management container.
[0101] In this embodiment, the specific implementation of the above-mentioned control operation execution method is explained using the execution method of swiping screen operation as an example.
[0102] Understandably, a complete swipe operation involves three event phases, which can be described as press, swipe, and release. First, before the game starts, the three events IE_Pressed (press), IE_Repeat (swipe), and IE_Released (release) are registered with the game engine's touch component to detect the touch events in the above three phases of press, swipe, and release.
[0103] In this embodiment, the area information of the aforementioned object control may include, but is not limited to, the position and range information of the object control in the display interface, used to determine the object control corresponding to the touch operation. It is understood that the area information of the object control can be determined and saved before the game starts, or it can be changed during the game according to the player's settings and then updated and saved. For example, before the game starts, the position and range information of multiple controls in the interface, such as attack controls, movement controls, scope controls, etc., as well as the display areas of non-controls, are saved; during the game, assuming the player adjusts the position and size of the attack controls and movement controls, the saved position and range information of the attack controls and movement controls are updated accordingly. No limitation is placed on the method for determining the area information of the object control.
[0104] S1, Obtain touch operation information;
[0105] like Figure 9 As shown, during the detection of the IE_Pressed event, touch operation information is first acquired. In this embodiment, the acquired touch operation information includes at least the "current finger index" (i.e., the identifier information of the current touch operation) and the screen position information corresponding to the touch operation.
[0106] S2, determine the control corresponding to the screen position information;
[0107] Specifically, after obtaining the saved response area information of the object control, the position information of the current touch operation is compared with the saved response area information of the object control to determine the object control corresponding to the current touch operation.
[0108] S3, retrieves the priority label that matches the object control;
[0109] S4, finally, performs data processing.
[0110] Specifically, it can be like Figure 10 As shown, the control position, control size, and priority label are encapsulated and stored together in the data management container using the "current finger index," which is the identifier of the current touch operation, as the keyword.
[0111] Through the above-described embodiments of this application, the response area information of object controls in the display interface is obtained; the operation position of each touch point indicated by the touch operation information is sequentially compared with the control response area indicated by the response area information of each object control to obtain a comparison result; if the comparison result indicates that the operation position of the touch point is located within the control response area of the object control, it is determined that the operation position of the touch point matches the control position of the object control, and the response priority label of the determined matching object control is obtained; the response priority label of the determined matching object control is saved to the management container, thereby accurately obtaining the trigger event of each touch operation, and thus realizing accurate detection and response of touch operation.
[0112] As an optional implementation, the above-described method of determining the target control from the object controls according to the response priority label and executing the target control operation indicated by the target control includes:
[0113] S1, Read the response priority label of the matched object control from the management container;
[0114] S2, based on the response priority label, identifies the target control from the matched object controls and executes the target control operation indicated by the target control.
[0115] Combination Figure 11 One implementation of the above method will be described.
[0116] It is understood that in this embodiment, in addition to detecting the IE_Pressed event, the IE_Repeat event is also detected. The steps are as follows:
[0117] S1, Obtain touch operation information;
[0118] During the detection of the IE_Repeat event, it is also necessary to obtain touch operation information. The operation information includes at least the "current finger index", which is the identifier information of the current touch operation, and the screen position information corresponding to the touch operation.
[0119] S2, retrieve data from Pressed;
[0120] Specifically, data is retrieved from the management container of Pressed using "current finger index" as the keyword.
[0121] S3: If the corresponding data is not obtained, no operation is performed;
[0122] S4, if the corresponding data is obtained, sort all the data from the previous step;
[0123] It is understandable that in this embodiment, since the response processing is for "swipe operation", in order to ensure the accuracy of "swipe" event detection, data matching and acquisition must be performed in the management container of Pressed with the same "current finger index" to ensure that each "swipe" event is triggered by a "press" event.
[0124] Next, since the data stored in the Pressed management container includes the priority of the object controls corresponding to the touch operation, the object controls corresponding to all the data in the Pressed management container are sorted according to the obtained priority labels.
[0125] S5, if there is only one highest priority, execute the swipe view turning operation corresponding to the object control with the highest priority.
[0126] S6, in the case of multiple having the same highest priority, sort them according to the order of touch screens, and execute the swipe view turn corresponding to the latest touch screen operation.
[0127] Through the above embodiments of this application, the response priority tags of the matched object controls are read from the management container; based on the response priority tags, the target control is determined from the matched object controls, and the target control operation indicated by the target control is executed, thereby realizing the determination of the final target control to be executed based on the saved response priority tags, and thus realizing accurate detection and response of touch operations.
[0128] As an optional implementation, after executing the target control operation indicated by the target control, the method further includes: removing the response priority label of the target control from the management container.
[0129] like Figure 12As shown, in this embodiment, in addition to detecting the events IE_Pressed and IE_Repeat, the event IE_Released is also detected, that is, whether the touch event has ended.
[0130] Understandably, during the detection of the IE_Released event, the touch operation information obtained also includes the "current finger index" and the "screen position pressed". Then, the "current finger index" is used as the keyword to retrieve data from the management container of Pressed. If the data is retrieved, the retrieved data is deleted from the management container.
[0131] Through the above embodiments of this application, by removing the response priority label of the target control from the management container after executing the target control operation indicated by the target control, and then sorting the touch event data in IE_Repeat, the released touch operation can be directly ignored, thereby avoiding erroneous responses to multiple touch operations.
[0132] As an optional implementation, the above-described method further includes, before acquiring the touch event:
[0133] S1, assign a response priority label to each object control;
[0134] S2, obtain the response area information of the object control, wherein the response area information is used to indicate the control response area of the object control in the display interface;
[0135] S3 encapsulates the response priority label and response area information of the object control and saves them to the management container.
[0136] Understandably, in this embodiment, before acquiring touch events, it is necessary to assign a response priority label to each object control and determine the response position and response area of each object control. As an optional approach, the response priority label and the determination of the response position and response area of each object control can be set according to game settings before the game starts, or can be set during the game based on player actions. After each setting, the above information is encapsulated and saved to a management container for subsequent extraction and use.
[0137] Through the above embodiments of this application, a response priority label is assigned to each object control; the response area information of the object control is obtained, wherein the response area information is used to indicate the control response area of the object control in the display interface; the response priority label and response area information of the object control are encapsulated and saved to a management container, thereby enabling the priority, position and area range of the object control to be set as needed, thereby making the response to touch operation more accurate, and thus solving the technical problem of high complexity of existing control operation execution methods.
[0138] The following combination Figure 13 , Figure 14 A specific embodiment of this application will be described.
[0139] In this embodiment, the method of processing and executing swiping operations in the game interface is used as an example for explanation.
[0140] like Figure 13 The diagram shows the preprocessing flow of the touch operation management method.
[0141] S1, Add multiple controls to the swipe manager;
[0142] In a game, the controls related to swipe gestures include "skill controls," "scope controls," "shooting controls," and the "screen." Specifically, swiping on the "skill controls" adjusts the aiming direction of a virtual skill; swiping on the "scope controls" adjusts the aiming direction of a shooting action; swiping on "shooting items" adjusts the firing direction; and swiping on the "screen" adjusts the current virtual character's view. All four controls are related to swipe gestures, but their effects differ. Furthermore, since swiping is a prolonged action (compared to a momentary click), players may perform multiple swipe gestures simultaneously within a given timeframe, requiring control responses to these concurrent actions.
[0143] S2 assigns labels to multiple controls;
[0144] Specifically, to avoid interference between multiple swipe operations, the response priorities for the "Skill Control", "Scope Control", "Shooting Control", and "Screen" can be configured as "3", "2", "2", and "1" respectively. That is to say, in this embodiment, the swipe operation on the "Screen" has the highest response priority, followed by the swipe operations on the "Scope Control" and "Shooting Control", which have the same priority, and finally the "Skill Control".
[0145] S3 encapsulates and saves all the swipe data.
[0146] like Figure 10 As shown, the control position, control size, and priority label are saved to the data management container in the swipe takeover manager so that subsequent operations can call the specific data.
[0147] S4, after saving, refreshes the data in the data management container.
[0148] Understandably, encapsulating and saving existing priority data will trigger a data refresh, as will custom modifications to control positions. For example, during gameplay, a player might adjust the position and size of controls. Corresponding to this player action, the data in the data management container will be refreshed to ensure the accuracy of subsequent control operations.
[0149] After completing the preliminary data preparation work, the following is combined with Figure 14 The specific implementation method of this embodiment will be described.
[0150] Understandably, in the specific implementation process, it is necessary to register the three detection events related to "swiping operation"—IE_Pressed (press), IE_Repeat (swipe), and IE_Released (release)—into the touch component of the game engine to detect the events in the above three stages of pressing, swiping, and releasing, thereby accurately determining the "swiping operation".
[0151] Next, through the above three detection events, the Index (i.e., the current finger index) and Location (i.e., the screen position where the touch operation is pressed) information are obtained and the relevant information is recorded. Then, the relevant data is input into the swipe takeover manager for priority sorting, and finally, the view turning operation corresponding to the swipe operation is executed according to the sorting result.
[0152] The following combination Figure 3 , Figure 4 The above methods will be explained in detail.
[0153] like Figure 3 As shown, two touch operations are displayed on the interface, where the control corresponding to touch point A is attack control 301, and the control corresponding to touch point B is the screen.
[0154] Assume that the right swipe operation performed by touch point A is detected and recorded by IE_Pressed, with the index "Event A" and the position information (40px, 120px). Next, the index "Event A" and the position information (40px, 120px) are input into the swipe control manager. The manager compares the position information of "Event A" (40px, 120px) with the control position information already saved in the management container, thus determining that the control corresponding to "Event A" is attack control 301. Based on the response priority label configured for attack control 301, its priority "2" is obtained. Finally, "Event A", the position information (40px, 120px), and the priority label "2" are saved to the Pressed container.
[0155] Assume that the left swipe operation performed by touch point B is detected and recorded by IE_Pressed, with the index "Event B" and the position information (540px, 150px). Next, the index "Event B" and the position information (540px, 150px) are input into the swipe management manager. The manager compares the position information of "Event B" (540px, 150px) with the control position information already saved in the management container to determine that the control corresponding to "Event B" is the screen, and obtains its corresponding priority "1" based on the screen's configured response priority label. Finally, "Event B", the position information (540px, 150px), and the priority label "1" are saved to the Pressed container.
[0156] Next, the IE_Repeat function detects and records the index of touch point B as "Event B" and its position information as (540px, 150px). Then, the index of touch point B, "Event B", is input into the swipe management manager again, and the data is retrieved in the Pressed container.
[0157] Having obtained the data "Event B" corresponding to Index "Event B", its position information (540px, 150px), and priority label "1", as well as the data "Event A" for touch point A, its position information (40px, 120px), and priority label "2", the priorities of the two events and controls are compared. The "Event B" corresponding to touch point B is determined as the target event, and "Event B" is executed. The resulting interface displays as follows: Figure 4 As shown, the virtual character's perspective has been turned to the right.
[0158] After determining that the event corresponding to Index "Event B" has been completed, the data corresponding to Index "Event B" is deleted from the Pressed container. Next, the remaining events in the Pressed container are sorted and executed. This determines that "Event A" will be executed, i.e., ... Figure 4 In the display interface after the viewpoint shifts, you control the virtual character to perform shooting operations.
[0159] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0160] According to another aspect of the present invention, an execution apparatus for implementing the execution method of the above-described control operation is also provided. For example... Figure 15 As shown, the device includes:
[0161] The acquisition unit 1502 is used to acquire touch events, wherein the touch events carry touch operation information of at least two touch points;
[0162] The determining unit 1504 is used to determine the response priority label corresponding to at least one object control when the operation position of at least two touch points indicates that the operation position of each of the touch operation information matches the control position of at least one object control in the display interface.
[0163] The execution unit 1506 is used to determine the target control from the object controls according to the response priority label, and to execute the target control operation indicated by the target control.
[0164] Optionally, in this embodiment, the implementation of each of the above-mentioned unit modules can be referred to the above-mentioned method embodiments, which will not be repeated here.
[0165] According to another aspect of the present invention, an electronic device for implementing the execution method of the above-described control operation is also provided. This electronic device may be... Figure 16 The terminal device or server shown. This embodiment uses this electronic device as an example for illustration. Figure 16 As shown, the electronic device includes a memory 1602 and a processor 1604. The memory 1602 stores a computer program, and the processor 1604 is configured to execute the steps of any of the above method embodiments via the computer program.
[0166] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0167] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0168] S1, acquire touch events, wherein the touch events carry touch operation information of at least two touch points;
[0169] S2, when the touch operation information indicates that the operation positions of at least two touch points match the control positions of at least one object control in the display interface, determine the response priority label corresponding to at least one object control;
[0170] S3, according to the response priority label, determines the target control from the object controls and executes the target control operation indicated by the target control.
[0171] Alternatively, as those skilled in the art will understand, Figure 16 The structure shown is for illustrative purposes only. Electronic devices can also be in-vehicle terminals, smartphones (such as Android phones, iOS phones, etc.), tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 16 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 16 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 16 The different configurations shown.
[0172] The memory 1602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the control operation execution method and device in this embodiment of the invention. The processor 1604 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602, thereby realizing the aforementioned control operation execution method. The memory 1602 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 instances, the memory 1602 may further include memory remotely located relative to the processor 1604, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1602 may be used, but is not limited to, for storing operational information and other information. As an example, such as... Figure 16As shown, the memory 1602 may include, but is not limited to, the acquisition unit 1502, the determination unit 1504, and the execution unit 1506 in the execution device for the control operation described above. Furthermore, it may include, but is not limited to, other module units in the execution device for the control operation described above, which will not be elaborated upon in this example.
[0173] Optionally, the transmission device 1606 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1606 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1606 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0174] In addition, the aforementioned electronic device also includes: a display 1608 for displaying a virtual scene for controlling virtual characters, and a connection bus 1610 for connecting various module components in the aforementioned electronic device.
[0175] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.
[0176] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in embodiments of this application.
[0177] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0178] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the aforementioned control operation.
[0179] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0180] S1, acquire touch events, wherein the touch events carry touch operation information of at least two touch points;
[0181] S2, when the touch operation information indicates that the operation positions of at least two touch points match the control positions of at least one object control in the display interface, determine the response priority label corresponding to at least one object control;
[0182] S3, according to the response priority label, determines the target control from the object controls and executes the target control operation indicated by the target control.
[0183] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0184] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0185] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0186] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0187] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0188] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0189] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for executing a control operation, characterized in that, include: Acquire touch events, wherein the touch events carry touch operation information of at least two touch points; If, based on the touch event, it is determined that the virtual task being performed by the current virtual object has changed from the first task to the second task, the response priority of the response area of each object control is changed according to the second task. Iterate through the touch operation information of each touch point and perform the following operations: If the touch operation information of the i-th touch point indicates that the operation position of the i-th touch point is located within the control response area of the j-th object control, it is determined that the operation position of the i-th touch point matches the control position of the j-th object control, and the response priority of the response area of the j-th object control after the change is obtained, where i and j are natural numbers greater than or equal to 1; According to the obtained priority of each changed response, the control operation indicated by each of the object controls is executed in sequence.
2. The method according to claim 1, characterized in that, According to the priority of each changed response obtained, the control operations indicated by each of the object controls are executed sequentially, including: The response order of the object controls is sorted according to the response priority to obtain the sorting result; If the sorting result indicates that the object control with the highest response priority is an object control, then the object control with the highest response priority is determined as the target control, and the target control operation indicated by the target control is executed.
3. The method according to claim 2, characterized in that, After sorting the response order of the object controls according to the response priority and obtaining the sorting result, the method further includes: If the sorting result indicates that the object control with the highest response priority includes at least two object controls, determine the control operation time of each of the at least two object controls; The object control with the earliest control operation time is determined as the target control, and the target control operation indicated by the target control is executed.
4. The method according to claim 1, characterized in that, According to the priority of each changed response obtained, the control operations indicated by each of the object controls are executed sequentially, including: If the operation position of each of the at least two touch points matches the control position of an object control in the display interface, the object control is determined as the target control; Determine the touch time of each of the touch points on the target control; The operation triggered by the earliest touch point is determined as the target control operation to be executed; Perform the target control operation.
5. The method according to claim 1, characterized in that, When executing the control operation indicated by each object control in sequence according to the obtained changed response priority, the method further includes: If the number of at least two touch points changes, obtain the updated response priority; Based on the updated response priority, the response order of the object controls is sorted to obtain the updated sorting result; Based on the updated sorting results, the control operations indicated by each of the object controls are executed sequentially.
6. The method according to any one of claims 1 to 5, characterized in that, After obtaining the response area of the j-th object control after the change in response priority, the following is included: Save the response priority label corresponding to the changed response priority of the response area of the j-th object control to the management container.
7. The method according to claim 6, characterized in that, The step of sequentially executing the control operations indicated by each of the object controls according to the priority of the obtained modified responses includes: Read the response priority label of the matched object control from the management container; Based on the response priority label, the control operation indicated by each of the object controls is executed sequentially.
8. The method according to claim 7, characterized in that, After executing the control operation indicated by each of the object controls in sequence, the process further includes: Remove the response priority label of the executed object control from the management container.
9. The method according to claim 6, characterized in that, Before acquiring the touch event, the following is also included: Assign the response priority label to each of the object controls; Obtain the response area information of the object control, wherein the response area information is used to indicate the control response area of the object control in the display interface; The response priority label and response area information of the object control are encapsulated and saved to the management container.
10. An actuator for controlling operations, characterized in that, include: An acquisition unit is used to acquire touch events, wherein the touch events carry touch operation information of at least two touch points; The device is further configured to, when determining based on the touch event that the virtual task being performed by the current virtual object has changed from a first task to a second task, change the response priority of the response area of each object control according to the second task; traverse the touch operation information of each touch point and perform the following operations: when the touch operation information of the i-th touch point indicates that the operation position of the i-th touch point is located within the control response area of the j-th object control, determine that the operation position of the i-th touch point matches the control position of the j-th object control, and obtain the response priority of the response area of the j-th object control after the change, where i and j are natural numbers greater than or equal to 1; and execute the control operation indicated by each object control in sequence according to the obtained changed response priorities.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program is executed by a processor to perform the method described in any one of claims 1 to 9.
12. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 9.
13. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 9 through the computer program.
Citation Information
Patent Citations
Virtual object selection method and device, equipment and storage medium
CN111672113A
Multi-touch processing method and device, equipment and storage medium
CN112817483A