Virtual button adjustment method and device, storage medium and electronic device
By acquiring touch operations in the display area of the virtual button and adjusting the display area according to its position, the complex problem of virtual button adjustment is solved, the adjustment efficiency is improved, and the player's operation needs are met.
Patent Information
- Application Number
- CN202111264539.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2041-10-28
AI Technical Summary
The adjustment methods of virtual buttons in the prior art are complex, resulting in low adjustment efficiency and inability to adapt to players' operating habits and needs in time.
By displaying the first virtual button that allows touch, a set of touch operations in the target area is acquired, and when the preset target conditions are not met, the display area of the virtual button is adjusted in the direction of the touch position to ensure that the touch position is located in the new display area.
Realize instant adjustment of virtual buttons, simplify the adjustment process, improve the adjustment efficiency, and meet the player's operating habits and needs.
Smart Images

Figure CN113996052B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method and device for adjusting a virtual button, a storage medium, and an electronic device. Background Art
[0002] In the prior art, the button control layout of the game application is designed according to the general operating habits of players, and can meet the general operating requirements of most players.
[0003] However, the fixed button control layout cannot adapt to the operating habits and needs of all players. The traditional solution is for players to adjust the layout of virtual buttons by themselves. However, when players are operating in battle, they are usually unable to adjust the layout of virtual buttons in time, resulting in operational errors and a poor emotional experience.
[0004] With the existing solution, players can only adjust the virtual buttons in their free time and cannot make timely adjustments when problems arise in the operation. In addition, when players adjust the virtual buttons, the adjustments may not be precise enough and may deviate significantly from the expected position.
[0005] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention
[0006] Embodiments of the present invention provide a method and device for adjusting a virtual button, a storage medium, and an electronic device, to at least solve the technical problem in the related art that the adjustment method of the virtual button is complex, resulting in low adjustment efficiency.
[0007] According to one aspect of an embodiment of the present invention, a method for adjusting a virtual button is provided, including: displaying a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area; obtaining a group of touch operations performed within a target area corresponding to the first virtual button; and, if the group of touch operations does not meet a preset target condition, adjusting the display area of the first virtual button from the first display area to a second display area in the direction of the touch positions of the group of touch operations, wherein the touch positions of some or all of the touch operations in the group of touch operations are located within the second display area.
[0008] According to another aspect of an embodiment of the present invention, a device for adjusting a virtual button is provided, comprising:
[0009] A display module, configured to display a first virtual button that allows touch, wherein a display area of the first virtual button is a first display area;
[0010] an acquisition module, configured to acquire a set of touch operations performed in a target area corresponding to the first virtual button;
[0011] An adjustment module is used to adjust the display area of the first virtual button from the first display area to the second display area in the direction of the touch position of the group of touch operations when the group of touch operations does not meet the preset target conditions, wherein the touch positions of some or all touch operations in the group of touch operations are located within the second display area.
[0012] Optionally, the apparatus is configured to obtain a set of touch operations performed in a target area corresponding to the first virtual button in the following manner:
[0013] Obtaining the set of touch operations performed in a first edge area of the first display area, wherein a distance between a point in the first edge area and a center point of the first display area is greater than or equal to a first preset distance threshold; or
[0014] Obtain the set of touch operations performed in a second edge area outside the first display area and connected to the first display area, wherein the distance between a point in the second edge area and a center point of the first display area is greater than or equal to a second preset distance threshold, or the distance between a point in the second edge area and a boundary line of the first display area is greater than or equal to a third preset distance threshold.
[0015] Optionally, the apparatus is configured to adjust the display area of the first virtual button from the first display area to the second display area in the following manner:
[0016] Upon acquiring the set of touch operations performed within the first edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area, and the distances between the touch positions of some or all of the touch operations and the center point of the second display area are smaller than the distances between the touch positions and the center point of the first display area; or
[0017] Upon acquiring the set of touch operations performed within the first edge area, expanding the display area of the first virtual button from the first display area to the second display area, wherein a center point of the second display area is located at the same position as a center point of the first display area, and a distance between the touch positions of some or all of the touch operations in the set of touch operations and a boundary line of the second display area is greater than a distance between the touch positions and the boundary line of the first display area; or
[0018] When the set of touch operations performed within the first edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the area of the second display area is larger than the area of the first display area, the touch positions of some or all touch operations in the set of touch operations are located within the second display area, and the distance between the touch positions of some or all touch operations and the center point of the second display area is smaller than the distance between the touch positions and the center point of the first display area.
[0019] Optionally, the apparatus is configured to adjust the display area of the first virtual button from the first display area to the second display area in the following manner:
[0020] Upon acquiring the set of touch operations performed within the second edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or
[0021] When the set of touch operations performed within the second edge area is obtained, expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at the same position as the center point of the first display area, and the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or
[0022] When the set of touch operations performed within the second edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area.
[0023] Optionally, the device is further used for:
[0024] When all of the touch operations in the group generate corresponding operation instructions and the number of touch operations in the group is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or
[0025] When the set of touch operations all generate corresponding operation instructions, the set of touch operations are touch operations that are performed continuously, and the number of touch operations in the set of touch operations is greater than a preset number threshold, determining that the set of touch operations does not meet the preset target condition; or
[0026] When the group of touch operations all generate corresponding operation instructions, the group of touch operations are touch operations performed within a preset time period, and the number of touch operations in the group of touch operations is greater than a preset number threshold, it is determined that the group of touch operations does not meet the preset target conditions.
[0027] Optionally, the apparatus is configured to obtain a set of touch operations performed in a target area corresponding to the first virtual button in the following manner:
[0028] Obtain the set of touch operations performed in the target area outside the first display area and not connected to the first display area, wherein the distance between the point in the target area and the center point of the first display area is within a first distance range, or the distance between the point in the target area and the boundary line of the first display area is within a second distance range.
[0029] Optionally, the apparatus is configured to adjust the display area of the first virtual button from the first display area to the second display area in the following manner:
[0030] moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all touch operations in the set of touch operations are located within the second display area; or
[0031] Expanding the display area of the first virtual button from the first display area to the second display area, wherein a center point of the second display area is located at the same position as a center point of the first display area, and touch positions of some or all touch operations in the set of touch operations are located within the second display area; or
[0032] Move the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all touch operations in the set of touch operations are located within the second display area.
[0033] Optionally, the device is further used for:
[0034] When none of the touch operations in the group generates corresponding operation instructions and the number of touch operations in the group is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or
[0035] When none of the touch operations generate corresponding operation instructions, the touch operations are continuously performed, and the number of touch operations in the touch operations is greater than a preset number threshold, determining that the touch operations do not meet the preset target condition; or
[0036] When none of the set of touch operations generates corresponding operation instructions, the set of touch operations are touch operations performed within a preset time period, and the number of touch operations in the set of touch operations is greater than a preset number threshold, it is determined that the set of touch operations does not meet the preset target conditions.
[0037] Optionally, adjusting the display area of the first virtual button from the first display area to the second display area includes:
[0038] Adjust the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch position of some or all touch operations in the group of touch operations, or is located at the touch position of one touch operation among some or all touch operations.
[0039] Optionally, the device is further used for:
[0040] When the display area of the second virtual button overlaps or partially overlaps with the second display area, the display area of the second virtual button is adjusted to a third display area, and the third display area does not overlap with the second display area.
[0041] Optionally, the device is further used for:
[0042] When displaying a first game screen in the target game application, displaying the first touch-enabled virtual button, wherein the first virtual button is used to execute a game operation in response to a touch operation when the scope is in an on state, and the first game screen is the game screen displayed when the scope is in an on state;
[0043] Acquire the set of touch operations performed in the target area corresponding to the first virtual button;
[0044] If the set of touch operations does not meet a preset target condition, adjusting the display area of the first virtual button from the first display area to a second display area;
[0045] When the game screen displayed by the target game application switches from the first game screen to the second game screen, the display area of the first virtual button is adjusted from the second display area to the third display area, wherein the second game screen is the game screen displayed when the sight is in the closed state.
[0046] Optionally, the device is further used for:
[0047] When the game screen displayed by the target game application switches from the second game screen to the first game screen, hiding at least one virtual button other than the first virtual button in the second game screen in the first game screen;
[0048] When the game screen displayed by the target game application switches from the first game screen to the second game screen, the virtual button hidden in the first game screen is redisplayed in the second game screen.
[0049] Optionally, the device is further used for:
[0050] When the first virtual button is used to adjust the viewing angle of the target virtual character, the display area of the first virtual button is adjusted from the first display area to the second display area according to the operation direction of the set of touch operations.
[0051] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned virtual button adjustment method when running.
[0052] According to another aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described method for adjusting a virtual button.
[0053] According to another aspect of an embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the virtual button adjustment method through the computer program.
[0054] In an embodiment of the present invention, a first virtual button that allows touch is displayed, wherein the display area of the first virtual button is the first display area, and a group of touch operations performed in the target area corresponding to the first virtual button is obtained. When the group of touch operations does not meet the preset target conditions, the display area of the first virtual button is adjusted from the first display area to the second display area in the direction of the touch positions of the group of touch operations, wherein the touch positions of some or all of the touch operations in the group of touch operations are located in the second display area. By judging whether the group of touch operations meets the preset target conditions, when the preset target conditions are not met, the display area of the first virtual button is adjusted from the first display area to the direction of the touch positions of the group of touch operations to the second display area, thereby achieving the purpose of timely adjusting the display area of the first virtual button according to the touch positions of the group of touch operations, thereby realizing the technical effect of simplifying the adjustment method of the virtual button and improving the adjustment efficiency of the virtual button, thereby solving the technical problem in the related art that the adjustment method of the virtual button is complicated and the adjustment efficiency is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0056] Figure 1 is a schematic diagram of an application environment of an optional virtual button adjustment method according to an embodiment of the present invention;
[0057] Figure 2 is a flowchart of an optional method for adjusting a virtual button according to an embodiment of the present invention;
[0058] Figure 3 is a schematic diagram of an optional method for adjusting a virtual button according to an embodiment of the present invention;
[0059] Figure 4 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0060] Figure 5 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0061] Figure 6 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0062] Figure 7 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0063] Figure 8 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0064] Figure 9 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0065] Figure 10 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0066] Figure 11 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0067] Figure 12 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0068] Figure 13 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0069] Figure 14 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0070] Figure 15 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0071] Figure 16 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0072] Figure 17 is a schematic diagram of another optional method for adjusting a virtual button according to an embodiment of the present invention;
[0073] Figure 18 is a schematic structural diagram of an optional virtual button adjustment device according to an embodiment of the present invention;
[0074] Figure 19 is a structural diagram of an optional virtual button adjustment product according to an embodiment of the present invention;
[0075] Figure 20 FIG. 4 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0076] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0077] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0078] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretations:
[0079] Adaptation: refers to the process of automatically adjusting the processing method, processing sequence, processing parameters, boundary conditions or constraints according to the characteristics of the data obtained during the processing and analysis process, so that they are adapted to the characteristics and structural characteristics of the data obtained to achieve the best processing effect.
[0080] The present invention will be described below in conjunction with embodiments:
[0081] According to one aspect of an embodiment of the present invention, a method for adjusting a virtual button is provided. Optionally, in this embodiment, the method for adjusting a virtual button can be applied to: Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, server 101 is connected to terminal 103 via a network and can be used to provide services for terminal devices or applications installed on the terminal devices. Applications can be video applications, instant messaging applications, browser applications, educational applications, game applications, etc. A database 105 can be set up on the server or independently of the server to provide data storage services for server 101, such as a game data storage server. The above-mentioned networks can include, but are not limited to, wired networks and wireless networks, wherein the wired networks include local area networks, metropolitan area networks, and wide area networks, and the wireless networks include Bluetooth, WIFI, and other networks that enable wireless communication. Terminal device 103 can be a terminal configured with an application and can include, but are not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Device), a PAD, a desktop computer, a smart TV, and other computer devices. The above-mentioned server can be a single server, a server cluster consisting of multiple servers, or a cloud server. Game application 107 using the above-mentioned virtual button adjustment method is displayed through terminal device 103.
[0082] Combine Figure 1 As shown, the above-mentioned virtual button adjustment method can be implemented in the terminal device 103 through the following steps:
[0083] S1, displaying a first touch-enabled virtual button on a terminal device, wherein a display area of the first virtual button is a first display area;
[0084] S2, obtaining, on the terminal device, a set of touch operations performed within a target area corresponding to the first virtual button;
[0085] S3. On the terminal device, when a group of touch operations does not meet the preset target conditions, the display area of the first virtual button is adjusted from the first display area to the second display area in the direction of the touch positions of the group of touch operations, wherein the touch positions of some or all of the touch operations in the group of touch operations are located in the second display area.
[0086] Optionally, in this embodiment, the above-mentioned virtual button adjustment method can also be implemented by a server, for example, Figure 1 It is implemented in the server 101 shown; or it is implemented by the user terminal and the server together.
[0087] The above is only an example and is not specifically limited in this embodiment.
[0088] Alternatively, as an optional implementation, as Figure 2 As shown, the above-mentioned virtual button adjustment method includes:
[0089] S202, displaying a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area;
[0090] S204, obtaining a set of touch operations performed in a target area corresponding to the first virtual button;
[0091] S206, when a group of touch operations does not meet the preset target conditions, adjust the display area of the first virtual button from the first display area to the second display area in the direction of the touch positions of the group of touch operations, wherein the touch positions of some or all of the touch operations in the group of touch operations are located within the second display area.
[0092] Optionally, in this embodiment, the above-mentioned virtual button adjustment method can be applied to shooting game applications installed on computer devices including but not limited to mobile phones (such as Android phones, iOS phones, etc.), laptops, tablet computers, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, etc. The above-mentioned target shooting game applications include first-person shooting game applications, third-person shooting game applications, and shooting game applications that can switch between first-person and third-person perspectives, etc., wherein, Figure 3 is a schematic diagram of a method for adjusting a virtual button according to an embodiment of the present invention. Figure 3 As shown, the application display interface can be divided into a first-person display interface 301 and a third-person display interface 303, as well as a display interface including but not limited to a display interface for switching between the first-person and third-person perspectives using a perspective switching button (a form of the above-mentioned virtual button), which can be used as shown in FIG. Figure 3 The environment shown in FIG. 1 displays a first virtual prop controlled by a first virtual operation object in a target game application.
[0093] Optionally, in this embodiment, the type of the above-mentioned game application may include but is not limited to at least one of the following: two-dimensional (2D) game application, three-dimensional (3D) game application, virtual reality (VR) game application, augmented reality (AR) game application, and mixed reality (MR) game application.
[0094] Optionally, in this embodiment, the above-mentioned first virtual button that allows touch may include but is not limited to being rendered by the terminal according to the game application data sent by the server, and may also include but is not limited to being rendered by the terminal according to the storage data of the game application.
[0095] Optionally, in this embodiment, the above-mentioned first virtual button may include but is not limited to buttons that players need to touch to perform game operations, for example, release buttons for virtual skills, use buttons for virtual props, interaction buttons for virtual characters, and game virtual buttons that are currently or in the future allowed to be touched in game applications.
[0096] Specifically, Figure 4 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 4 As shown, a game of a shooting game application displays a game screen 402, wherein the game screen 402 includes a virtual button 404, a virtual button 406 and a virtual button 408. The virtual button 404 is a hip-fire button, that is, the player controls the current virtual character to enter the hip-fire mode by clicking the virtual button 404. The virtual button 406 is a normal shooting button, that is, the player controls the current virtual character to enter the normal shooting mode by clicking the virtual button 406. The virtual button 408 is a bullet-changing button, that is, the player controls the current virtual character to start changing bullets by clicking the virtual button 408.
[0097] For example, during the course of a game, when the virtual button 404 is in use, it is generally possible that the virtual character controlled by the player encounters an emergency. Therefore, the player generally needs to quickly click the virtual button 404. In the prior art, the position of the virtual button 404 is generally a pre-configured position before the game starts, or, when no emergency occurs, the player actively adjusts the position through the button position adjustment page. However, the player cannot be sure whether the set virtual button is suitable for him in an emergency situation, and can only touch the area where the virtual button 404 is located. The touch operation may fail due to missing the area where the virtual button 404 is located.
[0098] In this embodiment, when obtaining the target area ( Figure 4 After a group of touch operations are performed on the first virtual button (in the area around the touch position shown), when the group of touch operations does not meet the preset target conditions, the display area of the first virtual button is adjusted from the first display area to the second display area in the direction of the touch position of the group of touch operations, so that the second display area is more in line with the current player's usage habits, and the adjustment process can be automatically adjusted in real time during the game, reducing the interactive process of adjusting the virtual button and improving the adjustment efficiency of the virtual button.
[0099] Optionally, in this embodiment, the above-mentioned first display area may include but is not limited to the display area pre-configured for the above-mentioned first virtual button, and may be displayed in any touch-allowed area on the game screen, and the above-mentioned target area may include but is not limited to a group of areas where touch operations contact the game interface, for example, the area on the display screen is pressed by a finger.
[0100] Optionally, in this embodiment, the above-mentioned set of touch operations may include but are not limited to clicking, long pressing, sliding, double-clicking, etc.
[0101] Optionally, in this embodiment, the above-mentioned set of touch operations failing to meet the preset target conditions may include but is not limited to the touch positions of the above-mentioned set of touch operations being at the edge of the above-mentioned first display area, or the touch positions of the above-mentioned set of touch operations being outside the above-mentioned first display area. In other words, the above-mentioned set of touch operations failing to meet the preset target conditions may include but is not limited to the touch positions of the above-mentioned set of touch operations being less than a predetermined value from the center of the first display area.
[0102] For example, Figure 5 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 5 As shown, the first virtual button is displayed in the first display area 504 in the game interface 502. When the target area corresponding to a set of touch operations is located in the edge area 506 of the first display area 504, although the touch operation still achieves touching the first virtual button, since the touch position is far away from the first display area 504, it is easy for the touch position to fail to fall in the first display area 504. Therefore, it is determined that the above set of touch operations does not meet the preset target conditions.
[0103] Also for example, for example, Figure 6 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 6 As shown, the first virtual button is displayed in the first display area 604 in the game interface 602. When the target area corresponding to a set of touch operations is located in the external area 606 of the first display area 604, since the touch operation fails to touch the first virtual button and the touch position is far away from the first display area 604, it is determined that the above set of touch operations does not meet the preset target conditions.
[0104] Optionally, in this embodiment, the above-mentioned adjustment of the display area of the first virtual button from the first display area to the second display area in the direction of the touch position of a group of touch operations may include but is not limited to moving the above-mentioned first display area according to the direction of the touch position to obtain the above-mentioned second display area, or enlarging the above-mentioned first display area according to the direction of the touch position to obtain the above-mentioned second display area, for example, the distance between the point in the above-mentioned edge area and the center point of the first display area is greater than or equal to the preset distance threshold, the distance between the point in the external area and the center point of the first display area is greater than or equal to the preset distance threshold, or the distance between the point in the external area and the boundary line of the display area is greater than or equal to the preset distance threshold, etc.
[0105] Optionally, in this embodiment, the touch positions of some or all of the touch operations in the above-mentioned set of touch operations are located in the second display area, which may include but is not limited to the touch positions of part of the area of the above-mentioned set of touch operations being within the second display area or the touch positions of all areas of the above-mentioned set of touch operations being within the second display area.
[0106] For example, Figure 7 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 7 As shown, the game interface 702 displays the adjusted second display area, and the touch positions of the above set of touch operations can be Figure 7 Part of the area shown.
[0107] For example, Figure 8 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 8 As shown, the game interface 802 displays the adjusted second display area, and the touch positions of the above set of touch operations can be Figure 8 All areas shown.
[0108] The above is only an example, and this embodiment does not impose any specific limitation.
[0109] Through this embodiment, a first virtual button that allows touch is displayed, wherein the display area of the first virtual button is the first display area, and a group of touch operations performed in the target area corresponding to the first virtual button is obtained. When the group of touch operations does not meet the preset target conditions, the display area of the first virtual button is adjusted from the first display area to the second display area in the direction of the touch positions of the group of touch operations, wherein the touch positions of some or all of the touch operations in the group of touch operations are located in the second display area. By judging whether the group of touch operations meets the preset target conditions, when the preset target conditions are not met, the display area of the first virtual button is adjusted from the first display area to the direction of the touch positions of the group of touch operations to the second display area, thereby achieving the purpose of timely adjusting the display area of the first virtual button according to the touch positions of the group of touch operations, thereby realizing the technical effect of simplifying the adjustment method of the virtual button and improving the adjustment efficiency of the virtual button, thereby solving the technical problem in the related art that the adjustment method of the virtual button is complicated and the adjustment efficiency is low.
[0110] As an optional solution, obtaining a set of touch operations performed in a target area corresponding to the first virtual button includes:
[0111] Obtaining a set of touch operations performed in a first edge area of the first display area, wherein a distance between a point in the first edge area and a center point of the first display area is greater than or equal to a first preset distance threshold; or
[0112] Obtain a set of touch operations performed in a second edge area outside the first display area and connected to the first display area, wherein the distance between a point in the second edge area and a center point of the first display area is greater than or equal to a second preset distance threshold, or the distance between a point in the second edge area and a boundary line of the first display area is greater than or equal to a third preset distance threshold.
[0113] Optionally, in this embodiment, the first preset distance threshold, the second preset distance threshold, and the third preset distance threshold may include but are not limited to being pre-set uniformly or separately by the system, and may also be set uniformly or separately by the player before or after entering a game. The sizes of the first preset distance threshold, the second preset distance threshold, and the third preset distance threshold may be flexibly adjusted.
[0114] Optionally, in this embodiment, Figure 9 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 9As shown, an unadjusted first display area is displayed in the game interface 902. When the touch position of a group of touch operations is located inside or intersects the above-mentioned first display area, and the distance between the touch position and the center point of the first display area is greater than or equal to the above-mentioned first distance threshold, the target area corresponding to the above-mentioned group of touch operations is determined to be the above-mentioned first edge area.
[0115] Optionally, in this embodiment, Figure 10 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 10 As shown, an unadjusted first display area is displayed in the game interface 1002. When the touch position of a group of touch operations is located outside the above-mentioned first display area, and the distance between the touch position and the center point of the above-mentioned first display area is greater than or equal to the above-mentioned second distance threshold or the distance between the touch position and the boundary of the above-mentioned first display area is greater than or equal to the above-mentioned third distance threshold, the target area corresponding to the above-mentioned group of touch operations is determined as the above-mentioned second edge area.
[0116] The above is only an example, and this embodiment does not impose any specific limitation.
[0117] Through this embodiment, when a group of touch operations are located inside the first display area but are not precise, or when a group of touch operations are located outside the first display area and it is difficult to implement touch operations, the first display area can be adjusted in the direction of the touch position of the group of touch operations to obtain the above-mentioned second display area, thereby achieving the purpose of timely adjusting the display area of the first virtual button according to the touch position of a group of touch operations, thereby realizing the technical effect of simplifying the adjustment method of the virtual button and improving the adjustment efficiency of the virtual button, and further solving the technical problem in the related art that the adjustment method of the virtual button is complicated and the adjustment efficiency is low.
[0118] As an optional solution, adjusting the display area of the first virtual button from the first display area to the second display area includes:
[0119] Upon acquiring a set of touch operations performed within the first edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area, and the distances between the touch positions of some or all of the touch operations and the center point of the second display area are smaller than the distances between the touch positions and the center point of the first display area; or
[0120] When a set of touch operations performed within the first edge area is obtained, expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at the same position as the center point of the first display area, and the distance between the touch positions of some or all of the touch operations in the set of touch operations and the boundary line of the second display area is greater than the distance between the touch positions and the boundary line of the first display area; or
[0121] When a group of touch operations performed within the first edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the area of the second display area is larger than the area of the first display area, the touch positions of some or all touch operations in the group of touch operations are located within the second display area, and the distance between the touch positions of some or all touch operations and the center point of the second display area is smaller than the distance between the touch positions and the center point of the first display area.
[0122] As an optional solution, adjusting the display area of the first virtual button from the first display area to the second display area includes:
[0123] When a set of touch operations performed within the second edge area is acquired, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or
[0124] When a group of touch operations performed within the second edge area is obtained, expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at the same position as the center point of the first display area, and the touch positions of some or all of the touch operations in the group of touch operations are located within the second display area; or
[0125] When a group of touch operations performed within the second edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the center point of the second display area and the center point of the first display area are located at a different position, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all touch operations in the group of touch operations are located within the second display area.
[0126] Optionally, in this embodiment, the above-mentioned moving of the display area of the first virtual button from the first display area to the second display area may include but is not limited to moving the first display area along the direction of the touch position of the touch operation to obtain the above-mentioned second display area, and may also include but is not limited to expanding the first display area along the direction of the touch position of the touch operation to obtain the above-mentioned second display area.
[0127] For example, Figure 11 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 11 As shown, the game interface 1102 displays an unadjusted first display area. When the touch position is detected to be on the left side of the first display area, the first display area is moved to the left to obtain the second display area displayed in the game screen 1104.
[0128] For example, Figure 12 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 12 As shown, an unadjusted first display area is displayed in the game interface 1202. When it is detected that the touch position is on the left side of the first display area, the first display area is expanded to the left or evenly expanded to obtain the second display area displayed in the game screen 1204.
[0129] The above is only an example, and this embodiment does not impose any specific limitation.
[0130] As an optional solution, the method further includes one of the following:
[0131] When a group of touch operations all generate corresponding operation instructions and the number of touch operations in the group of touch operations is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or
[0132] When a group of touch operations all generate corresponding operation instructions, the group of touch operations are continuously executed, and the number of touch operations in the group of touch operations is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or
[0133] When a group of touch operations all generate corresponding operation instructions, a group of touch operations are touch operations performed within a preset time period, and the number of touch operations in a group of touch operations is greater than a preset number threshold, it is determined that a group of touch operations does not meet the preset target conditions.
[0134] As an optional solution, obtaining a set of touch operations performed in a target area corresponding to the first virtual button includes:
[0135] Obtain a set of touch operations performed in a target area outside the first display area and not connected to the first display area, wherein the distance between a point in the target area and a center point of the first display area is within a first distance range, or the distance between the point in the target area and a boundary line of the first display area is within a second distance range.
[0136] As an optional solution, adjusting the display area of the first virtual button from the first display area to the second display area includes:
[0137] Moving a display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all touch operations in a set of touch operations are located within the second display area; or
[0138] Expanding the display area of the first virtual button from the first display area to a second display area, wherein the center point of the second display area is located at the same position as the center point of the first display area, and the touch positions of some or all touch operations in a set of touch operations are located within the second display area; or
[0139] The display area of the first virtual button is moved from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all touch operations in a group of touch operations are located within the second display area.
[0140] Optionally, in this embodiment, moving the display area of the first virtual button from the first display area to the second display area may include but is not limited to adjusting the position of the first display area to obtain the second display area.
[0141] Optionally, in this embodiment, the display area of the first virtual button is expanded from the first display area to the second display area, wherein the center point of the second display area is located at the same position as the center point of the first display area, and the touch positions of some or all touch operations in a group of touch operations are located in the second display area, which may include but is not limited to adjusting the size of the first display area to obtain the above-mentioned second display area.
[0142] It should be noted that the center point of the above-mentioned second display area and the center point of the above-mentioned first display area are located at the same position, which may include but is not limited to uniformly expanding the above-mentioned first display area into the second display area. Taking the first display area as a circle as an example, the second display area is a circle with the same center as the first display area, and the radius of the second display area is larger than the above-mentioned first display area.
[0143] Optionally, in this embodiment, the center point of the above-mentioned second display area is located at a different position from the center point of the first display area, and the area of the second display area is larger than the area of the first display area, which may include but is not limited to simultaneously adjusting the position and size of the first display area to obtain the above-mentioned second display area.
[0144] As an optional solution, the method further includes one of the following:
[0145] When none of the touch operations in the group generate corresponding operation instructions and the number of touch operations in the group is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or
[0146] When none of the touch operations generate corresponding operation instructions, the touch operations are performed continuously, and the number of touch operations in the touch operations is greater than a preset number threshold, determining that the touch operations do not meet the preset target condition; or
[0147] When a group of touch operations does not generate corresponding operation instructions, a group of touch operations is performed within a preset time period, and the number of touch operations in a group of touch operations is greater than a preset number threshold, it is determined that a group of touch operations does not meet the preset target conditions.
[0148] Optionally, in this embodiment, the above-mentioned operation instructions may include but are not limited to being associated with the above-mentioned first virtual button, and the number of touch operations in the above-mentioned group of touch operations being greater than a preset number threshold may include but is not limited to the system detecting that the player's touch operations exceeding the preset number threshold do not generate operation instructions, for example, the player clicks the external area of the first virtual button three times, resulting in the operation instruction of the first virtual button not being triggered.
[0149] Optionally, in this embodiment, the number of touch operations in the above-mentioned set of touch operations is greater than a preset number threshold, which may include but is not limited to the system detecting that the player's continuous touch operations exceeding the predetermined number threshold do not generate any operation instructions, for example, the player clicks the outer area of the first virtual button three times in a row, resulting in the operation instruction of the first virtual button not being triggered.
[0150] Optionally, in this embodiment, the number of touch operations in the above-mentioned set of touch operations is greater than a preset number threshold, which may include but is not limited to the system detecting that the player's continuous touch operations exceeding the predetermined number threshold do not generate any operation instructions, for example, the player presses the outer area of the first virtual button for 5 seconds, resulting in the operation instruction of the first virtual button not being triggered.
[0151] As an optional solution, adjusting the display area of the first virtual button from the first display area to the second display area includes:
[0152] The display area of the first virtual button is adjusted from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch positions of some or all touch operations in a group of touch operations, or is located at the touch position of one touch operation in some or all touch operations.
[0153] Optionally, in this embodiment, when the above-mentioned touch operation includes multiple times, the first display area is adjusted to the second display area at a certain time point, the last time point, or the first time point, or when the above-mentioned touch operation includes a duration, the first display area is adjusted to the second display area at a certain time point, the last time point, or the first time point.
[0154] As an optional solution, the method further includes:
[0155] When the display area of the second virtual button overlaps or partially overlaps with the second display area, the display area of the second virtual button is adjusted to the third display area, and the third display area does not overlap with the second display area.
[0156] Optionally, in this embodiment, when the game screen includes multiple virtual buttons, since the display area of the first virtual button is adjusted from the first display area to the second display area, and the second display area overlaps or partially overlaps with the display area of the second virtual button, the triggering of the first virtual button or the second virtual button is affected. Therefore, when the display area of the second virtual button overlaps or partially overlaps with the second display area, the display area of the second virtual button can be adjusted to the third display area, and the third display area does not overlap with the second display area. When the first virtual button is moved from the first display area to the second display area, the second virtual button can be moved in the same way as the first virtual button. For example, the first display area is moved 5 mm to the left to obtain the second display area, and the second display area overlaps with the display area of the second virtual button, the second virtual button is also moved 5 mm to the left to avoid overlapping.
[0157] As an optional solution, the method further includes:
[0158] When displaying a first game screen in the target game application, displaying the first touch-enabled virtual button, wherein the first virtual button is used to execute a game operation in response to a touch operation when the scope is in an on state, and the first game screen is the game screen displayed when the scope is in an on state;
[0159] Acquire the set of touch operations performed in the target area corresponding to the first virtual button;
[0160] If the set of touch operations does not meet a preset target condition, adjusting the display area of the first virtual button from the first display area to a second display area;
[0161] When the game screen displayed by the target game application switches from the first game screen to the second game screen, the display area of the first virtual button is adjusted from the second display area to the third display area, wherein the second game screen is the game screen displayed when the sight is in the closed state.
[0162] Optionally, in this embodiment, the above-mentioned first game screen may include but is not limited to the game screen after the scope is turned on in the target game application. The user switches the game screen to the aiming screen (corresponding to the aforementioned first game screen) by interactively operating the virtual button for turning on the scope. At this time, the first game screen includes but is not limited to the above-mentioned first virtual button for shooting, and may also include but is not limited to the above-mentioned first virtual button for adjusting the viewing angle. Since the user's focus is on the enemies within the field of view, during the process of shooting and adjusting the viewing angle, a group of touch operations on the first virtual button may not meet the preset conditions (for example, pressing the wrong place or pressing in the edge area). If the user keeps pressing the wrong button, the user will not be able to effectively hit the enemy, and the process of re-finding the button position is also prone to being attacked by other virtual characters, resulting in poor efficiency in using the virtual buttons and a poor gaming experience.
[0163] Therefore, in the present application, when the scope is turned on, the display area of the above-mentioned first virtual button for shooting and the above-mentioned first virtual button for adjusting the viewing angle can be automatically adjusted from the first display area to the second display area. After the scope is turned on, the position of the first virtual button is restored to its original position and adjusted from the second display area to the first display area. The above-mentioned second game screen is the game screen after the scope is turned on, and the game screen may include but is not limited to the game screen before the scope is turned on or the default game screen of the target game application.
[0164] For example, Figure 13 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 13 As shown, the above-mentioned virtual button adjustment method may include but is not limited to the following steps:
[0165] S1, displaying a second game screen in the target game application and performing a touch operation on a scope opening button;
[0166] S2, in the target game application, switching the second game screen to the first game screen, and performing a touch operation on the shooting button 1302 to start shooting;
[0167] S3, when it is detected that the set of touch operations performed on the shooting button 1302 does not meet the preset target condition, the display area of the shooting button 1302 is adjusted from the first display area to the second display area (if the touch position of the set of touch operations is on the left side of the shooting button 1302, the shooting button 1302 is moved left). Figure 13 Shoot button 1304 shown;
[0168] S4, when the player needs to close the scope, perform a touch operation on the view switch button;
[0169] S5, in response to performing a touch operation on the perspective switching button, the game screen is adjusted from the first game screen to the second game screen, and the shooting button 1304 is moved to the position of the shooting button 1302, that is, adjusted from the second display area to the first display area.
[0170] The above is only an example and this embodiment does not impose any specific limitation.
[0171] As an optional solution, the method further includes:
[0172] When the game screen displayed by the target game application switches from the second game screen to the first game screen, hiding at least one virtual button other than the first virtual button in the second game screen in the first game screen;
[0173] When the game screen displayed by the target game application switches from the first game screen to the second game screen, the virtual button hidden in the first game screen is redisplayed in the second game screen.
[0174] Optionally, in this embodiment, at least one virtual button other than the first virtual button in the second game screen may include but is not limited to other virtual buttons that are not related to the usage scenario of the first virtual button. For example, taking the first virtual button as a shooting button as an example, the at least one virtual button other than the first virtual button may include but is not limited to a crawl button, a stand button, a chat button, a voice button, a mark button, etc.
[0175] Optionally, in this embodiment, the above-mentioned re-displaying of the virtual button hidden in the first game screen in the second game screen may include but is not limited to displaying the hidden virtual button in the display manner before hiding, and may also include but is not limited to displaying the virtual button in a display manner adjusted according to the display area of the virtual button in the first game screen by the player.
[0176] For example, Figure 14 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 14As shown, the above-mentioned virtual button adjustment method may include but is not limited to the following steps:
[0177] S1, when the target game application displays a second game screen, displaying a plurality of virtual buttons, the plurality of virtual buttons including a first virtual button and other virtual buttons except the first virtual button;
[0178] S2, when the target game application switches from the second game screen to the first game screen, hiding the other virtual buttons except the first virtual button among the plurality of virtual buttons;
[0179] S3, when the target game application switches from the first game screen to the second game screen, redisplaying the hidden virtual buttons except the first virtual button.
[0180] The above is only an example, and this embodiment does not impose any specific limitation.
[0181] As an optional solution, the method further includes:
[0182] When the first virtual button is used to adjust the viewing angle of the target virtual character, the display area of the first virtual button is adjusted from the first display area to the second display area according to the operation direction of the set of touch operations.
[0183] Optionally, in this embodiment, the operation direction of the above-mentioned set of touch operations may include, but is not limited to, when the set of touch operations is a sliding operation, taking the sliding direction as the above-mentioned operation direction.
[0184] For example, Figure 15 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 15 As shown, the above-mentioned virtual button adjustment method may include but is not limited to the following steps:
[0185] S1, when the target game application displays the first game screen, obtain a set of touch operations on the viewing angle button 1502;
[0186] S2, when a set of touch operations does not meet the preset target condition, adjusting the display area of the perspective button from the first display area to the second display area, that is, adjusting the perspective button 1502 to the perspective button 1504;
[0187] S3. When the target game application displays the first game screen, a perspective button 1504 is displayed.
[0188] The above is only an example, and this embodiment does not impose any specific limitation.
[0189] The present application is further explained below with reference to specific embodiments:
[0190] The button control adaptive method of the present application can be applied to games such as PVP and PVE that require high-frequency screen clicks for operations. When the system detects that the player's network is unobstructed and there is no possibility of hanging up, it will provide feedback if the player clicks the edge of the button control for a long time or clicks the screen multiple times without any operation instructions.
[0191] When the player clicks the edge of the button control more than three times in a row, the system will automatically determine the player's click offset direction and fine-tune the button control position for the player to ensure that the player's click center falls exactly at the center of the button control.
[0192] When a player clicks a button within a certain range multiple times during operation, but the system does not receive specific operation instructions, the system will automatically determine the offset direction of the player's click and whether there are button controls that are easy to operate by mistake near the player's click, and fine-tune the button control position for the player to ensure that the center of the player's click falls exactly at the center of the button control.
[0193] Figure 16 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 16 As shown, the above-mentioned virtual button adjustment method may include but is not limited to the following steps:
[0194] S1, start;
[0195] S2, the player clicks a button control within a certain range to perform an operation;
[0196] S3, determining whether an operation instruction has been received;
[0197] S4, if the result of step S3 is yes, determine whether the edge of the button is clicked;
[0198] S5, if the result of the judgment in step S4 is negative, the position of the button control remains unchanged;
[0199] S6, if the result of the judgment in step S3 is no, determine whether the operation instruction is received due to a network problem, and if the result of the judgment is yes, return to step S3;
[0200] S7, if the result of the judgment in step S4 is no or the result of the judgment in step S6 is yes, confirm the operation offset direction;
[0201] S8, confirm the moving direction of the button control;
[0202] S9, determining whether there are other button controls in the moving direction of the button control;
[0203] S10, if the result of the judgment in step S9 is yes, move other button controls in the opposite direction of the click;
[0204] S11: If the result of the judgment in step S9 is negative, the operation button is moved in the click direction.
[0205] It should be noted that when the player enters a game process with strong operational requirements, the system determines whether the player has clicked the screen but has not received actual operation feedback based on the number of times the button is clicked within a certain range and the number of times the command is received. There are two situations as follows:
[0206] 1. When the operation instruction is confirmed, the system will detect that the player clicks the center point three or more times in a row and the position falls on the edge area of the button (the area extending inward from the edge of the button, accounting for about 16% of the total area of the button and the edge area of the button). Figure 17 FIG. 1 is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention. Figure 17 As shown, the control is the virtual button mentioned above). After determining the direction in which the player clicks, the system will automatically adjust the button position in the direction in which the player clicks during the player's operation.
[0207] 2. When it is confirmed that no operation instruction has been received, the system will first determine whether the failure to receive the operation instruction is due to a network problem. If the judgment result is yes, it will check the network problem and re-determine whether the operation instruction has been received; if it is determined that it is not due to a network problem, after determining the player's click direction, the system will automatically adjust the button position in the direction of the player's click during the player's operation.
[0208] This embodiment can, on the one hand, reduce the time cost of user operation adjustments during game operations, making users more accurate during operation and reducing the possibility of errors. On the other hand, this idea can also be used as a reference in other applications. The UI button control actively adapts to user usage habits and emphasizes a targeted and personalized interface experience.
[0209] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0210] According to another aspect of the embodiments of the present invention, a virtual button adjustment device for implementing the above virtual button adjustment method is also provided. Figure 18 As shown, the device includes:
[0211] A display module 1802 is configured to display a first touch-enabled virtual button, wherein the display area of the first virtual button is a first display area;
[0212] An acquisition module 1804 is configured to acquire a set of touch operations performed in a target area corresponding to the first virtual button;
[0213] Adjustment module 1806 is used to adjust the display area of the first virtual button from the first display area to the second display area in the direction of the touch position of the group of touch operations when the group of touch operations does not meet the preset target conditions, wherein the touch positions of some or all touch operations in the group of touch operations are located within the second display area.
[0214] As an optional solution, the apparatus is configured to obtain a set of touch operations performed in a target area corresponding to the first virtual button in the following manner:
[0215] Obtaining the set of touch operations performed in a first edge area of the first display area, wherein a distance between a point in the first edge area and a center point of the first display area is greater than or equal to a first preset distance threshold; or
[0216] Obtain the set of touch operations performed in a second edge area outside the first display area and connected to the first display area, wherein the distance between a point in the second edge area and a center point of the first display area is greater than or equal to a second preset distance threshold, or the distance between a point in the second edge area and a boundary line of the first display area is greater than or equal to a third preset distance threshold.
[0217] As an optional solution, the apparatus is configured to adjust the display area of the first virtual button from the first display area to the second display area in the following manner:
[0218] Upon acquiring the set of touch operations performed within the first edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area, and the distances between the touch positions of some or all of the touch operations and the center point of the second display area are smaller than the distances between the touch positions and the center point of the first display area; or
[0219] Upon acquiring the set of touch operations performed within the first edge area, expanding the display area of the first virtual button from the first display area to the second display area, wherein a center point of the second display area is located at the same position as a center point of the first display area, and a distance between the touch positions of some or all of the touch operations in the set of touch operations and a boundary line of the second display area is greater than a distance between the touch positions and the boundary line of the first display area; or
[0220] When the set of touch operations performed within the first edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the area of the second display area is larger than the area of the first display area, the touch positions of some or all touch operations in the set of touch operations are located within the second display area, and the distance between the touch positions of some or all touch operations and the center point of the second display area is smaller than the distance between the touch positions and the center point of the first display area.
[0221] As an optional solution, the apparatus is configured to adjust the display area of the first virtual button from the first display area to the second display area in the following manner:
[0222] Upon acquiring the set of touch operations performed within the second edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or
[0223] When the set of touch operations performed within the second edge area is obtained, expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at the same position as the center point of the first display area, and the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or
[0224] When the set of touch operations performed within the second edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area.
[0225] As an optional solution, the device is also used for:
[0226] When all of the touch operations in the group generate corresponding operation instructions and the number of touch operations in the group is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or
[0227] When the set of touch operations all generate corresponding operation instructions, the set of touch operations are touch operations that are performed continuously, and the number of touch operations in the set of touch operations is greater than a preset number threshold, determining that the set of touch operations does not meet the preset target condition; or
[0228] When the group of touch operations all generate corresponding operation instructions, the group of touch operations are touch operations performed within a preset time period, and the number of touch operations in the group of touch operations is greater than a preset number threshold, it is determined that the group of touch operations does not meet the preset target conditions.
[0229] As an optional solution, the apparatus is configured to obtain a set of touch operations performed in a target area corresponding to the first virtual button in the following manner:
[0230] Obtain the set of touch operations performed in the target area outside the first display area and not connected to the first display area, wherein the distance between the point in the target area and the center point of the first display area is within a first distance range, or the distance between the point in the target area and the boundary line of the first display area is within a second distance range.
[0231] As an optional solution, the apparatus is configured to adjust the display area of the first virtual button from the first display area to the second display area in the following manner:
[0232] moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all touch operations in the set of touch operations are located within the second display area; or
[0233] Expanding the display area of the first virtual button from the first display area to the second display area, wherein a center point of the second display area is located at the same position as a center point of the first display area, and touch positions of some or all touch operations in the set of touch operations are located within the second display area; or
[0234] Move the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all touch operations in the set of touch operations are located within the second display area.
[0235] As an optional solution, the device is also used for:
[0236] When none of the touch operations in the group generates corresponding operation instructions and the number of touch operations in the group is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or
[0237] When none of the touch operations generate corresponding operation instructions, the touch operations are continuously performed, and the number of touch operations in the touch operations is greater than a preset number threshold, determining that the touch operations do not meet the preset target condition; or
[0238] When none of the set of touch operations generates corresponding operation instructions, the set of touch operations are touch operations performed within a preset time period, and the number of touch operations in the set of touch operations is greater than a preset number threshold, it is determined that the set of touch operations does not meet the preset target conditions.
[0239] As an optional solution, adjusting the display area of the first virtual button from the first display area to the second display area includes:
[0240] Adjust the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch position of some or all touch operations in the group of touch operations, or is located at the touch position of one touch operation among some or all touch operations.
[0241] As an optional solution, the device is also used for:
[0242] When the display area of the second virtual button overlaps or partially overlaps with the second display area, the display area of the second virtual button is adjusted to a third display area, and the third display area does not overlap with the second display area.
[0243] As an optional solution, the device is also used for:
[0244] When displaying a first game screen in the target game application, displaying the first touch-enabled virtual button, wherein the first virtual button is used to execute a game operation in response to a touch operation when the scope is in an on state, and the first game screen is the game screen displayed when the scope is in an on state;
[0245] Acquire the set of touch operations performed in the target area corresponding to the first virtual button;
[0246] If the set of touch operations does not meet a preset target condition, adjusting the display area of the first virtual button from the first display area to a second display area;
[0247] When the game screen displayed by the target game application switches from the first game screen to the second game screen, the display area of the first virtual button is adjusted from the second display area to the third display area, wherein the second game screen is the game screen displayed when the sight is in the closed state.
[0248] As an optional solution, the device is also used for:
[0249] When the game screen displayed by the target game application switches from the second game screen to the first game screen, hiding at least one virtual button other than the first virtual button in the second game screen in the first game screen;
[0250] When the game screen displayed by the target game application switches from the first game screen to the second game screen, the virtual button hidden in the first game screen is redisplayed in the second game screen.
[0251] As an optional solution, the device is also used for:
[0252] When the first virtual button is used to adjust the viewing angle of the target virtual character, the display area of the first virtual button is adjusted from the first display area to the second display area according to the operation direction of the set of touch operations.
[0253] According to one aspect of the present application, a computer program product is provided, comprising a computer program / instructions containing program code for executing the method illustrated in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1909 and / or installed from a removable medium 1911. When the computer program is executed by the central processing unit 1901, the various functions provided in the embodiments of the present application are performed.
[0254] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0255] Figure 19 The block diagram schematically shows a computer system structure of an electronic device used to implement an embodiment of the present application.
[0256] It should be noted that Figure 19 The computer system 1900 of the electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present application.
[0257] like Figure 19 As shown, computer system 1900 includes a central processing unit (CPU) 1901, which can perform various appropriate actions and processes according to the program stored in read-only memory 1902 (ROM) or the program loaded from storage 1908 into random access memory 1903 (RAM). Various programs and data required for system operation are also stored in random access memory 1903. Central processing unit 1901, read-only memory 1902, and random access memory 1903 are connected to each other via bus 1904. Input / output interface 1905 (input / output interface, i.e., I / O interface) is also connected to bus 1904.
[0258] The following components are connected to the input / output interface 1905: an input section 1906 including a keyboard, a mouse, and the like; an output section 1907 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage section 1908 including a hard disk; and a communication section 1909 including a network interface card such as a local area network card or a modem. The communication section 1909 performs communication processing via a network such as the Internet. A drive 1910 is also connected to the input / output interface 1905 as needed. Removable media 1911, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 1910 as needed, so that computer programs read therefrom can be installed into the storage section 1908 as needed.
[0259] In particular, according to an embodiment of the present application, the processes described in the various method flow charts can be implemented as computer software programs. For example, an embodiment of the present application includes a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for executing the methods shown in the flow charts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1909 and / or installed from a removable medium 1911. When the computer program is executed by the central processing unit 1901, the various functions defined in the system of the present application are performed.
[0260] According to another aspect of the embodiment of the present invention, an electronic device for implementing the above-mentioned virtual button adjustment method is also provided. The electronic device may be Figure 1 The terminal device or server shown in FIG. This embodiment is described by taking the electronic device as a terminal device as an example. Figure 20 As shown, the electronic device includes a memory 2002 and a processor 2004. The memory 2002 stores a computer program, and the processor 2004 is configured to execute the steps in any of the above method embodiments through the computer program.
[0261] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0262] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:
[0263] S1, displaying a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area;
[0264] S2, obtaining a set of touch operations performed within a target area corresponding to the first virtual button;
[0265] S3, when a group of touch operations does not meet the preset target conditions, adjust the display area of the first virtual button from the first display area to the second display area in the direction of the touch positions of the group of touch operations, wherein the touch positions of some or all of the touch operations in the group of touch operations are located within the second display area.
[0266] Alternatively, those skilled in the art will appreciate that Figure 20 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other terminal devices. Figure 20It does not limit the structure of the electronic device. For example, the electronic device may also include Figure 20 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 20 Different configurations shown.
[0267] Among them, the memory 2002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for adjusting the virtual buttons in the embodiment of the present invention. The processor 2004 executes various functional applications and data processing by running the software programs and modules stored in the memory 2002, that is, realizing the above-mentioned method for adjusting the virtual buttons. The memory 2002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 2002 may further include a memory remotely located relative to the processor 2004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 2002 can be used specifically, but not limited to, to store information such as virtual buttons. As an example, if Figure 20 As shown, the memory 2002 may include, but is not limited to, the display module 1802, the acquisition module 1804, and the adjustment module 1806 in the virtual button adjustment device. In addition, it may also include, but is not limited to, other module units in the virtual button adjustment device, which will not be repeated in this example.
[0268] Optionally, the transmission device 2006 is configured to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one embodiment, the transmission device 2006 includes a network interface controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another embodiment, the transmission device 2006 is a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.
[0269] In addition, the electronic device further includes: a display 2008 for displaying the virtual buttons; and a connection bus 2010 for connecting various module components in the electronic device.
[0270] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting multiple nodes through network communication. The nodes may form a peer-to-peer (P2P) network, and any computing device, such as a server, terminal, or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0271] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the virtual button adjustment method provided in various optional implementations of the above-mentioned virtual button adjustment.
[0272] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0273] S1, displaying a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area;
[0274] S2, obtaining a set of touch operations performed within a target area corresponding to the first virtual button;
[0275] S3, when a group of touch operations does not meet the preset target conditions, adjust the display area of the first virtual button from the first display area to the second display area in the direction of the touch positions of the group of touch operations, wherein the touch positions of some or all of the touch operations in the group of touch operations are located within the second display area.
[0276] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0277] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0278] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above-mentioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for causing one or more computer devices (such as personal computers, servers, or network devices) to execute all or part of the steps of the methods described in various embodiments of the present invention.
[0279] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0280] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, and can be electrical or other forms.
[0281] The units described as separate components may or may not be physically separate, and 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 these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0282] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0283] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A method for adjusting a virtual button, characterized in that: include: Displaying a first virtual button that allows touch, where the display area of the first virtual button is a first display area; Obtaining a set of touch operations performed within a target area corresponding to the first virtual button: obtaining the set of touch operations performed within a first edge area of the first display area, where a distance between a point in the first edge area and a center point of the first display area is greater than or equal to a first preset distance threshold; or obtaining the set of touch operations performed within a second edge area outside the first display area and adjacent to the first display area, where a distance between a point in the second edge area and the center point of the first display area is greater than or equal to a second preset distance threshold, or a distance between a point in the second edge area and a boundary line of the first display area is greater than or equal to a third preset distance threshold; When the set of touch operations does not meet a preset target condition, adjusting the display area from the first display area to a second display area, where touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; The method also includes: when the group of touch operations all generate corresponding operation instructions and the number of touch operations in the group of touch operations is greater than a preset number threshold, or when the group of touch operations all generate corresponding operation instructions, the group of touch operations are touch operations performed continuously, and the number of touch operations in the group of touch operations is greater than a preset number threshold, or when the group of touch operations all generate corresponding operation instructions, the group of touch operations are touch operations performed within a preset time period, and the number of touch operations in the group of touch operations is greater than the preset number threshold, determining that the group of touch operations does not meet the preset target condition.
2. The method according to claim 1, wherein The adjusting the display area from the first display area to the second display area includes: Upon acquiring the set of touch operations performed within the first edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area, and the distances between the touch positions of some or all of the touch operations and the center point of the second display area are smaller than the distances between the touch positions and the center point of the first display area; or Upon acquiring the set of touch operations performed within the first edge area, expanding the display area of the first virtual button from the first display area to the second display area, wherein a center point of the second display area is located at the same position as a center point of the first display area, and a distance between the touch positions of some or all of the touch operations in the set of touch operations and a boundary line of the second display area is greater than a distance between the touch positions and the boundary line of the first display area; or When the set of touch operations performed within the first edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the area of the second display area is larger than the area of the first display area, the touch positions of some or all touch operations in the set of touch operations are located within the second display area, and the distance between the touch positions of some or all touch operations and the center point of the second display area is smaller than the distance between the touch positions and the center point of the first display area.
3. The method according to claim 1, wherein The adjusting the display area from the first display area to the second display area includes: Upon acquiring the set of touch operations performed within the second edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or When the set of touch operations performed within the second edge area is obtained, expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at the same position as the center point of the first display area, and the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or When the set of touch operations performed within the second edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area.
4. The method according to claim 1, wherein The acquiring of a set of touch operations performed in a target area corresponding to the first virtual button includes: Obtain the set of touch operations performed in the target area outside the first display area and not connected to the first display area, wherein the distance between the point in the target area and the center point of the first display area is within a first distance range, or the distance between the point in the target area and the boundary line of the first display area is within a second distance range.
5. The method according to claim 4, wherein The adjusting the display area from the first display area to the second display area includes: moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all touch operations in the set of touch operations are located within the second display area; or Expanding the display area of the first virtual button from the first display area to the second display area, wherein a center point of the second display area is located at the same position as a center point of the first display area, and touch positions of some or all touch operations in the set of touch operations are located within the second display area; or Move the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all touch operations in the set of touch operations are located within the second display area.
6. The method according to claim 4, wherein The method further comprises: When none of the touch operations in the group generates corresponding operation instructions and the number of touch operations in the group is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or When none of the touch operations generate corresponding operation instructions, the touch operations are continuously performed, and the number of touch operations in the touch operations is greater than a preset number threshold, determining that the touch operations do not meet the preset target condition; or When none of the set of touch operations generates corresponding operation instructions, the set of touch operations are touch operations performed within a preset time period, and the number of touch operations in the set of touch operations is greater than a preset number threshold, it is determined that the set of touch operations does not meet the preset target conditions.
7. The method according to any one of claims 1 to 6, characterized in that The adjusting the display area from the first display area to the second display area includes: Adjust the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch position of some or all touch operations in the group of touch operations, or is located at the touch position of one touch operation among some or all touch operations.
8. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When the display area of the second virtual button overlaps or partially overlaps with the second display area, the display area of the second virtual button is adjusted to a third display area, and the third display area does not overlap with the second display area.
9. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When displaying a first game screen in a target game application, displaying the first touch-enabled virtual button, wherein the first virtual button is used to execute a game operation in response to a touch operation when the scope is in an on state, and the first game screen is the game screen displayed when the scope is in an on state; Acquire the set of touch operations performed in the target area corresponding to the first virtual button; If the set of touch operations does not meet a preset target condition, adjusting the display area of the first virtual button from the first display area to a second display area; When the game screen displayed by the target game application switches from the first game screen to the second game screen, the display area of the first virtual button is adjusted from the second display area to the first display area, wherein the second game screen is the game screen displayed when the sight is in the closed state.
10. The method according to claim 9, characterized in that The method further comprises: When the game screen displayed by the target game application switches from the second game screen to the first game screen, hiding at least one virtual button other than the first virtual button in the second game screen in the first game screen; When the game screen displayed by the target game application switches from the first game screen to the second game screen, the virtual button hidden in the first game screen is redisplayed in the second game screen.
11. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When the first virtual button is used to adjust the viewing angle of the target virtual character, the display area of the first virtual button is adjusted from the first display area to the second display area according to the operation direction of the set of touch operations.
12. A virtual button adjustment device, used in a target game application, characterized in that: include: A display module, configured to display a first virtual button that allows touch, wherein a display area of the first virtual button is a first display area; an acquisition module, configured to acquire a set of touch operations performed within a target area corresponding to the first virtual button: acquiring the set of touch operations performed within a first edge area of the first display area, where a distance between a point in the first edge area and a center point of the first display area is greater than or equal to a first preset distance threshold; or acquiring the set of touch operations performed within a second edge area outside the first display area and adjacent to the first display area, where a distance between a point in the second edge area and the center point of the first display area is greater than or equal to a second preset distance threshold, or a distance between a point in the second edge area and a boundary line of the first display area is greater than or equal to a third preset distance threshold; an adjustment module, configured to adjust the display area from the first display area to a second display area when the set of touch operations does not meet a preset target condition, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; The device is also used to: determine that the group of touch operations does not meet the preset target condition when the group of touch operations all generate corresponding operation instructions and the number of touch operations in the group of touch operations is greater than a preset number threshold, or when the group of touch operations all generate corresponding operation instructions, the group of touch operations are touch operations performed continuously, and the number of touch operations in the group of touch operations is greater than the preset number threshold, or when the group of touch operations all generate corresponding operation instructions, the group of touch operations are touch operations performed within a preset time period, and the number of touch operations in the group of touch operations is greater than the preset number threshold.
13. The device according to claim 12, wherein The device is configured to adjust the display area from the first display area to the second display area in the following manner: Upon acquiring the set of touch operations performed within the first edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area, and the distances between the touch positions of some or all of the touch operations and the center point of the second display area are smaller than the distances between the touch positions and the center point of the first display area; or Upon acquiring the set of touch operations performed within the first edge area, expanding the display area of the first virtual button from the first display area to the second display area, wherein a center point of the second display area is located at the same position as a center point of the first display area, and a distance between the touch positions of some or all of the touch operations in the set of touch operations and a boundary line of the second display area is greater than a distance between the touch positions and the boundary line of the first display area; or When the set of touch operations performed within the first edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the area of the second display area is larger than the area of the first display area, the touch positions of some or all touch operations in the set of touch operations are located within the second display area, and the distance between the touch positions of some or all touch operations and the center point of the second display area is smaller than the distance between the touch positions and the center point of the first display area.
14. The device according to claim 12, wherein The device is configured to adjust the display area from the first display area to the second display area in the following manner: Upon acquiring the set of touch operations performed within the second edge area, moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or When the set of touch operations performed within the second edge area is obtained, expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at the same position as the center point of the first display area, and the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area; or When the set of touch operations performed within the second edge area is obtained, the display area of the first virtual button is moved from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area.
15. The device according to claim 12, characterized in that The device is configured to obtain a set of touch operations performed within a target area corresponding to the first virtual button in the following manner: Obtain the set of touch operations performed in the target area outside the first display area and not connected to the first display area, wherein the distance between the point in the target area and the center point of the first display area is within a first distance range, or the distance between the point in the target area and the boundary line of the first display area is within a second distance range.
16. The device according to claim 15, wherein The device is configured to adjust the display area from the first display area to the second display area in the following manner: moving the display area of the first virtual button from the first display area to the second display area, wherein touch positions of some or all touch operations in the set of touch operations are located within the second display area; or Expanding the display area of the first virtual button from the first display area to the second display area, wherein a center point of the second display area is located at the same position as a center point of the first display area, and touch positions of some or all touch operations in the set of touch operations are located within the second display area; or Move the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is located at a different position from the center point of the first display area, the area of the second display area is larger than the area of the first display area, and the touch positions of some or all touch operations in the set of touch operations are located within the second display area.
17. The device according to claim 15, wherein The device is also used for: When none of the touch operations in the group generates a corresponding operation instruction and the number of touch operations in the group is greater than a preset number threshold, determining that the group of touch operations does not meet the preset target condition; or When none of the touch operations generate corresponding operation instructions, the touch operations are continuously performed, and the number of touch operations in the touch operations is greater than a preset number threshold, determining that the touch operations do not meet the preset target condition; or When none of the set of touch operations generates corresponding operation instructions, the set of touch operations are touch operations performed within a preset time period, and the number of touch operations in the set of touch operations is greater than a preset number threshold, it is determined that the set of touch operations does not meet the preset target conditions.
18. The device according to any one of claims 12 to 16, characterized in that The device is configured to adjust the display area from the first display area to the second display area in the following manner: Adjust the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch position of some or all touch operations in the group of touch operations, or is located at the touch position of one touch operation among some or all touch operations.
19. The device according to any one of claims 12 to 16, characterized in that The device is also used for: When the display area of the second virtual button overlaps or partially overlaps with the second display area, the display area of the second virtual button is adjusted to a third display area, and the third display area does not overlap with the second display area.
20. The device according to any one of claims 12 to 16, characterized in that The device is also used for: When displaying a first game screen in a target game application, displaying the first touch-enabled virtual button, wherein the first virtual button is used to execute a game operation in response to a touch operation when the scope is in an on state, and the first game screen is the game screen displayed when the scope is in an on state; Acquire the set of touch operations performed in the target area corresponding to the first virtual button; If the set of touch operations does not meet a preset target condition, adjusting the display area of the first virtual button from the first display area to a second display area; When the game screen displayed by the target game application switches from the first game screen to the second game screen, the display area of the first virtual button is adjusted from the second display area to the first display area, wherein the second game screen is the game screen displayed when the sight is in the closed state.
21. The device according to claim 20, characterized in that The device is also used for: When the game screen displayed by the target game application switches from the second game screen to the first game screen, hiding at least one virtual button other than the first virtual button in the second game screen in the first game screen; When the game screen displayed by the target game application switches from the first game screen to the second game screen, the virtual button hidden in the first game screen is redisplayed in the second game screen.
22. The device according to any one of claims 12 to 16, characterized in that The device is also used for: When the first virtual button is used to adjust the viewing angle of the target virtual character, the display area of the first virtual button is adjusted from the first display area to the second display area according to the operation direction of the set of touch operations.
23. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored program, wherein the program can be executed by a terminal device or a computer to execute the method described in any one of claims 1 to 11.
24. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
25. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 11 through the computer program.
Citation Information
Patent Citations
Virtual key display method and virtual key display device
CN104636043A
Game interface optimization method, computer equipment and storage medium
CN109908580A