Virtual key processing method and device, storage medium, and electronic device

By responding to user touch operations on the game interface, the target virtual icon is directly displayed at the touch position, solving the problem of complexity and low efficiency of virtual key icon display in the prior art, and improving user experience and operation efficiency.

CN115193023BActive Publication Date: 2025-06-13NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210828312.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2025-06-13
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

In the prior art, after setting the virtual button, the user needs to move the icon to the target position, which increases the complexity and efficiency of the icon display and reduces the user experience.

Method used

By responding to the user's touch operation on the game interface, the key and mouse control selection interface is displayed, the target key and mouse control identification is determined, and the corresponding virtual icon is displayed in the touch position, avoiding the step of moving the icon to the target position.

Benefits of technology

Reduces the complexity and time of virtual icon display, improves user experience, and improves operation efficiency by directly displaying virtual icons in touch positions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115193023B_ABST
    Figure CN115193023B_ABST
Patent Text Reader

Abstract

The present disclosure belongs to the field of computer technologies, and relates to a virtual key processing method and apparatus, a computer storage medium, and an electronic device. The method includes: in response to a first touch operation on a key editing control, displaying a mouse and keyboard control selection interface in a game interface; in response to a first selection operation on a first target mouse and keyboard control identifier, determining the first target mouse and keyboard control identifier from at least one mouse and keyboard control identifier, and controlling the hiding of the mouse and keyboard control selection interface; in response to a second touch operation on the game interface, determining a first touch position corresponding to the second touch operation; and controlling to display a first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position. In the present disclosure, the situation in the prior art where, after all virtual icons are displayed in the game interface, the user then drags the virtual icons to the target positions is avoided, the display efficiency of the virtual icons is improved, and the user experience is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for processing virtual keys, a computer-readable storage medium, and an electronic device. Background Art

[0002] With the development of computer technologies, more and more game functions that can be implemented by a user touching a physical key appear in virtual games. To further facilitate the user's use of these game functions, it is usually necessary to display icons corresponding to these physical keys in the game interface.

[0003] However, in the prior art, after a user selects a key to be set, an icon corresponding to the selected key is displayed at any position on the page. And, after the user finishes setting all the keys, the user can move these icons to the target position. Obviously, this increases the complexity of displaying the icons, reduces the efficiency of displaying the icons, and further reduces the user experience.

[0004] In view of this, there is an urgent need in the art to develop a new method and apparatus for processing virtual keys.

[0005] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0006] The purpose of the present disclosure is to provide a method and apparatus for processing virtual keys, a computer-readable storage medium, and an electronic device, so as to at least to some extent overcome the problem of low icon display efficiency caused by the related technologies.

[0007] Other features and advantages of the present disclosure will become apparent through the following detailed description, or be learned in part through the practice of the present disclosure.

[0008] According to a first aspect of an embodiment of the present invention, there is provided a method for processing virtual keys. The method includes: responding to a first touch operation on a key editing control, and displaying a mouse and keyboard control selection interface in a game interface, where the mouse and keyboard control selection interface includes at least one mouse and keyboard control identifier; responding to a first selection operation on a first target mouse and keyboard control, determining a first target mouse and keyboard control identifier from the at least one mouse and keyboard control identifier, and controlling to hide the mouse and keyboard control selection interface; responding to a second touch operation on the game interface, determining a first touch position corresponding to the second touch operation; and controlling to display a first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position.

[0009] In an exemplary embodiment of the present invention, after the control displays the first virtual icon corresponding to the first target keyboard and mouse control identifier at the first touch position, the method further includes: displaying the keyboard and mouse control selection interface; responding to a second selection operation on the second target keyboard and mouse control identifier, determining the second target keyboard and mouse control identifier from the at least one keyboard and mouse control identifier, and controlling to hide the keyboard and mouse control selection interface; responding to a third touch operation on the game interface, determining a second touch position corresponding to the third touch operation; and controlling to display a second virtual icon corresponding to the second target keyboard and mouse control identifier at the second touch position.

[0010] In an exemplary embodiment of the present invention, the displaying the keyboard and mouse control selection interface in the game interface includes: displaying the keyboard and mouse control selection interface in the game interface, and displaying at least one keyboard and mouse control identifier corresponding to the game function on the keyboard and mouse control selection interface.

[0011] In an exemplary embodiment of the present invention, the keyboard and mouse control identifier corresponds to different button types, and the button types include a first button type, a second button type, a third button type, and a fourth button type; wherein, the first button type corresponds to the game function of the main keyboard button, the second button type corresponds to the game function of the numeric keypad button, the third button type corresponds to the game function of the mouse button, and the fourth button type corresponds to the game function of the direction wheel, and the direction wheel is used to control the moving direction of the game character.

[0012] In an exemplary embodiment of the present invention, after the control displays the first virtual icon corresponding to the first target keyboard and mouse control identifier at the first touch position, the method further includes: if a save instruction corresponding to the save operation is not received, automatically displaying the keyboard and mouse control selection interface in the game interface; wherein, the save operation is used to save the first target keyboard and mouse control identifier and the first touch position corresponding to the first target keyboard and mouse control identifier; if the save instruction is received, canceling the display of the keyboard and mouse control selection interface.

[0013] In an exemplary embodiment of the present invention, after automatically displaying the keyboard and mouse control selection interface in the game interface, the method further includes: responding to a hide operation on the hide button control, hiding the keyboard and mouse control selection interface, and displaying an edit control corresponding to the first virtual icon in the game interface; responding to an edit operation on the edit control to display an edit result corresponding to the edit operation in the game interface.

[0014] In an exemplary embodiment of the present invention, the editing control includes a change control; the responding to an editing operation acting on the editing control to display an editing result corresponding to the editing operation in the game interface includes: responding to a change operation acting on the change control to display the mouse and keyboard control selection interface; responding to the selection operation acting on other target mouse and keyboard control identifiers to determine a target virtual icon corresponding to the other target virtual control identifier; wherein the key type of the other target mouse and keyboard control identifier is different from the key type of the first target mouse and keyboard control; the other target mouse and keyboard control is one of all mouse and keyboard controls; replacing the first virtual icon displayed at the first touch position with the target virtual icon.

[0015] In an exemplary embodiment of the present invention, the editing control includes a deletion control; the responding to an editing operation acting on the editing control to display an editing result corresponding to the editing operation in the game interface includes: responding to a deletion operation acting on the deletion control to not display the first virtual icon in the game interface.

[0016] In an exemplary embodiment of the present invention, the editing control includes a movement control; the responding to an editing operation acting on the editing control to display an editing result corresponding to the editing operation in the game interface includes: responding to a fourth touch operation acting on the movement control to obtain a movement end position corresponding to a movement operation acting on the first virtual icon; replacing the first touch position with the movement end position so that the first virtual icon is displayed at the movement end position.

[0017] In an exemplary embodiment of the present invention, after the method controls to hide the mouse and keyboard control selection interface, the method further includes: responding to a withdrawal operation acting on a withdrawal control to redisplay the mouse and keyboard control selection interface to respond to the first selection operation again.

[0018] According to a second aspect of an embodiment of the present invention, there is provided a virtual button processing device, the device comprising: a first display module configured to respond to a first touch operation on a button editing control and display a mouse and keyboard control selection interface in a game interface, the mouse and keyboard control selection interface including at least one mouse and keyboard control identifier; a hiding module configured to respond to a first selection operation on a first target mouse and keyboard control identifier, determine the first target mouse and keyboard control identifier from the at least one mouse and keyboard control identifier, and control to hide the mouse and keyboard control selection interface; a determination module configured to respond to a second touch operation on the game interface and determine a first touch position corresponding to the second touch operation; and a second display module configured to control to display a first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position.

[0019] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor and a memory; wherein, computer-readable instructions are stored on the memory, and when the computer-readable instructions are executed by the processor, the virtual button processing method of any of the above exemplary embodiments is implemented.

[0020] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the virtual button processing method in any of the above exemplary embodiments is implemented.

[0021] From the above technical solutions, it can be seen that the virtual button processing method, virtual button processing device, computer storage medium and electronic device in the exemplary embodiments of the present invention at least have the following advantages and positive effects:

[0022] In the method and device provided in the exemplary embodiments of the present disclosure, a second touch operation on the game interface is responded to, and a first touch position corresponding to the second touch operation is determined, so as to display a first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position, avoiding the situation in the prior art where after all virtual icons are displayed in the game interface, the virtual icons are then moved to the target position, reducing the complexity of displaying the virtual icons at the touch position, improving the efficiency of displaying the virtual icons at the touch position, and enhancing the user experience of the user.

[0023] It should be understood that the above general description and subsequent detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other accompanying drawings based on these drawings without creative efforts.

[0025] Figure 1 Schematic flow chart showing the virtual key processing method in an embodiment of the present disclosure;

[0026] Figure 2 Schematic diagram showing the game interface after the user performs a first touch operation in an embodiment of the present disclosure;

[0027] Figure 3 Schematic diagram showing the game interface after the user performs a first touch operation in an embodiment of the present disclosure;

[0028] Figure 4 Schematic diagram showing the game interface after the user performs a first touch operation in an embodiment of the present disclosure;

[0029] Figure 5 Schematic diagram showing the game interface after the user performs a first touch operation in an embodiment of the present disclosure;

[0030] Figure 6 Schematic diagram showing the game interface in an embodiment of the present disclosure;

[0031] Figure 7 Schematic diagram showing the game interface after hiding interface 220 in an embodiment of the present disclosure;

[0032] Figure 8 Schematic diagram showing the first virtual icon displayed in the game interface in an embodiment of the present disclosure;

[0033] Figure 9 Schematic flow chart showing the process after displaying the first virtual icon at the first touch position in the virtual key processing method in an embodiment of the present disclosure;

[0034] Figure 10 Schematic diagram showing the game interface after receiving a save instruction in an embodiment of the present disclosure;

[0035] Figure 11 Schematic flow chart showing the process after displaying the mouse and keyboard control selection interface in the game interface in the virtual key processing method in an embodiment of the present disclosure;

[0036] Figure 12 Schematic diagram showing the game interface with an editing control in an embodiment of the present disclosure;

[0037] Figure 13 A schematic flowchart showing the process of displaying an editing result corresponding to an editing operation in a game interface in the virtual button processing method according to an embodiment of the present disclosure;

[0038] Figure 14 A schematic diagram of a game interface showing a target virtual icon at a first touch position according to an embodiment of the present disclosure;

[0039] Figure 15 A schematic flowchart showing the process of displaying an editing result corresponding to an editing operation in a game interface in the virtual button processing method according to an embodiment of the present disclosure;

[0040] Figure 16 A schematic diagram of a game interface after moving a first virtual icon according to an embodiment of the present disclosure;

[0041] Figure 17 A schematic diagram of a game interface according to an embodiment of the present disclosure;

[0042] Figure 18 A schematic flowchart showing the process after controlling to display a first virtual icon corresponding to a first target keyboard and mouse control identifier at a first touch position according to an embodiment of the present disclosure;

[0043] Figure 19 A schematic structural diagram of a virtual button processing device according to an embodiment of the present disclosure;

[0044] Figure 20 A schematic diagram of an electronic device for a virtual button processing method according to an embodiment of the present disclosure;

[0045] Figure 21 A schematic diagram of a computer-readable storage medium for a virtual button processing method according to an embodiment of the present disclosure. Detailed implementation manners

[0046] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that one or more of the specific details may be omitted, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring aspects of the present disclosure.

[0047] As used in this specification, the terms "a", "an", "the", and "said" are used to indicate the presence of one or more elements / components / etc.; the terms "comprising" and "having" are used to mean an open inclusion and mean that there may be additional elements / components / etc. in addition to the listed elements / components / etc.; the terms "first", "second", etc. are used only as labels and are not a limitation on the quantity of their objects.

[0048] In addition, the accompanying drawings are only schematic diagrams of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.

[0049] In view of the problems existing in the related art, the present disclosure proposes a virtual key processing method. Figure 1 A flowchart showing the virtual key processing method is as Figure 1 shown. The virtual key processing method at least includes the following steps:

[0050] Step S110. In response to a first touch operation on a key editing control, a mouse and keyboard control selection interface is displayed in the game interface, and at least one mouse and keyboard control identifier is included in the mouse and keyboard control selection interface.

[0051] Step S120. In response to a first selection operation on a first target mouse and keyboard control identifier, the first target mouse and keyboard control identifier is determined from at least one mouse and keyboard control identifier, and the mouse and keyboard control selection interface is controlled to be hidden.

[0052] Step S130. In response to a second touch operation on the game interface, a first touch position corresponding to the second touch operation is determined.

[0053] Step S140. Control to display a first virtual icon corresponding to a first target keyboard and mouse control identifier at a first touch position.

[0054] In the method and device provided by the exemplary embodiment of the present disclosure, in response to a second touch operation on a game interface, a first touch position corresponding to the second touch operation is determined, so as to display a first virtual icon corresponding to a first target keyboard and mouse control identifier at the first touch position, avoiding the situation in the prior art where, after all virtual icons are displayed in the game interface, the virtual icons are then moved to the target position, reducing the complexity of displaying the virtual icons at the touch position, improving the efficiency of displaying the virtual icons at the touch position, and enhancing the user experience of the user.

[0055] The following will detail each step of the virtual button processing method.

[0056] In step S110, in response to a first touch operation on a button editing control, a keyboard and mouse control selection interface is displayed in the game interface, and the keyboard and mouse control selection interface includes at least one keyboard and mouse control identifier.

[0057] In the exemplary embodiment of the present disclosure, the button editing control refers to a control displayed on the game interface, and the first touch operation refers to an operation by the user on the button editing control. Specifically, the first touch operation can be a single click operation, a double click operation, a long press operation, or other touch operations. This exemplary embodiment does not make special limitations on this.

[0058] When the user performs a first touch operation on the button editing control, a keyboard and mouse control selection interface will be displayed on the game interface, and at least one keyboard and mouse control identifier is included in the keyboard and mouse control selection interface.

[0059] The keyboard and mouse control identifier is displayed in the keyboard and mouse control selection interface, and the keyboard and mouse control identifier corresponds to a physical button. Specifically, these keyboard and mouse controls can also correspond to mouse buttons, buttons on a numeric keypad, or buttons on a main keyboard. This exemplary embodiment does not make special limitations on this.

[0060] The specific display form of the keyboard and mouse control identifier can be a number, a letter, or a string of letters. This exemplary embodiment does not make special limitations on this. For example, there is a physical button A on the physical main keyboard. Correspondingly, there is also a keyboard and mouse control identifier corresponding to the physical button A in the keyboard and mouse control selection interface, and this keyboard and mouse control identifier (corresponding to the physical button A) is displayed in the keyboard and mouse control selection interface as the letter A.

[0061] For example, Figure 2Schematically shows a schematic diagram of the game interface after the user performs a first touch operation, as Figure 2 shown. Among them, interface 210 is the game interface, interface 220 is the mouse and keyboard control selection interface, and the mouse and keyboard control identifiers 230 corresponding to the game functions are displayed in the mouse and keyboard control selection interface. Control 240 is the control corresponding to the first button type, control 250 is the control corresponding to the second button type, button 260 is the control corresponding to the third button type, and control 270 is the control corresponding to the fourth button type. At this time, the mouse and keyboard control identifier 230 displayed in the game interface 210 corresponds to the first button type 240.

[0062] The letters A, S, D, F, G, H, J, K, L, and Z displayed in interface 220 are respectively the display forms of specific mouse and keyboard control identifiers.

[0063] Control 280 is a hidden button control for hiding interface 220, control 290 is an exit control for exiting the button editing state and returning to the game or the game main page, and control 291 is a save control for saving the first target mouse and keyboard control identifier selected by the user subsequently and the first touch position corresponding to the first target mouse and keyboard control identifier.

[0064] In an alternative embodiment, displaying a mouse and keyboard control selection interface in the game interface includes: displaying a mouse and keyboard control selection interface in the game interface and displaying at least one mouse and keyboard control identifier corresponding to the game function on the mouse and keyboard control selection interface.

[0065] Among them, the mouse and keyboard control selection interface refers to an interface displayed in the game interface, and all mouse and keyboard control identifiers are displayed on the mouse and keyboard control selection interface.

[0066] For example, as Figure 2 described, interface 220 is the mouse and keyboard control selection interface.

[0067] In this exemplary embodiment, displaying the mouse and keyboard control identifiers on the mouse and keyboard control selection interface avoids the situation in the prior art where, after a first touch operation on the button editing control, the mouse and keyboard control identifiers of different button types are displayed at different positions in the game interface for the user to select, providing convenience for the user to subsequently select the first target mouse and keyboard control identifier among the mouse and keyboard control identifiers, thereby increasing the efficiency of subsequently displaying the first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position and enhancing the user experience.

[0068] In an alternative embodiment, the keyboard and mouse control identification corresponds to different button types, and the button types include a first button type, a second button type, a third button type, and a fourth button type; wherein, the first button type corresponds to the game functions of the main keyboard keys, the second button type corresponds to the game functions of the numeric keypad keys, the third button type corresponds to the game functions of the mouse buttons, and the fourth button type corresponds to the game functions of the directional wheel, and the directional wheel is used to control the moving direction of the game character.

[0069] Among them, the keyboard and mouse control identification displayed in the game interface can be virtual buttons with different button types. Specifically, the button types of the keyboard and mouse control identification include a first button type, a second button type, a third button type, and a fourth button type.

[0070] The keyboard and mouse control identification with the first button type corresponds to the game functions of the keys in the main keyboard. For example, the game function corresponding to the A key in the main keyboard is to control the game character to move forward, and thus there is also a keyboard and mouse control identification with the same game function as the A key in the keyboard and mouse control selection interface.

[0071] The keyboard and mouse control identification with the second button type corresponds to the game functions of the keys in the numeric keypad. For example, the game function corresponding to the 1 key in the numeric keypad is to shoot at the virtual hostile object, and thus there is also a keyboard and mouse control identification with the same game function as the 1 key in the keyboard and mouse control selection interface.

[0072] The keyboard and mouse control identification with the third button type corresponds to the game functions of the mouse buttons. For example, the game function of the left mouse button is to select the shooting target, and thus there is also a keyboard and mouse control identification with the same game function as the left mouse button in the keyboard and mouse control selection interface.

[0073] The virtual button with the fourth button type corresponds to the game functions of the directional wheel, and the role of the directional wheel is to control the moving direction of the game task, and thus there is also a keyboard and mouse control identification with the same game function as the directional wheel in the keyboard and mouse control selection interface.

[0074] For example, Figure 2 the keyboard and mouse control identification 230 displayed in the interface 220 corresponds to the first button type 240.

[0075] For example, Figure 3 schematically shows a schematic diagram of the game interface after the user performs the first touch operation, as Figure 3As shown, when the user touches the control 250, the keyboard and mouse control identifier 310 corresponding to the second button type is displayed in the interface 220, where the numbers 1, 2, 3, 4, 5, 6, 7, and 8 are the specific display forms of the keyboard and mouse control identifier 310.

[0076] For example, Figure 4 Schematically shows a schematic diagram of the game interface after the user performs the first touch operation, as Figure 4 shown, where when the user touches the control 260, the keyboard and mouse control identifiers 410, 420, 430, 440, and 450 are displayed in the interface 220. The keyboard and mouse control identifier 410 represents the left mouse button, the keyboard and mouse control identifier 420 represents the right mouse button, the keyboard and mouse control identifier 430 represents the mouse wheel button, the keyboard and mouse control identifier 440 represents the mouse scroll up, and the keyboard and mouse control identifier 450 represents the mouse scroll down.

[0077] For example, Figure 5 Schematically shows a schematic diagram of the game interface after the user performs the first touch operation, as Figure 5 shown, where when the user touches the control 270, the keyboard and mouse control identifier 510 corresponding to the fourth button type is displayed in the interface 220.

[0078] In this exemplary embodiment, after the first touch operation on the button editing control, the displayed keyboard and mouse control identifiers correspond to different button types, and the button types include the first button type, the second button type, the third button type, and the fourth button type, avoiding the situation in the prior art where, after the first touch operation on the button editing control, the keyboard and mouse control identifiers of different button types are displayed at different positions on the game interface for the user to select, providing convenience for the subsequent user to select the first target keyboard and mouse control identifier among the keyboard and mouse control identifiers, thereby increasing the efficiency of subsequently displaying the first virtual icon corresponding to the first target keyboard and mouse control identifier at the first touch position and enhancing the user experience.

[0079] In step S120, in response to the first selection operation on the first target keyboard and mouse control identifier, determine the first target keyboard and mouse control identifier from at least one keyboard and mouse control identifier, and control to hide the keyboard and mouse control selection interface.

[0080] In an exemplary embodiment of the present disclosure, the first target mouse and keyboard control identifier refers to one of the mouse and keyboard control identifiers, and the first target mouse and keyboard control identifier is the mouse and keyboard control identifier corresponding to the first selection operation. After the user performs the first selection operation on the first target mouse and keyboard control identifier, it is necessary to determine the first target mouse and keyboard control identifier among at least one mouse and keyboard control identifier. In addition, after the user performs the first selection operation on the first target mouse and keyboard control identifier, it is also necessary to hide the mouse and keyboard control selection interface.

[0081] The first selection operation can be a click operation, a double-click operation, a long-press operation, or any operation acting on the first target mouse and keyboard control identifier. This exemplary embodiment does not make special limitations on this.

[0082] For example, Figure 6 A schematic diagram of the game interface is schematically shown, as Figure 6 shown. When the user clicks on the first target mouse and keyboard control identifier 610, the displayed mouse and keyboard control interface 220 is hidden. Specifically, Figure 7 A schematic diagram of the game interface after hiding the interface 220 is schematically shown. Among them, the control 710 is a mouse and keyboard control selection interface activation control. When the user makes a misoperation, for example, selects the wrong first target mouse and keyboard control identifier, since the mouse and keyboard control selection interface has been hidden at this time, in order to perform re-selection, the control 710 can be touched to redisplay the mouse and keyboard control selection interface.

[0083] In this exemplary embodiment, in response to the first selection operation acting on the first target mouse and keyboard control identifier, the mouse and keyboard control selection interface is hidden, avoiding the situation in the prior art where after the user selects the first target mouse and keyboard control identifier, the first target mouse and keyboard control identifier is displayed at any position on the game interface. This helps to directly perform the second touch operation on the game interface subsequently, avoiding the process in the prior art of moving the virtual icon to the target position after all virtual icons corresponding to the target mouse and keyboard control identifier are displayed on the game interface, improving the efficiency of displaying the virtual icon at the touch position, and thus improving the user experience.

[0084] In step S130, in response to the second touch operation acting on the game interface, determine the first touch position corresponding to the second touch operation.

[0085] In an exemplary embodiment of the present disclosure, the second touch operation refers to a touch operation applied to any part of the game interface after the mouse and keyboard control selection interface is hidden. Specifically, the second touch operation can be a click operation, a double-click operation, a long-press operation, or any touch operation, and no special limitation is imposed in this exemplary embodiment. The first touch position refers to the position corresponding to the second touch operation, which can be, for example, a two-dimensional coordinate value, and no special limitation is imposed in this exemplary embodiment.

[0086] For example, Figure 8 schematically shows a schematic diagram of the first virtual icon displayed in the game interface, as Figure 8 shown. When the user performs a second touch operation on the Figure 6 game interface 210 shown, the touch position (10, 25) corresponding to the second touch operation will be determined. The icon 810 is the first virtual icon, and the first virtual icon corresponds to the first target mouse and keyboard control identifier.

[0087] In this exemplary embodiment, responding to the second touch operation on the game interface and determining the first touch position corresponding to the second touch operation lays the foundation for subsequently displaying the first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position.

[0088] In step S140, control is to display the first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position.

[0089] In an exemplary embodiment of the present disclosure, the first virtual icon refers to the icon corresponding to the first target mouse and keyboard control identifier. When the user touches the first virtual icon, the game function possessed by the first target mouse and keyboard control identifier corresponding to the first virtual icon will be executed in the game.

[0090] For example, as Figure 8 shown, after the first touch position (10, 25) corresponding to the second touch operation is determined, the first virtual icon 810 corresponding to the first target mouse and keyboard control identifier 610 is displayed at the first touch position (10, 25).

[0091] In an alternative embodiment, Figure 9 shows a schematic flow diagram of the process after the first virtual icon is displayed at the first touch position in the virtual button processing method, as Figure 9 shown. The method at least includes the following steps: In step S910, if a save instruction corresponding to the save operation is not received, the mouse and keyboard control selection interface is automatically displayed in the game interface; wherein, the save operation is used to save the first target mouse and keyboard control identifier and the first touch position corresponding to the first target mouse and keyboard control identifier.

[0092] Among them, the save instruction refers to the instruction obtained by the user after performing a save operation. For example, as Figure 8 shown, when a save operation is performed on control 291, save instruction A will be obtained. Correspondingly, if the user does not perform a save operation on control 291, save instruction A will not be obtained.

[0093] Obtaining the save instruction means that the key type, the first target mouse and keyboard control identifier, and the first touch position displayed in the game interface cannot be changed anymore, which also proves that the display of the first target mouse and keyboard control identifier has ended this time. If the save instruction is not obtained, it means that the user can continue to select a target mouse and keyboard control identifier among the mouse and keyboard control identifiers, and then display the newly selected target mouse and keyboard control identifier at the corresponding touch position. Therefore, in order to facilitate the user's selection operation, when the save instruction is not received, the mouse and keyboard control selection interface will be automatically displayed in the game interface for the user to perform the next selection operation.

[0094] For example, as Figure 8 shown, when save instruction A is not obtained, interface 220 is automatically displayed in game interface 210.

[0095] In step S920, if the save instruction is received, the display of the mouse and keyboard control selection interface will be cancelled.

[0096] Among them, if the save instruction is received, it means that the display of the first target mouse and keyboard control identifier has ended this time, and then the display of the mouse and keyboard control selection interface is cancelled, and the game interface or the game is returned to.

[0097] For example, Figure 10 schematically shows a schematic diagram of the game interface after the save instruction is received. As Figure 10 shown, when the user touches control 291, the save instruction will be received. At this time, the display of interface 220 will be cancelled and the game will be restored. At this time, if the user touches the first virtual icon 810, the game function corresponding to the first virtual icon 810 will be executed in the game.

[0098] In this exemplary embodiment, if the save instruction is not received, the mouse and keyboard control selection interface is automatically displayed in the game interface, which avoids the process of manually displaying the mouse and keyboard control selection interface when the user needs to select the next target mouse and keyboard control identifier, and increases the convenience of continuing to select a new target mouse and keyboard control identifier.

[0099] In an alternative embodiment, Figure 11 shows a schematic diagram of the process after the mouse and keyboard control selection interface is displayed in the game interface in the virtual button processing method. As Figure 11As shown, the method at least includes the following steps: In step S1110, in response to a hiding operation on the hidden key control, the mouse and keyboard control selection interface is hidden, and an editing control corresponding to the first virtual icon is displayed in the game interface.

[0100] Among them, the hidden key control refers to the control used to hide the mouse and keyboard control selection interface. It should be noted that after the first virtual icon corresponding to the first target mouse and keyboard control identifier is displayed in the game interface, if no save instruction is received, the mouse and keyboard control selection interface will be automatically displayed.

[0101] However, at this time, the user may find that the displayed first virtual icon is not what the user expects. Therefore, further, the first virtual icon needs to be edited. In this case, the user needs to perform a hiding operation on the hidden key control to hide the displayed mouse and keyboard control selection interface, and then the editing control can be displayed in the game interface. The functions of the editing control include the deletion function of the first virtual icon, the function of changing the key type and display style of the first virtual icon, and the moving function of the first virtual icon. This exemplary embodiment does not make special limitations on this.

[0102] For example, after the first virtual icon is displayed at the first touch position, if the user finds that the displayed first virtual icon does not match the expectation, then the user can touch the Figure 2 hidden key control shown in the control 280 in the center console to hide the mouse and keyboard control selection interface, that is, to hide the mouse and keyboard control identifier, so as to enter the editing process of the first virtual icon.

[0103] Figure 12 Schematically shows a schematic diagram of the game interface with an editing control, as Figure 12 shown. Among them, the icon 1210 is the first virtual icon, and the control 1220 is the editing control corresponding to the first virtual icon 1210. Specifically, the editing control 1220 includes a change control 1221, a delete control 1222, and a move control 1223.

[0104] In step S1120, in response to an editing operation on the editing control, an editing result corresponding to the editing operation is displayed in the game interface.

[0105] Among them, the editing operation is the operation performed on the editing control. When the user performs an editing operation, the first virtual icon is edited, and the editing result is displayed in the game interface.

[0106] For example, the editing control may include a delete control. Then, when the user performs a click operation on the delete control, the first virtual icon x corresponding to the delete control is deleted, and at this time, the first virtual icon x will no longer be displayed in the game interface.

[0107] In an alternative embodiment, in response to an editing operation on an editing control, an editing result corresponding to the editing operation is displayed in the game interface, avoiding the situation in the prior art where virtual buttons cannot be edited, meeting the user's editing needs, and improving the user experience.

[0108] In an alternative embodiment, Figure 13 FIG. shows a schematic flowchart of displaying an editing result corresponding to an editing operation in a game interface in a virtual button processing method. The editing control includes a change control, such as Figure 13 shown, the method at least includes the following steps: In step S1310, in response to a change operation on the change control, a mouse and keyboard control selection interface is displayed.

[0109] Specifically, the editing control may include a change control. When the user touches the change control, a mouse and keyboard control selection interface will be displayed, enabling the user to change the first target mouse and keyboard control identifier corresponding to the first virtual icon or change the key type corresponding to the first target mouse and keyboard control identifier.

[0110] For example, as Figure 12 shown, when the user touches the change control of control 1221, a mouse and keyboard control selection interface will be displayed in the game interface.

[0111] In step S1320, in response to a selection operation on another target mouse and keyboard control identifier, a target virtual icon corresponding to the other target mouse and keyboard control identifier is determined; wherein, the key type of the other target mouse and keyboard control identifier is different from that of the first target mouse and keyboard control identifier; the other target mouse and keyboard control identifier is one of all mouse and keyboard control identifiers.

[0112] The other target mouse and keyboard control identifier refers to one of all mouse and keyboard control identifiers, but the key type of the other target mouse and keyboard control identifier is different from that of the first target mouse and keyboard control identifier.

[0113] For example, when the user touches Figure 12 the change control of control 1221, a mouse and keyboard control selection interface is displayed in the game interface, and at this time, the user selects a mouse and keyboard control identifier belonging to the second key type (i.e., the other target mouse and keyboard control identifier).

[0114] In step S1330, the first virtual icon displayed at the first touch position is replaced with the target virtual icon.

[0115] The target virtual icon refers to the icon corresponding to the other target mouse and keyboard control identifier. The first virtual icon is replaced with the target virtual icon and displayed at the first touch position to implement the modification of the virtual icon.

[0116] For example, Figure 14 A schematic diagram of a game interface showing a target virtual icon at a first touch position is schematically shown, as Figure 14 shown, where icon 1410 is the target virtual icon. Obviously, compared with Figure 12 the first virtual icon 1210 shown in

[0117] In this exemplary embodiment, in response to a change operation on the change control, a mouse and keyboard control selection interface is displayed to replace the first virtual icon displayed at the first touch position with the target virtual icon, avoiding the situation in the prior art where the first virtual icon cannot be changed, meeting the user's change requirements, and improving the user experience.

[0118] In an alternative embodiment, the editing control includes a deletion control; in response to an editing operation on the editing control, an editing result corresponding to the editing operation is displayed in the game interface, including: in response to a deletion operation on the deletion control, the first virtual icon is not displayed in the game interface.

[0119] Among them, the editing control includes a deletion control. When the user performs a deletion operation on the deletion control, the first virtual icon is not displayed in the game interface.

[0120] For example, as Figure 12 shown, when the user performs a deletion operation on the deletion control 1222, the first virtual icon 1210 will no longer be displayed in the game interface 210.

[0121] In an alternative embodiment, in response to a deletion operation on the deletion control, the first virtual control is not displayed in the game interface, meeting the user's deletion requirements and improving the user experience.

[0122] In an alternative embodiment, Figure 15 A flowchart showing an editing result corresponding to an editing operation displayed in a game interface in a virtual button processing method is shown. The editing control includes a moving control, as Figure 15 shown. The method at least includes the following steps: In step S1510, in response to a fourth touch operation on the moving control, a moving end position corresponding to a moving operation on the first virtual icon is obtained.

[0123] Among them, the editing control further includes a moving control. The fourth touch operation refers to an operation applied to the moving control. Specifically, the fourth touch operation can be a click operation, a double-click operation, a long-press operation, or any touch operation applied to the editing control. This exemplary embodiment does not make special limitations on this.

[0124] After the fourth touch operation applied to the moving control, the first virtual icon is in a state where it can be moved. At this time, the user can perform a moving operation on the first virtual icon. Specifically, the moving operation can be a drag operation applied to the first virtual icon, or a sliding operation applied to the first virtual icon. This exemplary embodiment does not make special limitations on this. The moving end position refers to the position at the end of the operation corresponding to the moving operation.

[0125] For example, as Figure 12 shown, when the user performs a click operation on the control 1223, the first virtual icon 1210 can be moved. At this time, the user can perform a drag operation on the first virtual icon, and the position where the drag ends is the moving end position. For example, the moving end position can be (20, 45).

[0126] In step S1520, replace the first touch position with the moving end position so that the first virtual icon is displayed at the moving end position.

[0127] Among them, replacing the first touch position with the moving end position makes the first virtual icon displayed at the moving end position, thereby realizing the movement of the first virtual icon.

[0128] For example, Figure 16 schematically shows a schematic diagram of the game interface after moving the first virtual icon. As Figure 16 shown, among them, the position where the first virtual icon 1210 is displayed is the moving end position.

[0129] In this exemplary embodiment, in response to the fourth touch operation applied to the moving control, obtain the moving end position corresponding to the moving operation applied to the first virtual icon, and then display the first virtual icon at the moving end position, which meets the user's moving requirement and improves the user experience.

[0130] In an alternative embodiment, after hiding the mouse and keyboard control selection interface in response to the first selection operation applied to the first target mouse and keyboard control, the method further includes: in response to the withdrawal operation applied to the withdrawal control, redisplay the mouse and keyboard control selection interface to respond to the first selection operation again.

[0131] Among them, after the user performs a first touch operation on the button editing control, a mouse and keyboard control selection interface can be displayed in the game interface. However, at this time, the user may find that due to their own misoperation, the first target mouse and keyboard control identifier selected is not the one they really want to select. To avoid the above-mentioned incorrect first virtual icon being displayed in the game interface due to misoperation, a withdrawal control is provided on the game interface. When the user performs a withdrawal operation on the withdrawal control, the mouse and keyboard control selection interface will be redisplayed, and a new first selection operation will be re-responded to ensure that the displayed first virtual icon is the one the user desires.

[0132] For example, Figure 17 A schematic diagram of the game interface is schematically shown, as Figure 17 shown. Among them, control 1710, control 1720, and control 710 all belong to the withdrawal control. Specifically, after the user performs a selection operation on the first target mouse and keyboard control identifier, the mouse and keyboard control selection interface will be hidden. If it is found at this time that the first target mouse and keyboard control identifier selected is different from what the user expects, any one of control 1710, control 1720, and control 710 can be touched to redisplay the mouse and keyboard control selection interface and re-respond to the user's first selection operation.

[0133] In an alternative embodiment, in response to the withdrawal operation on the withdrawal control, the mouse and keyboard control selection interface is redisplayed to re-respond to the first selection operation, avoiding the incorrect first virtual icon being displayed in the game interface due to misoperation, improving the logic of displaying the first virtual icon, and enhancing the user experience.

[0134] In an alternative embodiment, Figure 18 A schematic flowchart after controlling to display the first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position in the virtual button processing method is shown, as Figure 18 shown. The method at least includes the following steps: In step S1810, the mouse and keyboard control selection interface is displayed.

[0135] Among them, after the first virtual icon is displayed at the first touch position, the mouse and keyboard control selection interface can also be continuously displayed to enable the user to continue selecting the mouse and keyboard controls.

[0136] For example, after the first virtual icon is displayed at the first touch position, the mouse and keyboard control selection interface can be displayed in the game interface.

[0137] In step S1820, in response to the second selection operation on the second target mouse and keyboard control identifier, the second target mouse and keyboard control identifier is determined from at least one mouse and keyboard control identifier, and the mouse and keyboard control selection interface is controlled to be hidden.

[0138] Among them, the second target keyboard and mouse control identifier is one of all the keyboard and mouse control identifiers, but the second target keyboard and mouse control identifier is different from the first target keyboard and mouse control identifier.

[0139] After performing a second selection operation on the second target keyboard and mouse control identifier, the second target keyboard and mouse control identifier is determined among at least one keyboard and mouse control identifier, and the keyboard and mouse control selection interface is hidden.

[0140] For example, the user performs a click operation on the second target keyboard and mouse control identifier. At this time, the second target keyboard and mouse control identifier B is determined, and the keyboard and mouse control selection interface is hidden.

[0141] In step S1830, in response to a third touch operation on the game interface, a second touch position corresponding to the third touch operation is determined.

[0142] Among them, after hiding the keyboard and mouse control selection interface, the user can perform a third touch operation on the game interface. At this time, the touch position corresponding to the third touch operation, that is, the second touch position, is determined.

[0143] For example, in response to a third touch operation on the game interface, the second touch position corresponding to the third touch operation is determined to be (20, 35).

[0144] In step S1840, control is performed to display a second virtual icon corresponding to the second target keyboard and mouse control identifier at the second touch position.

[0145] Among them, the second virtual icon refers to the icon corresponding to the second target keyboard and mouse control identifier. After determining the second virtual icon, the second virtual icon is displayed at the second touch position.

[0146] For example, the second virtual icon is displayed at the second touch position (20, 35).

[0147] In this exemplary embodiment, after the first virtual icon is displayed at the first touch position, the keyboard and mouse control selection interface can be displayed so as to continue to display the second virtual icon, improving the logic of displaying virtual icons and meeting the user's need to display multiple virtual icons.

[0148] In the method and apparatus provided by the exemplary embodiments of the present disclosure, in response to a second touch operation on the game interface, a first touch position corresponding to the second touch operation is determined, so as to display a first virtual icon corresponding to the first target keyboard and mouse control identifier at the first touch position, avoiding the situation in the prior art where, after all virtual icons are displayed in the game interface, the virtual icons are then moved to the target position, reducing the complexity of displaying the virtual icons at the touch position, improving the efficiency of displaying the virtual icons at the touch position, and enhancing the user experience of the user.

[0149] The following will make a detailed description of the virtual button processing method in the embodiments of the present disclosure in combination with an application scenario.

[0150] When the user performs a first touch operation on the button editing control, in the game interface as Figure 2 shown, at this time, the user can touch the control 240, and correspondingly, the keyboard and mouse control identifier 230 is displayed in the game interface. For example, if the selected first target keyboard and mouse control is the first keyboard and mouse control identifier in the first row, then this keyboard and mouse control identifier is the first target keyboard and mouse control identifier. After selecting the first target keyboard and mouse control identifier, the keyboard and mouse control selection interface will be hidden, and the first target keyboard and mouse control identifier is determined among at least one keyboard and mouse control identifier.

[0151] At this time, the user can perform a second touch operation on the game interface. Assuming that the first touch position corresponding to the second touch operation is (10, 25), then at this time, the first virtual icon corresponding to the first target keyboard and mouse control identifier will be displayed at the first touch position (10, 25).

[0152] In this application scenario, in response to a second touch operation on the game interface, a first touch position corresponding to the second touch operation is determined, so as to display a first virtual icon corresponding to the first target keyboard and mouse control identifier at the first touch position, avoiding the situation in the prior art where, after all virtual icons are displayed in the game interface, the virtual icons are then moved to the target position, reducing the complexity of displaying the virtual icons at the touch position, improving the efficiency of displaying the virtual icons at the touch position, and enhancing the user experience of the user.

[0153] In addition, in the exemplary embodiments of the present disclosure, a virtual button processing apparatus is further provided. Figure 19 The structural schematic diagram of the virtual button processing apparatus is shown, as Figure 19 shown, the virtual button processing apparatus 1900 may include: a first display module 1910, a hiding module 1920, a determination module 1930, and a second display module 1940. Among them:

[0154] The first display module 1910 is configured to display a keyboard and mouse control selection interface in the game interface in response to a first touch operation on the key editing control. The keyboard and mouse control selection interface includes at least one keyboard and mouse control identifier. The hiding module 1920 is configured to determine a first target keyboard and mouse control identifier from at least one keyboard and mouse control identifier in response to a first selection operation on the first target keyboard and mouse control identifier, and control the hiding of the keyboard and mouse control selection interface. The determination module 1930 is configured to determine a first touch position corresponding to the second touch operation in response to the second touch operation on the game interface. The second display module 1940 is configured to control the display of a first virtual icon corresponding to the first target keyboard and mouse control identifier at the first touch position.

[0155] The specific details of the above virtual key processing device 1900 have been described in detail in the corresponding virtual key processing method, so they will not be elaborated here.

[0156] It should be noted that although several modules or units of the virtual key processing device 1900 are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units for embodiment.

[0157] In addition, in the exemplary embodiments of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0158] The following refers to Figure 20 to describe the electronic device 2000 according to this embodiment of the present invention. Figure 20 The shown electronic device 2000 is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.

[0159] As Figure 20 shown, the electronic device 2000 is presented in the form of a general-purpose computing device. The components of the electronic device 2000 may include but are not limited to: the above at least one processing unit 2010, the above at least one storage unit 2020, a bus 2030 connecting different system components (including the storage unit 2020 and the processing unit 2010), and a display unit 2040.

[0160] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 2010, so that the processing unit 2010 executes the steps according to various exemplary embodiments of the present invention described in the above "exemplary method" part of this specification.

[0161] The storage unit 2020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2021 and / or a cache storage unit 2022, and may further include a read-only storage unit (ROM) 2023.

[0162] The storage unit 2020 may also include a program / utility 2024 having a set (at least one) of program modules 2025. Such program modules 2025 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the reality of a network environment.

[0163] The bus 2030 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus structures.

[0164] The electronic device 2000 may also communicate with one or more external devices 2070 (such as a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 2000, and / or may communicate with any device that enables the electronic device 2000 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be through an input / output (I / O) interface 2050. Moreover, the electronic device 2000 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 2060. As shown in the figure, the network adapter 2060 communicates with other modules of the electronic device 2000 through the bus 2030. It should be understood that although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 2000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0165] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0166] In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, on which a program product capable of implementing the above methods of this specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification.

[0167] Reference Figure 21 As shown, a program product 2100 for implementing the above method according to an embodiment of the present invention is described. It can be a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0168] The program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0169] The computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries the readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium can also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0170] The program code contained on the readable medium can be transmitted by any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0171] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0172] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are pointed out by the claims.

Claims

1. A method for processing virtual keys, characterized in that, the method includes: responding to a first touch operation on a key editing control, and displaying a mouse and keyboard control selection interface in the game interface, where the mouse and keyboard control selection interface includes at least one mouse and keyboard control identifier; the mouse and keyboard control identifier corresponds to different key types, and the key types include at least one of the following: a first key type, a second key type, a third key type, and a fourth key type; wherein, the first key type corresponds to the game function of the main keyboard keys, the second key type corresponds to the game function of the numeric keypad keys, the third key type corresponds to the game function of the mouse buttons, and the fourth key type corresponds to the game function of the direction wheel, and the direction wheel is used to control the moving direction of the game character; responding to a first selection operation on a first target mouse and keyboard control identifier, determining the first target mouse and keyboard control identifier from the at least one mouse and keyboard control identifier, and controlling to hide the mouse and keyboard control selection interface; responding to a second touch operation on the game interface, determining a first touch position corresponding to the second touch operation; controlling to display a first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position.

2. The virtual key processing method according to claim 1, characterized in that, after the controlling to display the first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position, the method further includes: displaying the mouse and keyboard control selection interface; responding to a second selection operation on a second target mouse and keyboard control identifier, determining the second target mouse and keyboard control identifier from the at least one mouse and keyboard control identifier, and controlling to hide the mouse and keyboard control selection interface; responding to a third touch operation on the game interface, determining a second touch position corresponding to the third touch operation; controlling to display a second virtual icon corresponding to the second target mouse and keyboard control identifier at the second touch position.

3. The virtual key processing method according to claim 1, characterized in that, the displaying the mouse and keyboard control selection interface in the game interface includes: displaying the mouse and keyboard control selection interface in the game interface, and displaying at least one mouse and keyboard control identifier corresponding to the game function on the mouse and keyboard control selection interface.

4. The virtual key processing method according to claim 3, characterized in that, after the controlling to display the first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position, the method further includes: if a save instruction corresponding to a save operation is not received, automatically displaying the mouse and keyboard control selection interface in the game interface; wherein, the save operation is used to save the first target mouse and keyboard control identifier and the first touch position corresponding to the first target mouse and keyboard control identifier; if the save instruction is received, canceling the display of the mouse and keyboard control selection interface.

5. The virtual key processing method according to claim 4, characterized in that, After automatically displaying the keyboard and mouse control selection interface in the game interface, the method further includes: Responding to a hiding operation on the hide button control, hiding the keyboard and mouse control selection interface, and displaying an editing control corresponding to the first virtual icon in the game interface; Responding to an editing operation on the editing control to display an editing result corresponding to the editing operation in the game interface.

6. The virtual button processing method according to claim 5, wherein, the editing control includes a change control; The responding to an editing operation on the editing control to display an editing result corresponding to the editing operation in the game interface includes: Responding to a change operation on the change control to display the keyboard and mouse control selection interface; Responding to the selection operation on other target keyboard and mouse control identifiers to determine a target virtual icon corresponding to the other target keyboard and mouse control identifiers; wherein, the key type of the other target keyboard and mouse control identifiers is different from the key type of the first target keyboard and mouse control identifier; the other target keyboard and mouse control identifier is one of all keyboard and mouse control identifiers; Replacing the first virtual icon displayed at the first touch position with the target virtual icon.

7. The virtual button processing method according to claim 5, wherein, the editing control includes a delete control; The responding to an editing operation on the editing control to display an editing result corresponding to the editing operation in the game interface includes: Responding to a delete operation on the delete control and not displaying the first virtual icon in the game interface.

8. The virtual button processing method according to claim 5, wherein, the editing control includes a move control; The responding to an editing operation on the editing control to display an editing result corresponding to the editing operation in the game interface includes: Responding to a fourth touch operation on the move control to obtain a movement end position corresponding to a movement operation on the first virtual icon; Replacing the first touch position with the movement end position so that the first virtual icon is displayed at the movement end position.

9. The virtual button processing method according to claim 1, wherein, after controlling to hide the keyboard and mouse control selection interface, the method further includes: Responding to a withdrawal operation on the withdrawal control to redisplay the keyboard and mouse control selection interface to re-respond to the first selection operation.

10. A virtual button processing device, wherein, comprises: A first display module, configured to respond to a first touch operation on a key editing control, and display a mouse and keyboard control selection interface in a game interface, where the mouse and keyboard control selection interface includes at least one mouse and keyboard control identifier; the mouse and keyboard control identifier corresponds to different key types, and the key types include at least one of the following: a first key type, a second key type, a third key type, and a fourth key type; wherein, the first key type corresponds to the game function of the main keyboard keys, the second key type corresponds to the game function of the numeric keypad keys, the third key type corresponds to the game function of the mouse keys, and the fourth key type corresponds to the game function of the direction wheel, and the direction wheel is used to control the moving direction of the game character; A hiding module, configured to respond to a first selection operation on a first target mouse and keyboard control identifier, determine the first target mouse and keyboard control identifier from the at least one mouse and keyboard control identifier, and control to hide the mouse and keyboard control selection interface; A determination module, configured to respond to a second touch operation on the game interface, and determine a first touch position corresponding to the second touch operation; A second display module, configured to control to display a first virtual icon corresponding to the first target mouse and keyboard control identifier at the first touch position.

11. An electronic device, characterized in that, it includes: a processor; a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the virtual key processing method according to any one of claims 1-9 by executing the executable instructions.

12. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, it implements the virtual key processing method according to any one of claims 1-9.

Citation Information

Patent Citations

  • Virtual key configuration method, virtual key method and related devices

    CN112274910A

  • Virtual key position adjusting method and device, equipment and storage medium

    CN112306351A