Interactive control methods, devices, electronic equipment and storage media
By acquiring and analyzing the differences in operation time of key combinations, the functionality of key combinations has been expanded, the limitations of key combination functionality have been solved, and the gaming experience has been improved.
Patent Information
- Application Number
- CN202310189727.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2043-02-21
AI Technical Summary
The current game's combination key triggering function is relatively limited, unable to achieve functional subdivision, which affects the game experience.
By obtaining the difference in operation time between the first and second buttons, and combining different operation time combinations, the corresponding target function is executed, thus expanding the functionality of the combination buttons.
It has enabled the subdivision of combination button functions, thereby improving the player's gaming experience.
Smart Images

Figure CN116036573B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and more specifically, to an interactive control method, apparatus, electronic device, and storage medium. Background Technology
[0002] Currently, most games can be triggered by key presses to execute corresponding game functions, thereby improving the ease of operation.
[0003] Currently, the game primarily supports two function triggering methods: single-key triggering and combination key triggering. However, when a combination key is triggered, it can only perform the fixed function corresponding to that combination key, which limits the functionality of combination keys. Summary of the Invention
[0004] The purpose of this application is to address the shortcomings of the prior art by providing an interactive control method, device, electronic device, and storage medium, so as to expand the functionality of combination keys, achieve functional subdivision, and enhance the gaming experience.
[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:
[0006] In a first aspect, embodiments of this application provide an interactive control method, including:
[0007] In response to a first operation performed on a first button and a second operation performed on a second button, the operation time of the first operation and the operation time of the second operation are obtained;
[0008] Based on the operation time of the first operation and the operation time of the second operation, execute the corresponding target function.
[0009] Secondly, embodiments of this application also provide an interactive control device, including: an acquisition module and an execution module;
[0010] The acquisition module is used to acquire the operation time of the first operation and the operation time of the second operation in response to a first operation performed on a first button and a second operation performed on a second button.
[0011] The execution module is used to execute the corresponding target function based on the operation time of the first operation and the operation time of the second operation.
[0012] Thirdly, embodiments of this application provide an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the interactive control method provided in the first aspect.
[0013] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the interactive control method as provided in the first aspect.
[0014] The beneficial effects of this application are:
[0015] This application provides an interactive control method, device, electronic device, and storage medium. By acquiring the operation time of a first operation applied to a first button and the operation time of a second operation applied to a second button, the execution module can execute target functions corresponding to different combinations of the operation times of the first operation applied to the first button and the second operation applied to the second button. Since the first operation applied to the first button and the second operation applied to the second button can be of different types, and the operation times of the first operation and the second operation can also differ, multiple combinations of operations and operation times can be generated. Based on different operations and operation times, different target functions can be executed accordingly. This allows the triggering of the combined function of the two buttons to no longer be limited to a fixed single function, thereby expanding the functions of combined buttons, realizing more refined functions, and improving the player's gaming experience. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A flowchart illustrating an interactive control method provided in an embodiment of this application;
[0018] Figure 2 A flowchart illustrating another interactive control method provided in an embodiment of this application;
[0019] Figure 3 A flowchart illustrating another interactive control method provided in an embodiment of this application;
[0020] Figure 4 A flowchart illustrating another interactive control method provided in an embodiment of this application;
[0021] Figure 5 A schematic diagram of an interactive control device provided in an embodiment of this application;
[0022] Figure 6This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0024] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0025] In one embodiment of this disclosure, the interactive control method can run on a local terminal device or a server. When the interactive control method runs on a server, the method can be implemented and executed based on a cloud interactive system, wherein the cloud interactive system includes a server and a client device.
[0026] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of interactive control methods are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0027] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0028] In one possible implementation, this invention provides an interactive control method that provides a graphical user interface through a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interactive system.
[0029] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0030] Figure 1 This is a flowchart illustrating an interactive control method provided in an embodiment of this application; the executing entity of this method can be a terminal device, a computer, a server, or other devices. Figure 1 As shown, the method may include:
[0031] S101, in response to a first operation performed on a first button and a second operation performed on a second button, obtain the operation time of the first operation and the operation time of the second operation.
[0032] The method described in this application can be primarily applied to input methods such as game controllers or keyboards. Based on the timing difference of key combinations, it enables more granular functions within those combinations, expanding their triggering capabilities. Of course, this method is also applicable to touch input methods under certain circumstances.
[0033] The first and second buttons can be any of the buttons that can be triggered. In some cases, when the first button is triggered alone, the function of releasing the first button can be triggered, and when the second button is triggered alone, the function of releasing the second button can be triggered. The functions of the first and second buttons can be pre-configured.
[0034] In addition, when configuring the functions of all buttons, it is necessary to avoid different buttons corresponding to the same function.
[0035] When user input is received for a first operation performed on a first button and a second operation performed on a second button, the operation time of the first operation performed on the first button and the operation time of the second operation performed on the second button can be obtained respectively. Here, "first" and "second" in "first operation" and "second operation" do not have actual meaning; they are merely used to distinguish that the operation was performed on different buttons.
[0036] The operation time here can be a certain point in time during the triggering process of the first and second buttons selected according to the set operation selection rules.
[0037] S102. Execute the corresponding target function according to the operation time of the first operation and the operation time of the second operation.
[0038] The operation time of the first operation of the first button and the operation time of the second operation of the second button can be combined to trigger the execution of the target function corresponding to the current user operation. Executing the target function means rendering and displaying the target function in the game screen of the terminal interface.
[0039] In this embodiment, the first button and the second button are used in combination. The corresponding target function is executed according to the operation time of the user's operation on the first button and the operation time of the user's operation on the second button. Since the first operation on the first button and the second operation on the second button can be of different types, and the operation time of the first operation and the operation time of the second operation can also be different, a variety of operation and operation time combinations can be generated. Based on different operations and operation times, different target functions can be executed accordingly. This makes the triggering of the combined function of the two buttons no longer limited to the inherent single function, thereby achieving the purpose of expanding the combined button function, realizing more refined functions, and improving the player's gaming experience.
[0040] In summary, the interactive control method provided in this embodiment, by acquiring the operation time of the first operation applied to the first button and the operation time of the second operation applied to the second button, can execute target functions corresponding to different combinations of the operation times of the first operation applied to the first button and the second operation applied to the second button. Since the first operation applied to the first button and the second operation applied to the second button can be of different types, and the operation times of the first and second operations can also differ, various combinations of operations and operation times can be generated. Based on different operations and operation times, different target functions can be executed accordingly. This allows the triggering of the combined function of the two buttons to no longer be limited to a fixed single function, thereby expanding the functionality of combined buttons, achieving more refined functions, and improving the player's gaming experience.
[0041] Optionally, in step S101, in response to the first operation applied to the first button and the second operation applied to the second button, obtaining the operation time of the first operation and the operation time of the second operation may include: in response to the release operation after the triggering of the first button, obtaining the release time of the first button; in response to the release operation after the triggering of the second button, obtaining the release time of the second button.
[0042] In one possible implementation, the first operation applied to the first button can be a pressing and releasing operation of the first button. Therefore, the corresponding operation time of the first operation can be the release time of the first button release operation. Similarly, the second operation applied to the second button can be a pressing and releasing operation of the second button. Therefore, the corresponding operation time of the second operation can be the release time of the second button release operation. The aforementioned triggering operation can refer to a button pressing or pressing operation.
[0043] In this case, the operation of the first and second keys can be continuously monitored. Taking the first key as an example, when it is detected that the first key is pressed and then released, the release time of the first key is obtained as the operation time of the first operation.
[0044] Of course, this method is based on the premise that the single button is set to trigger the function only after being pressed and released. Otherwise, the press time will be obtained as the operation time as soon as the first button is pressed.
[0045] Figure 2 This is a flowchart illustrating another interactive control method provided in an embodiment of this application; optionally, in step S102, executing the corresponding target function based on the operation time of the first operation and the operation time of the second operation may include:
[0046] S201. If the time interval between the release time of the first button and the release time of the second button is less than a threshold, then the target function to be executed is the first function.
[0047] In the first case, when it is detected that the first button and the second button are released at the same time, the target function to be executed is the first function.
[0048] Since it is difficult to achieve perfect precision in terms of timing when releasing two buttons simultaneously, it can be assumed that the two buttons are released at the same time when the time interval between their releases is within a relatively short range.
[0049] Based on this, a threshold can be set. When the time interval between the release time of the first button and the release time of the second button is less than the threshold, it is determined that the first button and the second button are released simultaneously, and the target function to be executed is the first function.
[0050] S202. If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is earlier than the release time of the second button, then the target function to be executed is the second function.
[0051] In the second case, when the first and second buttons are released one after the other, there are two possibilities. The first possibility is that the first button is released first and the second button is released later, in which case the target function is the second function.
[0052] First, if the time interval between the release times of the first and second buttons exceeds a threshold, it can be assumed that the first and second buttons were not released simultaneously. Since the first button is released earlier than the second button, it can be determined that the first button was released first, followed by the second button. Therefore, the target function to be executed can be the second function.
[0053] S203. If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is later than the release time of the second button, then the target function to be executed is the third function.
[0054] The second possibility is: if the first button is released after the second button is released, then the target function executed is the third function.
[0055] First, if the time interval between the release times of the first and second buttons exceeds a threshold, it can be assumed that the first and second buttons were not released simultaneously. Since the release time of the first button is later than that of the second button, it can be determined that the first button was released later, and the second button was released first. Therefore, the target function to be executed can be the third function.
[0056] Optionally, the first, second, and third functions mentioned above can be completely unrelated game functions, or the second and third functions can both be two other different functions that are related to the first function.
[0057] Because there is a time difference between the release times of the first and second buttons, different target functions can be triggered by combining the release times of the first and second buttons.
[0058] Traditional combination key functions are triggered only when both keys are pressed simultaneously. This embodiment further extends this by triggering more functions based on the difference in the operation time of the two keys, thus achieving functional subdivision of combination keys.
[0059] Optionally, in one implementable manner: the first function is a first combination function of the first button and the second button; the second function includes the function corresponding to the second button and the first combination function of the first button and the second button; and the third function includes the function corresponding to the first button and the first combination function of the first button and the second button.
[0060] In some embodiments, when the first button and the second button are released simultaneously, the first function triggered can be a first combination function of the first button and the second button. Here, the first combination function can refer to the function of the first button and the second button used in combination in a pre-set manner.
[0061] Assume that the function of the first button alone is to punch, the function of the second button alone is to jump, and the function of the first and second buttons being triggered simultaneously is a critical hit. These functions, whether single-button or combination-button, are all pre-set.
[0062] Therefore, when the first and second buttons are released simultaneously, it can be determined that the first function triggered is a critical hit.
[0063] When the first button is released first and then the second button is released, the triggered second function can be a combination of the function corresponding to the second button and the first combination function of the first button and the second button.
[0064] The function corresponding to the second button here can be pre-configured and can be any function that does not overlap with the function of other buttons. When the function corresponding to the second button is different, the second function here will also change accordingly.
[0065] In addition, when the second button is released first and then the first button is released, the triggered third function can be the function corresponding to the first button, or a combination of the first combination function of the first button and the second button.
[0066] The function corresponding to the first button here is also pre-configured and does not overlap with the function of other buttons. When the function configuration of the first button is different, the third function here will also change accordingly.
[0067] For example, in the game, there are two weapon slots, each displaying one weapon. You can switch between these two weapons by pressing different buttons.
[0068] Assuming the "first button" is to use the weapon in slot 1, and the "second button" is to use the weapon in slot 2, the first combined function of the first button and the second button is to "pick up the weapon on the ground and directly replace the current weapon".
[0069] (1) When it is determined that the first button and the second button are released at the same time, the first function is to pick up the weapon on the ground and directly replace the current weapon.
[0070] (2) When it is determined that the first button is released first and the second button is released later, the second function is determined to be to pick up the weapon on the ground and replace the weapon in the first slot.
[0071] (3) When it is determined that the second button is released first and the first button is released later, the third function is to pick up the weapon on the ground and replace the weapon in the second slot.
[0072] Taking the backpack operation in the game as an example: the backpack displays multiple items;
[0073] Assume the function of the first button is to purchase items, the function of the second button is to transfer items, and the first combined function of the first and second buttons is to mark items.
[0074] (1) When it is determined that the first button and the second button are released at the same time, the first function is determined to be marking the specified item.
[0075] (2) When it is determined that the first button is released first and the second button is released later, the second function is determined to be to purchase the marked specified item or to purchase the matching item of the marked specified item.
[0076] (3) When it is determined that the second button is released before the first button is released, the third function is to transfer the marked item to another player.
[0077] Take map controls in the game as an example:
[0078] Assuming the first button controls player movement on the map, the second button displays danger information, and the first combined function of the first and second buttons is to mark a location;
[0079] (1) When it is determined that the first button and the second button are released at the same time, the first function is determined to be marking the specified location on the map.
[0080] (2) When it is determined that the first button is released first and the second button is released later, the second function is determined to control the player to go to the marked location.
[0081] (3) When it is determined that the second button is released before the first button is released, the third function is to prompt the player to pay attention to the marked location.
[0082] In the three examples above, the functions triggered by the combination of the first and second buttons correspond to the single-key functions of the original first and second buttons, as well as the combined functions of the first and second buttons.
[0083] In other possible implementations, in the three sub-scenarios mentioned above, whether the first and second buttons are released simultaneously or sequentially, the triggered target function can be any other function that is completely unrelated to the single-key function of the first and second buttons or the combined function of the first and second buttons, as long as it does not overlap with the function that can be achieved by other buttons at the moment.
[0084] Optionally, in step S101, in response to the first operation applied to the first button and the second operation applied to the second button, obtaining the operation time of the first operation and the operation time of the second operation may include: in response to the trigger operation applied to the first button and the trigger operation applied to the second button, obtaining the trigger time of the first button and the trigger time of the second button respectively.
[0085] In other embodiments, the operation time of the first operation of the first button can be selected as the trigger time when the first button is triggered, that is, the time when the first button is pressed; the operation time of the second operation of the second button can be selected as the time when the second button is pressed. Therefore, both the first operation and the second operation refer to the button triggering operation, that is, the button pressing operation. By monitoring the pressing operations of the first button and the second button respectively, the trigger time of the first button and the trigger time of the second button are obtained, and the corresponding trigger time is the pressing time.
[0086] In other words, this embodiment uses the traditional method of pressing a button as the trigger for button function, unlike the method described above which uses pressing and releasing a button as the trigger. Here, triggering is achieved simply by recognizing the button press. However, it is worth noting that this method of triggering combination keys can easily be misidentified as a single-key trigger.
[0087] Figure 3 This is a flowchart illustrating another interactive control method provided in an embodiment of this application; optionally, in step S102, executing the corresponding target function based on the operation time of the first operation and the operation time of the second operation may include:
[0088] S301. If the time interval between the trigger time of the first button and the trigger time of the second button is less than the threshold, then the target function to be executed is the fourth function.
[0089] Similar to the function triggered based on release time, when the time interval between the trigger times of the first and second buttons is less than a threshold, it can be determined that the first and second buttons are triggered simultaneously, and the target function executed is the fourth function. This threshold can be the same as the threshold used to determine simultaneous triggering based on button release time. This is also used to determine if two buttons are triggered simultaneously when it is difficult for them to be triggered at the same time.
[0090] S302. If the time interval between the trigger time of the first button and the trigger time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is earlier than the trigger time of the second button, then the target function to be executed is the fifth function.
[0091] In some embodiments, in order to prevent accidental triggering of single-key functions, a threshold is set. When the time interval between the triggering time of the first key and the triggering time of the second key is greater than the threshold, it is considered that the first key and the second key are not triggered simultaneously, but are triggered sequentially, and belong to the combined triggering mode of the first key and the second key.
[0092] The preset interval is set to prevent the system from recognizing a single-key operation as either the first or second key when the first and second keys are triggered sequentially. In other words, it's a reasonable time interval set to distinguish between single-key triggers and combination key triggers.
[0093] When it is determined that the first button is triggered before the second button is triggered, the target function to be executed is the fifth function.
[0094] S303. If the time interval between the trigger time of the first button and the trigger time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is later than the trigger time of the second button, then the target function to be executed is the sixth function.
[0095] When it is determined that the second button is triggered before the first button, the target function that can be executed is the sixth function.
[0096] For example, you can set the single-key trigger duration of the first or second button to 2 seconds and the threshold to 1 second. Then, the preset range can be from 1 second to 2 seconds (excluding 2 seconds).
[0097] When the time interval between the triggering of the first button and the second button is between 0 and 1 second, it is determined that the first button and the second button are triggered simultaneously, and the target function to be executed is determined to be the fourth function.
[0098] When the time interval between the triggering of the first button and the second button is 1-2 seconds, and the first button is triggered first and the second button is triggered later, the target function to be executed is the fifth function.
[0099] When the time interval between the triggering of the first and second buttons is 1-2 seconds, and the second button is triggered first and then the first button is triggered, the target function to be executed is the sixth function.
[0100] When the time interval between the triggering time of the first button and the triggering time of the second button is greater than 2 seconds, it can be considered as a single-key function trigger of the first button or the second button. In this case, if the triggering time of the first button is earlier than the triggering time of the second button, the functions of the first button and the second button are executed in turn. If the triggering time of the first button is later than the triggering time of the second button, the functions of the second button and the first button are executed in turn.
[0101] Optionally, in one implementable manner, the fourth function is a second combination function of the first button and the second button, the fifth function includes the function corresponding to the second button and the second combination function of the first button and the second button, and the sixth function includes the function corresponding to the first button and the second combination function of the first button and the second button.
[0102] Similar to the above method of triggering the function by the release time of the button, when the first button and the second button are determined to be triggered simultaneously, the fourth function is determined to be a second combination function of the first button and the second button. The second combination function can be the same as the first combination function, or it can be different.
[0103] Therefore, the fourth function can be the same as the first function or a different function; the fifth function can be the same as the second function or a different function; and the sixth function can be the same as the third function or a different function.
[0104] When the functions are different, the fourth, fifth, and sixth functions can also be extended functions that combine the single-key functions of the original first and second buttons with the combination key functions of the first and second buttons, or they can be other functions that have nothing to do with the single-key functions of the first and second buttons or the combination key functions of the first and second buttons.
[0105] Optionally, in step S101, in response to the first operation applied to the first button and the second operation applied to the second button, obtaining the operation time of the first operation and the operation time of the second operation may include: in response to the trigger operation applied to the first button, obtaining the trigger time of the first button; in response to the release operation applied to the second button after the trigger, obtaining the release time of the second button.
[0106] In some embodiments, the trigger time of one button can be used as the operation time of that button, and the release time of another button can be used as the operation time of that button.
[0107] For example, when the first operation of the first button is a trigger operation, the operation time of the first operation is the trigger time of the first button. At this time, the second operation of the second button can be the release operation after the second button is triggered, and the operation time of the second operation is the release time of the second button.
[0108] Conversely, when the first operation of the first button is a release operation after triggering, the operation time of the first operation is the release time of the first button. At this time, the second operation of the second button can be the trigger operation of the second button, and the operation time of the second operation is the trigger time of the second button.
[0109] Figure 4 This is a flowchart illustrating another interactive control method provided in an embodiment of this application; optionally, in step S102, executing the corresponding target function based on the operation time of the first operation and the operation time of the second operation may include:
[0110] S401. If the time interval between the trigger time of the first button and the release time of the second button is less than the threshold, then the target function to be executed is the seventh function.
[0111] S402. If the time interval between the trigger time of the first button and the release time of the second button is greater than the threshold and is within the preset range, and the trigger time of the first button is earlier than the release time of the second button, then the target function to be executed is the eighth function.
[0112] S403. If the time interval between the trigger time of the first button and the release time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is later than the release time of the second button, then the target function to be executed is the ninth function.
[0113] Alternatively, if the time interval between the release time of the first button and the trigger time of the second button is less than the threshold, then the target function to be executed is the tenth function.
[0114] If the time interval between the release time of the first button and the trigger time of the second button is greater than the threshold and is within the preset range, and the release time of the first button is earlier than the trigger time of the second button, then the target function to be executed is the eleventh function.
[0115] If the time interval between the release time of the first button and the trigger time of the second button is greater than a threshold and within a preset range, and the release time of the first button is later than the trigger time of the second button, then the target function to be executed is the twelfth function.
[0116] In the six scenarios of the embodiments, the determination of the time interval between the operation time of the first operation of the first button and the operation time of the second operation of the second button, as well as the corresponding target function to be executed, can be understood with reference to the previous two embodiments.
[0117] Similarly, the seventh, eighth, and ninth functions can be completely unrelated functions, or they can be combined functions based on the single-key function of the first button, the single-key function of the second button, or a combination of the functions of the first and second buttons. The tenth, eleventh, and twelfth functions can be completely unrelated functions, or they can be combined functions based on the single-key function of the first button, the single-key function of the second button, or a combination of the functions of the first and second buttons.
[0118] Of course, the seventh, eighth, and ninth functions, as well as the tenth, eleventh, and twelfth functions, could also be six completely different functions that are unrelated to each other.
[0119] The interactive control method provided by this solution allows for the combination and execution of various functions by applying different operations to the buttons and varying operation times. This expands the functionality of button combinations. By combining different operation methods and operation times of two specific buttons, more detailed functions can be developed for the combined use of the two buttons, thereby enhancing the player's gaming experience.
[0120] In summary, the interactive control method provided in this embodiment, by acquiring the operation time of the first operation applied to the first button and the operation time of the second operation applied to the second button, can execute target functions corresponding to different combinations of the operation times of the first operation applied to the first button and the second operation applied to the second button. Since the first operation applied to the first button and the second operation applied to the second button can be of different types, and the operation times of the first and second operations can also differ, multiple combinations of operations and operation times can be generated. Based on different operations and operation times, different target functions can be executed accordingly. This allows the triggering of the combined function of the two buttons to no longer be limited to a fixed single function, thereby expanding the functionality of combined buttons, achieving more refined functions, and improving the player's gaming experience.
[0121] The following describes the apparatus, device, and storage medium used to execute the interactive control method provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.
[0122] Figure 5This is a schematic diagram of an interactive control device provided in an embodiment of this application. The functions implemented by the interactive control device correspond to the steps executed by the above-described method. The device can be understood as a terminal device or a server, or a server's processor, or it can be understood as a component that implements the functions of this application under the control of a server, independent of the aforementioned server or processor. As shown in the figure, the interactive control device may include: an acquisition module 410 and an execution module 420.
[0123] The acquisition module 410 is used to acquire the operation time of the first operation and the operation time of the second operation in response to a first operation applied to a first button and a second operation applied to a second button.
[0124] The execution module 420 is used to execute the corresponding target function based on the operation time of the first operation and the operation time of the second operation.
[0125] Optionally, the acquisition module 410 is specifically used to acquire the release time of the first button in response to the release operation after the triggering of the first button;
[0126] In response to a release operation following a triggering action on the second button, obtain the release time of the second button.
[0127] Optionally, the execution module 420 is specifically used to execute the first function if the time interval between the release time of the first button and the release time of the second button is less than a threshold.
[0128] If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is earlier than the release time of the second button, then the target function to be executed is the second function.
[0129] If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is later than the release time of the second button, then the target function to be executed is the third function.
[0130] Optionally, the acquisition module 410 is specifically used to acquire the trigger time of the first button and the trigger time of the second button in response to the trigger operation of the first button and the trigger operation of the second button, respectively.
[0131] Optionally, the execution module 420 is specifically used to execute the fourth function if the time interval between the triggering time of the first button and the triggering time of the second button is less than a threshold.
[0132] If the time interval between the trigger time of the first button and the trigger time of the second button is greater than the threshold and is within the preset range, and the trigger time of the first button is earlier than the trigger time of the second button, then the target function to be executed is the fifth function.
[0133] If the time interval between the trigger time of the first button and the trigger time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is later than the trigger time of the second button, then the target function to be executed is the sixth function.
[0134] Optionally, the acquisition module 410 is specifically used to acquire the trigger time of the first button in response to the trigger operation applied to the first button;
[0135] In response to a release operation following a triggering action on the second button, obtain the release time of the second button.
[0136] Optionally, the execution module 420 is specifically used to execute the seventh function if the time interval between the triggering time of the first button and the release time of the second button is less than a threshold.
[0137] If the time interval between the trigger time of the first button and the release time of the second button is greater than the threshold and is within the preset range, and the trigger time of the first button is earlier than the release time of the second button, then the target function to be executed is the eighth function.
[0138] If the time interval between the trigger time of the first button and the release time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is later than the release time of the second button, then the target function to be executed is the ninth function.
[0139] Through the aforementioned device, the acquisition module acquires the operation time of the first operation applied to the first button and the operation time of the second operation applied to the second button. The execution module can then execute different target functions based on different combinations of these operation times. Since the first operation applied to the first button and the second operation applied to the second button can be of different types, and the operation times of the first and second operations can also differ, various combinations of operations and operation times can be generated. Based on these different operations and operation times, different target functions can be executed. This allows the triggering of combined functions of the two buttons to move beyond a single, inherent function, thereby expanding the functionality of combined buttons, achieving more refined functions, and enhancing the player's gaming experience.
[0140] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).
[0141] The modules described above can be connected or communicate with each other via wired or wireless connections. Wired connections can include metal cables, optical fibers, hybrid cables, or any combination thereof. Wireless connections can include connections via LAN, WAN, Bluetooth, ZigBee, or NFC, or any combination thereof. Two or more modules can be combined into a single module, and any module can be divided into two or more units. Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here.
[0142] Figure 6 A schematic diagram of an electronic device provided in this application embodiment includes: a processor 801, a storage medium 802, and a bus 803. The storage medium 802 stores machine-readable instructions executable by the processor 801. When the electronic device runs an interactive control method as described in the embodiment, the processor 801 communicates with the storage medium 802 via the bus 803. The processor 801 executes the machine-readable instructions to perform the following steps:
[0143] In response to a first operation performed on a first button and a second operation performed on a second button, the operation time of the first operation and the operation time of the second operation are obtained;
[0144] Execute the corresponding target function based on the operation time of the first operation and the operation time of the second operation.
[0145] In one feasible implementation, when the processor 801 performs a first operation in response to the first operation applied to the first button and a second operation in response to the second button, and obtains the operation time of the first operation and the operation time of the second operation, it is specifically used to: obtain the release time of the first button in response to a release operation after the triggering of the first button.
[0146] In response to a release operation following a triggering action on the second button, obtain the release time of the second button.
[0147] In one feasible implementation, when the processor 801 executes the corresponding target function based on the operation time of the first operation and the operation time of the second operation, it is specifically used for:
[0148] If the time interval between the release time of the first button and the release time of the second button is less than the threshold, then the target function to be executed is the first function.
[0149] If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is earlier than the release time of the second button, then the target function to be executed is the second function.
[0150] If the time interval between the release time of the first button and the release time of the second button is greater than the threshold, and the release time of the first button is later than the release time of the second button, then the target function to be executed is the third function.
[0151] In one feasible implementation, when the processor 801 executes a first operation in response to the first operation applied to the first button and a second operation applied to the second button, and obtains the operation time of the first operation and the operation time of the second operation, it is specifically used to: obtain the trigger time of the first button and the trigger time of the second button in response to the trigger operation applied to the first button and the trigger operation applied to the second button, respectively.
[0152] In one feasible implementation, when the processor 801 executes the corresponding target function based on the operation time of the first operation and the operation time of the second operation, it is specifically used for:
[0153] If the time interval between the triggering time of the first button and the triggering time of the second button is less than the threshold, then the target function to be executed is the fourth function.
[0154] If the time interval between the trigger time of the first button and the trigger time of the second button is greater than the threshold and is within the preset range, and the trigger time of the first button is earlier than the trigger time of the second button, then the target function to be executed is the fifth function.
[0155] If the time interval between the trigger time of the first button and the trigger time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is later than the trigger time of the second button, then the target function to be executed is the sixth function.
[0156] In one feasible implementation, when the processor 801 performs a first operation in response to the action of the first button and a second operation in response to the action of the second button, and obtains the operation time of the first operation and the operation time of the second operation, it is specifically used to obtain the trigger time of the first button in response to the trigger operation in response to the action of the first button.
[0157] In response to a release operation following a triggering action on the second button, obtain the release time of the second button.
[0158] In one feasible implementation, when the processor 801 executes the corresponding target function according to the operation time of the first operation and the operation time of the second operation, specifically if the time interval between the trigger time of the first button and the release time of the second button is less than a threshold, then the target function to be executed is the seventh function.
[0159] If the time interval between the trigger time of the first button and the release time of the second button is greater than the threshold and is within the preset range, and the trigger time of the first button is earlier than the release time of the second button, then the target function to be executed is the eighth function.
[0160] If the time interval between the trigger time of the first button and the release time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is later than the release time of the second button, then the target function to be executed is the ninth function.
[0161] In this way, the electronic device acquires the operation time of the first operation on the first button and the operation time of the second operation on the second button. Based on different combinations of these operation times, it can execute different target functions. Since the first operation on the first button and the second operation on the second button can be of different types, and the operation times of the first and second operations can also differ, various combinations of operations and operation times can be generated. Based on different operations and operation times, different target functions can be executed. This allows the triggering of combined button functions to move beyond a single, inherent function, thereby expanding the functionality of combined buttons, achieving more refined functions, and enhancing the player's gaming experience.
[0162] The storage medium 802 stores program code, which, when executed by the processor 801, causes the processor 801 to perform various steps in the interactive control method according to various exemplary embodiments of this application as described in the "Exemplary Methods" section above.
[0163] The processor 801 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0164] Storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory can include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disk, etc. Memory is any other medium capable of carrying or storing desired program code having an instruction or data structure form and accessible by a computer, but is not limited thereto. Storage medium 802 in this embodiment can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.
[0165] Optionally, embodiments of this application also provide a computer-readable storage medium storing a computer program, which is executed by a processor, and the processor performs the following steps:
[0166] In response to a first operation performed on a first button and a second operation performed on a second button, the operation time of the first operation and the operation time of the second operation are obtained;
[0167] Execute the corresponding target function based on the operation time of the first operation and the operation time of the second operation.
[0168] In one feasible implementation, when the processor 801 performs a first operation in response to the first operation applied to the first button and a second operation in response to the second button, and obtains the operation time of the first operation and the operation time of the second operation, it is specifically used to: obtain the release time of the first button in response to a release operation after the triggering of the first button.
[0169] In response to a release operation following a triggering action on the second button, obtain the release time of the second button.
[0170] In one feasible implementation, when the processor 801 executes the corresponding target function based on the operation time of the first operation and the operation time of the second operation, it is specifically used for:
[0171] If the time interval between the release time of the first button and the release time of the second button is less than the threshold, then the target function to be executed is the first function.
[0172] If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is earlier than the release time of the second button, then the target function to be executed is the second function.
[0173] If the time interval between the release time of the first button and the release time of the second button is greater than the threshold, and the release time of the first button is later than the release time of the second button, then the target function to be executed is the third function.
[0174] In one feasible implementation, when the processor 801 executes a first operation in response to the first operation applied to the first button and a second operation applied to the second button, and obtains the operation time of the first operation and the operation time of the second operation, it is specifically used to: obtain the trigger time of the first button and the trigger time of the second button in response to the trigger operation applied to the first button and the trigger operation applied to the second button, respectively.
[0175] In one feasible implementation, when the processor 801 executes the corresponding target function based on the operation time of the first operation and the operation time of the second operation, it is specifically used for:
[0176] If the time interval between the triggering time of the first button and the triggering time of the second button is less than the threshold, then the target function to be executed is the fourth function.
[0177] If the time interval between the trigger time of the first button and the trigger time of the second button is greater than the threshold and is within the preset range, and the trigger time of the first button is earlier than the trigger time of the second button, then the target function to be executed is the fifth function.
[0178] If the time interval between the trigger time of the first button and the trigger time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is later than the trigger time of the second button, then the target function to be executed is the sixth function.
[0179] In one feasible implementation, when the processor 801 performs a first operation in response to the action of the first button and a second operation in response to the action of the second button, and obtains the operation time of the first operation and the operation time of the second operation, it is specifically used to obtain the trigger time of the first button in response to the trigger operation in response to the action of the first button.
[0180] In response to a release operation following a triggering action on the second button, obtain the release time of the second button.
[0181] In one feasible implementation, when the processor 801 executes the corresponding target function according to the operation time of the first operation and the operation time of the second operation, specifically if the time interval between the trigger time of the first button and the release time of the second button is less than a threshold, then the target function to be executed is the seventh function.
[0182] If the time interval between the trigger time of the first button and the release time of the second button is greater than the threshold and is within the preset range, and the trigger time of the first button is earlier than the release time of the second button, then the target function to be executed is the eighth function.
[0183] If the time interval between the trigger time of the first button and the release time of the second button is greater than a threshold and is within a preset range, and the trigger time of the first button is later than the release time of the second button, then the target function to be executed is the ninth function.
[0184] In this way, the electronic device acquires the operation time of the first operation on the first button and the operation time of the second operation on the second button. Based on different combinations of these operation times, it can execute different target functions. Since the first operation on the first button and the second operation on the second button can be of different types, and the operation times of the first and second operations can also differ, various combinations of operations and operation times can be generated. Based on different operations and operation times, different target functions can be executed. This allows the triggering of combined button functions to move beyond a single, inherent function, thereby expanding the functionality of combined buttons, achieving more refined functions, and enhancing the player's gaming experience.
[0185] In this embodiment, the computer program, when run by the processor, can also execute other machine-readable instructions to perform other methods as described in the embodiments. For details on the specific execution steps and principles, please refer to the description of the embodiments, which will not be repeated here.
[0186] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0187] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0188] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.
[0189] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. An interactive control method, characterized in that, include: In response to a first operation performed on a first button and a second operation performed on a second button, the operation time of the first operation and the operation time of the second operation are obtained; Based on the operation time of the first operation and the operation time of the second operation, execute the corresponding target function; The step of executing the corresponding target function based on the operation time of the first operation and the operation time of the second operation includes: If the time interval between the release time of the first button and the release time of the second button is less than a threshold, then the target function executed is the first function. If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is earlier than the release time of the second button, then the target function executed is the second function. If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is later than the release time of the second button, then the target function executed is the third function.
2. The method according to claim 1, characterized in that, The process of obtaining the operation time of the first operation and the operation time of the second operation in response to a first operation on a first button and a second operation on a second button includes: In response to a release operation following the triggering of the first button, the release time of the first button is obtained; In response to a release operation following a triggering action on the second button, the release time of the second button is obtained.
3. The method according to claim 1, characterized in that, The process of obtaining the operation time of the first operation and the operation time of the second operation in response to a first operation on a first button and a second operation on a second button includes: In response to the trigger operation of the first button and the trigger operation of the second button, the trigger time of the first button and the trigger time of the second button are obtained respectively.
4. The method according to claim 3, characterized in that Based on the operation time of the first operation and the operation time of the second operation, execute the corresponding target function, including: If the time interval between the triggering time of the first button and the triggering time of the second button is less than a threshold, then the target function executed is the fourth function. If the time interval between the triggering time of the first button and the triggering time of the second button is greater than a threshold and is within a preset range, and the triggering time of the first button is earlier than the triggering time of the second button, then the target function executed is the fifth function. If the time interval between the triggering time of the first button and the triggering time of the second button is greater than a threshold and is within a preset range, and the triggering time of the first button is later than the triggering time of the second button, then the target function executed is the sixth function.
5. The method according to claim 1, wherein The process of obtaining the operation time of the first operation and the operation time of the second operation in response to a first operation on a first button and a second operation on a second button includes: In response to a trigger operation applied to the first button, the trigger time of the first button is obtained; In response to a release operation following a triggering action on the second button, the release time of the second button is obtained.
6. The method according to claim 5, characterized in that, The step of executing the corresponding target function based on the operation time of the first operation and the operation time of the second operation includes: If the time interval between the triggering time of the first button and the release time of the second button is less than a threshold, then the target function executed is the seventh function. If the time interval between the triggering time of the first button and the release time of the second button is greater than a threshold and is within a preset range, and the triggering time of the first button is earlier than the release time of the second button, then the target function executed is the eighth function. If the time interval between the triggering time of the first button and the release time of the second button is greater than a threshold and is within a preset range, and the triggering time of the first button is later than the release time of the second button, then the target function executed is the ninth function.
7. An interactive control device, characterized in that, include: Acquire module, execute module; The acquisition module is used to acquire the operation time of the first operation and the operation time of the second operation in response to a first operation performed on a first button and a second operation performed on a second button. The execution module is used to execute the corresponding target function according to the operation time of the first operation and the operation time of the second operation; The execution module is specifically configured to execute the first function if the time interval between the release time of the first button and the release time of the second button is less than a threshold. If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is earlier than the release time of the second button, then the target function executed is the second function. If the time interval between the release time of the first button and the release time of the second button is greater than a threshold, and the release time of the first button is later than the release time of the second button, then the target function executed is the third function.
8. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus. The storage medium stores program instructions that the processor executes. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the interactive control method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which is executed by a processor to perform the interactive control method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
A method and apparatus for controlling intelligent hardware
CN109085919A
Key response method and device and storage medium
CN109922362A