Virtual button adjusting method and device, storage medium and electronic equipment
By acquiring touch input within the display area of the virtual button and adjusting the display area according to its position, the problem of complex virtual button adjustment is solved, enabling instant and precise button adjustment, improving efficiency and the player's operating experience.
Patent Information
- Application Number
- CN202511214535.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2025-12-12
AI Technical Summary
The current technology for adjusting virtual buttons is complex, resulting in low adjustment efficiency and an inability to make timely and accurate adjustments when encountering problems during operation, thus affecting the player's operating experience.
By displaying a first virtual button that allows touch, a set of touch operations within the target area is obtained. If 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 operation is located within the new display area.
It enables real-time adjustment of virtual buttons, simplifies the operation process, improves adjustment efficiency, and enhances the player's operating experience.
Smart Images

Figure CN121102875A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computers, and more specifically, to a method and apparatus for adjusting virtual buttons, a storage medium, and an electronic device. Background Technology
[0002] In existing technologies, the button control layout of game applications is designed according to the common operating habits of players, which can meet the common operating requirements of most players.
[0003] However, a fixed button 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 themselves. However, when players are in battle, they usually cannot adjust the layout of virtual buttons in time, leading to operational errors and a poor emotional experience.
[0004] The existing solution only allows players to adjust the virtual buttons during their free time, making it impossible to make timely adjustments when encountering problems. In addition, when adjusting the virtual buttons, players may encounter issues such as insufficient precision and significant deviation from the expected position.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] This invention provides a method, apparatus, storage medium, and electronic device for adjusting virtual buttons, to at least solve the technical problem in the related art where the adjustment method of virtual buttons is complex, resulting in low adjustment efficiency.
[0007] According to one aspect of the present invention, a method for adjusting a virtual button is provided, comprising: displaying a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area; acquiring a set of touch operations performed in a target area corresponding to the first virtual button; and, 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 in the direction of the touch position of the set of touch operations, wherein the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area.
[0008] According to another aspect of the present invention, a virtual button adjustment device is also provided, comprising:
[0009] The display module is used to display a first virtual button that allows touch input, wherein the display area of the first virtual button is a first display area;
[0010] The acquisition module is used to acquire a set of touch operations performed within the target area corresponding to the first virtual button;
[0011] The 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 some or all of the touch operations in the group of touch operations are located within the second display area.
[0012] Optionally, the device is configured to acquire a set of touch operations performed within the target area corresponding to the first virtual button in the following manner:
[0013] The set of touch operations performed within a first edge region of the first display area are acquired, wherein the distance between a point in the first edge region and the center point of the first display area is greater than or equal to a first preset distance threshold; or
[0014] The set of touch operations performed in a second edge region outside the first display area and connected to the first display area are acquired, wherein the distance between a point in the second edge region and the 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 region and the boundary line of the first display area is greater than or equal to a third preset distance threshold.
[0015] Optionally, the device is used 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 receiving the set of touch operations performed within the first edge region, the display area of the first virtual button is moved from the first display area to the second display area, wherein the 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 distance between the touch positions of some or all of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area; or
[0017] Upon receiving the set of touch operations performed within the first edge area, 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 distance between the touch position 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 them and the boundary line of the first display area; or
[0018] Upon receiving the set of touch operations performed within the first edge area, 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 of the 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 of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area.
[0019] Optionally, the device is used 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 receiving the set of touch operations performed within the second edge region, the display area of the first virtual button is moved from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or
[0021] Upon receiving the set of touch operations performed within the second edge area, 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 of the touch operations in the set of touch operations are located within the second display area; or
[0022] Upon receiving the set of touch operations performed within the second edge area, 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 also used for:
[0024] When all touch operations in a set generate corresponding operation commands, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or
[0025] When all of the touch operations in a set generate corresponding operation commands, the set of touch operations are executed consecutively, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or
[0026] When all of the touch operations in a set generate corresponding operation instructions, the set of touch operations are touch operations executed 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.
[0027] Optionally, the device is configured to acquire a set of touch operations performed within the target area corresponding to the first virtual button in the following manner:
[0028] The set of touch operations performed in the target area outside the first display area and not connected to the first display area are acquired, wherein the distance between a point in the target area and the center point of the first display area is within a first distance range, or the distance between a point in the target area and the boundary line of the first display area is within a second distance range.
[0029] Optionally, the device is used 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] Move the display area of the first virtual button from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or
[0031] Expand 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
[0032] 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 position of some or all of the touch operations in the group of touch operations is located within the second display area.
[0033] Optionally, the device is also used for:
[0034] When none of the touch operations in a set generate a corresponding operation instruction, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or
[0035] If none of the touch operations in a set generate a corresponding operation instruction, the set of touch operations is executed continuously, and the number of touch operations in the set exceeds a preset threshold, then the set of touch operations is determined to not meet the preset target condition; or
[0036] If none of the touch operations in a set of touch operations generate corresponding operation instructions, the set of touch operations are touch operations executed within a preset time period, and the number of touch operations in the set of touch operations is greater than a preset number threshold, then the set of touch operations is determined to 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] 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 position of some or all of the touch operations in the group of touch operations, or is located at the touch position of one of the touch operations in the group of touch operations.
[0039] Optionally, the device is also 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 the third display area, which does not overlap with the second display area.
[0041] Optionally, the device is further used for:
[0042] When the first game screen is displayed in the target game application, the first virtual button that allows touch is displayed, wherein the first virtual button is used to perform game operations in response to touch operation when the scope is in the open state, and the first game screen is the game screen displayed when the scope is in the open state;
[0043] Obtain the set of touch operations performed within the target area corresponding to the first virtual button;
[0044] If the set of touch operations does not meet the preset target conditions, the display area of the first virtual button will be adjusted from the first display area to the second display area;
[0045] When the game screen displayed in 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 second display area, wherein the second game screen is the game screen displayed when the scope is in the off 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, at least one virtual button other than the first virtual button in the second game screen is hidden 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 buttons hidden in the first game screen are re-displayed in the second game screen.
[0049] Optionally, the device is further used for:
[0050] When the first virtual button is used to adjust the view 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 present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the above-described adjustment method of the virtual button when running.
[0052] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the adjustment method for the virtual button described above.
[0053] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the above-described virtual button adjustment method through the computer program.
[0054] In this embodiment of the invention, a first virtual button that allows touch is displayed, wherein the display area of the first virtual button is a first display area. A set of touch operations executed within the target area corresponding to the first virtual button is acquired. If a set of touch operations does not meet a preset target condition, the display area of the first virtual button is adjusted from the first display area to a second display area in the direction of the touch position of the set of touch operations. This is achieved by determining whether a set of touch operations meets the preset target condition. If the preset target condition is not met, 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 set of touch operations. This achieves the goal of timely adjusting the display area of the first virtual button according to the touch position of a set of touch operations, thereby simplifying the adjustment method of the virtual button and improving the adjustment efficiency of the virtual button. This solves the technical problem in related technologies where the adjustment method of virtual buttons is complex, leading to low adjustment efficiency. Attached Figure Description
[0055] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0056] Figure 1 This is a schematic diagram of an application environment for an optional virtual button adjustment method according to an embodiment of the present invention;
[0057] Figure 2 This is a flowchart illustrating an optional virtual button adjustment method according to an embodiment of the present invention;
[0058] Figure 3 This is a schematic diagram of an optional virtual button adjustment method according to an embodiment of the present invention;
[0059] Figure 4 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0060] Figure 5 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0061] Figure 6 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0062] Figure 7 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0063] Figure 8 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0064] Figure 9 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0065] Figure 10 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0066] Figure 11 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0067] Figure 12 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0068] Figure 13 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0069] Figure 14 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0070] Figure 15 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0071] Figure 16 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0072] Figure 17 This is a schematic diagram of another optional method for adjusting virtual buttons according to an embodiment of the present invention;
[0073] Figure 18 This is a schematic diagram of the structure of an optional virtual button adjustment device according to an embodiment of the present invention;
[0074] Figure 19 This is a schematic diagram of the structure of an optional virtual button adjustment product according to an embodiment of the present invention;
[0075] Figure 20 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation
[0076] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0077] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0078] First, some nouns or terms that appear in the description of the embodiments of this application shall be interpreted as follows:
[0079] Adaptive processing refers to the process of automatically adjusting the processing methods, processing order, processing parameters, boundary conditions, or constraints based on the characteristics of the obtained data during processing and analysis, so as to adapt them to the characteristics and structural features of the obtained data and achieve the best processing results.
[0080] The present invention will now be described with reference to the following embodiments:
[0081] According to one aspect of the present invention, a method for adjusting a virtual button is provided. Optionally, in this embodiment, the above-described method for adjusting a virtual button can be applied to, for example... Figure 1 The hardware environment shown consists of server 101 and terminal device 103. For example... 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 terminal devices. Applications can be video applications, instant messaging applications, browser applications, educational applications, game applications, etc. 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 network can include, but is not limited to, wired networks and wireless networks. The wired network includes local area networks (LANs), metropolitan area networks (MANs), and wide area networks (WANs). The wireless network includes Bluetooth, Wi-Fi, and other networks that enable wireless communication. Terminal device 103 can be a terminal configured with applications, including but not limited to at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablets, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, and other computer devices. The server can be a single server, a server cluster consisting of multiple servers, or a cloud server. The game application 107, which uses the virtual button adjustment method described above, is displayed through terminal device 103.
[0082] Combination Figure 1 As shown, the method for adjusting the virtual button described above can be implemented in terminal device 103 through the following steps:
[0083] S1, Display a first virtual button that allows touch on the terminal device, wherein the display area of the first virtual button is a first display area;
[0084] S2, obtain a set of touch operations to be performed in the target area corresponding to the first virtual button on the terminal device;
[0085] S3, on the terminal device, if a set 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 set of touch operations, wherein the touch position of some or all of the touch operations in the set of touch operations is located in the second display area.
[0086] Optionally, in this embodiment, the method for adjusting the virtual button can also be implemented via a server, for example, Figure 1 It can be implemented in server 101 shown; or it can be implemented jointly by the user terminal and the server.
[0087] The above is merely an example, and this embodiment does not impose any specific limitations.
[0088] Alternatively, as an alternative implementation method, such as Figure 2 As shown, the adjustment methods for the above virtual buttons include:
[0089] S202, Display a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area;
[0090] S204, Obtain a set of touch operations to be performed within the target area corresponding to the first virtual button;
[0091] S206, if a set 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 set of touch operations, wherein the touch position of some or all of the touch operations in the set of touch operations is located in the second display area.
[0092] Optionally, in this embodiment, the above-mentioned method for adjusting virtual buttons 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, tablets, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, etc. These target shooting game applications include first-person shooting game applications, third-person shooting game applications, and shooting game applications capable of switching between first-person and third-person perspectives. Figure 3 This is a schematic diagram of a virtual button adjustment method according to an embodiment of the present invention, such as... Figure 3 As shown, the application display interface can be divided into a first-person view display interface 301 and a third-person view display interface 303, as well as a display interface that allows switching between first-person and third-person perspectives using a view switching button (a form of the aforementioned virtual button). This can be achieved using... Figure 3 The environment shown displays a first virtual prop controlled by a first virtual object in the target game application.
[0093] Optionally, in this embodiment, the types of the above-mentioned game applications may include, but are not limited to, at least one of the following: two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual reality (VR) game applications, augmented reality (AR) game applications, and mixed reality (MR) game applications.
[0094] Optionally, in this embodiment, the aforementioned touch-enabled first virtual button may be rendered by the terminal based on game application data sent by the server, or may be rendered by the terminal based on the stored data of the game application.
[0095] Optionally, in this embodiment, the first virtual button may include, but is not limited to, buttons that players need to touch to perform game operations, such as virtual skill release buttons, virtual item use buttons, virtual character interaction buttons, and game virtual buttons that are currently or will be touch-enabled in the game application.
[0096] Specifically, Figure 4 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 4 As shown, a game screen 402 of the shooting game application displays a game screen. The game screen 402 includes virtual buttons 404, 406, and 408. Virtual button 404 is the hip-fire button, which means that the player controls the current virtual character to enter hip-fire mode by clicking virtual button 404. Virtual button 406 is the normal fire button, which means that the player controls the current virtual character to enter normal fire mode by clicking virtual button 406. Virtual button 408 is the reload button, which means that the player controls the current virtual character to start reloading by clicking virtual button 408.
[0097] For example, during gameplay, the virtual button 404 is typically used when the player-controlled virtual character encounters an emergency. Therefore, the player usually needs to quickly click the virtual button 404. In existing technology, the position of the virtual button 404 is usually pre-configured before the game starts, or, if no emergency occurs, the player can manually adjust its position via the button position adjustment page. However, players cannot be certain whether the virtual button is suitable for them in an emergency; they can only touch the area where the virtual button 404 is located. This touch operation may fail because it misses the area where the virtual button 404 is located.
[0098] In this embodiment, when acquiring data within the target area ( Figure 4 After a set of touch operations is performed in the area surrounding the touch position shown, if the set 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 set of touch operations, so that the second display area is more in line with the current user's usage habits. Moreover, the adjustment process can be automatically adjusted in real time during the game, reducing the interaction process of adjusting the virtual button and improving the adjustment efficiency of the virtual button.
[0099] Optionally, in this embodiment, the first display area may include, but is not limited to, the display area pre-configured by the first virtual button, and may be displayed in any touch-enabled area of the game screen. The target area may include, but is not limited to, the area in contact with the game interface by a set of touch operations, such as the area pressed on the display screen by a finger.
[0100] Optionally, in this embodiment, the above-mentioned set of touch operations may include, but is not limited to, clicking, long pressing, swiping, double-tapping, etc.
[0101] Optionally, in this embodiment, the failure of the aforementioned set of touch operations to meet the preset target conditions may include, but is not limited to, the touch position of the aforementioned set of touch operations being at the edge of the aforementioned first display area, or the touch position of the aforementioned set of touch operations being outside the aforementioned first display area. In other words, the failure of the aforementioned set of touch operations to meet the preset target conditions may include, but is not limited to, the touch position of the aforementioned set of touch operations being less than a predetermined value from the center of the first display area.
[0102] For example, Figure 5 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 5 As shown, the first virtual button is displayed in the first display area 504 of 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 the touch of 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 on the first display area 504 in the future. Therefore, it is determined that the above set of touch operations does not meet the preset target conditions.
[0103] For example, for example, Figure 6 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 6 As shown, the first virtual button is displayed in the first display area 604 of the game interface 602. When the target area corresponding to a set of touch operations is located in the outer area 606 of the first display area 604, since the touch operation failed to touch the first virtual button and the touch position is far away from the first display area 604, it is determined that the set of touch operations does not meet the preset target conditions.
[0104] Optionally, in this embodiment, adjusting 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 set of touch operations may include, but is not limited to, moving the first display area according to the direction of the touch position to obtain the second display area, or enlarging the first display area according to the direction of the touch position to obtain the second display area. For example, the distance between a point in the edge area and the center point of the first display area is greater than or equal to a preset distance threshold, the distance between a point in the outer area and the center point of the first display area is greater than or equal to a preset distance threshold, or the distance between a point in the outer area and the boundary line of the display area is greater than or equal to a preset distance threshold, etc.
[0105] Optionally, in this embodiment, the touch positions of some or all of the touch operations in the above-mentioned group of touch operations located within the second display area may include, but are not limited to, the touch positions of some areas of the above-mentioned group of touch operations being within the second display area, or the touch positions of all areas of the above-mentioned group of touch operations being within the second display area.
[0106] For example, Figure 7 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 7 As shown, the game interface 702 displays an adjusted second display area, and the touch positions for the aforementioned set of touch operations can be... Figure 7 The area shown.
[0107] For example, Figure 8 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 8 As shown, the game interface 802 displays an adjusted second display area, and the touch position for the aforementioned set of touch operations can be... Figure 8 The entire area shown.
[0108] The above is merely an example, and this embodiment does not impose any specific limitations.
[0109] This embodiment employs a first virtual button that allows touch input, where the display area of the first virtual button is a first display area. A set of touch operations performed within the target area corresponding to the first virtual button is acquired. If a set of touch operations does not meet preset target conditions, the display area of the first virtual button is adjusted from the first display area to a second display area in the direction of the touch position of the set of touch operations. This is achieved by determining whether a set of touch operations meets the preset target conditions. If not, 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 set of touch operations. This achieves the goal of timely adjusting the display area of the first virtual button based on the touch position of a set of touch operations, thereby simplifying the adjustment method of the virtual button and improving its adjustment efficiency. This solves the technical problem in related technologies where the adjustment method of virtual buttons is complex, leading to low adjustment efficiency.
[0110] As an optional approach, a set of touch operations performed within the target area corresponding to the first virtual button is obtained, including:
[0111] A set of touch operations performed within a first edge region of the first display area is obtained, wherein the distance between a point in the first edge region and the center point of the first display area is greater than or equal to a first preset distance threshold; or
[0112] A set of touch operations performed in a second edge region outside the first display region and connected to the first display region are acquired, wherein the distance between a point in the second edge region and the center point of the first display region is greater than or equal to a second preset distance threshold, or the distance between a point in the second edge region and the boundary line of the first display region 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 be set uniformly or separately by the system in advance, or may be set uniformly or separately by the player before or after entering a game. The size of the first preset distance threshold, the second preset distance threshold, and the third preset distance threshold can be flexibly adjusted.
[0114] Optionally, in this embodiment, Figure 9 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 9As shown, the game interface 902 displays an unadjusted first display area. When the touch position of a set of touch operations is located inside or intersects with the 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 first distance threshold, the target area corresponding to the set of touch operations is determined as the first edge area.
[0115] Optionally, in this embodiment, Figure 10 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 10 As shown, the game interface 1002 displays an unadjusted first display area. When the touch position of a set of touch operations is located outside the 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 second distance threshold or the distance between the touch position and the boundary of the first display area is greater than or equal to the third distance threshold, the target area corresponding to the set of touch operations is determined as the second edge area.
[0116] The above is merely an example, and this embodiment does not impose any specific limitations.
[0117] In this embodiment, when a set of touch operations is located inside the first display area but is not precise, or when a set of touch operations is located outside the first display area and is difficult to perform touch operations, the first display area can be adjusted in the direction of the touch position of the set of touch operations to obtain the aforementioned second display area. This achieves the purpose of timely adjusting the display area of the first virtual button according to the touch position of the set of touch operations, thereby simplifying the adjustment method of the virtual button and improving the adjustment efficiency of the virtual button. It also solves the technical problem in related technologies where the adjustment method of the virtual button is complex, resulting in low adjustment efficiency.
[0118] As an optional solution, the display area of the first virtual button can be adjusted from a first display area to a second display area, including:
[0119] Upon receiving a set of touch operations performed within the first edge area, the display area of the first virtual button is moved from the first display area to the second display area, wherein the 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 distance between the touch positions of some or all of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area; or
[0120] Upon receiving a set of touch operations performed within the first edge area, the display area of the first virtual button is expanded 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 distance between the touch position 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 position and the boundary line of the first display area; or
[0121] Upon receiving a set of touch operations performed within the first edge area, 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 of the 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 of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area.
[0122] As an optional solution, the display area of the first virtual button can be adjusted from a first display area to a second display area, including:
[0123] Upon receiving a set of touch operations performed within the second edge area, the display area of the first virtual button is moved from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or
[0124] Upon receiving a set of touch operations performed within the second edge area, the display area of the first virtual button is expanded 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 of the touch operations in the set of touch operations are located within the second display area; or
[0125] Upon receiving a set of touch operations performed within the second edge area, 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.
[0126] 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, moving the first display area along the direction of the touch position of the touch operation to obtain the second display area, or may 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 second display area.
[0127] For example, Figure 11 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 11 As shown, the game interface 1102 displays an unadjusted first display area. When the touch position is detected to be to the left 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 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 12 As shown, the game interface 1202 displays an unadjusted first display area. When the touch position is detected to be to the left of the first display area, the first display area is expanded to the left or expanded uniformly to obtain the second display area displayed in the game screen 1204.
[0129] The above is merely an example, and this embodiment does not impose any specific limitations.
[0130] As an alternative approach, the method also includes one of the following:
[0131] When a set of touch operations all generate corresponding operation commands, and the number of touch operations in the set exceeds a preset threshold, the set of touch operations is determined to not meet the preset target conditions; or
[0132] A set of touch operations is determined to not meet the preset target conditions when all of them generate corresponding operation commands, the set of touch operations are executed consecutively, and the number of touch operations in the set exceeds a preset threshold; or
[0133] If a set of touch operations generates corresponding operation instructions, the set of touch operations is executed within a preset time period, and the number of touch operations in a set of touch operations is greater than a preset number threshold, then a set of touch operations is determined to not meet the preset target conditions.
[0134] As an optional approach, a set of touch operations performed within the target area corresponding to the first virtual button is obtained, including:
[0135] A set of touch operations performed in a target area outside the first display area and not connected to the first display area are acquired, wherein the distance between a point in the target area and the center point of the first display area is within a first distance range, or the distance between a point in the target area and the boundary line of the first display area is within a second distance range.
[0136] As an optional solution, the display area of the first virtual button can be adjusted from a first display area to a second display area, including:
[0137] Move the display area of the first virtual button from the first display area to the second display area, wherein some or all of the touch operations in a set of touch operations are located within the second display area; or
[0138] Expand 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 of the 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 position of some or all of the touch operations in a set of touch operations is 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. The center point of the second display area is located at the same position as the center point of the first display area. The touch positions of some or all of the touch operations in a set of touch operations are located within the second display area, which may include, but is not limited to, adjusting the size of the first display area to obtain the second display area.
[0142] It should be noted that the center point of the second display area and the center point of the first display area being located at the same position may include, but are not limited to, uniformly expanding the 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 that of the first display area.
[0143] Optionally, in this embodiment, 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, which may include, but is not limited to, simultaneously adjusting the position and size of the first display area to obtain the second display area.
[0144] As an alternative approach, the method also includes one of the following:
[0145] If a set of touch operations fails to generate corresponding operation commands and the number of touch operations in the set exceeds a preset threshold, the set of touch operations is determined to not meet the preset target conditions; or
[0146] A set of touch operations is determined to not meet the preset target conditions when: no corresponding operation command is generated in a set of touch operations; the set of touch operations is executed continuously; and the number of touch operations in a set of touch operations exceeds a preset threshold.
[0147] If a set of touch operations does not generate corresponding operation instructions, a set of touch operations is performed within a preset time period, and the number of touch operations in a set of touch operations exceeds a preset number threshold, then a set of touch operations is determined to not meet the preset target conditions.
[0148] Optionally, in this embodiment, the above-mentioned operation instructions may include, but are not limited to, those associated with the above-mentioned first virtual button. The number of touch operations in the above-mentioned set of touch operations being greater than a preset number threshold may include, but are not limited to, the system detecting that the player's touch operations exceeding the preset number threshold have not generated operation instructions. For example, if the player clicks the outer area of the first virtual button 3 times, the operation instructions of the first virtual button will not be triggered.
[0149] Optionally, in this embodiment, the number of touch operations in the above-mentioned set of touch operations exceeding a preset threshold may include, but is not limited to, the system detecting that the player's continuous touch operations exceeding the predetermined threshold do not generate operation instructions. For example, the player clicks the outer area of the first virtual button three times in a row, resulting in no operation instruction being triggered for the first virtual button.
[0150] Optionally, in this embodiment, the number of touch operations in the above-mentioned set of touch operations exceeding a preset threshold may include, but is not limited to, the system detecting that the player's continuous touch operations exceeding the predetermined threshold do not generate operation instructions. For example, the player presses the outer area of the first virtual button for 5 seconds, resulting in no operation instruction being triggered for the first virtual button.
[0151] As an optional solution, the display area of the first virtual button can be adjusted from a first display area to a second display area, including:
[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 position of some or all of the touch operations in a group of touch operations, or it is located on the touch position of one of the touch operations in some or all of the 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 alternative approach, the method also 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, it affects the triggering of the first or second virtual button. 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, which does not overlap with the second display area. When the first virtual button moves 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, if the first display area is moved 5mm to the left to obtain the second display area, and the second display area overlaps with the display area of the second virtual button, then the second virtual button is also moved 5mm to the left to avoid overlap.
[0157] As an optional approach, the method further includes:
[0158] When the first game screen is displayed in the target game application, the first virtual button that allows touch is displayed, wherein the first virtual button is used to perform game operations in response to touch operation when the scope is in the open state, and the first game screen is the game screen displayed when the scope is in the open state;
[0159] Obtain the set of touch operations performed within the target area corresponding to the first virtual button;
[0160] If the set of touch operations does not meet the preset target conditions, the display area of the first virtual button will be adjusted from the first display area to the second display area;
[0161] When the game screen displayed in 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 second display area, wherein the second game screen is the game screen displayed when the scope is in the off state.
[0162] Optionally, in this embodiment, the 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 interacts with the virtual button used to turn on the scope to switch the game screen to the aiming screen (corresponding to the aforementioned first game screen). At this time, the first game screen may include, but is not limited to, the first virtual button for shooting, and may also include, but is not limited to, the first virtual button for adjusting the view. Since the user's focus is on the enemy within the field of vision, during the shooting and view adjustment process, a set of touch operations on the first virtual button may not meet the preset conditions (e.g., pressing the wrong place or pressing the edge area). If the user keeps pressing the wrong place, the user will not be able to effectively hit the enemy, and the process of finding the button position again is also easy to be attacked by other virtual characters, resulting in poor usage efficiency of the virtual button and poor game experience.
[0163] Therefore, in this application, when the scope is open, the display areas of the first virtual button for shooting and the first virtual button for adjusting the view can be automatically adjusted from the first display area to the second display area. After the scope is closed, 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 second game screen is the game screen after the scope is closed. This game screen may include, but is not limited to, the game screen before the scope is opened or the default game screen of the target game application.
[0164] For example, Figure 13 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 13 As shown, the methods for adjusting the virtual buttons described above may include, but are not limited to, the following steps:
[0165] S1, display the second game screen in the target game application and perform a touch operation on the scope activation button;
[0166] S2, in the target game application, switch the second game screen to the first game screen, and perform a touch operation on the shooting button 1302 to start shooting;
[0167] S3, if a set of touch operations performed on the firing button 1302 does not meet the preset target conditions, the display area of the firing button 1302 is adjusted from the first display area to the second display area (if the touch position of a set of touch operations is to the left of the firing button 1302, then the firing button 1302 is moved to the left). Figure 13 The shooting button 1304 is shown;
[0168] S4 allows players to perform a touch operation on the view switching button when they need to close the scope;
[0169] S5, in response to the touch operation of the view 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, it is adjusted from the second display area to the first display area.
[0170] The above is merely an example, and this embodiment does not impose any specific limitations.
[0171] As an optional approach, 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, at least one virtual button other than the first virtual button in the second game screen is hidden 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 buttons hidden in the first game screen are re-displayed in the second game screen.
[0174] Optionally, in this embodiment, at least one virtual button in the second game screen other than the first virtual button may include, but is not limited to, other virtual buttons unrelated to the usage scenario of the first virtual button. For example, taking the first virtual button as a shooting button, the at least one virtual button other than the first virtual button may include, but is not limited to, crawling buttons, standing buttons, chat buttons, voice buttons, marking buttons, etc.
[0175] Optionally, in this embodiment, the above-mentioned re-displaying of the virtual buttons hidden in the first game screen in the second game screen may include, but is not limited to, displaying the hidden virtual buttons in the same way they were displayed before being hidden, or may include, but is not limited to, displaying them in a way that is adjusted according to the display area of the virtual buttons in the first game screen.
[0176] For example, Figure 14 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 14As shown, the methods for adjusting the virtual buttons described above may include, but are not limited to, the following steps:
[0177] S1, when the target game application displays the second game screen, multiple virtual buttons are displayed, including a first virtual button and other virtual buttons besides the first virtual button;
[0178] S2, when the target game application switches from the second game screen to the first game screen, hide the other virtual buttons among the multiple virtual buttons except for the first virtual button;
[0179] S3, when the target game application switches from the first game screen to the second game screen, redisplay the other virtual buttons that have been hidden except for the first virtual button.
[0180] The above is merely an example, and this embodiment does not impose any specific limitations.
[0181] As an optional approach, the method further includes:
[0182] When the first virtual button is used to adjust the view 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, using the sliding direction as the operation direction.
[0184] For example, Figure 15 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 15 As shown, the methods for adjusting the virtual buttons described above may include, but are 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 view button 1502;
[0186] S2, if a set of touch operations does not meet the preset target conditions, the display area of the view button is adjusted from the first display area to the second display area, that is, the view button 1502 is adjusted to the view button 1504.
[0187] S3, when the target game application displays the first game screen, display the view button 1504.
[0188] The above is merely an example, and this embodiment does not impose any specific limitations.
[0189] The present application will be further explained below with reference to specific embodiments:
[0190] The adaptive button control method of this application can be applied to games such as PvP and PvE that require high-frequency screen clicks for operation. When the system detects that the player's network is stable and there is no possibility of AFK, it will provide feedback when the player clicks the edge of the button control for a long time or does not perform any operation after clicking the screen multiple times.
[0191] When a player clicks the edge of the button control more than 3 times in a row, the system will automatically determine the direction of the player's click offset and fine-tune the position of the button control to ensure that the player's click center falls exactly on the center of the button control.
[0192] When a player clicks a button multiple times within a certain range, but the system does not receive a specific operation instruction, the system will automatically determine the direction of the player's click offset and whether there are any buttons or controls that are prone to misoperation near the player's click. The system will then fine-tune the position of the button or control to ensure that the player's click center falls exactly on the center of the button or control.
[0193] Figure 16 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 16 As shown, the methods for adjusting the virtual buttons described above may include, but are not limited to, the following steps:
[0194] S1, Start;
[0195] S2: Players can perform actions by clicking on a button control within a certain range.
[0196] S3, determine whether an operation command has been received;
[0197] S4, if the result of step S3 is yes, determine whether to click the edge of the button;
[0198] S5. If the result of step S4 is negative, the position of the button control remains unchanged.
[0199] S6. If the result of step S3 is negative, determine whether the operation command was received due to a network problem. If the result is positive, return to step S3.
[0200] S7. If the result of step S4 is negative or the result of step S6 is positive, confirm the operation offset direction.
[0201] S8 confirms the direction of movement of the button control;
[0202] S9, determine if there are other button controls in the direction the button control moves;
[0203] S10, if the result of step S9 is yes, move other button controls in the opposite direction of the click;
[0204] S11, if the result of step S9 is negative, move the operation button in the direction of the click.
[0205] It should be noted that when players enter a more action-oriented game phase, the system determines whether the player has tapped the screen but received no actual feedback by counting the number of button clicks within a certain range and the number of commands received. There are two possible scenarios:
[0206] 1. When an operation command is received, the system will detect if the player clicks the center point three or more times consecutively and the clicks fall within the button edge area (the area extending inward from the button edge, occupying approximately 16% of the total button area). Figure 17 This is a schematic diagram of another method for adjusting a virtual button according to an embodiment of the present invention, such as... Figure 17 As shown, the control is the virtual button mentioned above. After determining the direction of the player's click, the system will automatically adjust the button position in the direction of the player's click during the player's operation.
[0207] 2. When it is confirmed that no operation command has been received, the system will first determine whether the failure to receive the operation command is due to a network problem. If the result is yes, the system will check the network problem and re-determine whether the operation command has been received. If it is determined that the failure is not due to a network problem, after determining the direction of the player's click, the system will automatically adjust the button position in the direction of the player's click during the player's operation.
[0208] This embodiment reduces the time cost for users to adjust their actions in games, allowing for more precise operation and reducing the possibility of errors. Furthermore, this approach can be applied to other applications, enabling UI button controls to proactively adapt to user habits and emphasize a targeted and personalized interface experience.
[0209] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0210] According to another aspect of the present invention, a virtual button adjustment device for implementing the above-described virtual button adjustment method is also provided. For example... Figure 18 As shown, the device includes:
[0211] Display module 1802 is used to display a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area;
[0212] The acquisition module 1804 is used to acquire a set of touch operations performed in the target area corresponding to the first virtual button;
[0213] The 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 some or all of the touch operations in the group of touch operations are located in the second display area.
[0214] As an optional solution, the device is used to acquire a set of touch operations performed in the target area corresponding to the first virtual button in the following manner:
[0215] The set of touch operations performed within a first edge region of the first display area are acquired, wherein the distance between a point in the first edge region and the center point of the first display area is greater than or equal to a first preset distance threshold; or
[0216] The set of touch operations performed in a second edge region outside the first display area and connected to the first display area are acquired, wherein the distance between a point in the second edge region and the 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 region and the boundary line of the first display area is greater than or equal to a third preset distance threshold.
[0217] As an optional solution, the device is used 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 receiving the set of touch operations performed within the first edge region, the display area of the first virtual button is moved from the first display area to the second display area, wherein the 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 distance between the touch positions of some or all of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area; or
[0219] Upon receiving the set of touch operations performed within the first edge area, 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 distance between the touch position 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 them and the boundary line of the first display area; or
[0220] Upon receiving the set of touch operations performed within the first edge area, 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 of the 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 of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area.
[0221] As an optional solution, the device is used 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 receiving the set of touch operations performed within the second edge region, the display area of the first virtual button is moved from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or
[0223] Upon receiving the set of touch operations performed within the second edge area, 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 of the touch operations in the set of touch operations are located within the second display area; or
[0224] Upon receiving the set of touch operations performed within the second edge area, 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 touch operations in a set generate corresponding operation commands, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or
[0227] When all of the touch operations in a set generate corresponding operation commands, the set of touch operations are executed consecutively, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or
[0228] When all of the touch operations in a set generate corresponding operation instructions, the set of touch operations are touch operations executed 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.
[0229] As an optional solution, the device is used to acquire a set of touch operations performed in the target area corresponding to the first virtual button in the following manner:
[0230] The set of touch operations performed in the target area outside the first display area and not connected to the first display area are acquired, wherein the distance between a point in the target area and the center point of the first display area is within a first distance range, or the distance between a 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 device is used 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] Move the display area of the first virtual button from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or
[0233] Expand 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
[0234] 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 position of some or all of the touch operations in the group of touch operations is 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 a set generate a corresponding operation instruction, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or
[0237] If none of the touch operations in a set generate a corresponding operation instruction, the set of touch operations is executed continuously, and the number of touch operations in the set exceeds a preset threshold, then the set of touch operations is determined to not meet the preset target condition; or
[0238] If none of the touch operations in a set of touch operations generate corresponding operation instructions, the set of touch operations are touch operations executed within a preset time period, and the number of touch operations in the set of touch operations is greater than a preset number threshold, then the set of touch operations is determined to 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] 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 position of some or all of the touch operations in the group of touch operations, or is located at the touch position of one of the touch operations in the group of 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 the third display area, which does not overlap with the second display area.
[0243] As an optional solution, the device is also used for:
[0244] When the first game screen is displayed in the target game application, the first virtual button that allows touch is displayed, wherein the first virtual button is used to perform game operations in response to touch operation when the scope is in the open state, and the first game screen is the game screen displayed when the scope is in the open state;
[0245] Obtain the set of touch operations performed within the target area corresponding to the first virtual button;
[0246] If the set of touch operations does not meet the preset target conditions, the display area of the first virtual button will be adjusted from the first display area to the second display area;
[0247] When the game screen displayed in 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 second display area, wherein the second game screen is the game screen displayed when the scope is in the off 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, at least one virtual button other than the first virtual button in the second game screen is hidden 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 buttons hidden in the first game screen are re-displayed 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 view 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 this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication section 1909, and / or installed from a removable medium 1911. When the computer program is executed by a central processing unit 1901, it performs various functions provided in embodiments of this application.
[0254] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0255] Figure 19 A schematic block diagram of a computer system architecture for implementing an electronic device according to embodiments of the present application is shown.
[0256] It should be noted that, Figure 19 The computer system 1900 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0257] like Figure 19 As shown, the computer system 1900 includes a central processing unit (CPU) 1901, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 1902 or programs loaded from storage section 1908 into random access memory (RAM) 1903. The RAM 1903 also stores various programs and data required for system operation. The CPU 1901, ROM 1902, and RAM 1903 are interconnected via a bus 1904. An input / output interface 1905 (I / O interface) is also connected to the bus 1904.
[0258] The following components are connected to the input / output interface 1905: an input section 1906 including a keyboard, mouse, etc.; an output section 1907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1908 including a hard disk, etc.; and a communication section 1909 including a network interface card such as a local area network card, modem, etc. 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 disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on the drive 1910 as needed so that computer programs read from them can be installed into the storage section 1908 as needed.
[0259] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1909, and / or installed from removable medium 1911. When the computer program is executed by central processing unit 1901, it performs various functions defined in the system of this application.
[0260] According to another aspect of the present invention, an electronic device for implementing the above-described virtual button adjustment method is also provided. This electronic device may be... Figure 1 The terminal device or server shown. This embodiment uses this electronic device as an example for illustration. 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 via the computer program.
[0261] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0262] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0263] S1, Display a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area;
[0264] S2, obtain a set of touch operations to be performed within the target area corresponding to the first virtual button;
[0265] S3, if a set 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 position of the set of touch operations, wherein the touch position of some or all of the touch operations in the set of touch operations is located in the second display area.
[0266] Alternatively, as those skilled in the art will understand, Figure 20 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 20This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 20 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 20 The different configurations shown.
[0267] The memory 2002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the virtual button adjustment method and device in this embodiment of the invention. The processor 2004 executes various functional applications and data processing by running the software programs and modules stored in the memory 2002, thereby implementing the aforementioned virtual button adjustment method. The memory 2002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 2002 may further include memory remotely located relative to the processor 2004, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 2002 may be used, but is not limited to, to store information such as virtual buttons. As an example, such as... 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. Furthermore, it may include, but is not limited to, other module units in the virtual button adjustment device, which will not be described further in this example.
[0268] Optionally, the aforementioned transmission device 2006 is used to receive or send data via a network. Specific examples of the network may include wired and wireless networks. In one example, 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 example, the transmission device 2006 is a Radio Frequency (RF) module used for wireless communication with the Internet.
[0269] In addition, the aforementioned electronic device also includes: a display 2008 for displaying the aforementioned virtual buttons; and a connection bus 2010 for connecting the various module components in the aforementioned electronic device.
[0270] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.
[0271] According to one aspect of this application, a computer-readable storage medium is provided, from which a processor of a computer device reads computer instructions, and the processor executes the computer instructions, causing the computer device to perform the virtual button adjustment method provided in various alternative implementations of the virtual button adjustment aspect described above.
[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, Display a first virtual button that allows touch, wherein the display area of the first virtual button is a first display area;
[0274] S2, obtain a set of touch operations to be performed within the target area corresponding to the first virtual button;
[0275] S3, if a set 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 position of the set of touch operations, wherein the touch position of some or all of the touch operations in the set of touch operations is located in the second display area.
[0276] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0277] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0278] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0279] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0280] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0281] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0282] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0283] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for adjusting a virtual button, characterized in that, include: Display a first virtual button that allows touch input, wherein the display area of the first virtual button is a first display area; A set of touch operations executed within the target area corresponding to the first virtual button is obtained, wherein the target area represents the area where the set of touch operations contact the game interface, and the target area includes the edge area or outer area of the first display area; If a set 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 set of touch operations. Herein, the touch positions of some or all of the touch operations in the set of touch operations are located within the second display area. The set of touch operations not meeting the preset target conditions means that the number of touch operations in the set of touch operations is greater than a preset number threshold.
2. The method according to claim 1, characterized in that, The step of acquiring a set of touch operations performed within the target area corresponding to the first virtual button includes: The set of touch operations performed within a first edge region of the first display area are acquired, wherein the distance between a point in the first edge region and the center point of the first display area is greater than or equal to a first preset distance threshold; or The set of touch operations performed in a second edge region outside the first display area and connected to the first display area are acquired, wherein the distance between a point in the second edge region and the 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 region and the boundary line of the first display area is greater than or equal to a third preset distance threshold.
3. The method according to claim 2, characterized in that, The step of adjusting the display area from the first display area to the second display area includes: Upon receiving the set of touch operations performed within the first edge region, the display area of the first virtual button is moved from the first display area to the second display area, wherein the 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 distance between the touch positions of some or all of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area; or Upon receiving the set of touch operations performed within the first edge area, 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 distance between the touch position 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 them and the boundary line of the first display area; or Upon receiving the set of touch operations performed within the first edge area, 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 of the 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 of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area.
4. The method according to claim 2, characterized in that, The step of adjusting the display area from the first display area to the second display area includes: Upon receiving the set of touch operations performed within the second edge region, the display area of the first virtual button is moved from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or Upon receiving the set of touch operations performed within the second edge area, 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 of the touch operations in the set of touch operations are located within the second display area; or Upon receiving the set of touch operations performed within the second edge area, 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.
5. The method according to claim 2, characterized in that, The method further includes: When all touch operations in a set generate corresponding operation commands, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or When all of the touch operations in a set generate corresponding operation commands, the set of touch operations are executed consecutively, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or When all of the touch operations in a set generate corresponding operation instructions, the set of touch operations are touch operations executed 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.
6. The method according to claim 1, characterized in that, The step of acquiring a set of touch operations performed within the target area corresponding to the first virtual button includes: The set of touch operations performed in the target area outside the first display area and not connected to the first display area are acquired, wherein the distance between a point in the target area and the center point of the first display area is within a first distance range, or the distance between a point in the target area and the boundary line of the first display area is within a second distance range.
7. The method according to claim 6, characterized in that, The step of adjusting the display area from the first display area to the second display area includes: Move the display area of the first virtual button from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or Expand 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 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 position of some or all of the touch operations in the group of touch operations is located within the second display area.
8. The method according to claim 6, characterized in that, The method further includes: When none of the touch operations in a set generate a corresponding operation instruction, and the number of touch operations in the set exceeds a preset threshold, it is determined that the set of touch operations does not meet the preset target condition; or If none of the touch operations in a set generate a corresponding operation instruction, the set of touch operations is executed continuously, and the number of touch operations in the set exceeds a preset threshold, then the set of touch operations is determined to not meet the preset target condition; or If none of the touch operations in a set of touch operations generate corresponding operation instructions, the set of touch operations are touch operations executed within a preset time period, and the number of touch operations in the set of touch operations is greater than a preset number threshold, then the set of touch operations is determined to not meet the preset target conditions.
9. The method according to any one of claims 1 to 8, characterized in that, The step of adjusting the display area from the first display area to the second display area includes: 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 position of some or all of the touch operations in the group of touch operations, or is located at the touch position of one of the touch operations in the group of touch operations.
10. The method according to any one of claims 1 to 8, characterized in that, The method further includes: 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, which does not overlap with the second display area.
11. The method according to any one of claims 1 to 8, characterized in that, The method further includes: When the first game screen is displayed in the target game application, the first virtual button that allows touch is displayed, wherein the first virtual button is used to perform game operations in response to touch operation when the scope is on, and the first game screen is the game screen displayed when the scope is on; Obtain the set of touch operations performed within the target area corresponding to the first virtual button; If the set of touch operations does not meet the preset target conditions, the display area of the first virtual button will be adjusted from the first display area to the 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 scope is in the off state.
12. The method according to claim 11, characterized in that, The method further includes: When the game screen displayed by the target game application switches from the second game screen to the first game screen, at least one virtual button other than the first virtual button in the second game screen is hidden 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 buttons hidden in the first game screen are re-displayed in the second game screen.
13. The method according to any one of claims 1 to 8, characterized in that, The method further includes: When the first virtual button is used to adjust the view 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.
14. The method according to any one of claims 1 to 8, characterized in that, When the set of touch operations does not meet the preset target conditions, adjusting the display area of the first virtual button from the first display area to the second display area includes: If the set 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 set of touch operations.
15. The method according to any one of claims 1 to 8, characterized in that, When the set of touch operations does not meet the preset target conditions, adjusting the display area of the first virtual button from the first display area to the second display area includes: Determine whether the set of touch operations generates a corresponding operation command; If it is determined that the operation instruction was not generated, determine whether the failure to receive the operation instruction was due to a network problem; If it is determined that the operation instruction has been generated, determine whether the set of touch operations is targeted at the edge area of the target area; If it is determined that the failure to receive the operation command is not due to network issues or that the set of touch operations is targeting the edge area of the target area, the display area of the first virtual button is adjusted from the first display area to the second display area.
16. A virtual button adjustment device, characterized in that, include: The display module is used to display a first virtual button that allows touch input, wherein the display area of the first virtual button is a first display area; The acquisition module is used to acquire a set of touch operations performed in the target area corresponding to the first virtual button, wherein the target area represents the area where the set of touch operations contact the game interface, and the target area includes the edge area or the outer area of the first display area; 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. The touch positions of some or all of the touch operations in the group of touch operations are located within the second display area. The group of touch operations not meeting the preset target conditions means that the number of touch operations in the group of touch operations is greater than a preset number threshold.
17. The apparatus according to claim 16, characterized in that, The device is used to acquire a set of touch operations performed in the target area corresponding to the first virtual button in the following manner: The set of touch operations performed within a first edge region of the first display area are acquired, wherein the distance between a point in the first edge region and the center point of the first display area is greater than or equal to a first preset distance threshold; or The set of touch operations performed in a second edge region outside the first display area and connected to the first display area are acquired, wherein the distance between a point in the second edge region and the 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 region and the boundary line of the first display area is greater than or equal to a third preset distance threshold.
18. The apparatus according to claim 17, characterized in that, The device is used to adjust the display area from the first display area to the second display area in the following manner: Upon receiving the set of touch operations performed within the first edge region, the display area of the first virtual button is moved from the first display area to the second display area, wherein the 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 distance between the touch positions of some or all of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area; or Upon receiving the set of touch operations performed within the first edge area, 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 distance between the touch position 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 them and the boundary line of the first display area; or Upon receiving the set of touch operations performed within the first edge area, 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 of the 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 of the touch operations and the center point of the second display area is less than the distance between them and the center point of the first display area.
19. The apparatus according to claim 17, characterized in that, The device is used to adjust the display area from the first display area to the second display area in the following manner: Upon receiving the set of touch operations performed within the second edge region, the display area of the first virtual button is moved from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or Upon receiving the set of touch operations performed within the second edge area, 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 of the touch operations in the set of touch operations are located within the second display area; or Upon receiving the set of touch operations performed within the second edge area, 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.
20. The apparatus according to claim 17, characterized in that, The device is also used for: When all of the touch operations in a set of touch operations generate corresponding operation instructions, 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 condition. or When all of the touch operations in a set generate corresponding operation instructions, the set of touch operations are consecutively executed touch operations, 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. or When all of the touch operations in a set generate corresponding operation instructions, the set of touch operations are touch operations executed 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.
21. The apparatus according to claim 16, characterized in that, The device is used to acquire a set of touch operations performed in the target area corresponding to the first virtual button in the following manner: The set of touch operations performed in the target area outside the first display area and not connected to the first display area are acquired, wherein the distance between a point in the target area and the center point of the first display area is within a first distance range, or the distance between a point in the target area and the boundary line of the first display area is within a second distance range.
22. The apparatus according to claim 21, characterized in that, The device is used to adjust the display area from the first display area to the second display area in the following manner: Move the display area of the first virtual button from the first display area to the second display area, wherein some or all of the touch operations in the set of touch operations are located within the second display area; or Expand 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 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 position of some or all of the touch operations in the group of touch operations is located within the second display area.
23. The apparatus according to claim 21, characterized in that, The device is also used for: When none of the touch operations in a set of touch operations generate corresponding operation instructions, 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 condition. or If none of the touch operations in a set of touch operations generate corresponding operation instructions, the set of touch operations are continuously executed touch operations, and the number of touch operations in the set of touch operations is greater than a preset number threshold, then the set of touch operations is determined to not meet the preset target conditions. or If none of the touch operations in a set of touch operations generate corresponding operation instructions, the set of touch operations are touch operations executed within a preset time period, and the number of touch operations in the set of touch operations is greater than a preset number threshold, then the set of touch operations is determined to not meet the preset target conditions.
24. The apparatus according to any one of claims 16 to 23, characterized in that, The device is used to adjust the display area from the first display area to the second display area in the following manner: 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 position of some or all of the touch operations in the group of touch operations, or is located at the touch position of one of the touch operations in the group of touch operations.
25. The apparatus according to any one of claims 16 to 23, 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 the third display area, which does not overlap with the second display area.
26. The apparatus according to any one of claims 16 to 23, characterized in that, The device is also used for: When the first game screen is displayed in the target game application, the first virtual button that allows touch is displayed, wherein the first virtual button is used to perform game operations in response to touch operation when the scope is on, and the first game screen is the game screen displayed when the scope is on; Obtain the set of touch operations performed within the target area corresponding to the first virtual button; If the set of touch operations does not meet the preset target conditions, the display area of the first virtual button will be adjusted from the first display area to the 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 scope is in the off state.
27. The apparatus according to claim 26, 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, at least one virtual button other than the first virtual button in the second game screen is hidden 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 buttons hidden in the first game screen are re-displayed in the second game screen.
28. The apparatus according to any one of claims 16 to 23, characterized in that, The device is also used for: When the first virtual button is used to adjust the view 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.
29. The apparatus according to any one of claims 16 to 23, characterized in that, The device is used to adjust the display area of the first virtual button from the first display area to the second display area when a set of touch operations does not meet the preset target conditions in the following manner: If the set 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 set of touch operations.
30. The apparatus according to any one of claims 16 to 23, characterized in that, The device is used to adjust the display area of the first virtual button from the first display area to the second display area when a set of touch operations does not meet the preset target conditions in the following manner: Determine whether the set of touch operations generates a corresponding operation command; If it is determined that the operation instruction was not generated, determine whether the failure to receive the operation instruction was due to a network problem; If it is determined that the operation instruction has been generated, determine whether the set of touch operations is targeted at the edge area of the target area; If it is determined that the failure to receive the operation command is not due to network issues or that the set of touch operations is targeting the edge area of the target area, the display area of the first virtual button is adjusted from the first display area to the second display area.
31. 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 computer at runtime as described in any one of claims 1 to 15.
32. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method described in any one of claims 1 to 15.
33. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 15 through the computer program.