Method, device and equipment for processing combination key in virtual scene and storage medium
By providing an entry point for adding custom key combinations in cloud gaming and optimizing through machine learning, the problem of uncustomizable key combination configurations has been solved, enabling more efficient key combination settings and more powerful virtual skill releases, thus improving ease of operation and interactivity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-05-16
- Publication Date
- 2026-07-21
AI Technical Summary
Current cloud gaming technologies do not allow for customizable key combinations, resulting in low operational freedom, and adding configurations requires significant manpower and resources.
This paper provides a method for handling key combinations in a virtual scene. By displaying an entry point in the key editing interface, users can customize key combinations. The method also optimizes key combination selection through a machine learning model, enabling the combination of multiple keys and skill release.
It increases the flexibility of setting shortcut keys, saves resource consumption and storage space, enhances the power and ease of operation of virtual skills, and improves human-computer interaction efficiency.
Smart Images

Figure CN117101144B_ABST
Abstract
Description
Technical Field
[0001] This application relates to human-computer interaction technology, and more particularly to a method, apparatus, device, computer-readable storage medium, and computer program product for processing combination keys in a virtual scene. Background Technology
[0002] Cloud gaming, also known as game on demand, is an online gaming technology based on cloud computing. It enables lightweight devices with relatively limited graphics processing and data processing capabilities to run high-quality games. In cloud gaming, the game does not reside on the player's terminal but runs on a cloud server. The cloud server renders the game scene as a video and audio stream, which is then transmitted to the player's terminal via the network. The player's terminal does not need powerful graphics processing and data processing capabilities; it only needs basic streaming media playback capabilities and the ability to receive player input commands and send them to the cloud server.
[0003] In cloud gaming applications, to improve players' operational skills, the relevant technologies generally only support cloud gaming project platform teams to spend manpower to configure some key combinations individually. Users need to understand the difference between these key combinations and other different key positions, but they cannot change these key combinations, resulting in low operational freedom. Moreover, in practical applications, one configuration cannot meet the interaction needs of all players. If a new configuration is added for each interaction need, it will not only consume a lot of manpower, but also consume additional upload and download traffic, and lead to a waste of storage space. Summary of the Invention
[0004] This application provides a method, apparatus, device, computer-readable storage medium, and computer program product for processing combination keys in a virtual scene, which can improve the freedom of setting combination keys, reduce memory consumption during data processing, and save data storage space.
[0005] The technical solution of this application embodiment is implemented as follows: This application provides a method for processing key combinations in a virtual scene, including: In the key editing interface of the virtual scene, an entry point for adding key combinations is displayed; Upon receiving a key combination addition instruction triggered by the added entry, the key combination addition instruction indicates that at least two keys are combined, and each key is associated with a corresponding virtual skill; In response to the key combination addition instruction, the at least two keys are combined to obtain a target key combination, wherein the target key combination is associated with a target virtual skill, and the target virtual skill is obtained by connecting and combining the virtual skills corresponding to each key combination. When a skill release command triggered by the target key combination is received, the target virtual object in the virtual scene is controlled to release the target virtual skill to assist the target virtual object in interacting with other virtual objects in the virtual scene.
[0006] This application provides a device for processing combination keys in a virtual scene, including: The entry display module is used to display the entry point for adding key combinations in the key editing interface of the virtual scene; The instruction receiving module is used to receive a combination key addition instruction triggered based on the addition entry, wherein the combination key addition instruction indicates that at least two keys are combined, and each key is associated with a corresponding virtual skill; A key combination module is used to combine at least two keys to obtain a target key combination in response to the key combination addition instruction, wherein the target key combination is associated with a target virtual skill, and the target virtual skill is obtained by connecting and combining the virtual skills corresponding to each key combination. The skill release module is used to control the target virtual object in the virtual scene to release the target virtual skill when a skill release command triggered based on the target combination key is received, so as to assist the target virtual object in interacting with other virtual objects in the virtual scene.
[0007] In the above scheme, the instruction receiving module is further configured to, when the addition entry is a shared addition entry, in response to a trigger operation for the shared addition entry, display at least one candidate combination key that can be selected, the candidate combination key including at least two keys; and in response to a selection operation for a target combination key among the at least one candidate combination key, receive the combination key addition instruction, the combination key addition instruction instructing the addition of the target combination key for display.
[0008] In the above scheme, the instruction receiving module is further configured to determine the selection priority of each candidate combination key when the number of candidate combination keys is at least two; and display the corresponding candidate combination keys in descending order of selection priority.
[0009] In the above scheme, the instruction receiving module is further configured to, when there are at least two types of candidate combination keys, display the candidate combination key of the target type in a first display style, and display the candidate combination keys of other types besides the target type in a second display style; wherein, the first display style is different from the second display style, and the first display style represents the selection priority of the candidate combination key of the target type, which is higher than the selection priority of the candidate combination keys of other types.
[0010] In the above scheme, the device further includes: a prediction module, used to obtain selection reference features for each of the candidate key combinations; wherein the selection reference features include at least one of the following: the download volume of the candidate key combination, the fit between the interaction features of the target virtual object and the skill features of the virtual skill associated with the candidate key combination; and based on the selection reference features, calling a machine learning model to perform prediction processing to obtain the selection priority of each candidate key combination.
[0011] In the above scheme, the instruction receiving module is further configured to, when the addition entry is a recording addition entry, respond to a trigger operation for the recording addition entry, display the key recording interface of the virtual scene, and display at least two virtual keys in the key recording interface; respond to a recording operation triggered based on the key recording interface, record the touch operation in the key recording interface to obtain the target number of virtual keys corresponding to the touch operation; and respond to a stop recording operation triggered based on the key recording interface, receive the combination key addition instruction, the combination key addition instruction instructing the combination of the target number of virtual keys.
[0012] In the above scheme, the key combination module is further configured to, in response to the key combination addition instruction, obtain touch parameters for each virtual key in the target number of virtual keys, wherein the touch parameters include at least one of the following: touch mode, touch time; combine the target number of virtual keys based on the touch parameters to obtain a target key combination; wherein the target virtual skill associated with the target key combination is obtained by connecting and combining the virtual skills corresponding to each virtual key.
[0013] In the above scheme, the instruction receiving module is further configured to, when the addition entry is an edit addition entry, display at least two virtual keys in response to a trigger operation for the edit addition entry; in response to a selection operation for a target number of virtual keys among the at least two virtual keys, display the target number of key carriers in the key editing interface, and display the target number of virtual keys in the target number of key carriers, wherein the key carriers correspond to the virtual keys; in response to a setting operation for the interaction parameters of each virtual key among the target number of virtual keys, display the corresponding interaction parameters of the virtual keys at the associated position of the key carriers corresponding to each virtual key, wherein the interaction parameters include at least one of the following: interaction mode, interaction interval duration; and in response to a confirmation operation for the interaction parameters, receive the combination key addition instruction, wherein the combination key addition instruction instructs the combination of the target number of virtual keys based on the interaction parameters.
[0014] In the above scheme, the instruction receiving module is further configured to perform the following processing for each virtual key among the target number of virtual keys when the interaction parameters include an interaction mode: displaying a mode control for setting the interaction mode of the virtual key at the associated position of the key bearing position; displaying at least one candidate interaction mode corresponding to the virtual key in response to a trigger operation of the mode control; and setting the interaction mode of the virtual key to the target interaction mode in response to a selection operation of the target interaction mode among the at least one candidate interaction mode, and displaying the target interaction mode at the associated position.
[0015] In the above scheme, the instruction receiving module is further configured to display setting prompt information, which prompts that an auxiliary interaction mode needs to be added to the target interaction mode; in response to the interaction mode addition operation triggered by the setting prompt information, the target interaction mode and the auxiliary interaction mode are combined to obtain a joint interaction mode, and the joint interaction mode is displayed at the associated position.
[0016] In the above scheme, the instruction receiving module is further configured to perform the following processing for any two adjacent virtual keys among the target number of virtual keys when the interaction parameters include the interaction interval duration: displaying a duration control for setting the interaction interval duration of the adjacent virtual keys at the associated position of the two adjacent key bearing positions; responding to the duration setting operation triggered based on the duration control, taking the target duration indicated by the duration setting operation as the interaction interval duration between the adjacent virtual keys, and displaying the interaction interval duration at the associated position.
[0017] In the above scheme, the instruction receiving module is further configured to display the first virtual key in the first carrier position of the target number of key carrier positions, and to display other virtual keys in the target number of virtual keys other than the first virtual key in the other carrier positions of the target number of key carrier positions.
[0018] In the above scheme, the device further includes: a key replacement module, configured to, in response to a trigger operation on the first virtual key, control other virtual keys besides the first virtual key among the at least two virtual keys to be in a candidate state; and, in response to a selection operation on a target virtual key in the candidate state, replace the first virtual key displayed in the first carrier position with the target virtual key for display, so as to use the target virtual key and the other virtual keys as the target number of virtual keys.
[0019] In the above scheme, the instruction receiving module is further configured to display the interaction parameters of the first virtual key at the associated position of the first carrier position, and display the interaction parameters of the corresponding other virtual keys at the associated positions of the other carrier positions; the device further includes: a key movement module, configured to control the first virtual key and the interaction parameters of the first virtual key to move along the direction indicated by the drag operation in response to a drag operation on the first virtual key; in response to the first virtual key moving to a second carrier position among the other carrier positions that carries a second virtual key, display the first virtual key in the second carrier position, display the interaction parameters of the first virtual key at the associated position of the second carrier position, and display the second virtual key in the first carrier position, and display the interaction parameters of the second virtual key at the associated position of the first carrier position.
[0020] In the above scheme, the entry display module is further configured to, when the addition entry is an edit entry, display at least two key carrier positions in the key editing interface of the virtual scene, and use the key carrier positions as addition entry points for adding combination keys; the instruction receiving module is further configured to perform the following processing for each key carrier position in the target number of key carrier positions among the at least two key carrier positions: in response to a trigger operation for the key carrier position, display at least two virtual keys; in response to a selection operation for a target virtual key position among the at least two virtual keys, display the target virtual key position in the key carrier position; in response to a setting operation for the interaction parameters of the target virtual key position, display the interaction parameters of the target virtual key position at the associated position of the key carrier position, the interaction parameters including at least one of the following: interaction mode, interaction interval duration; in response to a determination operation for the interaction parameters of the target virtual key position corresponding to each key carrier position in the target number of key carrier positions, receive the combination key addition instruction, the combination key addition instruction instructing the target number of target virtual keys to be combined based on the interaction parameters.
[0021] In the above scheme, after combining the at least two keys to obtain the target combination key, the device further includes: a key modification module, used to display a modification control for modifying the target combination key; in response to a trigger operation on the modification control, displaying a modification interface including at least two virtual keys; in response to a modification operation triggered based on the modification interface, modifying the at least two keys included in the target combination key through the at least two virtual keys to obtain the modified at least two keys; in response to a confirmation operation on the modified at least two keys, combining the modified at least two keys to obtain a new combination key to replace the target combination key.
[0022] This application provides a terminal device, including: Memory, used to store executable instructions; The processor, when executing executable instructions stored in the memory, implements the method for processing combination keys in a virtual scene provided in the embodiments of this application.
[0023] This application provides a computer-readable storage medium storing executable instructions for inducing a processor to execute, thereby implementing the method for processing combination keys in a virtual scene provided in this application.
[0024] This application provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, they implement the method for processing combination keys in a virtual scene provided in this application.
[0025] The embodiments of this application have the following beneficial effects: By applying the embodiments of this application, when setting operation keys, a custom key combination addition entry is provided to the user. Multiple keys can be combined through this entry to obtain the target key combination, which improves the freedom of key combination setting. Compared with setting multiple sets according to needs by the project team, this not only improves setting efficiency but also saves resource consumption and storage space. In addition, since the target virtual skill is obtained by connecting and combining the virtual skills corresponding to each key, the skill is more powerful. The user can control the target virtual object to release the corresponding target virtual skill with one click through the target key combination. Compared with operating multiple individual keys one by one to achieve the corresponding function, this improves the convenience of operation and interaction capability, thereby improving the efficiency of human-computer interaction. Attached Figure Description
[0026] Figure 1A A schematic diagram illustrating the application mode of the method for processing combination keys in a virtual scene provided in the embodiments of this application; Figure 1B A schematic diagram illustrating the application mode of the method for processing combination keys in a virtual scene provided in the embodiments of this application; Figure 2 This is a schematic diagram of the structure of the terminal device 400 provided in the embodiments of this application; Figure 3 A flowchart illustrating the method for processing combination keys in a virtual scene according to an embodiment of this application; Figure 4 A schematic diagram illustrating the addition of a combination key provided in an embodiment of this application; Figure 5 A schematic diagram illustrating the receipt of a shortcut key addition instruction provided in an embodiment of this application; Figure 6 A flowchart illustrating the method for processing combination keys in a virtual scene according to an embodiment of this application; Figure 7 A flowchart illustrating the method for processing combination keys in a virtual scene according to an embodiment of this application; Figure 8 This is a schematic diagram of the recording interface provided in an embodiment of this application; Figure 9 A flowchart illustrating the method for processing combination keys in a virtual scene according to an embodiment of this application; Figure 10 A schematic diagram illustrating the editing of a combination key provided in an embodiment of this application; Figure 11 A schematic diagram illustrating the editing of a combination key provided in an embodiment of this application; Figure 12 A schematic diagram illustrating the editing of a combination key provided in an embodiment of this application; Figure 13 This is a schematic diagram illustrating the editing prompts for the shortcut keys provided in an embodiment of this application; Figure 14 A schematic diagram illustrating the setting of the duration interval associated with the shortcut key provided in this application embodiment; Figure 15 This is a schematic diagram illustrating the addition of a combination key provided in an embodiment of this application. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0029] In the following description, the terms “first, second…” are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that “first, second…” may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0031] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0032] 1) Client: An application that runs on a terminal and provides various services, such as a video playback client or a game client.
[0033] 2) In response, used to indicate the conditions or states on which the operation performed depends. When the conditions or states on which it depends are met, one or more operations performed may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.
[0034] 3) A virtual scene is a virtual scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of a two-dimensional, 2.5-dimensional, or three-dimensional virtual scene; this application does not limit the dimension of the virtual scene. For example, the virtual scene may include sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. Users can control virtual objects to move within the virtual scene.
[0035] 4) Virtual objects: These are interactive images of people and things within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, virtual animals, anime characters, etc., such as people or animals displayed in the virtual scene. A virtual object can be a virtual avatar representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene.
[0036] 5) Cloud gaming is a gaming method based on cloud computing. All games run on the server side, and the rendered game screen and sound effects are compressed and transmitted to the player through the network in the form of push (also known as cloud gaming audio and video stream). Players control the game with the remote server through the network.
[0037] This application provides a method, apparatus, terminal device, computer-readable storage medium, and computer program product for processing key combinations in a virtual scene. These methods improve setting flexibility, reduce memory consumption during data processing, and save data storage space. To facilitate a clearer understanding of the method for processing key combinations in a virtual scene provided in this application, exemplary implementation scenarios are first described. The virtual scene in this method can be entirely output from a terminal device, or it can be output collaboratively by a terminal device and a server. In some embodiments, the virtual scene can be an environment for game characters to interact, such as a space for game characters to battle. By controlling the actions of the game characters, interaction can occur between the two characters in the virtual scene, allowing users to relieve stress during gameplay.
[0038] In one implementation scenario, see Figure 1A , Figure 1A This diagram illustrates an application mode of the method for processing combination keys in a virtual scene provided in this embodiment. It is applicable to application modes where the computational power of the graphics processing hardware of the terminal device 400 is sufficient to complete the relevant data calculations for the virtual scene 100. Examples include standalone / offline games, where the output of the virtual scene is completed through various types of terminal devices 400 such as smartphones, tablets, and virtual reality / augmented reality devices. As an example, the types of graphics processing hardware include central processing units (CPUs) and graphics processing units (GPUs).
[0039] When visual perception of virtual scene 100 is formed, terminal device 400 calculates the data required for display through graphics computing hardware, and completes the loading, parsing and rendering of display data. The graphics output hardware outputs video frames that can form visual perception of virtual scene. For example, two-dimensional video frames are presented on the display screen of a smartphone, or video frames that achieve three-dimensional display effect are projected on the lenses of augmented reality / virtual reality glasses. In addition, in order to enrich the perception effect, terminal device 400 can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0040] As an example, terminal device 400 runs a virtual scene application (such as a game). During the operation of the virtual scene, it outputs a virtual scene 100 with role-playing. The virtual scene 100 includes a target virtual object 110, other virtual objects 120, and a target key combination 130. The target virtual object 110 can be a game character controlled by a user (or player). That is, the target virtual object 110 is controlled by a real user and will release the target virtual skill associated with the target key combination 130 in the virtual scene in response to the real user's operation on the target key combination 130, so as to assist the target virtual object 110 in interacting with other virtual objects 120.
[0041] In practical applications, to facilitate real users triggering the target key combination 130, the target key combination 130 can be set before or during the game. As an example, in the key editing interface of the virtual scene, an entry point for adding key combinations is displayed. Upon receiving a key combination addition command triggered by the entry point, the command instructs that at least two keys be combined, each key associated with a corresponding virtual skill. In response to the key combination addition command, at least two keys are combined to obtain the target key combination, where the target key combination is associated with a target virtual skill, which is obtained by connecting and combining the virtual skills corresponding to each key. Thus, users can combine multiple keys to obtain the target key combination by customizing the key combination addition entry point. This improves the flexibility of setting key combinations. Compared to setting multiple sets according to project needs, it not only improves setting efficiency but also saves resources and storage space. When a skill release command triggered by a target key combination is received, the system controls the target virtual object in the virtual scene to release the target virtual skill, assisting the target virtual object in interacting with other virtual objects in the virtual scene. Since the target virtual skill is obtained by connecting and combining the virtual skills corresponding to each key, the skill is more powerful. Users can control the target virtual object to release the corresponding target virtual skill with a single key combination. Compared to operating multiple individual keys one by one to achieve the corresponding function, this greatly improves the convenience of operation and enhances both interactive capabilities and human-computer interaction efficiency.
[0042] In another implementation scenario, see Figure 1B , Figure 1BThis is a schematic diagram illustrating the application mode of the method for processing combination keys in a virtual scene provided in this application embodiment. It is applied to a terminal device 400 and a server 200, and is suitable for application modes that rely on the computing power of the server 200 to complete virtual scene calculations and output the virtual scene to the terminal device 400. Taking the visual perception of forming a virtual scene 100 as an example, the server 200 calculates relevant display data (e.g., scene data) for the virtual scene and sends it to the terminal device 400 via the network 300. The terminal device 400 relies on graphics computing hardware to load, parse, and render the calculated display data, and relies on graphics output hardware to output the virtual scene to form visual perception. For example, it can present two-dimensional video frames on the display screen of a smartphone, or project video frames to achieve a three-dimensional display effect onto the lenses of augmented reality / virtual reality glasses. Regarding the perception of the form of the virtual scene, it can be understood that it can be achieved through the corresponding hardware output of the terminal device 400, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, etc.
[0043] As an example, terminal device 400 runs a virtual scene application (such as a game). During the operation of the virtual scene, it outputs a virtual scene 100 with role-playing. The virtual scene 100 includes a target virtual object 110, other virtual objects 120, and a target key combination 130. The target virtual object 110 can be a game character controlled by a user (or player). That is, the target virtual object 110 is controlled by a real user and will release the target virtual skill associated with the target key combination 130 in the virtual scene in response to the real user's operation on the target key combination 130, so as to assist the target virtual object 110 in interacting with other virtual objects 120.
[0044] In practical applications, to facilitate real users triggering the target key combination 130, the target key combination 130 can be set before or during the game. As an example, in the key editing interface of the virtual scene, an entry point for adding key combinations is displayed. Upon receiving a key combination addition command triggered by the entry point, the command instructs that at least two keys be combined, each key associated with a corresponding virtual skill. In response to the key combination addition command, at least two keys are combined to obtain the target key combination, where the target key combination is associated with a target virtual skill, which is obtained by connecting and combining the virtual skills corresponding to each key. Thus, users can combine multiple keys to obtain the target key combination by customizing the key combination addition entry point. This improves the flexibility of setting key combinations. Compared to setting multiple sets according to project needs, it not only improves setting efficiency but also saves resources and storage space. When a skill release command triggered by a target key combination is received, the system controls the target virtual object in the virtual scene to release the target virtual skill, assisting the target virtual object in interacting with other virtual objects in the virtual scene. Since the target virtual skill is obtained by connecting and combining the virtual skills corresponding to each key, the skill is more powerful. Users can control the target virtual object to release the corresponding target virtual skill with a single key combination. Compared to operating multiple individual keys one by one to achieve the corresponding function, this greatly improves the convenience of operation and enhances both interactive capabilities and human-computer interaction efficiency.
[0045] In some embodiments, the terminal device 400 can implement the method for processing combination keys in the virtual scene provided in this application embodiment by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a shooting game APP (i.e., the client 410 mentioned above); it can also be a mini-program, that is, a program that only needs to be downloaded into the browser environment to run; or it can be a game mini-program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of application, module or plugin.
[0046] Taking a computer program as an example, in actual implementation, the terminal device 400 has an application that supports virtual scenes installed and running. This application can be any of the following: a first-person shooter (FPS) game, a third-person shooter game, a virtual reality application, a 3D map program, a simulation program, or a multiplayer shooting survival game. Users use the terminal device 400 to manipulate virtual objects located in the virtual scene, and these activities include, but are not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up items, shooting, attacking, throwing, and constructing virtual buildings—at least one of these. Illustratively, the virtual object can be a virtual character, such as a realistic or anime character.
[0047] In other embodiments, the embodiments of this application can also be implemented with the aid of cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to realize the computation, storage, processing, and sharing of data.
[0048] Cloud technology is a general term encompassing network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form resource pools, allowing for on-demand use with flexibility and convenience. Cloud computing technology will become a crucial support. The backend services of cloud computing systems require substantial computing and storage resources.
[0049] Example, Figure 1B The server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal device 400 can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal device 400 and the server 200 can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.
[0050] The following is about Figure 1A The structure of the terminal device 400 shown in the diagram will be described. See also... Figure 2 , Figure 2 This is a schematic diagram of the structure of the terminal device 400 provided in the embodiments of this application. Figure 2The terminal device 400 shown includes at least one processor 420, a memory 460, at least one network interface 430, and a user interface 440. The various components in the terminal device 400 are coupled together via a bus system 450. It is understood that the bus system 450 is used to implement communication between these components. In addition to a data bus, the bus system 450 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 450.
[0051] Processor 420 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0052] User interface 440 includes one or more output devices 441 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 440 also includes one or more input devices 442, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0053] The memory 460 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 460 may optionally include one or more storage devices physically located away from the processor 420.
[0054] The memory 460 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 460 described in this application embodiment is intended to include any suitable type of memory.
[0055] In some embodiments, memory 460 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0056] Operating system 461 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks; The network communication module 462 is used to reach other computing devices via one or more (wired or wireless) network interfaces 430, exemplary network interfaces 430 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc. Presentation module 463 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 441 (e.g., a display screen, a speaker, etc.) associated with user interface 440. The input processing module 464 is used to detect and translate one or more user inputs or interactions from one or more input devices 442.
[0057] In some embodiments, the device for processing combination keys in a virtual scene provided in this application can be implemented in software. Figure 2 A processing device 465 for combination keys in a virtual scene stored in memory 460 is shown. It can be software in the form of programs and plug-ins, including the following software modules: entry display module 4651, instruction receiving module 4652, key combination module 4653, and skill release module 4654. These modules are logical and can therefore be arbitrarily combined or further split according to the functions they implement. The functions of each module will be described below.
[0058] In other embodiments, the processing device for combination keys in the virtual scene provided in this application embodiment can be implemented in hardware. As an example, the processing device for combination keys in the virtual scene provided in this application embodiment can be a processor in the form of a hardware decoding processor, which is programmed to execute the processing method for combination keys in the virtual scene provided in this application embodiment. For example, the processor in the form of a hardware decoding processor can be one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0059] The method for processing combination keys in a virtual scene provided in this application embodiment will be described in detail below with reference to the accompanying drawings. The method for processing combination keys in a virtual scene provided in this application embodiment can be... Figure 1A The terminal device 400 can be executed independently, or it can be... Figure 1B The terminal device 400 and server 200 work together to execute the command. Next, the command will be executed by… Figure 1A The following description uses the terminal device 400 in the example of independently executing the method for processing combination keys in a virtual scene provided in this application embodiment. See also... Figure 3 , Figure 3 This is a flowchart illustrating a method for processing combination keys in a virtual scene according to an embodiment of this application. Figure 3 The steps shown are explained.
[0060] Step 101: The terminal device displays an entry point for adding combination keys in the key editing interface of the virtual scene.
[0061] A combination key is a control or button that combines two or more keys (or buttons) to create a comprehensive skill by connecting and combining the virtual skills corresponding to each individual key. The comprehensive skill is the virtual skill associated with the combination key, and its ability is usually higher than the simple sum of the abilities of the virtual skills corresponding to each key. In this way, combo skills with high damage, high burst or high control effect can be achieved.
[0062] In practical applications, users can trigger key combination editing commands before, during, or after the virtual scene is displayed. After receiving the key combination editing command, the terminal presents a key editing interface and displays an entry point for adding key combinations. Users can add key combinations based on this entry point.
[0063] For example, when the virtual scene is a game, users can trigger a key combination editing command before, during, or after the game. After receiving the key combination editing command, the terminal displays a key editing interface and shows an entry point for adding key combinations. Users can add any one or more key combinations based on this entry point, and select the appropriate key combination to release the associated virtual skill according to the interaction needs during the game. This improves the convenience of operation and the player's interaction ability, thereby improving the efficiency of human-computer interaction.
[0064] There are multiple ways to add combination keys, so the entry point for each method can be displayed. See [link / reference]. Figure 4 , Figure 4This is a schematic diagram of adding combination keys provided in an embodiment of this application. When a user clicks the "Combination Keys (Macro)" editing entry 401 in the menu bar, the terminal device responds to the click operation, displays the key editing interface, and displays the addition entry corresponding to the three addition methods in the key editing interface, such as the "Get from Community Sharing" sharing addition entry 402, the "Record Key" recording addition entry 403, and the "Edit Key" editing addition entry 404. Users can select the corresponding addition entry to add or build combination keys according to their actual needs.
[0065] Step 102: Receive a key combination addition instruction triggered by adding an entry point; wherein, the key combination addition instruction indicates that at least two keys are combined, and each key is associated with a corresponding virtual skill.
[0066] In some embodiments, the terminal device may receive a key combination addition instruction triggered based on an add entry in the following manner: when the add entry is a shared add entry, in response to the trigger operation for the shared add entry, at least one candidate key combination is displayed, wherein the candidate key combination includes at least two keys; in response to the selection operation for a target key combination among the at least one candidate key combination, a key combination addition instruction is received, which instructs the target key combination to be added and displayed.
[0067] See Figure 5 , Figure 5 This is a schematic diagram illustrating the receipt of a shortcut key addition instruction provided in this application embodiment. Taking cloud gaming as an example, when the user clicks... Figure 4 When the "Get from Community Shares" sharing entry is shown, the terminal device responds to the trigger operation for the sharing entry by displaying a community key combination list. The community key combination list displays multiple candidate key combinations to choose from, such as candidate key combination 1, candidate key combination 2, candidate key combination 3, and candidate key combination 4. Players can select any candidate key combination to add. For example, when the user selects candidate key combination 2, the terminal responds to the selection operation for candidate key combination 2 (i.e., the target key combination) and receives a key combination addition instruction for candidate key combination 2. The candidate key combination 2 is then added as the target key combination to the player's operation control, such as displaying the target key combination 501 of candidate key combination 2 in the game interface so that the player can use candidate key combination 2 to release its associated virtual skill.
[0068] It should be noted that after a target key combination selected from multiple candidate key combinations is added to the player's control panel, the player can also edit and modify the added target key combination. For example, if the target key combination is composed of "A+B+C+Space", it can be edited and modified to be composed of "A+D+C+Space".
[0069] In some embodiments, the terminal device may display at least one candidate key combination to be selected in the following manner: when there are at least two candidate key combinations, the selection priority of each candidate key combination is determined; and the corresponding candidate key combinations are displayed in descending order of selection priority.
[0070] Here, when there are multiple candidate combination keys (two or more), candidate combination keys with different selection priorities can be displayed in a certain order. For example, candidate combination keys with higher selection priorities are displayed before candidate combination keys with lower selection priorities. In this way, when the user selects candidate combination keys, it is convenient for the user to select the candidate combination key that is ranked first, so as to trigger the addition instruction for the combination key of the candidate combination key with higher selection priority.
[0071] In some embodiments, the terminal device may display at least one candidate key combination that can be selected in the following manner: when there are at least two types of candidate key combination, a first display style is used to display the candidate key combination of the target type among the at least two candidate key combination, and a second display style is used to display the candidate key combination of other types among the at least two candidate key combination except for the target type; wherein, the first display style is different from the second display style, and the first display style represents the selection priority of the candidate key combination of the target type, which is higher than the selection priority of the candidate key combination of other types.
[0072] In practical applications, when there are multiple candidate key combinations (two or more), different display styles (such as different colors, different brightness, different indicator information, etc.) can be used to display candidate key combinations with different selection priorities. For example, according to the different selection priorities of each candidate key combination, different display styles can be used to display the corresponding candidate key combinations. In particular, the candidate key combination with the highest selection priority is highlighted so that when the user selects a candidate key combination, the user is prompted to select the highlighted candidate key combination to trigger the key combination addition instruction for the selected candidate key combination. The highlighting method includes at least one of the following display methods: displaying with target color, displaying with overlay mask, highlighting, and outlining.
[0073] In some embodiments, the terminal device can predict the selection priority of each candidate key combination by: obtaining selection reference features for each candidate key combination; wherein the selection reference features include at least one of the following: the download volume of the candidate key combination, the fit between the interaction features of the target virtual object and the skill features of the virtual skill associated with the candidate key combination; and calling a machine learning model based on the selection reference features to perform prediction processing to obtain the selection priority of each candidate key combination.
[0074] The machine learning model is trained using selection reference features based on sample combination keys in the virtual scene, and labeled with selection priority tags for each sample combination key. In practical applications, the terminal device uses selection reference features such as the download volume of candidate combination keys or the fit between the interaction features of the target virtual object and the skill features of the virtual skills associated with the candidate combination keys (e.g., the fit between the interaction level, interaction progress, or interaction habits of the target virtual object and the skill features of the candidate combination keys). The machine learning model, based on artificial intelligence algorithms, predicts the selection priority of each candidate combination key, thus obtaining the selection priority of each candidate combination key. For example, candidate combination keys with higher download volumes or greater fit have higher selection priority.
[0075] In this way, by using machine learning models based on artificial intelligence algorithms to filter out the most needed candidate key combinations from multiple candidate key combinations (such as the most needed candidate key combination at the current interaction level or progress, the candidate key combination most suitable for the current interaction habits, or the candidate key combination with the most downloads), the filtering results become more accurate and more suitable for the current scenario. Furthermore, based on the filtering results, candidate key combinations with different selection priorities are displayed differently. For example, at the current interaction progress, candidate key combination 1, which is most needed by the target virtual object, has the highest display priority and is displayed prominently to distinguish it from other candidate key combinations with different display priorities. This guides the user to select the candidate key combination corresponding to the most needed virtual skill at the moment. After adding the candidate key combination, the user can control the target virtual object to release the virtual skill associated with that candidate key combination, assisting the target virtual object in interacting with other virtual objects in the virtual scene. This improves operational convenience and interaction capabilities, thereby enhancing human-computer interaction efficiency.
[0076] It should be noted that the aforementioned machine learning models can be neural network models (such as convolutional neural networks, deep convolutional neural networks, or fully connected neural networks), decision tree models, gradient boosting trees, multilayer perceptrons, and support vector machines, etc. This application embodiment does not specifically limit the type of machine learning model. It is understood that the reference features selected in this application embodiment are essentially user-related data. When this application embodiment is applied to specific products or technologies, user permission or consent is required, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0077] In some embodiments, the terminal device may also receive a key combination addition instruction triggered based on an addition entry point in the following manner: when the addition entry point is a recording addition entry point, in response to a trigger operation for the recording addition entry point, a key recording interface of a virtual scene is displayed, and at least two virtual keys are displayed in the key recording interface; in response to a recording operation triggered based on the key recording interface, the touch operation in the key recording interface is recorded to obtain a target number of virtual keys corresponding to the touch operation; in response to a stop recording operation triggered based on the key recording interface, a key combination addition instruction is received, which instructs the target number of virtual keys to be combined.
[0078] like Figure 8 As shown, when the user triggers Figure 4 When the recording entry 403 is accessed, the terminal device responds to the trigger operation for the recording entry 403 by displaying a key recording interface. The key recording interface displays multiple virtual keys 801 and a start recording control 802. When the user triggers the start recording control 802, the terminal device responds to the trigger operation by recording the touch operations received by the key recording interface for the virtual keys, obtaining the target number of virtual keys corresponding to the touch operations. During the recording process, the start recording control 802 displayed in the key recording interface is switched to a stop recording control 803. When the user triggers the stop recording control 803, the terminal device receives a combination key addition command and responds to the command by combining the target number of virtual keys to generate a target combination key. The generated target combination key 804 is then displayed on the game interface for the user to use.
[0079] In some embodiments, a terminal device may, in response to a key combination addition instruction, combine at least two keys to obtain a target key combination by: in response to the key combination addition instruction, acquiring touch parameters for each virtual key in a target number of virtual keys, wherein the touch parameters include at least one of the following: touch mode, touch time; combining the target number of virtual keys based on the touch parameters to obtain the target key combination; wherein the target virtual skill associated with the target key combination is obtained by connecting and combining the virtual skills corresponding to each virtual key.
[0080] Here, when generating a target combination key based on a target number of virtual keys, the key combination is generated based on the target number of virtual keys touched by the user, and the touch parameters (such as touch method and touch time) of each virtual key. For example, during recording, the recording parameters include which virtual keys the user touched, the touch method (such as press or release) for each touched virtual key, and the touch time or touch interval for each virtual key. Assuming the terminal device receives the following recording parameters: a click operation for virtual key 1, a long press operation for virtual key 2, and a swipe operation for virtual key 3, with a time interval of 15ms between two adjacent operations, the terminal device can generate the target combination key (virtual key 1 - virtual key 2 - virtual key 3) based on the recording parameters and display it in the game interface for the player to use.
[0081] In some embodiments, the terminal device may also receive a key combination addition instruction triggered by an addition entry point in the following manner: when the addition entry point is an edit addition entry point, in response to a trigger operation for the edit addition entry point, at least two virtual keys are displayed; in response to a selection operation for a target number of virtual keys among the at least two virtual keys, a target number of key carriers are displayed in the key editing interface, and a target number of virtual keys are displayed in the target number of key carriers, wherein the key carriers and virtual keys are in a corresponding relationship; in response to a setting operation for the interaction parameters of each virtual key among the target number of virtual keys, the interaction parameters of the corresponding virtual keys are displayed at the associated position of the key carriers corresponding to each virtual key, wherein the interaction parameters include at least one of the following: interaction mode, interaction interval duration; in response to a confirmation operation for the interaction parameters, a key combination addition instruction is received, wherein the key combination addition instruction instructs the target number of virtual keys to be combined based on the interaction parameters.
[0082] See Figure 15 , Figure 15 This is a schematic diagram illustrating the addition of a shortcut key provided in an embodiment of this application. When the user triggers... Figure 4When the "Edit Key" entry 404 is displayed, the terminal device responds to the trigger operation and displays at least two selectable virtual keys. These virtual keys include all operable keys corresponding to the virtual keyboard and virtual mouse. When the user selects a target number of virtual keys, such as selecting virtual key A, virtual key B, and virtual key C in sequence, the target number (e.g., 3) of key positions are displayed in the key editing interface. For example, key positions 1, 2, and 3 are displayed in order from left to right, and the corresponding virtual keys are displayed in the 3 key positions in the order of selection of the virtual keys. For example, virtual key A is displayed in key position 1, virtual key B is displayed in key position 2, and virtual key C is displayed in key position 3.
[0083] Simultaneously, parameter controls (such as mode controls and duration controls) for setting interaction parameters are displayed at the associated positions of each key carrier. The interaction parameters of each selected virtual key are set through the parameter controls. After the interaction parameters associated with the selected virtual key are set, if the user triggers the OK button, the terminal device responds to the confirmation operation for the interaction parameters, receives the combination key addition instruction, and responds to the combination key addition instruction to combine the target number of virtual keys. For example, according to the interaction parameters of virtual key A, virtual key B, and virtual key C, virtual key A, virtual key B, and virtual key C are combined to obtain the target combination key.
[0084] In some embodiments, the terminal device may respond to a setting operation of the interaction parameters for each virtual key in a target number of virtual keys by displaying the interaction parameters of the corresponding virtual key at the associated position of the key carrier bit for each virtual key in the following manner: when the interaction parameters include an interaction mode, the following processing is performed for each virtual key in the target number of virtual keys: a mode control for setting the interaction mode of the virtual key is displayed at the associated position of the key carrier bit; in response to a triggering operation of the mode control, at least one candidate interaction mode for the corresponding virtual key is displayed; in response to a selection operation of a target interaction mode among the at least one candidate interaction mode, the interaction mode of the virtual key is set to the target interaction mode, and the target interaction mode is displayed at the associated position.
[0085] For example, Figure 11In the process, a mode control is displayed below each button carrier that carries a selected virtual key. This mode control is used to set the interaction mode of the virtual key carried in the button carrier. For example, when setting the interaction mode of virtual key A, the terminal device responds to a trigger operation on the mode control displayed below button carrier 1 by displaying multiple candidate interaction modes, such as click, press and hold, and release. Click means pressing the button and immediately releasing it; press and hold means pressing the button and not releasing it; release means releasing the pressed button. In response to a selection operation of the target interaction mode (such as click) among the multiple candidate interaction modes, the interaction mode of virtual key A is set to click, and the mode control displayed below button carrier 1 is switched to display the target click interaction mode. In this way, the interaction modes of other selected virtual keys can be set sequentially.
[0086] In some embodiments, the terminal device can set the interaction mode of the virtual keys to a target interaction mode and display the target interaction mode at the associated location in the following manner: displaying a setting prompt message, wherein the setting prompt message is used to prompt that an auxiliary interaction mode needs to be added to the target interaction mode; in response to the interaction mode addition operation triggered based on the setting prompt message, combining the target interaction mode and the auxiliary interaction mode to obtain a joint interaction mode, and displaying the joint interaction mode at the associated location.
[0087] In practical applications, when setting the interaction mode for a selected virtual key, if the target interaction mode requires the addition of an auxiliary interaction mode, such as the "press and hold" target interaction mode, since a release operation is required after "press and hold," a prompt message is displayed to indicate that an auxiliary interaction mode needs to be added to the target interaction mode. This allows the user to combine the target interaction mode and the auxiliary interaction mode based on the prompt message to obtain a combined interaction mode, such as combining the press and hold + release interaction modes. The resulting combined interaction mode is then displayed as the final interaction mode of the virtual key at the associated location.
[0088] In some embodiments, the terminal device may respond to the setting operation of the interaction parameters of each virtual key in the target number of virtual keys by displaying the interaction parameters of the corresponding virtual key at the associated position of the key carrier bit corresponding to each virtual key in the following manner: when the interaction parameters include the interaction interval duration, the following processing is performed for any two adjacent virtual keys in the target number of virtual keys: at the associated position of the two adjacent key carrier bits, a duration control for setting the interaction interval duration of the adjacent virtual keys is displayed; in response to the duration setting operation triggered by the duration control, the target duration indicated by the duration setting operation is used as the interaction interval duration between the adjacent virtual keys, and the interaction interval duration is displayed at the associated position.
[0089] like Figure 14 As shown, when the key carrier position is not the last one, a duration control is displayed to the right of the key carrier position carrying the selected virtual key. The duration control is used to set the interaction interval duration between virtual keys in two adjacent key carrier positions. Taking the setting of the interaction interval duration between virtual key B and virtual key C as an example, in response to the trigger operation of the duration control displayed to the right of the key carrier position where virtual key B is located, the terminal device displays a duration editing box. The interaction interval duration can be edited through the duration editing box. For example, when the target duration is 50ms and the "Complete" button is clicked, the terminal device receives the corresponding duration setting operation. The duration set by the duration setting operation is 50ms. In response to the duration setting operation, the target duration set by the duration setting operation is used as the interaction interval duration between adjacent virtual keys. The set interaction interval duration of 50ms is displayed to the right of the key carrier position carrying virtual key B (i.e., the middle position of the key carrier positions where virtual key B and virtual key C are located).
[0090] In some embodiments, the terminal device may display a target number of virtual keys in a target number of key carrier positions in the following manner: in a first carrier position of the target number of key carrier positions, display a first virtual key among the target number of virtual keys, and in other carrier positions of the target number of key carrier positions other than the first virtual key, display other virtual keys among the target number of virtual keys.
[0091] Here, there is a one-to-one correspondence between the key carrier position and the virtual key position. That is, each key carrier position can only carry one virtual key position. For example, virtual key position A is displayed in key carrier position 1, virtual key position B is displayed in key carrier position 2, virtual key position C is displayed in key carrier position 3, and so on.
[0092] In some embodiments, the terminal device may, in response to a trigger operation on a first virtual key, control at least two virtual keys other than the first virtual key to be in a candidate state; and in response to a selection operation on a target virtual key in the candidate state, replace the first virtual key displayed in the first carrier position with the target virtual key for display, so as to use the target virtual key and other virtual keys as a target number of virtual keys.
[0093] In practical applications, users can change the configured virtual key bindings, such as... Figure 14As shown, after virtual key A, virtual key B, and virtual key C have been set, when replacing a set virtual key (such as virtual key A), the terminal device responds to the click operation on virtual key A by controlling multiple virtual keys corresponding to the virtual keyboard and virtual mouse to be in a candidate state. In response to the selection operation on a virtual key in the candidate state (such as virtual key D), virtual key A is replaced with virtual key D. At this time, virtual key D inherits the interaction mode and interaction interval duration associated with virtual key A. Of course, the user can also adjust and change the interaction mode and interaction interval duration associated with virtual key D.
[0094] In some embodiments, the terminal device can display the interaction parameters of the corresponding virtual keys at the associated positions of the key carriers corresponding to each virtual key in the following manner: displaying the interaction parameters of the first virtual key at the associated position of the first carrier, and displaying the interaction parameters of the corresponding other virtual keys at the associated positions of other carriers; correspondingly, the terminal device can exchange the positions of the virtual keys in the following manner: in response to a drag operation on the first virtual key, controlling the first virtual key and the interaction parameters of the first virtual key to move along the direction indicated by the drag operation; in response to the first virtual key moving to the second carrier of other carriers that carries the second virtual key, displaying the first virtual key in the second carrier, displaying the interaction parameters of the first virtual key at the associated position of the second carrier, and displaying the second virtual key in the first carrier, and displaying the interaction parameters of the second virtual key at the associated position of the first carrier.
[0095] In practical applications, users can also swap the operation order between the configured virtual keys, such as... Figure 14 As shown, when swapping the operation sequence between virtual key A (corresponding to key carrier 1) and virtual key B (corresponding to key carrier 1), the terminal device responds to the drag operation on virtual key A by controlling virtual key A to move along the direction indicated by the drag operation. When virtual key A moves to key carrier 2 where virtual key B is located and the drag operation is released, the positions of virtual key A and virtual key B can be swapped. That is, virtual key B is displayed in key carrier 1 and virtual key A is displayed in key carrier 2. While swapping positions, their respective interaction modes and interaction intervals can be swapped or not, depending on the actual situation.
[0096] In addition, users can also change the configured virtual key bindings, such as... Figure 14 As shown, when deleting a pre-configured virtual key (such as virtual key A), the terminal device responds to the deletion operation of the deletion control (the × in the lower right corner) associated with virtual key A, and deletes virtual key A, as well as its associated interaction mode and interaction interval duration.
[0097] In some embodiments, the terminal device can display an entry point for adding combination keys in the key editing interface of a virtual scene in the following manner: when the entry point is an edit entry point, at least two key carriers are displayed in the key editing interface of the virtual scene, and the key carriers are used as entry points for adding combination keys; correspondingly, the terminal device can receive a combination key addition instruction triggered based on the entry point in the following manner: for each key carrier of the target number of key carriers among the at least two key carriers, the following processing is performed: in response to the triggering operation for the key carrier, at least two virtual keys are displayed; in response to the selection operation for the target virtual key among the at least two virtual keys, the target virtual key is displayed in the key carrier; in response to the setting operation for the interaction parameters of the target virtual key, the interaction parameters of the target virtual key are displayed at the associated position of the key carrier, wherein the interaction parameters include at least one of the following: interaction mode, interaction interval duration; in response to the determination operation for the interaction parameters of the target virtual key corresponding to each key carrier of the target number of key carriers, a combination key addition instruction is received, wherein the combination key addition instruction instructs the target number of target virtual keys to be combined based on the interaction parameters.
[0098] like Figure 10 As shown, when the user clicks Figure 4 When the "Edit Button" entry 404 is shown, the terminal device responds to the click operation by displaying button carrier 1, button carrier 2, and newly added control 3 (clicking the newly added control 3 allows for the addition of a button carrier). When the user clicks the target button carrier (e.g., button carrier 1), multiple virtual keys corresponding to the virtual keyboard and virtual mouse on the computer are displayed for the user to select. In response to the selection operation of the target virtual key, the target virtual key is displayed in the target button carrier. For example, when the user selects the target virtual key "A" from multiple virtual keys, the target virtual key "A" is displayed in the target button carrier (e.g., button carrier 1). The interaction parameters of the target virtual key can be set using the above-mentioned method of setting the interaction mode or interaction interval duration of the selected virtual key. In this way, the operation settings of the selected virtual key are completed. Similarly, other virtual keys can be selected and their interaction parameters set to complete the setup of the target number of virtual keys, such as setting virtual key A, virtual key B, and virtual key C. Once the target number of virtual keys has been set, a command will be received instructing you to add a combination key to that target number of virtual keys.
[0099] Step 103: In response to the key combination addition command, combine at least two keys to obtain a target key combination, wherein the target key combination is associated with a target virtual skill, and the target virtual skill is obtained by connecting and combining the virtual skills corresponding to each key.
[0100] Here, when the terminal device receives a key combination addition command, it can respond to the command by combining at least two keys indicated by the command to obtain the target key combination. For example, if the command indicates to combine virtual keys A, B, and C, where virtual key A has a single click, virtual key B has a long press (press and release), and virtual key C has a swipe, and the time interval between two adjacent operations is 15ms, the terminal device can combine virtual keys A, B, and C according to the interaction parameters of each virtual key to generate the target key combination (virtual key A - virtual key B - virtual key C), and display the target key combination in the virtual scene's interactive interface (game combat interface) for the player to use.
[0101] In some embodiments, after the terminal device combines at least two keys to obtain a target key combination, it may also display a modification control for modifying the target key combination; in response to a trigger operation on the modification control, a modification interface including at least two virtual keys is displayed; in response to a modification operation triggered based on the modification interface, at least two keys included in the target key combination are modified using at least two virtual keys to obtain at least two modified keys; in response to a confirmation operation on the at least two modified keys, the at least two modified keys are combined to obtain a new key combination to replace the target key combination.
[0102] Here, after adding the generated target key combination, players can also edit and modify the added target key combination. For example, before modification, the target key combination is composed of "A+B+C+space", and it can be edited and modified to be composed of "A+D+C+space".
[0103] Step 104: When a skill release command triggered by a target key combination is received, control the target virtual object in the virtual scene to release the target virtual skill, so as to assist the target virtual object in interacting with other virtual objects in the virtual scene.
[0104] Here, after a player successfully adds a target key combination to the game interface, when the player triggers the key combination, the terminal device receives the skill release command and responds to the command, controlling the target virtual object (the game character controlled by the user through the current terminal device) to release the target virtual skill associated with the target key combination. This assists the target object in interacting with other virtual objects in the game (such as enemies). The ability of the target virtual skill associated with the target key combination is usually equivalent to or higher than the sum of the abilities of the virtual skills corresponding to each key combination. In this way, high-damage, high-burst, or high-control combo skills can be achieved.
[0105] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario. Taking cloud gaming as an example, for instance... Figure 4 As shown, when a player plays a game on a cloud gaming platform and clicks the "Combination Keys (Macro)" editing entry in the menu bar, the terminal device responds to the click operation, displays the key editing interface, and shows the entry for adding combination keys in the key editing interface. There are multiple ways to add combination keys, so the entry corresponding to each method can be displayed, such as the "Get from Community Share" sharing entry, the "Record Key" recording entry, and the "Edit Key" editing entry. Next, the processing method of combination keys in the virtual scene provided in the embodiments of this application will be described one by one in conjunction with these three methods.
[0106] See Figure 6 , Figure 6 This is a flowchart illustrating a method for processing combination keys in a virtual scene according to an embodiment of this application. When the addition entry is a shared addition entry, the method includes: Step 201: The terminal device displays a shared entry point for adding combination keys in the key editing interface of the cloud game.
[0107] Step 202: In response to the trigger operation for adding a shared entry, the terminal device sends a request to the middleware server to obtain the combination key.
[0108] The middleware server is a server located between the terminal and the cloud gaming server. It can provide community sharing services for cloud gaming services. For example, each player can upload their configured key combinations to the middleware server for other players to download and use.
[0109] Step 203: The middleware server retrieves multiple candidate combination keys based on the retrieval request.
[0110] Step 204: The middleware server returns multiple candidate key combinations to the terminal device.
[0111] Here, the request carries the game identifier of the cloud game. Based on the game identifier in the request, the middleware server obtains multiple pre-configured candidate key combinations shared by other players for this cloud game and returns them to the terminal device for display.
[0112] Each candidate key combination includes at least two keys, and each candidate key combination is associated with a corresponding target virtual skill. The target virtual skill is a combo skill obtained by connecting and combining the virtual skills associated with each key combination in the order of operation for each key combination.
[0113] Step 205: The terminal device displays multiple candidate key combinations.
[0114] Here, when there are multiple candidate key combinations (two or more), the candidate key combinations can be displayed in a certain order, such as... Figure 4 In the process of displaying multiple candidate key combinations, the download count of each candidate key combination is determined, and the corresponding candidate key combinations are displayed in descending order of download count.
[0115] Step 206: The terminal device receives a key addition instruction in response to the selection operation of the target key combination among multiple candidate key combination combinations.
[0116] The command to add a combination key indicates the target combination key to be added.
[0117] Step 207: The terminal device responds to the key combination addition command and adds the selected target key combination to the player's operation control for display.
[0118] Step 208: When the terminal device receives a skill release command triggered by the target combination key, it controls the target virtual object to release the target virtual skill associated with the target combination key, so as to assist the target object in interacting with other virtual objects.
[0119] Here, after the player successfully adds the target key combination to the game interface, when the player triggers the key combination, the terminal device can receive the skill release command and respond to the skill release command to control the target virtual object (the game character controlled by the user through the current terminal device) to release the target virtual skill associated with the target key combination, so as to assist the target object in interacting with other virtual objects (such as enemies) in the game.
[0120] In this application scenario, after a target key combination selected from multiple candidate key combinations is added to the player's control panel, the player can edit and modify the added target key combination. For example, if the target key combination was originally "A+B+C+Space", it can be edited to be "A+D+C+Space". Players also upload their configured key combinations to the central server, such as through... Figure 5 The "Upload Now" option shown allows users to upload their configured shortcut keys to the central server for other users to download and use.
[0121] By using the above methods and a community sharing mechanism, excellent key combination schemes or key combination schemes for different needs can be shared. Users can obtain the key combinations they need according to their own interaction needs, which reduces the cost of setting key combinations and improves the efficiency of setting them. See Figure 7 , Figure 7 This is a flowchart illustrating a method for processing combination keys in a virtual scene according to an embodiment of this application. When the entry point is a recording entry point, the method includes: Step 301: The terminal device displays the entry point for adding combination keys in the key editing interface of cloud gaming.
[0122] Step 302: In response to the trigger operation for adding an entry for recording, the terminal device displays the key recording interface, and displays at least two virtual keys and a start recording control in the key recording interface.
[0123] Step 303: In response to the trigger operation of the start recording control, the terminal device records the touch operation of the virtual keys in the key recording interface and obtains the recording parameters.
[0124] The recording parameters include which virtual keys the user touched, the touch method (such as pressing or releasing) for each touched virtual key, the touch time, or the touch time interval for each virtual key.
[0125] Step 304: The terminal device sends recording parameters to the cloud gaming server.
[0126] Step 305: The cloud gaming server renders the screen based on the recording parameters.
[0127] Step 306: The cloud gaming server returns the rendered game screen to the terminal device for display.
[0128] In practical applications, cloud gaming servers can also send the rendered game screen to other user terminals participating in the cloud game, such as the computer side of other virtual objects, that is, display the game screen in the PC game.
[0129] Step 307: The terminal device responds to the trigger operation of the stop recording control and receives the key combination instruction.
[0130] Step 308: The terminal device responds to the key combination addition instruction, generates the target key combination based on the recorded parameters, and adds the target key combination to the player's operation control for display.
[0131] See Figure 8 , Figure 8 This is a schematic diagram of the recording interface provided in an embodiment of this application. When the user triggers... Figure 4 When the recording entry 403 is added, the terminal device responds to the trigger operation for the recording entry 403 by displaying a key recording interface, and displays multiple virtual keys 801 and a start recording control 802 in the key recording interface. When the user triggers the start recording control 802, the terminal device responds to the trigger operation by recording the touch operation for the virtual keys received in the key recording interface, and switches the start recording control 802 displayed in the key recording interface to a stop recording control 803. When the user triggers the stop recording control 803, the terminal device can receive the combination key addition instruction, and responds to the combination key addition instruction by generating a target combination key based on the recording parameters, and displays the generated target combination key 804 in the game interface.
[0132] When generating target key combinations based on recording parameters, the process essentially involves generating these combinations based on the target number of virtual keys touched by the user, and the touch parameters (such as touch method and touch timing) of each virtual key within that target number. For example, during recording, if the terminal device receives recording parameters such as a click operation for virtual key 1, a long press operation for virtual key 2, and a swipe operation for virtual key 3, with a time interval of 15 milliseconds between two adjacent operations, the terminal device can then generate the target key combination (virtual key 1 - virtual key 2 - virtual key 3) based on the recording parameters and display it in the game interface for the player to use.
[0133] Step 309: When the terminal device receives a skill release command triggered by the target combination key, it controls the target virtual object to release the target virtual skill associated with the target combination key, so as to assist the target object in interacting with other virtual objects.
[0134] Here, after the player successfully adds the target key combination to the game interface, when the player triggers the key combination, the terminal device can receive the skill release command and respond to the skill release command to control the target virtual object (the game character controlled by the user through the current terminal device) to release the target virtual skill associated with the target key combination, so as to assist the target object in interacting with other virtual objects (such as enemies) in the game.
[0135] Similarly, in this application scenario, after the target key combination selected from multiple candidate key combinations is added to the player's operation control, the player can also edit and modify the added target key combination. For example, if the target key combination is composed of "A+B+C+space" before modification, it can be edited and modified to be composed of "A+D+C+space".
[0136] By recording the touch operation process of the keys to create combination keys, the setup cost of combination keys is reduced and the setup efficiency is improved.
[0137] See Figure 9 , Figure 9 This is a flowchart illustrating a method for processing combination keys in a virtual scene according to an embodiment of this application. When the entry point is an edit entry point, the method includes: Step 401: The terminal device displays an entry point for adding combination keys in the key editing interface of cloud gaming.
[0138] Step 402: In response to the trigger operation for adding an edit entry, display multiple button positions.
[0139] Among them, the key carrier position is used to carry the virtual key selected by the user, and can also be used as an operation control for adding virtual key positions.
[0140] Step 403: In response to a trigger operation on a key carrier, display multiple virtual keys.
[0141] The virtual keys here include all operable keys corresponding to the virtual keyboard and virtual mouse.
[0142] like Figure 10 As shown, Figure 10 This is a schematic diagram illustrating the editing of a combination key provided in an embodiment of this application. When the user clicks... Figure 4 When the "Edit Button" entry 404 is displayed, the terminal device responds to the click operation and displays button carrier 1, button carrier 2 and new control 3 (clicking the new control 3 can add a button carrier). When the user clicks the target button carrier (such as button carrier 1), multiple virtual keys corresponding to the virtual keyboard and virtual mouse on the computer will pop up.
[0143] Step 404: In response to the selection operation for the target virtual key, display the target virtual key in the target key carrier position.
[0144] For example, Figure 10 In the middle, when the user selects the target virtual key "A" from multiple virtual keys, the target virtual key "A" is displayed in the target key carrier position (such as key carrier position 1).
[0145] Step 405: Display the mode control at the first position associated with the target button carrier and display the duration control at the second position associated with the target button carrier.
[0146] See Figure 11 , Figure 11This is a schematic diagram of the editing of the combination key provided in the embodiment of this application. A mode control is displayed below the key carrier position 1 (carrying virtual key A), and a duration control is displayed on the right. The mode control is used to set the interaction mode of the target virtual key carried in the target key carrier position. When the target key carrier position is not the last one, the duration control is used to set the interaction interval duration between the target key carrier position and the virtual key in the next key carrier position adjacent to the target key carrier position.
[0147] Step 406: In response to a trigger action on the modal control, display multiple candidate interaction modes.
[0148] For example, when the user clicks Figure 11 When using the modal control in the middle, see Figure 12 , Figure 12 This is a schematic diagram of editing a combination key provided in an embodiment of this application. In response to the click operation, the terminal device displays as shown below. Figure 12 The example shows several candidate interaction modes, such as click, press and hold, and release. Click means pressing the button and immediately releasing it, press and hold means pressing the button and not releasing it, and release means making the pressed button pop up.
[0149] Step 407: In response to the selection operation for the target interaction mode, display the target interaction mode at the first position associated with the target key carrier.
[0150] For example, when a user clicks Figure 12 When the target interaction mode is "click", the target interaction mode "click" will be displayed below the button carrier 1 (which carries the virtual key A).
[0151] It should be noted that if the selected target interaction mode is "press and hold," a release operation needs to be added after pressing and holding; otherwise, the following will be displayed when editing is complete: Figure 13 The displayed message is as follows: Figure 13 This is a schematic diagram illustrating the editing prompts for the combination keys provided in an embodiment of this application.
[0152] Step 408: In response to the duration setting operation triggered by the duration control, the target duration set by the duration setting operation is used as the interaction interval duration between adjacent virtual keys, and the interaction interval duration is displayed at the second position.
[0153] For example, see Figure 14 , Figure 14This is a schematic diagram illustrating the setting of the duration interval associated with the combination key provided in this application embodiment. When a user clicks the duration control to the right of the key carrier position carrying the virtual key A, the terminal device responds to the click operation and displays a duration editing box. The duration editing box allows editing of the interaction interval duration. For example, if the target duration is 25ms, then the set interaction interval duration of 25ms will be displayed to the right of the key carrier position carrying the virtual key A.
[0154] Steps 404-408 are used to set the interaction mode and interaction interval for the selected target virtual key, thus completing the operation settings for one virtual key in the target key combination.
[0155] Step 409: Determine whether the target number of virtual keys has been set.
[0156] Here, if the target number of virtual keys has not been set, step 404 is executed, that is, steps 404-408 are executed repeatedly to set other virtual keys to complete the setting of the target number of virtual keys, such as completing the setting of virtual key A, virtual key B, and virtual key C. When the target number of virtual keys has been set, step 410 is executed.
[0157] Step 410: In response to the confirmation operation for the target number of virtual keys, a key combination addition instruction is received.
[0158] The key combination addition instruction specifies the combination of a target number of virtual keys.
[0159] Step 411: In response to the key combination addition command, combine the target number of virtual keys to obtain the target key combination, and add the target key combination to the player's operation control for display.
[0160] Step 412: When a skill release command triggered by a target key combination is received, control the target virtual object to release the target virtual skill associated with the target key combination, so as to assist the target object in interacting with other virtual objects.
[0161] Here, after the player successfully adds the target key combination to the game interface, when the player triggers the key combination, the terminal device can receive the skill release command and respond to the skill release command to control the target virtual object (the game character controlled by the user through the current terminal device) to release the target virtual skill associated with the target key combination, so as to assist the target object in interacting with other virtual objects (such as enemies) in the game.
[0162] Similarly, in this application scenario, after the target key combination selected from multiple candidate key combinations is added to the player's operation control, the player can also edit and modify the added target key combination. For example, if the target key combination is composed of "A+B+C+space" before modification, it can be edited and modified to be composed of "A+D+C+space".
[0163] In practical applications, users can also delete or replace the configured virtual keys, or set the operation order between the configured virtual keys, such as... Figure 14 As shown, after virtual key A, virtual key B and virtual key C have been set, when a set virtual key (such as virtual key A) is deleted, the terminal device responds to the deletion operation of the deletion control (the × in the lower right corner) associated with virtual key A, and deletes virtual key A and its associated interaction mode and interaction interval duration.
[0164] When replacing a pre-configured virtual key (such as virtual key A), the terminal device responds to a click operation on virtual key A by controlling multiple virtual keys corresponding to the virtual keyboard and virtual mouse to be in a candidate state. In response to a selection operation on a virtual key in the candidate state (such as virtual key D), virtual key A is replaced with virtual key D. At this time, virtual key D inherits the interaction mode and interaction interval duration associated with virtual key A. Of course, the user can also adjust and change the interaction mode and interaction interval duration associated with virtual key D.
[0165] When swapping the operation sequence between virtual key A (corresponding to key carrier 1) and virtual key B (corresponding to key carrier 1), the terminal device responds to the drag operation on virtual key A by controlling virtual key A to move along the direction indicated by the drag operation. When virtual key A moves to key carrier 2 where virtual key B is located and the drag operation is released, the positions of virtual key A and virtual key B can be swapped. That is, virtual key B is displayed in key carrier 1 and virtual key A is displayed in key carrier 2. While swapping positions, their respective interaction modes and interaction intervals may or may not be swapped depending on the actual situation.
[0166] The above method provides a programmed editing process for key combinations, increasing the freedom of key combination settings and meeting the refined needs of advanced players.
[0167] The following description continues to illustrate the exemplary structure of the virtual scene combination key processing device 465 provided in the embodiments of this application as a software module. In some embodiments, it is stored in... Figure 2The software modules in the key combination processing device 465 of the virtual scene in the memory 460 may include: an entry display module 4651, used to display an entry point for adding key combinations in the key editing interface of the virtual scene; an instruction receiving module 4652, used to receive a key combination addition instruction triggered by the entry point, the key combination addition instruction instructing the combination of at least two keys, each key being associated with a corresponding virtual skill; a key combination module 4653, used to combine the at least two keys to obtain a target key combination in response to the key combination addition instruction, wherein the target key combination is associated with a target virtual skill, the target virtual skill being obtained by connecting and combining the virtual skills corresponding to each key; and a skill release module 4654, used to control a target virtual object in the virtual scene to release the target virtual skill when a skill release instruction triggered by the target key combination is received, so as to assist the target virtual object in interacting with other virtual objects in the virtual scene.
[0168] In some embodiments, the instruction receiving module is further configured to, when the addition entry is a shared addition entry, in response to a trigger operation for the shared addition entry, display at least one selectable candidate combination key, the candidate combination key including at least two keys; and in response to a selection operation for a target combination key among the at least one candidate combination key, receive a combination key addition instruction, the combination key addition instruction instructing the addition of the target combination key for display.
[0169] In some embodiments, the instruction receiving module is further configured to determine the selection priority of each candidate key combination when the number of candidate key combination is at least two; and to display the corresponding candidate key combination in descending order of selection priority.
[0170] In some embodiments, the instruction receiving module is further configured to, when there are at least two types of candidate combination keys, display candidate combination keys of the target type in a first display style, and display candidate combination keys of other types besides the target type in a second display style; wherein, the first display style is different from the second display style, and the first display style represents the selection priority of the candidate combination key of the target type, which is higher than the selection priority of the candidate combination keys of other types.
[0171] In some embodiments, the apparatus further includes: a prediction module, configured to obtain selection reference features for each of the candidate key combinations; wherein the selection reference features include at least one of the following: the download volume of the candidate key combination, the fit between the interaction features of the target virtual object and the skill features of the virtual skill associated with the candidate key combination; and to perform prediction processing by calling a machine learning model based on the selection reference features to obtain the selection priority of each candidate key combination.
[0172] In some embodiments, the instruction receiving module is further configured to, when the addition entry is a recording addition entry, in response to a trigger operation for the recording addition entry, display the key recording interface of the virtual scene and display at least two virtual keys in the key recording interface; in response to a recording operation triggered based on the key recording interface, record the touch operation in the key recording interface to obtain a target number of virtual keys corresponding to the touch operation; and in response to a stop recording operation triggered based on the key recording interface, receive the combination key addition instruction, the combination key addition instruction instructing the combination of the target number of virtual keys.
[0173] In some embodiments, the key combination module is further configured to, in response to the key combination addition instruction, acquire touch parameters for each virtual key among the target number of virtual keys, wherein the touch parameters include at least one of the following: touch mode, touch time; combine the target number of virtual keys based on the touch parameters to obtain a target key combination; wherein the target virtual skill associated with the target key combination is obtained by connecting and combining the virtual skills corresponding to each virtual key.
[0174] In some embodiments, the instruction receiving module is further configured to, when the addition entry is an edit addition entry, in response to a trigger operation for the edit addition entry, display at least two virtual keys; in response to a selection operation for a target number of virtual keys among the at least two virtual keys, display the target number of key carriers in the key editing interface, and display the target number of virtual keys among the target number of key carriers, wherein the key carriers correspond to the virtual keys; in response to a setting operation for the interaction parameters of each virtual key among the target number of virtual keys, display the interaction parameters of the corresponding virtual keys at the associated position of the key carriers corresponding to each virtual key, wherein the interaction parameters include at least one of the following: interaction mode, interaction interval duration; and in response to a determination operation for the interaction parameters, receive the combination key addition instruction, wherein the combination key addition instruction instructs the combination of the target number of virtual keys based on the interaction parameters.
[0175] In some embodiments, the instruction receiving module is further configured to perform the following processing for each virtual key among the target number of virtual keys when the interaction parameters include an interaction mode: displaying a mode control for setting the interaction mode of the virtual key at the associated position of the key bearing position; displaying at least one candidate interaction mode corresponding to the virtual key in response to a trigger operation of the mode control; and setting the interaction mode of the virtual key to the target interaction mode in response to a selection operation of the target interaction mode among the at least one candidate interaction mode, and displaying the target interaction mode at the associated position.
[0176] In some embodiments, the instruction receiving module is further configured to display setting prompt information, the setting prompt information being used to prompt that an auxiliary interaction mode needs to be added to the target interaction mode; in response to an interaction mode addition operation triggered based on the setting prompt information, the target interaction mode and the auxiliary interaction mode are combined to obtain a joint interaction mode, and the joint interaction mode is displayed at the associated location.
[0177] In some embodiments, the instruction receiving module is further configured to perform the following processing for any two adjacent virtual keys among the target number of virtual keys when the interaction parameter includes the interaction interval duration: displaying a duration control for setting the interaction interval duration of the adjacent virtual keys at the associated position of the two adjacent key bearing positions; in response to a duration setting operation triggered based on the duration control, using the target duration indicated by the duration setting operation as the interaction interval duration between the adjacent virtual keys, and displaying the interaction interval duration at the associated position.
[0178] In some embodiments, the instruction receiving module is further configured to display a first virtual key in the first carrier position of the target number of key carrier positions, and to display other virtual keys in the target number of virtual keys other than the first virtual key in the other carrier positions of the target number of key carrier positions.
[0179] In some embodiments, the apparatus further includes: a key replacement module, configured to, in response to a triggering operation for the first virtual key, control other virtual keys among the at least two virtual keys besides the first virtual key to be in a candidate state; and, in response to a selection operation for a target virtual key in the candidate state, replace the first virtual key displayed in the first carrier position with the target virtual key for display, so as to use the target virtual key and the other virtual keys as the target number of virtual keys.
[0180] In some embodiments, the instruction receiving module is further configured to display the interaction parameters of the first virtual key at an associated position of the first carrier position, and display the interaction parameters of the corresponding other virtual keys at associated positions of the other carrier positions; the device further includes: a key movement module, configured to control the first virtual key and the interaction parameters of the first virtual key to move along the direction indicated by the drag operation in response to a drag operation on the first virtual key; and to display the first virtual key in the second carrier position and the interaction parameters of the first virtual key at an associated position of the second carrier position in response to the first virtual key moving to a second carrier position that carries a second virtual key in the other carrier positions, and to display the second virtual key in the first carrier position and the interaction parameters of the second virtual key at an associated position of the first carrier position.
[0181] In some embodiments, the entry display module is further configured to, when the addition entry is an edit entry, display at least two key carrier positions in the key editing interface of the virtual scene, and use the key carrier positions as addition entry points for adding combination keys; the instruction receiving module is further configured to perform the following processing for each key carrier position in the target number of key carrier positions among the at least two key carrier positions: in response to a trigger operation for the key carrier position, display at least two virtual keys; in response to a selection operation for a target virtual key position among the at least two virtual keys, display the target virtual key position in the key carrier position; in response to a setting operation for the interaction parameters of the target virtual key position, display the interaction parameters of the target virtual key position at the associated position of the key carrier position, the interaction parameters including at least one of the following: interaction mode, interaction interval duration; in response to a determination operation for the interaction parameters of the target virtual key position corresponding to each key carrier position in the target number of key carrier positions, receive the combination key addition instruction, the combination key addition instruction instructing the target number of target virtual keys to be combined based on the interaction parameters.
[0182] In some embodiments, after combining the at least two keys to obtain a target key combination, the device further includes: a key modification module, configured to display a modification control for modifying the target key combination; in response to a trigger operation on the modification control, display a modification interface including at least two virtual keys; in response to a modification operation triggered based on the modification interface, modify the at least two keys included in the target key combination using the at least two virtual keys to obtain modified at least two keys; and in response to a confirmation operation on the modified at least two keys, combine the modified at least two keys to obtain a new key combination to replace the target key combination.
[0183] This application provides a computer program product or computer program that 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 virtual scene combination key processing method described above in this application embodiment.
[0184] This application provides a computer-readable storage medium storing executable instructions. When these executable instructions are executed by a processor, they cause the processor to execute a method for processing combination keys in a virtual scene, as provided in this application. For example... Figure 3 The method shown.
[0185] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.
[0186] In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0187] As an example, executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborating files (e.g., a file that stores one or more modules, subroutines, or code sections).
[0188] As an example, executable instructions can be deployed to execute on a single computing device, or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network.
[0189] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A method for processing key combinations in a virtual scene, characterized in that, The method includes: In the key editing interface of the virtual scene, an entry point for adding key combinations is displayed; the entry point includes an edit entry point. In response to a triggered operation that adds an entry to the edit, at least two virtual keys are displayed; In response to a selection operation for a target number of virtual keys among the at least two virtual keys, the target number of key carriers are displayed in the key editing interface, and the target number of virtual keys are displayed in the target number of key carriers, wherein the key carriers correspond to the virtual keys; At the associated position of each of the aforementioned key bearing positions, a mode control for setting the interaction mode of the corresponding virtual key is displayed; in response to a trigger operation on the mode control, at least one candidate interaction mode for the corresponding virtual key is displayed; in response to a selection operation on the target interaction mode among the at least one candidate interaction modes, when the target interaction mode is pressed, a setting prompt message is displayed to indicate that an auxiliary interaction mode needs to be added to the target interaction mode; in response to an interaction mode addition operation triggered based on the setting prompt message, the target interaction mode and the auxiliary interaction mode are combined to obtain a joint interaction mode, and the joint interaction mode is displayed as the final interaction mode of the corresponding virtual key at the associated position; In response to a determination operation for interaction parameters, a key combination addition instruction is received, the key combination addition instruction instructing the combination of the target number of virtual keys based on the interaction parameters, each of the virtual keys being associated with a corresponding virtual skill; In response to the key combination addition instruction, the at least two virtual keys are combined to obtain a target key combination, wherein the target key combination is associated with a target virtual skill, and the target virtual skill is obtained by connecting and combining the virtual skills corresponding to each virtual key combination. When a skill release command triggered by the target key combination is received, the target virtual object in the virtual scene is controlled to release the target virtual skill to assist the target virtual object in interacting with other virtual objects in the virtual scene.
2. The method as described in claim 1, characterized in that, The method further includes: When the add entry is a shared add entry, in response to a trigger operation for the shared add entry, at least one candidate key combination is displayed, the candidate key combination including at least two virtual keys; In response to the selection operation of a target combination key among the at least one candidate combination key, a combination key addition instruction is received, the combination key addition instruction instructing the target combination key to be added and displayed.
3. The method as described in claim 2, characterized in that, The display of at least one candidate key combination to choose from includes: When the number of candidate key combinations is at least two, the selection priority of each candidate key combination is determined. The candidate key combinations are displayed in descending order of selection priority.
4. The method as described in claim 2, characterized in that, The display of at least one candidate key combination to choose from includes: When there are at least two types of candidate key combinations, a first display style is used to display the candidate key combination of the target type among the at least two candidate key combinations, and a second display style is used to display the candidate key combination of other types besides the target type among the at least two candidate key combinations. The first display style is different from the second display style. The first display style represents the selection priority of the candidate combination key of the target type, which is higher than the selection priority of the candidate combination key of other types.
5. The method as described in claim 3 or 4, characterized in that, The method further includes: Obtain selection reference features for each of the candidate key combinations; wherein, the selection reference features include at least one of the following: the download volume of the candidate key combination, the compatibility between the interaction features of the target virtual object and the skill features of the virtual skill associated with the candidate key combination; Based on the selected reference features, a machine learning model is invoked to perform prediction processing to obtain the selection priority of each candidate key combination.
6. The method as described in claim 1, characterized in that, The method further includes: When the entry point is a recording entry point, in response to the trigger operation for the recording entry point, the key recording interface of the virtual scene is displayed, and at least two virtual keys are displayed in the key recording interface; In response to a recording operation triggered based on the key recording interface, the touch operation in the key recording interface is recorded to obtain the target number of virtual keys corresponding to the touch operation; In response to a stop recording operation triggered by the key recording interface, the key combination addition instruction is received, which instructs the combination of the target number of virtual keys.
7. The method as described in claim 6, characterized in that, The step of combining the at least two virtual keys to obtain a target key combination in response to the key combination addition instruction includes: In response to the key combination addition instruction, the touch parameters of each virtual key in the target number of virtual keys are obtained, wherein the touch parameters include at least one of the following: touch mode and touch time; Based on the touch parameters, the target number of virtual keys are combined to obtain the target combination key; The target virtual skill associated with the target combination key is obtained by connecting and combining the virtual skills corresponding to each virtual key.
8. The method as described in claim 1, characterized in that, The interaction parameters include at least one of the following: interaction mode, interaction interval duration.
9. The method as described in claim 8, characterized in that, The method further includes: When the interaction parameter includes the interaction interval duration, the following processing is performed on any two adjacent virtual keys among the target number of virtual keys: At the associated position of two adjacent key bearing positions, a duration control is displayed for setting the interaction interval duration of the adjacent virtual key positions; In response to a duration setting operation triggered by the duration control, the target duration indicated by the duration setting operation is used as the interaction interval duration between adjacent virtual keys, and the interaction interval duration is displayed at the associated location.
10. The method as described in claim 8, characterized in that, Displaying the target number of virtual keys in the target number of key carrier positions includes: In the first carrier position of the target number of key carrier positions, the first virtual key of the target number of virtual keys is displayed, and In the target number of key positions other than the first key position, display the other virtual keys in the target number of virtual keys other than the first virtual key.
11. The method as described in claim 10, characterized in that, The method further includes: In response to a trigger operation on the first virtual key, control the other virtual keys among the at least two virtual keys, excluding the first virtual key, to be in a candidate state; In response to the selection operation of the target virtual key in the candidate state, the first virtual key displayed in the first carrier position is replaced with the target virtual key for display, so that the target virtual key and the other virtual keys are used as the target number of virtual keys.
12. The method as described in claim 10, characterized in that, The method further includes: At the associated position of the first bearer position, the interaction parameters of the first virtual key are displayed, and at the associated positions of the other bearer positions, the interaction parameters of the corresponding other virtual keys are displayed. In response to a drag operation on the first virtual key, the first virtual key and its interaction parameters are controlled to move in the direction indicated by the drag operation. In response to the first virtual key moving to a second carrier position among the other carrier positions that carries the second virtual key, the first virtual key is displayed in the second carrier position, and the interaction parameters of the first virtual key are displayed at the associated position of the second carrier position. The second virtual key is displayed in the first carrier position, and the interaction parameters of the second virtual key are displayed at the associated position of the first carrier position.
13. The method as described in claim 1, characterized in that, The key editing interface in the virtual scene displays an entry point for adding key combinations, including: When the addition entry is the editing addition entry, at least two key bearing positions are displayed in the key editing interface of the virtual scene, and the key bearing positions are used as addition entries for adding combination keys; The method further includes: For each of the target number of key bearers in at least two of the said key bearers, perform the following processing: In response to a trigger operation on the key carrier, the at least two virtual keys are displayed; In response to a selection operation for a target virtual key among the at least two virtual key positions, the target virtual key is displayed in the key bearing position; In response to the setting operation of the interaction parameters of the target virtual key, the interaction parameters of the target virtual key are displayed at the associated position of the key bearing position. The interaction parameters include at least one of the following: interaction mode and interaction interval duration. In response to the operation of determining the interaction parameters of the target virtual key corresponding to each key carrier in the target number of key carriers, the combination key addition instruction is received, the combination key addition instruction instructing the target number of target virtual keys to be combined based on the interaction parameters.
14. The method as described in claim 1, characterized in that, After combining the at least two virtual keys to obtain the target combination key, the method further includes: Display modification controls for modifying the target key combination; In response to a trigger operation on the modification control, a modification interface including the at least two virtual keys is displayed; In response to a modification operation triggered based on the modification interface, at least two virtual keys included in the target combination key are modified through the at least two virtual keys to obtain the modified at least two virtual keys; In response to a determination operation for at least two modified virtual keys, the at least two modified virtual keys are combined to obtain a new combination key to replace the target combination key.
15. A device for processing combination keys in a virtual scene, characterized in that, The device includes: The entry display module is used to display the entry point for adding key combinations in the key editing interface of the virtual scene; the entry point includes the edit entry point; The instruction receiving module is configured to, in response to a trigger operation for adding the edit entry, display at least two virtual keys; and, in response to a selection operation for a target number of virtual keys among the at least two virtual keys, display the target number of key carriers in the key editing interface, and display the target number of virtual keys in the target number of key carriers, wherein the key carriers and the virtual keys are in a corresponding relationship. The instruction receiving module is further configured to display a mode control for setting the interaction mode of the corresponding virtual key at the associated position of each of the key bearing positions; in response to a trigger operation on the mode control, display at least one candidate interaction mode for the corresponding virtual key; in response to a selection operation on a target interaction mode among the at least one candidate interaction modes, when the target interaction mode is pressed, display a setting prompt message indicating that an auxiliary interaction mode needs to be added to the target interaction mode; in response to an interaction mode addition operation triggered based on the setting prompt message, combine the target interaction mode and the auxiliary interaction mode to obtain a joint interaction mode, and display the joint interaction mode as the final interaction mode of the corresponding virtual key at the associated position; The instruction receiving module is further configured to receive a combination key addition instruction in response to a determination operation for the interaction parameters. The combination key addition instruction instructs the combination of the target number of virtual keys based on the interaction parameters, and each of the virtual keys is associated with a corresponding virtual skill. A key combination module is used to combine at least two virtual keys to obtain a target key combination in response to the key combination addition instruction, wherein the target key combination is associated with a target virtual skill, and the target virtual skill is obtained by connecting and combining the virtual skills corresponding to each virtual key; The skill release module is used to control the target virtual object in the virtual scene to release the target virtual skill when a skill release command triggered based on the target combination key is received, so as to assist the target virtual object in interacting with other virtual objects in the virtual scene.
16. The apparatus according to claim 15, characterized in that, The instruction receiving module is further configured to, when the addition entry is a shared addition entry, in response to a trigger operation for the shared addition entry, display at least one candidate combination key that can be selected, the candidate combination key including at least two virtual keys; In response to the selection operation of a target combination key among the at least one candidate combination key, a combination key addition instruction is received, the combination key addition instruction instructing the target combination key to be added and displayed.
17. The apparatus according to claim 16, characterized in that, The instruction receiving module is further configured to determine the selection priority of each candidate key combination when the number of candidate key combination is at least two; and to display the corresponding candidate key combination in descending order of selection priority.
18. The apparatus according to claim 16, characterized in that, The instruction receiving module is further configured to, when there are at least two types of candidate combination keys, display candidate combination keys of the target type among the at least two candidate combination keys using a first display style, and display candidate combination keys of other types besides the target type among the at least two candidate combination keys using a second display style; The first display style is different from the second display style. The first display style represents the selection priority of the candidate combination key of the target type, which is higher than the selection priority of the candidate combination key of other types.
19. A terminal device, characterized in that, include: Memory, used to store executable instructions; A processor, when executing executable instructions stored in the memory, implements the method for processing combination keys in a virtual scene as described in any one of claims 1 to 14.
20. A computer-readable storage medium, characterized in that, It stores executable instructions for use by a processor to implement the method for processing combination keys in a virtual scene as described in any one of claims 1 to 14.
21. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by the processor, they implement the method for processing combination keys in a virtual scene as described in any one of claims 1 to 14.