CN113996052B - Virtual button adjustment method and device, storage medium and electronic device - Google Patents

Virtual button adjustment method and device, storage medium and electronic device

Info

Publication number
CN113996052B
CN113996052B CN202111264539.4A CN202111264539A CN113996052B CN 113996052 B CN113996052 B CN 113996052B CN 202111264539 A CN202111264539 A CN 202111264539A CN 113996052 B CN113996052 B CN 113996052B
Authority
CN
China
Prior art keywords
display area
touch operations
touch
group
virtual button
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111264539.4A
Other languages
Chinese (zh)
Other versions
CN113996052A (en
Inventor
李雯懿
潘佳绮
邓颖
余伟祥
毛克
杨泽锋
杨芸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111264539.4A priority Critical patent/CN113996052B/en
Publication of CN113996052A publication Critical patent/CN113996052A/en
Application granted granted Critical
Publication of CN113996052B publication Critical patent/CN113996052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/22Setup operations, e.g. calibration, key configuration or button assignment
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1018Calibration; Key and button assignment
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1068Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad
    • A63F2300/1075Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad using a touch screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种虚拟按钮的调整方法和装置、存储介质及电子设备。其中,该方法包括:显示允许触控的第一虚拟按钮,其中,第一虚拟按钮的显示区域为第一显示区域;获取在第一虚拟按钮对应的目标区域内执行的一组触控操作;在一组触控操作不满足预设目标条件的情况下,将第一虚拟按钮的显示区域从第一显示区域调整为第二显示区域,其中,一组触控操作中的部分或全部触控操作的触控位置位于第二显示区域内。本发明解决了相关技术中存在的虚拟按钮的调整方式复杂,导致调整效率较低的技术问题。

The present invention discloses a method and device for adjusting a virtual button, a storage medium, and an electronic device. The method comprises: displaying a first virtual button that allows touch control, wherein the display area of the first virtual button is a first display area; obtaining a set of touch operations performed within a target area corresponding to the first virtual button; 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, 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. The present invention solves the technical problem in the related art that the adjustment method for virtual buttons is complex, resulting in low adjustment efficiency.

Description

Virtual button adjusting method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for adjusting a virtual button, a storage medium, and an electronic device.
Background
In the prior art, the layout of the button controls of the game application is designed according to the common operation habits of players, and can meet the common operation requirements of most players.
However, when the player operates in the fight, the layout of the virtual buttons cannot be adjusted in time, which results in misoperation and poor emotional experience.
In the prior art, a player can only adjust the virtual button in idle time, and cannot adjust in time when the operation encounters a problem, and in addition, when the player adjusts the virtual button, the problem that the adjustment is not accurate enough and the expected position deviation is large can also occur.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting a virtual button, a storage medium and electronic equipment, which at least solve the technical problem of low adjustment efficiency caused by complex adjustment modes of the virtual button in the related technology.
According to one aspect of the embodiment of the invention, a method for adjusting a virtual button is provided, which comprises the steps of displaying a first virtual button allowing touch, wherein a display area of the first virtual button is a first display area, acquiring a group of touch operations executed in a target area corresponding to the first virtual button, and adjusting the display area of the first virtual button from the first display area to a second display area towards the direction of the touch position of the group of touch operations under the condition that the group of touch operations do not meet preset target conditions, wherein the touch position of part or all of the touch operations in the group of touch operations is located in the second display area.
According to another aspect of the embodiment of the present invention, there is also provided an adjustment device for a virtual button, including:
the display module is used for displaying a first virtual button allowing touch control, wherein the display area of the first virtual button is a first display area;
the acquisition module is used for acquiring a group of touch operation executed in the target area corresponding to the first virtual button;
The adjustment module is configured to adjust, when the set of touch operations does not meet a preset target condition, a display area of the first virtual button from the first display area to a second display area toward a direction in which touch positions of the set of touch operations are located, where touch positions of some or all of the set of touch operations are located in the second display area.
Optionally, the device is configured to obtain a set of touch operations performed in a target area corresponding to the first virtual button by:
acquiring the group of touch operations performed in a first edge area in the first display area, wherein the distance between a point in the first edge area and the center point of the first display area is greater than or equal to a first preset distance threshold value, or
And acquiring the group of touch operations which are executed in a second edge area outside the first display area and connected with the first display area, wherein the distance between a point in the second edge area and the central point of the first display area is larger than or equal to a second preset distance threshold value, or the distance between a point in the second edge area and the boundary line of the first display area is larger than or equal to a third preset distance threshold value.
Optionally, the device is configured to adjust the display area of the first virtual button from the first display area to the second display area by:
moving a display area of the first virtual button from the first display area to the second display area in the case that the set of touch operations performed in the first edge area is acquired, wherein touch positions of part or all of the set of touch operations are located in the second display area, and a distance between the touch positions of the part or all of touch operations and a center point of the second display area is smaller than a distance between the touch positions of the part or all of touch operations and the center point of the first display area, or
Expanding the display area of the first virtual button from the first display area to the second display area in the case that the group of touch operations performed in the first edge area is acquired, wherein the center point of the second display area is positioned at the same position as the center point of the first display area, and the distance between the touch position of part or all of the group of touch operations and the boundary line of the second display area is larger than the distance between the touch position and the boundary line of the first display area, or
And under the condition that the group of touch operations executed in the first edge area is acquired, moving a display area of the first virtual button from the first display area to the second display area, wherein the area of the second display area is larger than that of the first display area, touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area, and the distance between the touch positions of the part or all of the touch operations and the center point of the second display area is smaller than that between the touch positions of the part or all of the touch operations and the center point of the first display area.
Optionally, the device is configured to adjust the display area of the first virtual button from the first display area to the second display area by:
Moving a display area of the first virtual button from the first display area to the second display area under the condition that the group of touch operations executed in the second edge area is acquired, wherein touch positions of part or all of the group of touch operations are positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area under the condition that the group of touch operations executed in the second edge area is acquired, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch position of part or all of the group of touch operations is positioned in the second display area, or
And under the condition that the group of touch operations executed in the second edge area are acquired, moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
Optionally, the device is further configured to:
when the group of touch operations generate corresponding operation instructions and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet the preset target condition, or
When the group of touch operations generate corresponding operation instructions, the group of touch operations are continuously executed touch operations, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet the preset target condition, or
And when the group of touch operations generate corresponding operation instructions, the group of touch operations are the touch operations executed within a preset time period, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition.
Optionally, the device is configured to obtain a set of touch operations performed in a target area corresponding to the first virtual button by:
And acquiring the group of touch operations performed in the target area which is outside the first display area and is not connected with the first display area, wherein the distance between the point in the target area and the central point of the first display area is within a first distance range, or the distance between the point in the target area and the boundary line of the first display area is within a second distance range.
Optionally, the device is configured to adjust the display area of the first virtual button from the first display area to the second display area by:
Moving the display area of the first virtual button from the first display area to the second display area, wherein the touch position of part or all of the group of touch operations is positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch position of part or all of the touch operations in the group of touch operations is positioned in the second display area, or
And moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
Optionally, the device is further configured to:
When the group of touch operations do not generate corresponding operation instructions and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet the preset target condition, or
When the group of touch operations do not generate corresponding operation instructions, the group of touch operations are continuously executed touch operations, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition, or
And when the group of touch operations do not generate corresponding operation instructions, the group of touch operations are the touch operations executed within the preset time length, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition.
Optionally, the adjusting the display area of the first virtual button from the first display area to the second display area includes:
And adjusting the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch position of the part or all of the touch operations in the group of touch operations or is positioned at the touch position of one of the part or all of the touch operations.
Optionally, the device is further configured to:
and when the display area of the second virtual button is overlapped or partially overlapped with the second display area, adjusting the display area of the second virtual button to a third display area, wherein the third display area is not overlapped with the second display area.
Optionally, the device is further configured to:
displaying a first virtual button allowing touch control when a first game picture is displayed in a target game application, wherein the first virtual button is used for responding to touch control operation to execute game operation when the sighting telescope is in an on state, and the first game picture is a game picture displayed when the sighting telescope is in the on state;
Acquiring the group of touch operations executed in the target area corresponding to the first virtual button;
When the group of touch operations do not meet the preset target conditions, adjusting the display area of the first virtual button from the first display area to a second display area;
And when the game picture displayed by the target game application is switched from the first game picture to a second game picture, adjusting the display area of the first virtual button from the second display area to the first display area, wherein the second game picture is the game picture displayed by the sighting telescope in a closed state.
Optionally, the device is further configured to:
hiding at least one virtual button in the second game screen except the first virtual button in the first game screen when the game screen displayed by the target game application is switched from the second game screen to the first game screen;
and when the game picture displayed by the target game application is switched from the first game picture to a second game picture, redisplaying the virtual button hidden in the first game picture in the second game picture.
Optionally, the device is further configured to:
and when the first virtual button is used for adjusting the visual angle of the target virtual character, adjusting the display area of the first virtual button from the first display area to the second display area according to the operation direction of the group of touch operation.
According to yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described method for adjusting a virtual button when running.
According to yet another aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the adjustment method of the virtual button as above.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to execute the above-described adjustment method of a virtual button by the computer program.
In the embodiment of the invention, a first virtual button allowing touch is displayed, wherein a display area of the first virtual button is the first display area, a group of touch operations executed in a target area corresponding to the first virtual button is acquired, and under the condition that the group of touch operations do not meet preset target conditions, the display area of the first virtual button is adjusted from the first display area to the second display area towards the direction where the touch positions of the group of touch operations are located, wherein the mode that the touch positions of part or all of the touch operations in the group of touch operations are located in the second display area is achieved, and by judging whether the group of touch operations meet the preset target conditions, when the preset target conditions are not met, the display area of the first virtual button is adjusted from the first display area towards the touch positions of the group of touch operations to the second display area, thereby achieving the purpose of timely adjusting the display area of the first virtual button according to the touch positions of the group of touch operations, further achieving the technical effect of simplifying the adjustment mode of the virtual button, improving the adjustment efficiency of the virtual button, and further solving the technical problem of low adjustment efficiency of the related virtual buttons.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative virtual button adjustment method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative method of adjusting a virtual button according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 13 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 14 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 15 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 16 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 17 is a schematic diagram of yet another alternative method of adjustment of virtual buttons according to an embodiment of the present invention;
FIG. 18 is a schematic diagram of an alternative virtual button adjustment device according to an embodiment of the present invention;
FIG. 19 is a schematic diagram of an alternative virtual button adjustment product according to an embodiment of the present invention;
fig. 20 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in the course of describing the embodiments of the application are applicable to the following explanation:
The self-adaption is a process of automatically adjusting a processing method, a processing sequence, processing parameters, boundary conditions or constraint conditions according to the obtained data characteristics in the processing and analyzing processes so as to adapt to the obtained data characteristics and structural characteristics to obtain the optimal processing effect.
The invention is illustrated below with reference to examples:
According to an aspect of the embodiment of the present invention, there is provided a method for adjusting a virtual button, optionally, in this embodiment, the method for adjusting a virtual button may be applied to a hardware environment composed of a server 101 and a terminal device 103 as shown in fig. 1. As shown in fig. 1, a server 101 is connected to a terminal 103 through a network, and may be used to provide services to a terminal device or an application installed on the terminal device, which may be a video application, an instant messaging application, a browser application, an educational application, a game application, or the like. The database 105 may be provided on a server or independent of the server, and is used for providing a data storage service for the server 101, for example, a game data storage server, where the network may include, but is not limited to, a wired network, a wireless network, where the wired network includes a local area network, a metropolitan area network, and a wide area network, the wireless network includes bluetooth, WIFI, and other networks for implementing wireless communication, the terminal device 103 may be a terminal configured with an application program, and may include, but is not limited to, at least one of a Mobile phone (such as an Android Mobile phone, an iOS Mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile INTERNET DEVICES, a Mobile internet device), a PAD, a desktop computer, a smart tv, etc., and the server may be a single server, a server cluster including a plurality of servers, or a cloud server, and the game application 107 using the adjustment method of the virtual button is displayed by the terminal device 103.
As shown in fig. 1, the above-mentioned adjustment method of the virtual button may be implemented in the terminal device 103 by the following steps:
s1, displaying a first virtual button allowing touch control on a terminal device, wherein a display area of the first virtual button is a first display area;
S2, acquiring a group of touch operations executed in a target area corresponding to the first virtual button on the terminal equipment;
And S3, under the condition that a group of touch operations do not meet preset target conditions, adjusting the display area of the first virtual button from the first display area to the second display area towards the direction where the touch positions of the group of touch operations are located, wherein the touch positions of part or all of the touch operations in the group of touch operations are located in the second display area.
Alternatively, in this embodiment, the above-mentioned adjustment method of the virtual button may also be implemented by a server, for example, in the server 101 shown in fig. 1, or by a user terminal and a server together.
The above is merely an example, and the present embodiment is not particularly limited.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for adjusting the virtual button includes:
s202, displaying a first virtual button allowing touch control, wherein a display area of the first virtual button is a first display area;
s204, acquiring a group of touch operations executed in a target area corresponding to the first virtual button;
s206, under the condition that a group of touch operations do not meet the preset target condition, the display area of the first virtual button is adjusted from the first display area to the second display area towards the direction where the touch position of the group of touch operations is located, wherein the touch position of part or all of the touch operations in the group of touch operations is located in the second display area.
Alternatively, in this embodiment, the above-mentioned adjustment method of the virtual button may be applied to shooting game applications including, but not limited to, shooting game applications installed on a Mobile phone (such as an Android Mobile phone, iOS Mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile INTERNET DEVICES, mobile internet device), a PAD, a desktop computer, a smart tv, etc., which include a first person shooting game application, a third person shooting game application, and a shooting game application capable of switching between the first person and the third person, etc., where fig. 3 is a schematic diagram of an adjustment method of a virtual button according to an embodiment of the present invention, as shown in fig. 3, the application display interface may be divided into a first person display interface 301 and a third person display interface 303, and a display interface including, but not limited to, switching between the first person and the third person using a viewing angle switching button (one expression form of the above-mentioned virtual button), and a first virtual object controlled by a virtual operation may be displayed in the target game application using an environment as shown in fig. 3.
Alternatively, in the present embodiment, the types of the above game applications may include, but are not limited to, at least one of a Two-dimensional (2D) game application, a Three-dimensional (3D) game application, a Virtual Reality (VR) game application, an augmented Reality (Augmented Reality AR) game application, and a Mixed Reality (MR) game application.
Optionally, in this embodiment, the first virtual button that allows touch control may include, but is not limited to, rendering by the terminal according to game application data sent by the server, and may also include, but is not limited to, rendering by the terminal according to stored data of the game application.
Alternatively, in this embodiment, the first virtual buttons may include buttons not limited to the touch required by the player to perform the game operation, for example, a release button of virtual skills, a use button of virtual props, an interactive button of virtual characters, and a game virtual button that allows touch in the game application currently or in the future.
Specifically, fig. 4 is a schematic diagram of another adjustment method of a virtual button according to an embodiment of the present invention, as shown in fig. 4, a game screen 402 is displayed on a game of a shooting game application, where the game screen 402 includes a virtual button 404, a virtual button 406, and a virtual button 408, the virtual button 404 is a waist shooting button, that is, a player clicks the virtual button 404 to control a current virtual character to shoot in the waist shooting mode, the virtual button 406 is a normal shooting button, that is, the player clicks the virtual button 406 to control the current virtual character to shoot in the normal shooting mode, and the virtual button 408 is a bullet replacing button, that is, the player clicks the virtual button 408 to control the current virtual character to start replacing a bullet.
For example, during game play, the virtual button 404 may be in use, and thus, the virtual character controlled by the player may encounter an emergency, so the player may need to click the virtual button 404 quickly, while in the prior art, the position of the virtual button 404 is generally a preconfigured position before the game starts, or when the player does not encounter an emergency, the player adjusts the position actively adjusted by the page through the button position, but in an emergency, whether the set virtual button is suitable for the player cannot be determined, and only the touch is performed towards the area where the virtual button 404 is located, and the touch operation may fail due to missing the area where the virtual button 404 is located.
In this embodiment, after a set of touch operations performed in a target area (an area around a touch position shown in fig. 4) is acquired, when the set of touch operations do not satisfy a preset target condition, the display area of the first virtual button is adjusted from the first display area to the second display area toward the direction in which the touch position of the set of touch operations is located, so that the second display area is more suitable for the current player's use habit, and the adjustment process may be real-time automatic adjustment during the game playing process, so that the interaction flow of adjusting the virtual buttons is reduced, and the adjustment efficiency of the virtual buttons is improved.
Alternatively, in this embodiment, the first display area may include, but is not limited to, a display area preconfigured by the first virtual button, and may be displayed in any area that allows touch in the game screen, and the target area may include, but is not limited to, an area where a set of touch operations contact the game interface, for example, an area pressed on the display screen by a finger.
Optionally, in this embodiment, the set of touch operations may include, but is not limited to, clicking, long pressing, sliding, double clicking, and the like.
Optionally, in this embodiment, the set of touch operations not meeting the preset target condition may include, but is not limited to, a touch position of the set of touch operations being at an edge of the first display area, or a touch position of the set of touch operations being outside the first display area, in other words, the set of touch operations not meeting the preset target condition may include, but is not limited to, a touch position of the set of touch operations being less than a predetermined value from a center of the first display area.
For example, fig. 5 is a schematic diagram of another adjustment method of a virtual button according to an embodiment of the present invention, as shown in fig. 5, the first virtual button is displayed at a first display area 504 in a game interface 502, and when a target area corresponding to a group of touch operations is located in an edge area 506 of the first display area 504, although the touch operation still implements the touch of the first virtual button, since the touch position is far from the first display area 504, a situation that the touch position cannot fall on the first display area 504 is easy to occur later, so it is determined that the group of touch operations does not meet a preset target condition.
For example, fig. 6 is a schematic diagram of another adjustment method of a virtual button according to an embodiment of the present invention, as shown in fig. 6, the first virtual button is displayed at a first display area 604 in a game interface 602, and when a target area corresponding to a set of touch operations is located in an outer area 606 of the first display area 604, since the touch operation fails to implement the touch first virtual button, the touch position is far from the first display area 604, and thus it is determined that the set of touch operations does not meet a preset target condition.
Alternatively, 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 the 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, a distance between a point in the edge area and a center point of the first display area is greater than or equal to a preset distance threshold, a distance between a point in the outer area and a center point of the first display area is greater than or equal to a preset distance threshold, or a distance between a point in the outer area and a boundary line of the display area is greater than or equal to a preset distance threshold, or the like.
Optionally, in this embodiment, the touch positions of some or all of the set of touch operations are located in the second display area, which may include, but is not limited to, the touch positions of the set of touch operation partial areas being in the second display area or the touch positions of all of the set of touch operations being in the second display area.
For example, fig. 7 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, as shown in fig. 7, a second adjusted display area is displayed in the game interface 702, and the touch positions of the set of touch operations may be in a partial area shown in fig. 7.
For example, fig. 8 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, as shown in fig. 8, a second adjusted display area is displayed in the game interface 802, and the touch positions of the set of touch operations may be in all the areas shown in fig. 8.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, the first virtual button allowing touch is displayed, the display area of the first virtual button is the first display area, a group of touch operations executed in the target area corresponding to the first virtual button are acquired, under the condition that the group of touch operations do not meet the preset target condition, the display area of the first virtual button is adjusted from the first display area to the second display area towards the direction where the touch positions of the group of touch operations are located, the mode that the touch positions of part or all of the touch operations in the group of touch operations are located in the second display area is adopted, whether the group of touch operations meet the preset target condition is judged, and when the preset target condition is not met, the display area of the first virtual button is adjusted from the first display area towards the direction where the touch positions of the group of touch operations are located to the second display area, so that the purpose of timely adjusting the display area of the first virtual button according to the touch positions of the group of touch operations is achieved, the adjustment mode of the virtual button is simplified, the technical effect of improving the adjustment efficiency of the virtual button is achieved, and the technical problem that the related technical adjustment mode of the virtual button is low in the virtual efficiency is solved.
As an alternative, acquiring a set of touch operations performed in a target area corresponding to the first virtual button includes:
Acquiring a group of touch operations performed in a first edge area in a first display area, wherein a distance between a point in the first edge area and a center point of the first display area is greater than or equal to a first preset distance threshold, or
A set of touch operations performed in a second edge region outside the first display region and contiguous to the first display region is acquired, wherein a distance between a point in the second edge region and a center point of the first display region is greater than or equal to a second preset distance threshold, or a distance between a point in the second edge region and a boundary line of the first display region is greater than or equal to a third preset distance threshold.
Optionally, in this embodiment, the first preset distance threshold, the second preset distance threshold, and the third preset distance threshold may include, but are not limited to, preset unified or separated by a system, and may also be unified or separated by a player before entering a game or after entering a game, where the magnitudes of the first preset distance threshold, the second preset distance threshold, and the third preset distance threshold may be flexibly adjusted.
Optionally, in this embodiment, fig. 9 is a schematic diagram of an adjustment method of a virtual button according to another embodiment of the present invention, as shown in fig. 9, a first display area is displayed in a game interface 902, and when a touch position of a set of touch operations is located inside or intersects the first display area and a distance between the touch position and a center point of the first display area is greater than or equal to the first distance threshold, a target area corresponding to the set of touch operations is determined as the first edge area.
Optionally, in this embodiment, fig. 10 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, as shown in fig. 10, a first display area is displayed in a game interface 1002, and when a touch position of a set of touch operations is located outside the first display area and a distance between the touch position and a center point of the first display area is greater than or equal to the second distance threshold or a distance between the touch position and a boundary of the first display area is greater than or equal to the third distance threshold, a target area corresponding to the set of touch operations is determined as the second edge area.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, when a group of touch operations are located in the first display area but not precisely, or when a group of touch operations are located outside the first display area and are difficult to realize, the first display area can be adjusted towards the direction where the touch positions of a group of touch operations are located, so that the second display area is obtained, the purpose of timely adjusting the display area of the first virtual button according to the touch positions of a group of touch operations is achieved, the technical effects of simplifying the adjustment mode of the virtual button and improving the adjustment efficiency of the virtual button are achieved, and the technical problem that the adjustment mode of the virtual button is complex and low in adjustment efficiency in the related art is solved.
As an alternative, adjusting the display area of the first virtual button from the first display area to the second display area includes:
Moving the display area of the first virtual button from the first display area to the second display area under the condition that a group of touch operations performed in the first edge area are acquired, wherein the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area, and the distance between the touch positions of part or all of the touch operations and the center point of the second display area is smaller than the distance between the touch positions and the center point of the first display area, or
Expanding the display area of the first virtual button from the first display area to a second display area in the case that a group of touch operations performed in the first edge area is acquired, wherein the center point of the second display area is positioned at the same position as the center point of the first display area, and the distance between the touch position of part or all of the touch operations in the group of touch operations and the boundary line of the second display area is larger than the distance between the touch position and the boundary line of the first display area, or
And under the condition that a group of touch operations executed in the first edge area are acquired, moving the display area of the first virtual button from the first display area to the second display area, wherein the area of the second display area is larger than that of the first display area, the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area, and the distance between the touch positions of part or all of the touch operations and the center point of the second display area is smaller than the distance between the touch positions of part or all of the touch operations and the center point of the first display area.
As an alternative, adjusting the display area of the first virtual button from the first display area to the second display area includes:
Under the condition that a group of touch operations executed in the second edge area are acquired, the display area of the first virtual button is moved from the first display area to the second display area, wherein the touch position of part or all of the touch operations in the group of touch operations is positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area under the condition that a group of touch operations executed in the second edge area are acquired, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area, or
And under the condition that a group of touch operations executed in the second edge area are acquired, moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
Alternatively, in this embodiment, the 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 a direction where a touch position of a touch operation is located, so as to obtain the second display area, and may also include, but is not limited to, expanding the first display area along the direction where the touch position of the touch operation is located, so as to obtain the second display area.
For example, fig. 11 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, as shown in fig. 11, a first display area that is not adjusted is displayed in a game interface 1102, and when a touch position is detected to be located at the left side of the first display area, the first display area is moved to the left, so as to obtain a second display area displayed in a game screen 1104.
For example, fig. 12 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, as shown in fig. 12, a first display area that is not adjusted is displayed in a game interface 1202, and when a touch position is detected to be located at the left side of the first display area, the first display area is enlarged or uniformly enlarged to the left, so as to obtain a second display area displayed in a game screen 1204.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, the method further comprises one of the following:
when a group of touch operations generate corresponding operation instructions and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet a preset target condition, or
When a group of touch operations generate corresponding operation instructions, the group of touch operations are continuously executed touch operations, and the number of the touch operations in the group of touch operations is greater than a preset number threshold value, determining that the group of touch operations does not meet a preset target condition, or
When the group of touch operations generate corresponding operation instructions, the group of touch operations are the touch operations executed within the preset time period, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, it is determined that the group of touch operations do not meet the preset target condition.
As an alternative, acquiring a set of touch operations performed in a target area corresponding to the first virtual button includes:
A set of touch operations performed within a target area outside of and not contiguous to the first display area is acquired, wherein a distance between a point in the target area and a center point of the first display area is within a first distance range or a distance between a point in the target area and a boundary line of the first display area is within a second distance range.
As an alternative, adjusting the display area of the first virtual button from the first display area to the second display area includes:
moving the display area of the first virtual button from the first display area to the second display area, wherein the touch position of part or all of the touch operations in the group of touch operations is positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to a second display area, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch positions of part or all of the touch operations in a group of touch operations are positioned in the second display area, or
And moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in one group of touch operations are positioned in the second display area.
Alternatively, in this embodiment, the 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 a position of the first display area, so as to obtain the second display area.
Optionally, in this embodiment, the expanding the display area of the first virtual button from the first display area to the second display area, where a center point of the second display area and a center point of the first display area are located at the same position, and a touch position of a part or all of the touch operations in the group of touch operations is located in the second display area may include, but is not limited to, adjusting a size of the first display area, so as to obtain the second display area.
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 is not limited to, uniformly expanding the first display area into the second display area, and taking the first display area as a circle as an example, the second display area is a circle having 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.
Optionally, in this embodiment, the center point of the second display area and the center point of the first display area are located at different positions, and the area of the second display area is larger than the area of the first display area may include, but is not limited to, adjusting the position and the size of the first display area at the same time, so as to obtain the second display area.
As an alternative, the method further comprises one of the following:
When none of the touch operations generates a corresponding operation instruction and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet a preset target condition or
When none of the touch operations generates a corresponding operation instruction, one of the touch operations is a continuously executed touch operation, and the number of the touch operations in the one touch operation is greater than a preset number threshold, determining that the one touch operation does not meet a preset target condition, or
And determining that the group of touch operations do not meet the preset target condition when the group of touch operations do not generate corresponding operation instructions, the group of touch operations are performed within the preset time period, and the number of the touch operations in the group of touch operations is larger than a preset number threshold.
Optionally, in this embodiment, the operation instruction may include, but is not limited to, an operation instruction associated with the first virtual button, where the number of touch operations in the set of touch operations is greater than a preset number threshold may include, but is not limited to, a system detecting that none of the touch operations by the player exceeds the predetermined number threshold generates an operation instruction, for example, the player clicks an external area of the first virtual button 3 times, resulting in an operation instruction that does not trigger the first virtual button.
Alternatively, in this embodiment, the number of touch operations in the set of touch operations being greater than the preset number threshold may include, but is not limited to, the system detecting that none of the continuous touch operations of the player exceeding the preset number threshold generates an operation instruction, for example, the player continuously clicks the outer area of the first virtual button 3 times, resulting in an operation instruction that does not trigger the first virtual button.
Alternatively, in this embodiment, the number of touch operations in the set of touch operations being greater than the preset number threshold may include, but is not limited to, the system detecting that none of the continuous touch operations of the player exceeding the preset number threshold generates an operation instruction, for example, the player presses an external area of the first virtual button for 5 seconds, resulting in an operation instruction that does not trigger the first virtual button.
As an alternative, adjusting the display area of the first virtual button from the first display area to the second display area includes:
And adjusting 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 the center point of the touch position of part or all of the touch operations in a group of touch operations or is positioned on the touch position of one of the part or all of the touch operations.
Optionally, in this embodiment, when the touch operation includes multiple times, the first display area is adjusted to the second display area at a certain time or last time or first time, or when the touch operation includes a duration, the first display area is adjusted to the second display area at a certain time point or last time point or first time point.
As an alternative, the method further comprises:
and when the display area of the second virtual button is overlapped or partially overlapped with the second display area, adjusting the display area of the second virtual button to a third display area, wherein the third display area is not overlapped with the second display area.
Alternatively, in this embodiment, when a plurality of virtual buttons are included on the game screen, 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, so that the triggering of the first virtual button or the second virtual button is affected, 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 may be adjusted to the third display area, and the third display area does not overlap with the second display area, and when the first virtual button moves from the first display area to the second display area, the second virtual button may be moved in a manner of moving the first virtual button, for example, the first display area is moved to the left by 5mm to obtain the second display area, and the second display area overlaps with the display area of the second virtual button, so that the second virtual button is also moved to the left by 5mm to avoid overlapping.
As an alternative, the method further comprises:
displaying a first virtual button allowing touch control when a first game picture is displayed in a target game application, wherein the first virtual button is used for responding to touch control operation to execute game operation when the sighting telescope is in an on state, and the first game picture is a game picture displayed when the sighting telescope is in the on state;
Acquiring the group of touch operations executed in the target area corresponding to the first virtual button;
When the group of touch operations do not meet the preset target conditions, adjusting the display area of the first virtual button from the first display area to a second display area;
And when the game picture displayed by the target game application is switched from the first game picture to a second game picture, adjusting the display area of the first virtual button from the second display area to the first display area, wherein the second game picture is the game picture displayed by the sighting telescope in a closed state.
Optionally, in this embodiment, the first game screen may include, but is not limited to, a game screen after the scope is turned on in the target game application, and the user performs an interactive operation on the virtual button for turning on the scope to switch the game screen to the target screen (corresponding to the first game screen), where the first game screen includes, but is not limited to, the first virtual button for shooting, and may include, but is not limited to, the first virtual button for viewing angle adjustment, and since the focus of the user is an enemy in the field of view, a set of touch operations on the first virtual button may not meet a preset condition (for example, pressing a place by mistake or pressing a place by edge), the user always presses a mistake and may not effectively hit an enemy, and the process of re-searching for the key position is also easily attacked by other virtual characters, which results in poor use efficiency of the virtual button and poor game experience.
Therefore, in the application, the display area of the first virtual button for shooting and the display area of the first virtual button for adjusting the visual angle can be automatically adjusted in the open state of the sighting telescope, the first display area is adjusted to be a second display area, after the open state is finished, the determined position of the first virtual button is restored to the original position, and the second display area is adjusted to be the first display area, wherein the second game picture is a game picture after the open state is finished, and the game picture can comprise but is not limited to a game picture before the sighting telescope is started or a default game picture of a target game application.
For example, fig. 13 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, and as shown in fig. 13, the method for adjusting a virtual button may include, but is not limited to, the following steps:
s1, displaying a second game picture in a target game application, and executing touch operation on a sighting telescope starting button;
s2, switching the second game picture to the first game picture in the target game application, and executing touch operation on the shooting button 1302 to start shooting;
S3, when a group of touch operations performed on the shooting button 1302 are detected not to meet the preset target conditions, adjusting the display area of the shooting button 1302 from the first display area to the second display area (the shooting button 1302 is moved left if the touch position of the group of touch operations is on the left side of the shooting button 1302), namely the shooting button 1304 shown in FIG. 13;
S4, when the player needs to close the sighting telescope, executing touch operation on the view angle switching button;
S5, in response to performing the touch operation on the view angle switching button, the game screen is adjusted from the first game screen to the second game screen, and the shoot button 1304 is moved to the position of the shoot button 1302, that is, the second display area is adjusted to the first display area.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, the method further comprises:
hiding at least one virtual button in the second game screen except the first virtual button in the first game screen when the game screen displayed by the target game application is switched from the second game screen to the first game screen;
and when the game picture displayed by the target game application is switched from the first game picture to a second game picture, redisplaying the virtual button hidden in the first game picture in the second game picture.
Alternatively, in this embodiment, the 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, and the at least one virtual button in the second game screen other than the first virtual button may include, but is not limited to, a crawling button, a standing button, a chat button, a voice button, a marking button, and the like.
Optionally, in this embodiment, the redisplaying the hidden virtual button in the first game screen in the second game screen may include, but is not limited to, displaying the hidden virtual button in a display manner before being hidden, and may also include, but is not limited to, displaying the hidden virtual button in a display manner after being adjusted according to a display area of the virtual button that the player will display in the first game screen.
For example, fig. 14 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, as shown in fig. 14, the method for adjusting a virtual button may include, but is not limited to, the following steps:
S1, when a target game application displays a second game picture, displaying a plurality of virtual buttons, wherein the plurality of virtual buttons comprise a first virtual button and other virtual buttons except the first virtual button;
s2, hiding other virtual buttons except the first virtual button in the plurality of virtual buttons when the target game application is switched from the second game picture to the first game picture;
s3, when the target game application is switched from the first game picture to the second game picture, the hidden virtual buttons except the first virtual button are redisplayed.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, the method further comprises:
and when the first virtual button is used for adjusting the visual angle of the target virtual character, adjusting the display area of the first virtual button from the first display area to the second display area according to the operation direction of the group of touch operation.
Alternatively, in the present embodiment, the operation direction of the set of touch operations may include, but is not limited to, when the set of touch operations is a sliding operation, the sliding direction is taken as the operation direction.
For example, fig. 15 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, as shown in fig. 15, the method for adjusting a virtual button may include, but is not limited to, the following steps:
S1, when a target game application displays a first game picture, acquiring a group of touch operation of a view angle button 1502;
S2, in the case that a group of touch operations do not meet a preset target condition, adjusting the display area of the visual angle button from the first display area to the second display area, namely, adjusting the visual angle button 1502 to the visual angle button 1504;
S3, when the target game application displays the first game screen, the view button 1504 is displayed.
The above is merely an example, and the present embodiment is not limited in any way.
The application is further illustrated by the following examples in conjunction with the specific embodiments:
the self-adaptive method of the button control can be applied to games such as pvc, pve and the like which need to click a screen to operate at high frequency, and when the system detects that a player has a clear network and no possibility of hanging up, feedback is given to the situation that the player has no operation instruction after clicking the edge of the button control for a long time or clicking the screen for many times.
When the player continuously clicks the edge of the button control for more than 3 times, the system automatically judges the clicking offset direction of the player, and finely adjusts the position of the button control for the player, so that the clicking center of the player is ensured to be just at the center of the button control.
When a player clicks a certain range of buttons for many times during operation, but the system does not receive a specific operation instruction, the system automatically judges the clicking offset direction of the player and whether a button control which is easy to operate by mistake exists near the clicking of the player, and fine-adjusts the position of the button control for the player, so that the clicking center of the player is ensured to be exactly located at the center of the button control.
Fig. 16 is a schematic diagram of a method for adjusting a virtual button according to another embodiment of the present invention, as shown in fig. 16, the method for adjusting a virtual button may include, but is not limited to, the following steps:
s1, starting;
s2, clicking a button control by a player to operate in a certain range;
S3, judging whether an operation instruction is received or not;
S4, judging whether to click the edge position of the button or not under the condition that the judgment result of the step S3 is yes;
s5, under the condition that the judgment result of the step S4 is negative, the position of the button control is unchanged;
S6, judging whether an operation instruction is received due to a network problem or not under the condition that the judgment result of the step S3 is negative, and returning to the step S3 if the judgment result is positive;
s7, confirming the operation offset direction under the condition that the judgment result of the step S4 is NO or the judgment result of the step S6 is YES;
S8, confirming the moving direction of the button control;
s9, judging whether other button controls exist in the movement direction of the button controls;
S10, if the judgment result in the step S9 is yes, moving other button controls in the reverse clicking direction;
s11, if the judgment result in the step S9 is negative, the operation button is moved towards the clicking direction.
When the player enters the game progress with strong operability, the system determines whether the player clicks the screen but does not obtain the actual operation feedback by clicking a certain range of times of the button and receiving the instruction, and the following two cases will be given:
1. When confirming that the operation command is received, the system detects that the position of the clicking center point of the player falls in the button edge area (the area which extends inward from the button edge and occupies about 16% of the total area of the button and is the button edge area) for 3 or more consecutive times, fig. 17 is a schematic diagram of another adjustment method of the virtual button according to an embodiment of the present invention, and as shown in fig. 17, the control is the virtual button, and after judging the clicking direction of the player, the system automatically adjusts the position of the button in the clicking direction of the player in the operation process of the player.
2. When the system confirms that the operation instruction is not received, the system firstly judges whether the operation instruction is not received because of the network problem, when the judgment result is yes, the system checks the network problem and judges whether the operation instruction is received again, and when the judgment is not caused by the network problem, after judging the clicking direction of the player, the system automatically adjusts the button position to the clicking direction of the player in the operation process of the player.
According to the embodiment, on one hand, the time cost of operation adjustment of a user can be reduced in game operation, so that the user is more accurate in the operation process, and the possibility of errors is reduced. On the other hand, the thought can be referred to in other applications, the UI button control actively adapts to the use habit of the user, and the targeted and personalized interface use experience is emphasized.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided an adjustment device for a virtual button for implementing the adjustment method for a virtual button. As shown in fig. 18, the apparatus includes:
the display module 1802 is configured to display a first virtual button that allows touch, where a display area of the first virtual button is a first display area;
an acquisition module 1804, configured to acquire a set of touch operations performed in a target area corresponding to the first virtual button;
And an adjustment module 1806, configured to adjust, when the set of touch operations does not meet the preset target condition, the display area of the first virtual button from the first display area to a second display area toward a direction in which the touch positions of the set of touch operations are located, where the touch positions of some or all of the set of touch operations are located in the second display area.
As an optional solution, the device is configured to obtain a set of touch operations performed in a target area corresponding to the first virtual button by:
acquiring the group of touch operations performed in a first edge area in the first display area, wherein the distance between a point in the first edge area and the center point of the first display area is greater than or equal to a first preset distance threshold value, or
And acquiring the group of touch operations which are executed in a second edge area outside the first display area and connected with the first display area, wherein the distance between a point in the second edge area and the central point of the first display area is larger than or equal to a second preset distance threshold value, or the distance between a point in the second edge area and the boundary line of the first display area is larger than or equal to a third preset distance threshold value.
As an alternative, the device is configured to adjust the display area of the first virtual button from the first display area to the second display area by:
moving a display area of the first virtual button from the first display area to the second display area in the case that the set of touch operations performed in the first edge area is acquired, wherein touch positions of part or all of the set of touch operations are located in the second display area, and a distance between the touch positions of the part or all of touch operations and a center point of the second display area is smaller than a distance between the touch positions of the part or all of touch operations and the center point of the first display area, or
Expanding the display area of the first virtual button from the first display area to the second display area in the case that the group of touch operations performed in the first edge area is acquired, wherein the center point of the second display area is positioned at the same position as the center point of the first display area, and the distance between the touch position of part or all of the group of touch operations and the boundary line of the second display area is larger than the distance between the touch position and the boundary line of the first display area, or
And under the condition that the group of touch operations executed in the first edge area is acquired, moving a display area of the first virtual button from the first display area to the second display area, wherein the area of the second display area is larger than that of the first display area, touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area, and the distance between the touch positions of the part or all of the touch operations and the center point of the second display area is smaller than that between the touch positions of the part or all of the touch operations and the center point of the first display area.
As an alternative, the device is configured to adjust the display area of the first virtual button from the first display area to the second display area by:
Moving a display area of the first virtual button from the first display area to the second display area under the condition that the group of touch operations executed in the second edge area is acquired, wherein touch positions of part or all of the group of touch operations are positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area under the condition that the group of touch operations executed in the second edge area is acquired, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch position of part or all of the group of touch operations is positioned in the second display area, or
And under the condition that the group of touch operations executed in the second edge area are acquired, moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
As an alternative, the device is further configured to:
when the group of touch operations generate corresponding operation instructions and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet the preset target condition, or
When the group of touch operations generate corresponding operation instructions, the group of touch operations are continuously executed touch operations, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet the preset target condition, or
And when the group of touch operations generate corresponding operation instructions, the group of touch operations are the touch operations executed within a preset time period, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition.
As an optional solution, the device is configured to obtain a set of touch operations performed in a target area corresponding to the first virtual button by:
And acquiring the group of touch operations performed in the target area which is outside the first display area and is not connected with the first display area, wherein the distance between the point in the target area and the central point of the first display area is within a first distance range, or the distance between the point in the target area and the boundary line of the first display area is within a second distance range.
As an alternative, the device is configured to adjust the display area of the first virtual button from the first display area to the second display area by:
Moving the display area of the first virtual button from the first display area to the second display area, wherein the touch position of part or all of the group of touch operations is positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch position of part or all of the touch operations in the group of touch operations is positioned in the second display area, or
And moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
As an alternative, the device is further configured to:
When the group of touch operations do not generate corresponding operation instructions and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet the preset target condition, or
When the group of touch operations do not generate corresponding operation instructions, the group of touch operations are continuously executed touch operations, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition, or
And when the group of touch operations do not generate corresponding operation instructions, the group of touch operations are the touch operations executed within the preset time length, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition.
As an alternative, the adjusting the display area of the first virtual button from the first display area to the second display area includes:
And adjusting the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch position of the part or all of the touch operations in the group of touch operations or is positioned at the touch position of one of the part or all of the touch operations.
As an alternative, the device is further configured to:
and when the display area of the second virtual button is overlapped or partially overlapped with the second display area, adjusting the display area of the second virtual button to a third display area, wherein the third display area is not overlapped with the second display area.
As an alternative, the device is further configured to:
displaying a first virtual button allowing touch control when a first game picture is displayed in a target game application, wherein the first virtual button is used for responding to touch control operation to execute game operation when the sighting telescope is in an on state, and the first game picture is a game picture displayed when the sighting telescope is in the on state;
Acquiring the group of touch operations executed in the target area corresponding to the first virtual button;
When the group of touch operations do not meet the preset target conditions, adjusting the display area of the first virtual button from the first display area to a second display area;
And when the game picture displayed by the target game application is switched from the first game picture to a second game picture, adjusting the display area of the first virtual button from the second display area to the first display area, wherein the second game picture is the game picture displayed by the sighting telescope in a closed state.
As an alternative, the device is further configured to:
hiding at least one virtual button in the second game screen except the first virtual button in the first game screen when the game screen displayed by the target game application is switched from the second game screen to the first game screen;
and when the game picture displayed by the target game application is switched from the first game picture to a second game picture, redisplaying the virtual button hidden in the first game picture in the second game picture.
As an alternative, the device is further configured to:
and when the first virtual button is used for adjusting the visual angle of the target virtual character, adjusting the display area of the first virtual button from the first display area to the second display area according to the operation direction of the group of touch operation.
According to one aspect of the present application, there is provided a computer program product comprising a computer program/instruction containing program code for executing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 1909, and/or installed from the removable media 1911. When executed by the cpu 1901, performs various functions provided by embodiments of the present application.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
Fig. 19 schematically shows a block diagram of a computer system of an electronic device for implementing an embodiment of the application.
It should be noted that, the computer system 1900 of the electronic device shown in fig. 19 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 19, the computer system 1900 includes a central processing unit 1901 (Central Processing Unit, CPU) that can perform various appropriate actions and processes according to a program stored in a Read-Only Memory 1902 (ROM) or a program loaded from a storage section 1908 into a random access Memory 1903 (Random Access Memory, RAM). In the random access memory 1903, various programs and data required for system operation are also stored. The cpu 1901 and the ram 1902 are connected to each other via a bus 1904. An Input/Output interface 1905 (i.e., an I/O interface) is also connected to bus 1904.
Connected to the input/output interface 1905 are an input section 1906 including a keyboard, a mouse, and the like, an output section 1907 including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and the like, and a speaker, and the like, a storage section 1908 including a hard disk, and the like, and a communication section 1909 including a network interface card such as a local area network card, a modem, and the like. The communication section 1909 performs communication processing via a network such as the internet. The driver 1910 is also connected to the input/output interface 1905 as needed. A removable medium 1911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 1910, so that a computer program read out therefrom is installed into the storage portion 1908 as needed.
In particular, the processes described in the various method flowcharts may be implemented as computer software programs according to embodiments of the application. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 1909, and/or installed from the removable media 1911. The computer programs, when executed by the central processor 1901, perform the various functions defined in the system of the present application.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the above-mentioned adjustment method of a virtual button, where the electronic device may be a terminal device or a server as shown in fig. 1. The present embodiment is described taking the electronic device as a terminal device as an example. As shown in fig. 20, the electronic device comprises a memory 2002 and a processor 2004, the memory 2002 having stored therein a computer program, the processor 2004 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, displaying a first virtual button allowing touch control, wherein a display area of the first virtual button is a first display area;
S2, acquiring a group of touch operation executed in a target area corresponding to the first virtual button;
And S3, under the condition that a group of touch operations do not meet the preset target condition, the display area of the first virtual button is adjusted from the first display area to the second display area towards the direction where the touch position of the group of touch operations is located, wherein the touch position of part or all of the touch operations in the group of touch operations is located in the second display area.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 20 is only schematic, and the electronic device may also be a smart phone (such as an Android Mobile phone, an iOS Mobile phone, etc.), a tablet computer, a palm computer, a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 20 is not limited to the structure of the electronic device and the electronic apparatus described above. For example, the electronics can also include more or fewer components (e.g., network interfaces, etc.) than shown in fig. 20, or have a different configuration than shown in fig. 20.
The memory 2002 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for adjusting a virtual button in the embodiments of the present invention, and the processor 2004 executes the software programs and modules stored in the memory 2002, thereby executing various functional applications and data processing, that is, implementing the method for adjusting a virtual button described above. 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 examples, memory 2002 may further include memory remotely located relative to processor 2004, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 2002 may be used for storing information such as virtual buttons, among others. As an example, as shown in fig. 20, the memory 2002 may include, but is not limited to, a display module 1802, an acquisition module 1804, and an adjustment module 1806 in an adjustment device including the virtual buttons. In addition, other module units in the adjustment device of the virtual button may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 2006 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 2006 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 2006 is a Radio Frequency (RF) module that is configured to communicate wirelessly with the internet.
The electronic device further includes a display 2008 for displaying the virtual buttons, and a connection bus 2010 for connecting the respective module components in the electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, there is provided a computer-readable storage medium, from which a processor of a computer device reads the computer instructions, the processor executing the computer instructions, so that the computer device performs the adjustment method of the virtual button provided in various alternative implementations of the adjustment aspect of the virtual button described above.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for performing the steps of:
S1, displaying a first virtual button allowing touch control, wherein a display area of the first virtual button is a first display area;
S2, acquiring a group of touch operation executed in a target area corresponding to the first virtual button;
And S3, under the condition that a group of touch operations do not meet the preset target condition, the display area of the first virtual button is adjusted from the first display area to the second display area towards the direction where the touch position of the group of touch operations is located, wherein the touch position of part or all of the touch operations in the group of touch operations is located in the second display area.
Alternatively, in this embodiment, all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing the terminal device related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may include a flash disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (25)

1. A method for adjusting a virtual button, comprising:
The method comprises the steps of displaying a first virtual button allowing touch, wherein a display area of the first virtual button is a first display area, acquiring a group of touch operations executed in a target area corresponding to the first virtual button, wherein the group of touch operations executed in a first edge area in the first display area is acquired, and the distance between a point in the first edge area and the central point of the first display area is larger than or equal to a first preset distance threshold value, or the group of touch operations executed in a second edge area which is outside the first display area and is connected with the first display area is acquired, and the distance between the point in the second edge area and the central point of the first display area is larger than or equal to a second preset distance threshold value, or the distance between the point in the second edge area and the boundary line of the first display area is larger than or equal to a third preset distance threshold value;
When the group of touch operations do not meet the preset target condition, the display area is adjusted from the first display area to a second display area, and the touch positions of part or all of the touch operations in the group of touch operations are located in the second display area;
The method further includes determining that the set of touch operations do not satisfy the preset target condition when the set of touch operations each generate a corresponding operation instruction and the number of touch operations in the set of touch operations is greater than a preset number threshold, or when the set of touch operations each generate a corresponding operation instruction and the set of touch operations are continuously performed touch operations and the number of touch operations in the set of touch operations is greater than a preset number threshold, or when the set of touch operations each generate a corresponding operation instruction and the set of touch operations are performed within a preset duration and the number of touch operations in the set of touch operations is greater than a preset number threshold.
2. The method of claim 1, wherein the adjusting the display area from the first display area to a second display area comprises:
moving a display area of the first virtual button from the first display area to the second display area in the case that the set of touch operations performed in the first edge area is acquired, wherein touch positions of part or all of the set of touch operations are located in the second display area, and a distance between the touch positions of the part or all of touch operations and a center point of the second display area is smaller than a distance between the touch positions of the part or all of touch operations and the center point of the first display area, or
Expanding the display area of the first virtual button from the first display area to the second display area in the case that the group of touch operations performed in the first edge area is acquired, wherein the center point of the second display area is positioned at the same position as the center point of the first display area, and the distance between the touch position of part or all of the group of touch operations and the boundary line of the second display area is larger than the distance between the touch position and the boundary line of the first display area, or
And under the condition that the group of touch operations executed in the first edge area is acquired, moving a display area of the first virtual button from the first display area to the second display area, wherein the area of the second display area is larger than that of the first display area, touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area, and the distance between the touch positions of the part or all of the touch operations and the center point of the second display area is smaller than that between the touch positions of the part or all of the touch operations and the center point of the first display area.
3. The method of claim 1, wherein the adjusting the display area from the first display area to a second display area comprises:
Moving a display area of the first virtual button from the first display area to the second display area under the condition that the group of touch operations executed in the second edge area is acquired, wherein touch positions of part or all of the group of touch operations are positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area under the condition that the group of touch operations executed in the second edge area is acquired, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch position of part or all of the group of touch operations is positioned in the second display area, or
And under the condition that the group of touch operations executed in the second edge area are acquired, moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
4. The method of claim 1, wherein the acquiring a set of touch operations performed in the target area corresponding to the first virtual button comprises:
And acquiring the group of touch operations performed in the target area which is outside the first display area and is not connected with the first display area, wherein the distance between the point in the target area and the central point of the first display area is within a first distance range, or the distance between the point in the target area and the boundary line of the first display area is within a second distance range.
5. The method of claim 4, wherein the adjusting the display area from the first display area to a second display area comprises:
Moving the display area of the first virtual button from the first display area to the second display area, wherein the touch position of part or all of the group of touch operations is positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch position of part or all of the touch operations in the group of touch operations is positioned in the second display area, or
And moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
6. The method according to claim 4, wherein the method further comprises:
When the group of touch operations do not generate corresponding operation instructions and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet the preset target condition, or
When the group of touch operations do not generate corresponding operation instructions, the group of touch operations are continuously executed touch operations, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition, or
And when the group of touch operations do not generate corresponding operation instructions, the group of touch operations are the touch operations executed within the preset time length, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition.
7. The method of any of claims 1-6, wherein the adjusting the display area from the first display area to a second display area comprises:
And adjusting the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch position of the part or all of the touch operations in the group of touch operations or is positioned at the touch position of one of the part or all of the touch operations.
8. The method according to any one of claims 1 to 6, further comprising:
and when the display area of the second virtual button is overlapped or partially overlapped with the second display area, adjusting the display area of the second virtual button to a third display area, wherein the third display area is not overlapped with the second display area.
9. The method according to any one of claims 1 to 6, further comprising:
displaying a first virtual button allowing touch control when a first game picture is displayed in a target game application, wherein the first virtual button is used for responding to touch control operation to execute game operation when a sighting telescope is in an on state, and the first game picture is a game picture displayed when the sighting telescope is in the on state;
Acquiring the group of touch operations executed in the target area corresponding to the first virtual button;
When the group of touch operations do not meet the preset target conditions, adjusting the display area of the first virtual button from the first display area to a second display area;
and when the game picture displayed by the target game application is switched from the first game picture to a second game picture, adjusting the display area of the first virtual button from the second display area to the first display area, wherein the second game picture is the game picture displayed by the sighting telescope in a closed state.
10. The method according to claim 9, wherein the method further comprises:
hiding at least one virtual button in the second game screen except the first virtual button in the first game screen when the game screen displayed by the target game application is switched from the second game screen to the first game screen;
and when the game picture displayed by the target game application is switched from the first game picture to a second game picture, redisplaying the virtual button hidden in the first game picture in the second game picture.
11. The method according to any one of claims 1 to 6, further comprising:
and when the first virtual button is used for adjusting the visual angle of the target virtual character, adjusting the display area of the first virtual button from the first display area to the second display area according to the operation direction of the group of touch operation.
12. An adjustment device for a virtual button, applied to a target game application, comprising:
The display module is used for displaying a first virtual button allowing touch control, and the display area of the first virtual button is a first display area;
The acquisition module is used for acquiring a group of touch operations executed in a target area corresponding to the first virtual button, wherein the group of touch operations executed in a first edge area in the first display area are acquired, and the distance between a point in the first edge area and the central point of the first display area is larger than or equal to a first preset distance threshold value, or the group of touch operations executed in a second edge area which is outside the first display area and is connected with the first display area is acquired, and the distance between the point in the second edge area and the central point of the first display area is larger than or equal to a second preset distance threshold value, or the distance between the point in the second edge area and the boundary line of the first display area is larger than or equal to a third preset distance threshold value;
The adjusting module is used for adjusting the display area from the first display area to a second display area when the group of touch operations do not meet preset target conditions, and the touch positions of part or all of the group of touch operations are located in the second display area;
The device is further used for determining that the set of touch operations do not meet the preset target condition when the set of touch operations generate corresponding operation instructions and the number of the touch operations in the set of touch operations is larger than a preset number threshold, or when the set of touch operations generate corresponding operation instructions and the set of touch operations are continuously executed touch operations and the number of the touch operations in the set of touch operations is larger than a preset number threshold, or when the set of touch operations generate corresponding operation instructions and the set of touch operations are executed within a preset duration and the number of the touch operations in the set of touch operations is larger than a preset number threshold.
13. The apparatus of claim 12, wherein the apparatus is configured to adjust the display area from the first display area to a second display area by:
moving a display area of the first virtual button from the first display area to the second display area in the case that the set of touch operations performed in the first edge area is acquired, wherein touch positions of part or all of the set of touch operations are located in the second display area, and a distance between the touch positions of the part or all of touch operations and a center point of the second display area is smaller than a distance between the touch positions of the part or all of touch operations and the center point of the first display area, or
Expanding the display area of the first virtual button from the first display area to the second display area in the case that the group of touch operations performed in the first edge area is acquired, wherein the center point of the second display area is positioned at the same position as the center point of the first display area, and the distance between the touch position of part or all of the group of touch operations and the boundary line of the second display area is larger than the distance between the touch position and the boundary line of the first display area, or
And under the condition that the group of touch operations executed in the first edge area is acquired, moving a display area of the first virtual button from the first display area to the second display area, wherein the area of the second display area is larger than that of the first display area, touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area, and the distance between the touch positions of the part or all of the touch operations and the center point of the second display area is smaller than that between the touch positions of the part or all of the touch operations and the center point of the first display area.
14. The apparatus of claim 12, wherein the apparatus is configured to adjust the display area from the first display area to a second display area by:
Moving a display area of the first virtual button from the first display area to the second display area under the condition that the group of touch operations executed in the second edge area is acquired, wherein touch positions of part or all of the group of touch operations are positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area under the condition that the group of touch operations executed in the second edge area is acquired, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch position of part or all of the group of touch operations is positioned in the second display area, or
And under the condition that the group of touch operations executed in the second edge area are acquired, moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
15. The apparatus of claim 12, wherein the apparatus is configured to obtain a set of touch operations performed within the target area corresponding to the first virtual button by:
And acquiring the group of touch operations performed in the target area which is outside the first display area and is not connected with the first display area, wherein the distance between the point in the target area and the central point of the first display area is within a first distance range, or the distance between the point in the target area and the boundary line of the first display area is within a second distance range.
16. The apparatus of claim 15, wherein the apparatus is configured to adjust the display area from the first display area to a second display area by:
Moving the display area of the first virtual button from the first display area to the second display area, wherein the touch position of part or all of the group of touch operations is positioned in the second display area, or
Expanding the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area and the center point of the first display area are positioned at the same position, and the touch position of part or all of the touch operations in the group of touch operations is positioned in the second display area, or
And moving 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 and the center point of the first display area are positioned at different positions, the area of the second display area is larger than that of the first display area, and the touch positions of part or all of the touch operations in the group of touch operations are positioned in the second display area.
17. The apparatus of claim 15, wherein the apparatus is further configured to:
When the group of touch operations do not generate corresponding operation instructions and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations does not meet the preset target condition, or
When the group of touch operations do not generate corresponding operation instructions, the group of touch operations are continuously executed touch operations, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition, or
And when the group of touch operations do not generate corresponding operation instructions, the group of touch operations are the touch operations executed within the preset time length, and the number of the touch operations in the group of touch operations is larger than a preset number threshold value, determining that the group of touch operations do not meet the preset target condition.
18. The apparatus according to any of claims 12 to 16, wherein the apparatus is configured to adjust the display area from the first display area to a second display area by:
And adjusting the display area of the first virtual button from the first display area to the second display area, wherein the center point of the second display area is the center point of the touch position of the part or all of the touch operations in the group of touch operations or is positioned at the touch position of one of the part or all of the touch operations.
19. The apparatus according to any one of claims 12 to 16, further adapted to:
and when the display area of the second virtual button is overlapped or partially overlapped with the second display area, adjusting the display area of the second virtual button to a third display area, wherein the third display area is not overlapped with the second display area.
20. The apparatus according to any one of claims 12 to 16, further adapted to:
displaying a first virtual button allowing touch control when a first game picture is displayed in a target game application, wherein the first virtual button is used for responding to touch control operation to execute game operation when a sighting telescope is in an on state, and the first game picture is a game picture displayed when the sighting telescope is in the on state;
Acquiring the group of touch operations executed in the target area corresponding to the first virtual button;
When the group of touch operations do not meet the preset target conditions, adjusting the display area of the first virtual button from the first display area to a second display area;
and when the game picture displayed by the target game application is switched from the first game picture to a second game picture, adjusting the display area of the first virtual button from the second display area to the first display area, wherein the second game picture is the game picture displayed by the sighting telescope in a closed state.
21. The apparatus of claim 20, wherein the apparatus is further configured to:
hiding at least one virtual button in the second game screen except the first virtual button in the first game screen when the game screen displayed by the target game application is switched from the second game screen to the first game screen;
and when the game picture displayed by the target game application is switched from the first game picture to a second game picture, redisplaying the virtual button hidden in the first game picture in the second game picture.
22. The apparatus according to any one of claims 12 to 16, further adapted to:
and when the first virtual button is used for adjusting the visual angle of the target virtual character, adjusting the display area of the first virtual button from the first display area to the second display area according to the operation direction of the group of touch operation.
23. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program is executable by a terminal device or a computer to perform the method of any one of claims 1 to 11.
24. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 11.
25. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 11 by means of the computer program.
CN202111264539.4A 2021-10-28 2021-10-28 Virtual button adjustment method and device, storage medium and electronic device Active CN113996052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111264539.4A CN113996052B (en) 2021-10-28 2021-10-28 Virtual button adjustment method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111264539.4A CN113996052B (en) 2021-10-28 2021-10-28 Virtual button adjustment method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113996052A CN113996052A (en) 2022-02-01
CN113996052B true CN113996052B (en) 2025-08-12

Family

ID=79924723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111264539.4A Active CN113996052B (en) 2021-10-28 2021-10-28 Virtual button adjustment method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113996052B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116115998A (en) * 2023-02-09 2023-05-16 网易(杭州)网络有限公司 Method, device, electronic device and readable storage medium for adjusting viewing angle in game
CN117389429A (en) * 2023-10-11 2024-01-12 广州欧明电子技术有限公司 Customized method, device and equipment for touch panel anti-accidental touch rules

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636043A (en) * 2015-02-13 2015-05-20 深圳市中兴移动通信有限公司 Virtual key display method and virtual key display device
CN109908580A (en) * 2019-01-25 2019-06-21 努比亚技术有限公司 Optimization method, computer equipment and the storage medium of interface

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104049786A (en) * 2013-03-12 2014-09-17 富泰华工业(深圳)有限公司 Electronic device, system and correcting method capable of automatically correcting touch position
CN106254684A (en) * 2016-09-22 2016-12-21 上海理工大学 The alternative approach at mobile phone key interface
CN108008902B (en) * 2016-10-31 2022-05-31 北京搜狗科技发展有限公司 Virtual keyboard adjusting method and device and playing method and device
CN106527818B (en) * 2016-12-16 2019-07-02 Oppo广东移动通信有限公司 A control method, device and mobile terminal for touch operation on a mobile terminal
CN107479749B (en) * 2017-08-08 2019-09-27 腾讯科技(成都)有限公司 Control method and device, mobile terminal and readable storage medium storing program for executing based on touch screen
CN109542328B (en) * 2018-11-30 2021-04-06 北京小米移动软件有限公司 User interface display method, device, terminal and storage medium
CN113262476B (en) * 2021-06-18 2023-04-18 腾讯科技(深圳)有限公司 Position adjusting method and device of operation control, terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636043A (en) * 2015-02-13 2015-05-20 深圳市中兴移动通信有限公司 Virtual key display method and virtual key display device
CN109908580A (en) * 2019-01-25 2019-06-21 努比亚技术有限公司 Optimization method, computer equipment and the storage medium of interface

Also Published As

Publication number Publication date
CN113996052A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN113318434B (en) Game information processing method and device and storage medium
US10661171B2 (en) Information processing method, terminal, and computer storage medium
US20230037089A1 (en) Operation control method and apparatus, storage medium, and electronic device
US11771987B2 (en) Limbo spectating in a video game
JP6529659B2 (en) Information processing method, terminal and computer storage medium
CN107648847B (en) Information processing method and device, storage medium and electronic equipment
CN105148517B (en) A kind of information processing method, terminal and computer-readable storage medium
KR102050934B1 (en) Information processing method, terminal, and computer storage medium
JP2020039880A (en) Information processing method, terminal, and computer storage medium
WO2018113653A1 (en) Scene switching method based on mobile terminal, and mobile terminal
CN107617213A (en) Information processing method and device, storage medium, electronic equipment
US12090404B2 (en) Virtual object control method and apparatus, storage medium, and electronic device
US12059620B2 (en) Method and apparatus for selecting virtual object interaction mode, device, medium, and product
CN108310768B (en) Virtual scene display method and device, storage medium and electronic device
CN113996052B (en) Virtual button adjustment method and device, storage medium and electronic device
JP2024541856A (en) Game live streaming interaction method, program, and electronic device
CN113304478A (en) Skill indicator control method and device, storage medium and electronic equipment
CN113813599A (en) Control method and device of virtual role, storage medium and electronic equipment
CN114470759B (en) Prompt information display method, device, storage medium and electronic device
CN113893543B (en) Virtual character control method and device, storage medium and electronic device
CN115120979B (en) Virtual object display control method, device, storage medium and electronic device
CN113713384B (en) Virtual character control method and device, storage medium and electronic equipment
CN113813607B (en) Game view angle switching method and device, storage medium and electronic equipment
CN113986079B (en) Virtual button setting method and device, storage medium and electronic equipment
CN113975803B (en) Virtual character control method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant