CN116027962A - Virtual key setting method, device, equipment and computer storage medium - Google Patents

Virtual key setting method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN116027962A
CN116027962A CN202310066288.1A CN202310066288A CN116027962A CN 116027962 A CN116027962 A CN 116027962A CN 202310066288 A CN202310066288 A CN 202310066288A CN 116027962 A CN116027962 A CN 116027962A
Authority
CN
China
Prior art keywords
key
area
virtual key
virtual
user
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.)
Pending
Application number
CN202310066288.1A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology 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 China Mobile Communications Group Co Ltd, MIGU Interactive Entertainment Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310066288.1A priority Critical patent/CN116027962A/en
Publication of CN116027962A publication Critical patent/CN116027962A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention relates to the technical field of computer data processing, and discloses a virtual key setting method, a device, equipment and a computer storage medium, wherein the method comprises the following steps: displaying an initial area; detecting setting operation of a target virtual key in the initial area by a user, and obtaining area selection information corresponding to the target virtual key; dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively. By the mode, the embodiment of the invention improves the user experience of the virtual key.

Description

Virtual key setting method, device, equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer data processing, in particular to a virtual key setting method, a device, equipment and a computer storage medium.
Background
With the popularization and development of mobile terminal technology, mobile terminals such as mobile phones and tablet computers are increasingly becoming trend as virtual control devices for large-screen cloud games, and users operate cloud games by using mobile phones as virtual handles and operating virtual keys on the mobile phones. The existing virtual key setting is generally a fixed layout or a mode that a user actively drags the fixed key position to typeset in the setting to realize the layout of all functional keys of the virtual handle.
However, the existing virtual key setting only solves the personalized setting of the relevant virtual key positions, but the virtual key use experience of users is poor due to the fact that the final setting is due to the fact that the key shape is fixed, the key size is fixed, the screen utilization rate of a key area is low, the key positions and actual control habits are different, and the like, and the problems of wrong key pressing, inconvenience in screen crossing operation and the like are easily caused in the actual use process.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a method, an apparatus, a device, and a computer storage medium for setting virtual keys, which are used to solve the problem in the prior art that the use experience of virtual keys is poor.
According to an aspect of an embodiment of the present invention, there is provided a virtual key setting method, including:
displaying an initial area;
detecting setting operation of a target virtual key in the initial area by a user, and obtaining area selection information corresponding to the target virtual key;
dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively.
In an alternative, the method further comprises:
and displaying setting prompt information on the initial area, wherein the setting prompt information is used for prompting the user to perform clicking operation for a plurality of times on the initial area for each selectable virtual key so as to input the setting position point corresponding to each selectable virtual key.
In an optional manner, the area selection information includes set position points corresponding to the optional virtual keys respectively; the method further comprises the steps of:
and carrying out aggregation processing on the set position points corresponding to the same selectable virtual key to obtain the key control area corresponding to the selectable virtual key.
In an alternative, the method further comprises:
connecting the set position points corresponding to the plurality of selectable virtual keys to obtain a plurality of voronoi diagrams;
combining the voronoi diagrams according to the selectable virtual keys corresponding to the set position points to obtain the key control areas corresponding to the selectable virtual keys respectively; and combining the voronoi diagrams of the set position points corresponding to the same selectable virtual key.
In an alternative, the method further comprises:
determining the center points of all the set position points;
and denoising the set position points according to the distances between the set position points and the center points.
In an alternative, the method further comprises:
displaying the selectable virtual keys corresponding to the region selection information on the key control region;
detecting the setting confirmation information input by the user;
and hiding the optional virtual key when the user virtual key is determined to be set according to the setting confirmation information.
In an alternative, the method further comprises:
when the triggering action aiming at the target virtual key is detected, displaying the target virtual key for a preset duration at the target operation position with preset transparency.
According to another aspect of the embodiment of the present invention, there is provided a virtual key setting apparatus including:
the display module is used for displaying the initial area;
the operation module is used for detecting the setting operation of the target virtual key in the initial area by a user and obtaining the area selection information corresponding to the target virtual key;
the dividing module is used for dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively.
According to another aspect of the embodiment of the present invention, there is provided a virtual key setting apparatus including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the virtual key setting method embodiment as described in any one of the preceding claims.
According to still another aspect of the embodiments of the present invention, there is provided a computer-readable storage medium having stored therein at least one executable instruction for causing a virtual key setting apparatus to perform the operations of the virtual key setting method embodiment of any one of the foregoing.
The embodiment of the invention firstly displays the initial area so as to enable a user to set the key control area. Then detecting the setting operation of a target virtual key in the initial area by a user to obtain area selection information corresponding to the target virtual key, wherein the target virtual key is one of a plurality of selectable virtual keys; the operation of the user in the initial area may be multi-click operation of the corresponding key control area according to the operation habit thereof. Dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively. In the embodiment of the invention, a user can select any area as a key control area by clicking any in the initial area according to the operation habit of each selectable virtual key, so that the space utilization rate of the initial area can be improved while setting the virtual key according to the actual use condition of the user. Because the initial area is not divided into the fixed key area and the key shape in the embodiment of the invention, the user can randomly perform clicking operation in the area corresponding to the key according to own operation habit, so that the key is not required to be displayed to the user during actual key control, and the user can normally complete operation according to own operation habit, thereby reducing the interference of the visual cover of the original virtual key. In addition, the method and the device are different from the problem of fixed key size in the prior art, and in the embodiment of the invention, the whole terminal operation panel is divided into the operation areas corresponding to the virtual keys according to the set position points of the user, so that the response range of the virtual keys is greatly enlarged, and the operation experience of the common virtual keys of the user is improved.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present invention can be more clearly understood, and the following specific embodiments of the present invention are given for clarity and understanding.
Drawings
The drawings are only for purposes of illustrating embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a schematic diagram of a prior art virtual key setting method;
FIG. 2 is a schematic diagram of another prior art virtual key setting method;
fig. 3 is a schematic flow chart of a virtual key setting method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a virtual key setting interface in a virtual key setting method according to another embodiment of the present invention;
FIG. 5 is a schematic view of a virtual key setting interface in a virtual key setting method according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of a virtual key setting interface in a virtual key setting method according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a virtual key setting device according to an embodiment of the present invention;
fig. 8 shows a schematic structural diagram of a virtual key setting device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein.
Prior to proceeding with the description of the embodiments of the present invention, the existing and existing problems will be further described:
when the cloud game is used, the mobile phone is often used as a virtual handle of the cloud game to realize game control, and the design layout method of each virtual function key of the virtual handle can greatly influence the actual use experience of a user.
The existing virtual handles are mainly in fixed layout or are arranged in a mode that a user actively drags fixed key positions in setting to conduct typesetting, so that the layout of all functional keys of the virtual handles is achieved. As shown in fig. 1 and 2.
The prior art mainly only solves the personalized configuration of the relevant virtual key positions, but the problems of wrong key pressing, inconvenient screen crossing operation and the like are easily caused in the actual use process due to the fact that the final setting is due to the fact that the key shape is fixed, the key size is fixed, the screen utilization rate of a key area is low, the key positions are different from the actual control habits and the like.
Fig. 3 shows a flowchart of a virtual key setting method according to an embodiment of the present invention, which is executed by a computer processing device. The computer processing device may include a cell phone, a notebook computer, etc. As shown in fig. 3, the method comprises the steps of:
step 10: the initial region is shown.
In one embodiment of the present invention, the initial area is a preset area for control on the terminal, where the terminal may be a mobile phone, a tablet computer, etc. used as a device for virtual keyboard control (i.e., as a virtual handle). The control may include touch control, and the initial area may be a touch panel or a touch display screen on a mobile phone or a tablet, or the like. The user can operate at the target position on the initial area, so as to control the virtual keyboard, such as inputting key value information corresponding to keys in the virtual keyboard, wherein the operation can be clicking, sliding, long-pressing and the like. Optionally, in order to improve the freedom of setting the virtual keys of the user, the initial area may be an entire area capable of performing touch operation on the terminal, such as an entire touch display screen of the mobile phone. Optionally, an area is preset on the operable area of the terminal as an initial area where the user can set the virtual key, and the initial area can be dynamically adjusted along with the setting operation of the user, for example, when the user performs the key setting operation outside the initial area, the initial area can be expanded to a position corresponding to the setting operation outside the area, so that the accuracy and the user experience of the virtual key setting are improved.
Further, in order to allow the virtual keyboard to realize a complete control function, the virtual keyboard generally includes a plurality of selectable virtual keys, so that in order to facilitate the user to set each selectable virtual key, a complete available virtual keyboard is obtained, and the user can be prompted to indicate the virtual key information currently being set while the initial area is displayed. Further, considering that when a terminal is used as a virtual handle, for example, when a mobile phone is used as a virtual handle for controlling a game on a large-screen device (may be a television or the like), a user needs to perform cross-screen control, and because the virtual handle simulated by the terminal such as the mobile phone does not have the physical shape characteristics of a physical handle, the user needs to see the virtual handle of the mobile phone to judge the key direction and see the game or the like of the large-screen terminal, and experience is relatively poor and the misoperation rate is also high. Moreover, when a large screen picture is remotely controlled across a screen on a terminal such as a mobile phone, related keys of a virtual handle often exist on the screen in a floating layer mode, so that on one hand, the game vision of a user is influenced, and on the other hand, the operation errors are easy to occur in a key area with a relatively fixed shape and size. Therefore, when the virtual keyboard is set, the user can be prompted to indicate to click on the initial area according to the blind operation habit, so that the set position point corresponding to the currently set virtual key is input, and the set position points corresponding to the user under the virtual key are enclosed into the key control area corresponding to the virtual key.
Thus, step 10 further comprises:
step 101: and displaying setting prompt information on the initial area, wherein the setting prompt information is used for prompting the user to perform clicking operation for a plurality of times on the initial area for each selectable virtual key so as to input the setting position point corresponding to each selectable virtual key.
Specifically, the setting hint information may include optional virtual key information that is currently being set, and area information available for a setting operation. In order to improve the space utilization of the initial area, more operation space is provided for the user as much as possible, and the area available for setting operation may be the entire initial area. The setting position point refers to a coordinate point of a setting operation performed in the aforementioned area for a setting operation in order to designate an optional area corresponding to an optional virtual key to be currently set by a user, wherein the setting operation may be clicking, swiping, or the like. When a plurality of users share the same terminal, the user may be one of the plurality of users, such as a user currently using the terminal.
Specifically, the setting prompt information may be for each selectable virtual key, and prompt the user to set the selectable area corresponding to the selectable virtual key according to the operation habit of the user for the virtual keyboard. The operation habit of the user can be the blind operation habit, namely, the habit of performing key control under the condition that the user does not see the virtual keyboard. When the user sets the selectable area corresponding to the selectable virtual key, a specific area can be defined by clicking the position point corresponding to the clicking operation by clicking the specific area for multiple times. The setting position point is input by the user according to the operation habit of the keyboard, if the user habit sets the upper left part of the initial area as an 'up' key, the user can perform preset setting operation on the upper left part of the initial area when setting the optional key, namely the 'up' key. The preset setting operation may be, for example, clicking within a specific area multiple times or swiping over an edge of the specific area. It should be noted that, the setting process of the key control area of each optional virtual key by the user may be independent, that is, each time the user sets the key control area of the new optional virtual key, the user may arbitrarily draw the area on the entire initial area, without considering the area occupied by other optional virtual keys that have been set.
Considering that the size of the virtual key in the prior art is generally preset and fixed, and the operation habit and individual difference of the user may cause that the misoperation rate of the virtual key aiming at the fixed size is higher, so that the setting experience of the virtual key of the user is poor, therefore, the size of the selectable area is not limited in the embodiment of the invention, the user can set the whole initial area at will according to the operation habit of the user, after the user finishes setting all the selectable virtual keys, the initial area is divided according to the corresponding set position points of each selectable area, thereby adaptively distributing the area of each selectable area according to the virtual key setting input by the user, improving the space utilization rate of the initial area, improving the control efficiency of the virtual key and reducing the misoperation rate of the user.
In addition, because the key setting area is arbitrarily selected by the user according to the operation habit of the user, such as the blind operation habit, when the virtual keyboard is used after the setting is completed, the user does not need to display keys on the terminal operation panel, and can blindly operate the position to be operated according to the operation habit of the user and does not need to carelessly look at the key display information of the initial area, so that the virtual key control experience of the user is improved. Therefore, the method is different from the prior art that the related display is carried out on the virtual keys in the initial area, the related information of the virtual keys is not displayed in the initial area in the step, and the user can normally operate the virtual keyboard directly depending on the operation habit of the user.
Step 20: detecting setting operation of a target virtual key in the initial area by a user, and obtaining area selection information corresponding to the target virtual key.
Specifically, the region selection information includes a set position point obtained by the user performing a click operation in the initial region according to the prompt information. The target virtual key is one of a plurality of selectable virtual keys, and the selectable virtual keys can be keys with key positions which can be set in a user-defined manner. The set position points respectively input by the user for the plurality of selectable virtual keys can be acquired. For example, when the initial area indicates that the user is currently performing the key control setting on the selectable virtual key "a", the user may perform a click operation according to the operation habit thereof in the initial area, and the operation position point corresponding to each click operation of the user in the initial area is the area selection position information corresponding to the selectable virtual key "a".
Step 30: dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively.
Specifically, considering that the area selection information corresponding to each of the selectable virtual keys is selected by the user on the initial area according to the operation habit of the user, such as the blind operation habit, and the user performs multiple clicking operations when selecting the area, that is, multiple setting position points are input, so that the key control area corresponding to the currently set selectable virtual key can be defined by the multiple setting position points. Specifically, the set position points on the initial area may be clustered according to the optional virtual keys corresponding to each set position point, so as to obtain a plurality of position point classes, where, as shown in fig. 4, the set position points corresponding to the same optional virtual key are classified into one position point class, one position point class corresponds to one optional virtual key, and an area surrounded by the position points is a key control area corresponding to the corresponding optional virtual key. Thus, in one embodiment of the present invention, step 30 may comprise the following:
step 301: and carrying out aggregation processing on the set position points corresponding to the same selectable virtual key to obtain the key control area corresponding to the selectable virtual key.
It is easy to understand that the operation of the user may not be so accurate, that is, the operation of the user on the specific area may deviate, and the user may click or trigger to the same position accurately each time with less possibility, so that one optional virtual key generally corresponds to a plurality of set position points, a combination process needs to be performed on a plurality of set position points corresponding to each optional virtual key, and then the initial area is divided according to the combination result corresponding to all the optional virtual keys, so as to obtain a boundary line between each position point class, and thus key control areas corresponding to each optional virtual key respectively are obtained, as shown in fig. 4.
Specifically, step 301 further includes:
step 3011: and carrying out connection processing on all the set position points to obtain a plurality of voronoi diagrams.
Specifically, considering that the set position points are discrete, all the set position points can be connected two by two to generate an integral triangular network, the triangular network comprises a plurality of triangles, and then the triangles are connected according to the circle centers of circumscribed circles of the triangles to obtain a plurality of voronoi diagrams. Wherein each voronoi diagram comprises at least one set position point.
Specifically, the set location points may be first connected to generate a plurality of triangle networks. And connecting the circumscribed circular centers of the adjacent triangular networks to obtain the Veno graph. The triangle network may be Delaunay triangle network, and the discrete set position points are connected two by two to obtain the triangle network. Reference is made to fig. 5 for a voronoi diagram derived from a Delaunay triangle network. As shown in fig. 5, a voronoi diagram includes a set point. The boundaries between the multiple voronoi diagrams are adjacent and have no overlapping areas, so that the mapping from the discrete set position points to the specific non-overlapping areas in the initial area is realized, and the key control areas corresponding to the optional virtual keys in the subsequent steps are conveniently divided.
In one embodiment of the present invention, step 3011 further comprises:
step 3101: and determining the center point of all the set position points.
Specifically, the distribution center of all the set position points on the initial area is determined as a center point.
Step 3102: and denoising the set position points according to the distances between the set position points and the center points.
Specifically, a set position point having a distance from the center point greater than a preset threshold value is screened out as noise. Wherein the threshold value may be determined from the variance of the distances between all set position points and the center point. And deleting the points of the obvious abnormality deviating from the center point by setting corresponding reasonable thresholds through variance, so as to realize denoising processing of the set position points.
Step 302: combining the voronoi diagrams according to the selectable virtual keys corresponding to the set position points to obtain the key control areas corresponding to the selectable virtual keys respectively; and combining the voronoi diagrams of the set position points corresponding to the same selectable virtual key.
Specifically, the voronoi diagrams corresponding to the same set position points of the corresponding optional virtual keys are combined to obtain optional areas corresponding to the optional virtual keys, as shown in fig. 6, the area "a" is an area obtained by combining the voronoi diagrams corresponding to all set position points corresponding to the optional virtual key "a", and other optional virtual keys, such as "X", "Y" and "B", are divided and the like.
In one embodiment of the present invention, step 302 further comprises:
step 3031: displaying the selectable virtual keys corresponding to the region selection information on the key control region;
step 3032: and acquiring the setting confirmation information input by the user.
Specifically, in order to facilitate the user to confirm the setting of the virtual key, the key setting information input by the user may be prompted, that is, by displaying the corresponding optional virtual key on an optional area of the initial area, for example, displaying the relevant information of the key "a" in the area "a" in fig. 6, and optionally, confirmation prompt information may also be displayed to prompt the user to confirm the key setting information input by the user.
The setting confirmation information may include an optional virtual key and corresponding area confirmation information, where the area confirmation information may be confirmation of no error, completion of setting, or information for adjusting coordinates of an optional area.
Step 3033: and hiding the optional virtual key when the user virtual key is determined to be set according to the setting confirmation information.
When the user determines that the setting of the virtual key is finished, namely, all optional virtual keys displayed by the user who is convenient for the user to set the key are hidden, so that the user can not influence the influence of the user on other visual operations on the screen due to the fact that the virtual key is required to be displayed as in the prior art when the user actually uses the virtual keyboard after the setting is finished, such as shielding of game pictures which the user needs to watch and operate, and user experience is improved.
In one embodiment of the present invention, when the user completes setting all the optional virtual keys, a virtual keyboard with complete setting is obtained, and the process of using the virtual keyboard may include:
step 320: when the triggering action aiming at the target virtual key is detected, displaying the target virtual key for a preset duration at the target operation position with preset transparency.
In one embodiment of the present invention, the operation is responded according to the key value information corresponding to the target virtual key, for example, when the key value of the target virtual key represents "pause", the pause processing is performed on the event displayed on the current terminal. In order to avoid that the content displayed on the bottom layer of the terminal is shielded due to the display of the keys, so that the operation experience of a user is affected, the target virtual keys can be displayed in a semitransparent mode, and after a preset time period, such as 3 seconds, the target virtual keys are hidden. Therefore, on one hand, the user is fed back and prompted by the keys, the keyboard control experience of the user is improved, on the other hand, the normal experience of the user is not affected more due to the feedback of the virtual keyboard operation, and the terminal interaction experience of the user is integrally improved.
According to the embodiment of the invention, the initial area is displayed firstly, so that a user can set the key control area. Then detecting the setting operation of a target virtual key in the initial area by a user to obtain area selection information corresponding to the target virtual key, wherein the target virtual key is one of a plurality of selectable virtual keys; the operation of the user in the initial area may be multi-click operation of the corresponding key control area according to the operation habit thereof. Dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively. In the embodiment of the invention, a user can select any area as a key control area by clicking any in the initial area according to the operation habit of each selectable virtual key, so that the space utilization rate of the initial area can be improved while setting the virtual key according to the actual use condition of the user. Because the initial area is not divided into the fixed key area and the key shape in the embodiment of the invention, the user can randomly perform clicking operation in the area corresponding to the key according to own operation habit, so that the key is not required to be displayed to the user during actual key control, and the user can normally complete operation according to own operation habit, thereby reducing the interference of the visual cover of the original virtual key. In addition, the method and the device are different from the problem of fixed key size in the prior art, and in the embodiment of the invention, the whole terminal operation panel is divided into the operation areas corresponding to the virtual keys according to the set position points of the user, so that the response range of the virtual keys is greatly enlarged, and the operation experience of the common virtual keys of the user is improved.
Fig. 7 is a schematic structural diagram of a virtual key setting device according to an embodiment of the present invention. As shown in fig. 7, the apparatus 40 includes: a display module 401, an operation module 402 and a division module 403.
Wherein, the display module 401 is configured to display an initial area;
an operation module 402, configured to detect a setting operation of a target virtual key in the initial area by a user, and obtain area selection information corresponding to the target virtual key;
the dividing module 403 is configured to divide the initial area according to the area selection information corresponding to the plurality of selectable virtual keys, so as to obtain key control areas corresponding to the selectable virtual keys respectively.
The operation process of the virtual key setting device provided by the embodiment of the present invention is substantially the same as that of the foregoing method embodiment, and will not be repeated.
According to the virtual key setting device provided by the embodiment of the invention, the initial area is displayed firstly, so that a user can set the key control area. Then detecting the setting operation of a target virtual key in the initial area by a user to obtain area selection information corresponding to the target virtual key, wherein the target virtual key is one of a plurality of selectable virtual keys; the operation of the user in the initial area may be multi-click operation of the corresponding key control area according to the operation habit thereof. Dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively. In the embodiment of the invention, a user can select any area as a key control area by clicking any in the initial area according to the operation habit of each selectable virtual key, so that the space utilization rate of the initial area can be improved while setting the virtual key according to the actual use condition of the user. Because the initial area is not divided into the fixed key area and the key shape in the embodiment of the invention, the user can randomly perform clicking operation in the area corresponding to the key according to own operation habit, so that the key is not required to be displayed to the user during actual key control, and the user can normally complete operation according to own operation habit, thereby reducing the interference of the visual cover of the original virtual key. In addition, the method and the device are different from the problem of fixed key size in the prior art, and in the embodiment of the invention, the whole terminal operation panel is divided into the operation areas corresponding to the virtual keys according to the set position points of the user, so that the response range of the virtual keys is greatly enlarged, and the operation experience of the common virtual keys of the user is improved.
Fig. 8 is a schematic structural diagram of a virtual key setting device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the virtual key setting device.
As shown in fig. 8, the virtual key setting apparatus may include: a processor 502, a communication interface (Communications Interface) 504, a memory 506, and a communication bus 508.
Wherein: processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508. A communication interface 504 for communicating with network elements of other devices, such as clients or other servers. The processor 502 is configured to execute the program 510, and may specifically perform the relevant steps in the embodiments of the virtual key setting method described above.
In particular, program 510 may include program code comprising computer-executable instructions.
The processor 502 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the virtual key setting device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
A memory 506 for storing a program 510. Memory 506 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 510 may be specifically invoked by processor 502 to cause the virtual key setting device to:
displaying an initial area;
detecting setting operation of a target virtual key in the initial area by a user, and obtaining area selection information corresponding to the target virtual key;
dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively.
The operation process of the virtual key setting device provided by the embodiment of the present invention is substantially the same as that of the foregoing method embodiment, and will not be described again.
The virtual key setting device provided by the embodiment of the invention is used for setting the key control area by a user by firstly displaying the initial area. Then detecting the setting operation of a target virtual key in the initial area by a user to obtain area selection information corresponding to the target virtual key, wherein the target virtual key is one of a plurality of selectable virtual keys; the operation of the user in the initial area may be multi-click operation of the corresponding key control area according to the operation habit thereof. Dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively. In the embodiment of the invention, a user can select any area as a key control area by clicking any in the initial area according to the operation habit of each selectable virtual key, so that the space utilization rate of the initial area can be improved while setting the virtual key according to the actual use condition of the user. Because the initial area is not divided into the fixed key area and the key shape in the embodiment of the invention, the user can randomly perform clicking operation in the area corresponding to the key according to own operation habit, so that the key is not required to be displayed to the user during actual key control, and the user can normally complete operation according to own operation habit, thereby reducing the interference of the visual cover of the original virtual key. In addition, the method and the device are different from the problem of fixed key size in the prior art, and in the embodiment of the invention, the whole terminal operation panel is divided into the operation areas corresponding to the virtual keys according to the set position points of the user, so that the response range of the virtual keys is greatly enlarged, and the operation experience of the common virtual keys of the user is improved.
The embodiment of the invention provides a computer readable storage medium, which stores at least one executable instruction, and when the executable instruction runs on virtual key setting equipment, the virtual key setting equipment executes the virtual key setting method in any method embodiment.
The executable instructions may be specifically configured to cause the virtual key setting device to:
acquiring set position points respectively input by a user aiming at a plurality of selectable virtual keys; the set position point comprises a target virtual key and the region selection information corresponding to the target virtual key; the region selection information is a region arbitrarily selected by the user in an initial region;
and carrying out region division on the initial region according to the region selection information corresponding to the plurality of selectable virtual keys to obtain key control regions corresponding to the selectable virtual keys respectively.
The operation process of the executable instructions stored in the computer storage medium provided in the embodiment of the present invention is substantially the same as that of the foregoing method embodiment, and will not be repeated.
The executable instructions stored in the computer storage medium provided by the embodiment of the invention are used for setting the key control area by a user by firstly displaying the initial area. Then detecting the setting operation of a target virtual key in the initial area by a user to obtain area selection information corresponding to the target virtual key, wherein the target virtual key is one of a plurality of selectable virtual keys; the operation of the user in the initial area may be multi-click operation of the corresponding key control area according to the operation habit thereof. Dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively. In the embodiment of the invention, a user can select any area as a key control area by clicking any in the initial area according to the operation habit of each selectable virtual key, so that the space utilization rate of the initial area can be improved while setting the virtual key according to the actual use condition of the user. Because the initial area is not divided into the fixed key area and the key shape in the embodiment of the invention, the user can randomly perform clicking operation in the area corresponding to the key according to own operation habit, so that the key is not required to be displayed to the user during actual key control, and the user can normally complete operation according to own operation habit, thereby reducing the interference of the visual cover of the original virtual key. In addition, the method and the device are different from the problem of fixed key size in the prior art, and in the embodiment of the invention, the whole terminal operation panel is divided into the operation areas corresponding to the virtual keys according to the set position points of the user, so that the response range of the virtual keys is greatly enlarged, and the operation experience of the common virtual keys of the user is improved.
The embodiment of the invention provides a virtual key setting device which is used for executing the virtual key setting method.
An embodiment of the present invention provides a computer program that can be invoked by a processor to cause a virtual key setting apparatus to execute the virtual key setting method in any of the above-described method embodiments.
An embodiment of the present invention provides a computer program product, including a computer program stored on a computer readable storage medium, the computer program including program instructions which, when run on a computer, cause the computer to perform the virtual key setting method in any of the method embodiments described above.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component, and they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (10)

1. A virtual key setting method, the method comprising:
displaying an initial area;
detecting setting operation of a target virtual key in the initial area by a user, and obtaining area selection information corresponding to the target virtual key;
dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively.
2. The method of claim 1, wherein the presenting an initial region comprises:
and displaying setting prompt information on the initial area, wherein the setting prompt information is used for prompting the user to perform clicking operation for a plurality of times on the initial area for each selectable virtual key so as to input the setting position point corresponding to each selectable virtual key.
3. The method of claim 2, wherein the area selection information includes a set position point corresponding to each of the selectable virtual keys; the dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively, including:
and carrying out aggregation processing on the set position points corresponding to the same selectable virtual key to obtain the key control area corresponding to the selectable virtual key.
4. The method of claim 3, wherein aggregating the set position points corresponding to the same selectable virtual key to obtain the key control area corresponding to the selectable virtual key comprises:
connecting the set position points corresponding to the plurality of selectable virtual keys to obtain a plurality of voronoi diagrams;
combining the voronoi diagrams according to the selectable virtual keys corresponding to the set position points to obtain the key control areas corresponding to the selectable virtual keys respectively; and combining the voronoi diagrams of the set position points corresponding to the same selectable virtual key.
5. The method of claim 4, wherein before performing connection processing on the set position points corresponding to the plurality of selectable virtual keys in the initial area to obtain a plurality of voronoi diagrams, the method comprises:
determining the center points of all the set position points;
and denoising the set position points according to the distances between the set position points and the center points.
6. The method according to claim 4, wherein after the aggregation processing is performed on the set position points corresponding to the same one of the selectable virtual keys to obtain the key control area corresponding to the selectable virtual key, the method includes:
displaying the selectable virtual keys corresponding to the key control area on the key control area;
detecting the setting confirmation information input by the user;
and hiding the optional virtual key when the user virtual key is determined to be set according to the setting confirmation information.
7. The method according to claim 1, wherein after dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys, the method includes:
when the triggering action aiming at the target virtual key is detected, displaying the target virtual key for a preset duration at the target operation position with preset transparency.
8. A virtual key setting apparatus, the apparatus comprising:
the display module is used for displaying the initial area;
the operation module is used for detecting the setting operation of the target virtual key in the initial area by a user and obtaining the area selection information corresponding to the target virtual key;
the dividing module is used for dividing the initial area according to the area selection information corresponding to the plurality of selectable virtual keys to obtain key control areas corresponding to the selectable virtual keys respectively.
9. A virtual key setting apparatus, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the virtual key setting method according to any one of claims 1 to 7.
10. A computer readable storage medium, wherein at least one executable instruction is stored in the storage medium, which when run on a virtual key setting device causes the virtual key setting device to perform the operations of the virtual key setting method according to any of claims 1-7.
CN202310066288.1A 2023-01-19 2023-01-19 Virtual key setting method, device, equipment and computer storage medium Pending CN116027962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310066288.1A CN116027962A (en) 2023-01-19 2023-01-19 Virtual key setting method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310066288.1A CN116027962A (en) 2023-01-19 2023-01-19 Virtual key setting method, device, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN116027962A true CN116027962A (en) 2023-04-28

Family

ID=86075717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310066288.1A Pending CN116027962A (en) 2023-01-19 2023-01-19 Virtual key setting method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN116027962A (en)

Similar Documents

Publication Publication Date Title
US9612736B2 (en) User interface method and apparatus using successive touches
EP3405857B1 (en) Arc keyboard layout
US20130241829A1 (en) User interface method of touch screen terminal and apparatus therefor
US10698599B2 (en) Connecting graphical shapes using gestures
JP6105818B2 (en) Apparatus, method, and mobile terminal for adaptively adjusting layout of touch input panel
CN107479818B (en) Information interaction method and mobile terminal
CN106464749B (en) Interactive method of user interface
US20230325062A1 (en) Method for adjusting interface display state, and electronic device
CN107797722A (en) Touch screen icon selection method and device
US11275501B2 (en) Creating tables using gestures
US11385791B2 (en) Method and device for setting layout of icon of system interface of mobile terminal, and medium
CN111562876A (en) Virtual keyboard setting method, equipment and storage medium
CN113296651A (en) Window management method and computing device
CN105843467A (en) Icon displaying method and device
US10073612B1 (en) Fixed cursor input interface for a computer aided design application executing on a touch screen device
CN105739771B (en) A kind of display interface management method, device and terminal
CN106155768A (en) Split screen runs the method and device of application
CN108815843B (en) Control method and device of virtual rocker
CN114415886A (en) Application icon management method and electronic equipment
CN111459823A (en) Game software testing method and device, storage medium and processor
CN111796746A (en) Volume adjusting method, volume adjusting device and electronic equipment
JP5767371B1 (en) Game program for controlling display of objects placed on a virtual space plane
CN114629800B (en) Visual generation method, device, terminal and storage medium for industrial control network target range
CN116027962A (en) Virtual key setting method, device, equipment and computer storage medium
JP2016016319A (en) Game program for display-controlling objects arranged on virtual spatial plane

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