Control editing method and apparatus, electronic device, and computer-readable storage medium

By displaying an editing interface on the game screen and responding to key area generation operations, determining the target position and shape, and selecting and matching the shape of the control with the key area, the problem of the immutability of control shape is solved, and the custom shape change of the control and the flexibility of operation are improved.

WO2026001569A1PCT designated stage Publication Date: 2026-01-02NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/098538
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-24
Filing Date
2025-05-30
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

In existing technologies, the shape of game interface controls cannot be changed, which limits the flexibility of control modification and operation, making it impossible to set a control layout that suits one's own needs.

Method used

By displaying the editing interface, responding to the key area generation operation, determining the target position and shape, and displaying the key area on the interface, the target control is selected from the control collection, and the shape of the control is associated with and matched with the shape of the key area to achieve custom shape changes of the control.

Benefits of technology

It improves the flexibility of control operation, allowing players to customize the shape and layout of the controls, thus enhancing their operability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025098538_02012026_PF_FP_ABST
    Figure CN2025098538_02012026_PF_FP_ABST
Patent Text Reader

Abstract

A control editing method and apparatus, an electronic device, and a computer-readable storage medium. The control editing method comprises: displaying an editing interface (201); in response to a key area generation operation, determining a target position and a target shape of at least one key area, and displaying the at least one key area on the editing interface on the basis of the target position and the target shape (202); determining a target control from a control set, the control set comprising one or more controls (203); associating the target control with a target key area, the target key area being a key area among the at least one key area (204); and controlling to display the target control on the target key area, wherein the control shape of the target control matches the target shape of the target key area (205), and the shape of the control can be customized.
Need to check novelty before this filing date? Find Prior Art

Description

Control editing method and device, electronic equipment and computer readable storage medium

[0001] Cross-reference to Related Applications

[0002] The present application claims priority to the Chinese patent application No. 202410822475.2, filed on June 24, 2024, and entitled "Control editing method and device, electronic equipment and computer readable storage medium", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present disclosure relates to the technical field of computer, in particular to a control editing method and device, electronic equipment and computer readable storage medium. BACKGROUND

[0004] With the development of science and technology, there are more and more controls in the game interface, and the game player can reduce, enlarge and move the controls in the game interface.

[0005] However, only reducing, enlarging and moving the controls cannot change the shape of the controls, which greatly limits the modification of the controls, so that the game player cannot set the control layout suitable for himself, and reduces the flexibility of control operation. SUMMARY

[0006] The embodiments of the present disclosure provide a control editing method and device, electronic equipment and computer readable storage medium, which can modify the shape of the controls and improve the flexibility of control operation.

[0007] In a first aspect, the embodiments of the present disclosure provide a control editing method, and the method comprises:

[0008] displaying an editing interface;

[0009] in response to a key area generation operation, determining a target position and a target shape of at least one key area, and displaying the at least one key area on the editing interface according to the target position and the target shape;

[0010] determining a target control from a control set, wherein the control set comprises one or more controls;

[0011] associating the target control with a target key area, wherein the target key area is a key area in the at least one key area;

[0012] controlling to display the target control on the target key area, wherein the control shape of the target control matches the target shape of the target key area.

[0013] In a second aspect, the present disclosure provides a control editing apparatus, the apparatus comprising:

[0014] a first display module configured to perform display of an editing interface;

[0015] a region generation module configured to perform, in response to a key region generation operation, determination of a target position and a target shape of at least one key region, and display of the at least one key region on the editing interface according to the target position and the target shape;

[0016] a control determination module configured to perform determination of a target control from a control set, wherein the control set comprises one or more controls;

[0017] a control association module configured to perform association of the target control and a target key region, wherein the target key region is a key region in the at least one key region;

[0018] a second display module configured to perform control of display of the target control on the target key region, wherein a control shape of the target control matches the target shape of the target key region.

[0019] In a third aspect, the present disclosure provides an electronic device, comprising a memory storing a plurality of instructions, and a processor configured to load the instructions from the memory to perform any of the control editing methods provided by the present disclosure.

[0020] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are adapted to be loaded by a processor to perform any of the control editing methods provided by the present disclosure.

[0021] In the present disclosure, an editing interface is displayed, in response to a key region generation operation, a target position and a target shape of at least one key region are determined, and the at least one key region is displayed on the editing interface according to the target position and the target shape; a target control is determined from a control set, wherein the control set comprises one or more controls, the target control is associated with a target key region, wherein the target key region is a key region in the at least one key region; and the target control is displayed on the target key region, wherein a control shape of the target control matches the target shape of the target key region, so as to change the shape of the target control to the target shape, to enable customization of the shape of the control and improve the flexibility of control operation. BRIEF DESCRIPTION OF DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative effort based on these drawings.

[0023] FIG. 1 is a schematic diagram of a control editing system according to an embodiment of the present disclosure;

[0024] FIG. 2 is a schematic diagram of an embodiment of a control editing method according to an embodiment of the present disclosure;

[0025] FIG. 3 is a schematic diagram of an editing interface according to an embodiment of the present disclosure;

[0026] FIG. 4 is a schematic diagram of another editing interface according to an embodiment of the present disclosure;

[0027] FIG. 5 is a schematic diagram of a target shape according to an embodiment of the present disclosure;

[0028] FIG. 6 is a schematic diagram of another target shape according to an embodiment of the present disclosure;

[0029] FIG. 7 is a schematic diagram of a fingerprint pattern according to an embodiment of the present disclosure;

[0030] FIG. 8 is a schematic diagram of another target shape according to an embodiment of the present disclosure;

[0031] FIG. 9 is a schematic diagram of another target shape according to an embodiment of the present disclosure;

[0032] FIG. 10 is a schematic diagram of a first position according to an embodiment of the present disclosure;

[0033] FIG. 11 is a schematic diagram of a key position area according to an embodiment of the present disclosure;

[0034] FIG. 12 is a schematic diagram of a key position frame according to an embodiment of the present disclosure;

[0035] FIG. 13 is a schematic diagram of a target control on a key position area according to an embodiment of the present disclosure;

[0036] FIG. 14 is a schematic diagram of a key position layout interface according to an embodiment of the present disclosure;

[0037] FIG. 15 is a schematic diagram of a target interface according to an embodiment of the present disclosure;

[0038] FIG. 16 is a schematic diagram of an embodiment of another control editing method according to an embodiment of the present disclosure;

[0039] FIG. 17 is a structural schematic diagram of a control editing apparatus provided by one of the embodiments of the present disclosure;

[0040] FIG. 18 is a structural schematic diagram of an electronic device provided by one of the embodiments of the present disclosure. DETAILED DESCRIPTION

[0041] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present disclosure.

[0042] Before the embodiments of the present disclosure are explained in detail, some terms related to the embodiments of the present disclosure are explained.

[0043] In the description of the embodiments of the present disclosure, the terms "first", "second", and the like can be used herein to describe various concepts, but unless specifically stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] The embodiments of the present disclosure provide a control editing method, apparatus, electronic device and computer readable storage medium. Specifically, the control editing method of the embodiments of the present disclosure can be executed by an electronic device, where the electronic device can be a terminal or a server, etc.

[0045] The terminal can be a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (PDA), etc. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc.

[0046] The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and basic cloud computing services such as big data and artificial intelligence platforms.

[0047] For example, as shown in FIG. 1, the electronic device is exemplified by a terminal 10, which can display an editing interface, determine a target position and a target shape of at least one key region in response to a key region generation operation, display the at least one key region on the editing interface according to the target position and the target shape, send the at least one key region to a server 20 for storage, and determine a target control from a control set, wherein the control set includes one or more controls, associate the target control with a target key region, wherein the target key region is a key region in the at least one key region, and control the target control to be displayed on the target key region, wherein a control shape of the target control matches the target shape of the target key region.

[0048] The embodiments are described in detail below with reference to the accompanying drawings. It should be noted that the order of the following embodiments is not intended to limit the preferred order of the embodiments. Although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be performed in an order different from that shown in the accompanying drawings.

[0049] In this embodiment, a terminal is exemplified, and the embodiment provides a control editing method. As shown in FIG. 2, the specific process of the control editing method can be as follows:

[0050] 201, display an editing interface.

[0051] The terminal can display the editing interface in response to a key frame setting instruction. The key frame setting instruction is an instruction for setting a key region. The terminal can obtain the key frame setting instruction through an input device. The type of the input device can be set according to actual conditions. For example, the input device can be at least one of a touch screen, a keyboard, a mouse, or a microphone. The present embodiment does not limit this.

[0052] When the terminal obtains the key frame setting instruction through the touch screen, the terminal can display a target picture through a graphical user interface, and the target picture includes a setting control. The terminal obtains the key frame setting instruction in response to a trigger operation on the setting control.

[0053] The type of the trigger operation can be set according to actual conditions. For example, the trigger operation can be a click operation or a long press operation. The present embodiment does not limit this.

[0054] The target picture can be set according to actual conditions, for example, the target picture can be a target game picture or a desktop, and the embodiments of the present disclosure do not make any limitation here.

[0055] The editing interface refers to an interface that can be used to edit the control, and the control in the control set can be displayed or not. The editing interface can include at least one interface.

[0056] When the editing interface includes one interface and the control in the control set is displayed on the editing interface, the control displayed on the editing interface belongs to a non-triggerable state, and the form indicating the non-triggerable state can be set according to actual conditions, for example, the control can be displayed in gray or dark gray, and the embodiments of the present disclosure do not make any limitation here.

[0057] When the editing interface includes two interfaces and the control in the control set is displayed on the editing interface, the editing interface can include a generation interface and a control interface, the key area is displayed on the generation interface, and the control in the control set is displayed on the control interface.

[0058] For example, in response to a key box setting instruction, the displayed control interface can be as shown in FIG. 3, and in response to an editing trigger operation on “autonomous customization” in the control interface, the displayed generation interface can be as shown in FIG. 4.

[0059] 202. In response to a key area generation operation, determine a target position and a target shape of at least one key area, and display the at least one key area on the editing interface according to the target position and the target shape.

[0060] The key area generation operation is used to generate a key area, and the type of the key area generation operation can be set according to actual conditions, for example, the key area generation operation can be a touch operation or a voice operation, and the touch operation can be a drawing operation, a dragging operation, a clicking operation or a pressing operation, and the embodiments of the present disclosure do not make any limitation here.

[0061] In response to the key area generation operation, the terminal can obtain an operation position corresponding to the key area generation operation and a shape indicated by the key area generation operation, determine the operation position corresponding to the key area generation operation as the target position, and determine the shape indicated by the key area generation operation as the target shape.

[0062] The key area refers to an area where the control can be placed. The target position is used to indicate the position of the key area on the display screen of the terminal, and the target shape is used to indicate the external contour of the key area on the display screen of the terminal. After determining the target position and the target shape, the terminal generates a key area of the target shape, and displays the key area of the target shape on the target position of the editing interface.

[0063] In some embodiments, the target shape can have a preset size, or the size of the target shape can be determined according to the key region generation operation.

[0064] In some embodiments, the key region generation operation includes a touch operation, and in response to the touch operation, the target position and the target shape of at least one key region are determined, including:

[0065] In response to the touch operation, a touch parameter corresponding to the touch operation is obtained.

[0066] The touch parameter is mapped to obtain a target size corresponding to the touch parameter.

[0067] According to the target size, the target shape of the key region is determined, and according to the touch position corresponding to the touch operation, the target position of the key region is determined.

[0068] The type of the trigger operation can be a long press operation or a click operation, which is not limited in the embodiments of the present disclosure. The touch parameter refers to a parameter detected through the touch operation. The type of the touch parameter can be set according to actual conditions, for example, when the touch operation is a click operation, the touch parameter is a click time or a click force, and when the touch operation is a press operation, the touch parameter is a press force, which is not limited in the embodiments of the present disclosure.

[0069] The mapping processing of the touch parameter can be set according to actual conditions, for example, a plurality of touch parameter intervals can be set, the size corresponding to the touch parameter interval in which the touch parameter is located is determined as the target size corresponding to the touch parameter, or a mapping function can be set, the touch parameter is input into the mapping function for mapping processing to obtain the target size, which is not limited in the embodiments of the present disclosure.

[0070] When the touch parameter is mapped according to a plurality of touch parameter intervals, a normal touch parameter interval can be selected from the plurality of touch parameter intervals, the size corresponding to the normal touch parameter interval is set, and then the size corresponding to the normal touch parameter interval is enlarged at different scales to obtain the size corresponding to other touch parameter intervals. For example, the touch parameter intervals include a touch parameter interval F1, a touch parameter interval F2, a touch parameter interval F3, a touch parameter interval F4, and a touch parameter interval F5, the touch parameter interval F1 is a normal touch parameter interval, the size corresponding to the touch parameter interval F1 is s1, s1 is enlarged by 10% to obtain s2, the size corresponding to the touch parameter interval F2 is s2, s1 is enlarged by 20% to obtain s3, the size corresponding to the touch parameter interval F3 is s3, s1 is enlarged by 30% to obtain s4, the size corresponding to the touch parameter interval F4 is s4, s1 is enlarged by 40% to obtain s5, and the size corresponding to the touch parameter interval F5 is s5.

[0071] Optionally, the different sizes can correspond to different shapes, or can correspond to the same shape. When the different sizes correspond to the same shape, the shape corresponding to the different touch parameters is the first shape with different sizes.

[0072] For example, the first shape is an ellipse, the different sizes all correspond to an ellipse, the touch parameter is the pressing force, when the pressing force is f1, f1 belongs to the pressing force interval F1, the size corresponding to the pressing force interval F1 is s1, when the pressing force is f2, f3 belongs to the pressing force interval F2, the size corresponding to the pressing force interval F2 is s2, when the pressing force is f3, f3 belongs to the pressing force interval F3, the size corresponding to the pressing force interval F3 is s3, when the pressing force is f4, f4 belongs to the pressing force interval F4, the size corresponding to the pressing force interval F4 is s4, when the pressing force is f5, f5 belongs to the pressing force interval F5, the size corresponding to the pressing force interval F5 is s5, f1>f2>f3>f4>f5, s1<s2<s3<s4<s5, and the target shape generated according to f1, f2, f3, f4 and f5 can be as shown in FIG. 5.

[0073] Optionally, for different users, the size corresponding to the same touch parameter interval can be the same or different. When the size corresponding to the same touch parameter interval is the same for different users, for example, users u1 and u2 perform touch operations on the editing interface, for users u1 and u2, the size corresponding to the touch parameter interval F1 is s1, the size corresponding to the touch parameter interval F2 is s2, the size corresponding to the touch parameter interval F3 is s3, the size corresponding to the touch parameter interval F4 is s4, and the size corresponding to the touch parameter interval F5 is s5.

[0074] When the sizes corresponding to the same touch parameter interval are different for different users, the touch parameter region includes touch parameter interval F1, touch parameter interval F2, touch parameter interval F3, touch parameter interval F4, and touch parameter interval F5, for user u1, the size corresponding to touch parameter interval F1 is s1, the size corresponding to touch parameter interval F2 is s2, the size corresponding to touch parameter interval F3 is s3, the size corresponding to touch parameter interval F4 is s4, and the size corresponding to touch parameter interval F5 is s5, for example, when the touch parameter interval is the pressing force interval, the target shape determined according to the shape corresponding to each pressing force interval can be as shown in FIG. 5, for user u2, the size corresponding to touch parameter interval F1 is s1', the size corresponding to touch parameter interval F2 is s2', the size corresponding to touch parameter interval F3 is s3', the size corresponding to touch parameter interval F4 is s4', and the size corresponding to touch parameter interval F5 is s5', for example, when the touch parameter interval is the pressing force interval, the target shape determined according to the shape corresponding to each pressing force interval can be as shown in FIG. 6.

[0075] In some embodiments, the touch operation includes a pressing operation, the touch parameter is a pressing force, the greater the pressing force, the smaller the target size, the smaller the pressing force, the larger the target size, and in response to the touch operation, the touch parameter corresponding to the touch operation is acquired, including:

[0076] In response to the pressing operation, the pressing force corresponding to the pressing operation is acquired by the pressure sensor.

[0077] In this embodiment of the present disclosure, the greater the pressing force, the smaller the target size, and the smaller the pressing force, the larger the target size, so that the target size of the key area generated in the area where the finger is more difficult to touch is larger, reducing the difficulty of the finger touching the target control on the key area, and realizing the formation of a key area convenient for user operation under non-subjective control of the user.

[0078] Therefore, in the embodiment of the present disclosure, the greater the pressing force, the smaller the target size, and the smaller the pressing force, the larger the target size, so that the target size of the key area generated in the area where the finger is more difficult to touch is larger, reducing the difficulty of the finger touching the target control on the key area, and realizing the formation of a key area convenient for user operation under non-subjective control of the user.

[0079] In some embodiments, in order to visualize the pressing force, before determining the target shape of the key area according to the target size, the method further includes:

[0080] Generating a fingerprint pattern according to the pressing force;

[0081] Displaying the fingerprint pattern on the position corresponding to the pressing operation in the editing interface.

[0082] According to different pressing forces, the transparency of the generated fingerprint pattern is different. For example, the greater the pressing force, the lower the transparency of the fingerprint pattern, the deeper the fingerprint pattern, the smaller the pressing force, the higher the transparency of the fingerprint pattern, and the shallower the fingerprint pattern. For example, the fingerprint pattern displayed on the editing interface can be as shown in FIG. 7.

[0083] Optionally, the transparency corresponding to different pressing force intervals can be different. After obtaining the pressing operation, the terminal determines the pressing force interval corresponding to the pressing force, takes the transparency corresponding to the pressing force interval as the transparency of the fingerprint pattern, and generates the fingerprint pattern according to the transparency of the fingerprint pattern.

[0084] For example, the pressing force region includes pressing force interval F1, pressing force interval F2, pressing force interval F3, pressing force interval F4, and pressing force interval F5. The transparency corresponding to the pressing force interval F1 is 100%, the transparency corresponding to the pressing force interval F2 is 80%, the transparency corresponding to the pressing force interval F3 is 60%, the transparency corresponding to the pressing force interval F4 is 40%, and the transparency corresponding to the pressing force interval F5 is 20%.

[0085] In the embodiments of the present disclosure, the fingerprint pattern is generated according to the pressing force, and the fingerprint pattern is displayed on the position corresponding to the pressing operation in the editing interface, so as to realize visualizing the pressing force to the user through the fingerprint pattern.

[0086] Optionally, when the fingerprint pattern is displayed on the position corresponding to the pressing operation in the editing interface, the terminal can respond to the confirmation operation on the fingerprint pattern, and perform mapping processing on the pressing force to obtain a target size corresponding to the pressing force. The greater the pressing force, the smaller the target size, and the smaller the pressing force, the larger the target size.

[0087] For example, the fingerprint pattern displayed on the editing interface can be as shown in FIG. 7. In response to the triggering operation of “confirming to generate a key” in the editing interface, at least one key region is generated and displayed on the editing interface. At this time, the editing interface can be as shown in FIG. 8.

[0088] In some embodiments, the touch operation includes a click operation, and the touch parameter is a click time. The less the click time, the smaller the target size, and the more the click time, the larger the target size. In response to the touch operation, the touch parameter corresponding to the touch operation is obtained, including:

[0089] In response to the click operation, the click time corresponding to the click operation is obtained through the click event.

[0090] The click event is an event generated based on a click operation. The terminal can call the getDownTime() method to obtain the press time of the event through the click event, or can also obtain the click time from the timestamp attribute in the Input class through the click event.

[0091] In the embodiment of the present disclosure, different click times exist due to different finger hot areas when the user triggers on the display screen. For example, the click time of the finger is less in the area on the display screen where the finger is easy to touch, and the click time of the finger is more in the area on the display screen where the finger is difficult to touch. When the control is located on the area where the finger is difficult to touch, if the size of the control is small, the finger cannot touch the control.

[0092] Therefore, in the embodiment of the present disclosure, the smaller the click time is, the smaller the target size is, the larger the click time is, the larger the target size is, so that the target size of the key area generated in the area where the finger is more difficult to touch is larger, the difficulty of the finger touching the target control on the key area is reduced, and the key area convenient for the user to operate is formed under the non-subjective control of the user.

[0093] In some embodiments, the process of determining the target shape of the at least one key area according to the target size can be:

[0094] generating the target shape of the target size of the at least one key area.

[0095] At this time, the target position of the at least one key area is the touch position corresponding to the touch operation.

[0096] Alternatively, the process of determining the target shape of the at least one key area according to the target size comprises:

[0097] generating a candidate shape of the target size;

[0098] If there is a candidate shape satisfying the preset overlap condition, the candidate shape satisfying the preset overlap condition is fused to obtain the target shape of the at least one key area.

[0099] The preset overlap condition can be set according to actual conditions, for example, the candidate shape can be determined to satisfy the preset overlap condition when the overlapping area is equal to or greater than a preset area, or the candidate shape can be determined to satisfy the preset overlap condition as long as there is an overlap, which is not limited in the embodiment of the present disclosure.

[0100] For example, the candidate shapes of the target size can be as shown in FIG. 8, in which there are candidate shapes satisfying the preset overlap condition and candidate shapes not satisfying the preset overlap condition. The candidate shapes satisfying the preset overlap condition are fused to obtain the target shape of the key region, and the candidate shapes not satisfying the preset overlap condition are taken as the target shape of the key region. The target shape can be as shown in FIG. 9.

[0101] It should be understood that when the candidate shapes satisfy the preset overlap condition, the positions where the touch operations corresponding to the candidate shapes satisfying the preset overlap condition are located also overlap. In this case, the target position of the key region is the position after the positions where the touch operations corresponding to the candidate shapes satisfying the preset overlap condition overlap.

[0102] In the embodiments of the present disclosure, the candidate shapes of the target size are generated. If there are candidate shapes satisfying the preset overlap condition, the candidate shapes satisfying the preset overlap condition are fused to obtain the target shape of at least one key region, so that the user can further customize the target shape according to his own needs, and the flexibility of defining the target shape is further improved.

[0103] In some embodiments, the editing interface further includes at least one preset shape, the key region generation operation includes a selection operation and a dragging operation, and the target position and the target shape of the at least one key region are determined in response to the key region generation operation, including:

[0104] In response to the selection operation on the at least one preset shape, the preset shape corresponding to the selection operation is determined as the target shape of the at least one key region.

[0105] In response to the dragging operation on the target shape, the target shape is controlled to move.

[0106] In response to the dragging operation satisfying a preset end condition, the end position where the dragging operation is located is determined as the target position of the at least one key region.

[0107] The at least one preset shape can be set according to actual conditions, for example, the at least one preset shape can be a rectangle, a circle or a triangle, which is not limited in the embodiments of the present disclosure.

[0108] The type of the selection operation can be set according to actual conditions, for example, the selection operation can be a click operation or a press operation, which is not limited in the embodiments of the present disclosure.

[0109] The preset end condition satisfied by the dragging operation can be set according to actual conditions, for example, it can be detected that the dragging operation is released to determine that the preset end condition is satisfied by the dragging operation, or it can be detected that the dwell time of the dragging operation is equal to a preset time length to determine that the preset end condition is satisfied by the dragging operation, which is not limited in the embodiments of the present disclosure.

[0110] The end position of the drag operation refers to a position where it is detected that the drag operation meets a preset end condition, for example, a position where it is detected that the drag operation is released.

[0111] In the embodiments of the present disclosure, in response to a selection operation on at least one preset shape, the preset shape corresponding to the selection operation is determined as a target shape of the at least one key region, in response to a drag operation on the target shape, the target shape is controlled to move, and in response to the drag operation meeting a preset end condition, an end position of the drag operation is determined as a target position of the at least one key region, so as to achieve the selection of the target shape from the at least one preset shape and the determination of the target position through the drag operation.

[0112] For example, as shown in FIG. 10, the at least one preset shape includes a rectangle, a circle and a triangle, the target shape is a rectangle, and in response to a drag operation on the rectangle, it is detected that the rectangle is released when the rectangle is dragged to a first position as shown in FIG. 10, and the first position is the target position.

[0113] In some embodiments, the key region generation operation is a drawing operation, and in response to the key region generation operation, the target position and the target shape of the at least one key region are determined, including:

[0114] In response to the drawing operation, a drawing region corresponding to the drawing operation is obtained.

[0115] According to the position of the drawing region and the shape of the drawing region, the target position and the target shape of the at least one key region are determined.

[0116] In the embodiments of the present disclosure, after the terminal obtains the drawing region corresponding to the drawing operation, the terminal can determine the position of the drawing region as the target position of the at least one key region, and determine the shape of the at least one drawing region as the target shape.

[0117] For example, the editing interface can be as shown in FIG. 11, the terminal determines the target position and the target shape of the key region according to the position of the drawing region and the shape of the drawing region, and the key region generated according to the target position and the target shape can be as shown in FIG. 11.

[0118] In the embodiments of the present disclosure, in response to the drawing operation, the drawing region corresponding to the drawing operation is obtained, and according to the position of the drawing region and the shape of the drawing region, the target position and the target shape of the at least one key region are determined, so as to achieve the customization of the position and the shape of the key region through the drawing operation, thereby achieving the customization of the position and the shape of the control through the drawing operation.

[0119] In some embodiments, the editing interface is a control interface, the control displayed on the control interface is a control in the control set, and in response to the drawing operation, a drawing region corresponding to the drawing operation is obtained, including:

[0120] In response to the drawing operation on the control interface, a drawing region corresponding to the drawing operation is obtained.

[0121] In the embodiments of the present disclosure, the drawing operation is performed on the control interface, so that the player can intuitively feel the position and effect of the key region set by him in the game running.

[0122] In some embodiments, in response to the key region generation operation, a target position and a target shape of at least one key region are determined, and the at least one key region is displayed on the editing interface according to the target position and the target shape, including:

[0123] In response to the key region generation operation, a target position and a target shape of the candidate key region are determined, and the candidate key region is generated and displayed according to the target position and the target shape;

[0124] In response to the adjustment operation on the candidate key region, the candidate key region is adjusted to obtain at least one key region.

[0125] The candidate key region can include an anchor point, and the adjustment operation can be a trigger operation on the anchor point. The trigger operation on the anchor point can be set according to actual conditions, such as a drag operation or a long press operation, which is not limited in the embodiments of the present disclosure.

[0126] For example, the anchor point can be as shown in FIG. 12.

[0127] In the embodiments of the present disclosure, in response to the key region generation operation, a target position and a target shape of the candidate key region are determined, the candidate key region is generated and displayed according to the target position and the target shape, and in response to the adjustment operation on the candidate key region, the candidate key region is adjusted to obtain at least one key region, so that after the candidate key region is generated, if the candidate key region does not meet the user's demand, the candidate key region can be adjusted without the need to redraw the key region again.

[0128] In some embodiments, the candidate key region includes at least one, and in response to the adjustment operation on the candidate key region, the candidate key region is adjusted to obtain at least one key region, including:

[0129] In response to the adjustment operation on the first candidate key region in the candidate key region, a second candidate key region is selected from the candidate key region, and the second candidate key region and the first candidate key region form a key frame.

[0130] The first candidate key position region and the second candidate key position region are adjusted to obtain a key position region.

[0131] The first candidate key position region can be any one of the candidate key position regions. The first candidate key position region and the second candidate key position region form a key position framework. It can be understood that when the first candidate key position region and the second candidate key position region satisfy a preset region condition, the first candidate key position region and the second candidate key position region form the key position framework.

[0132] The preset region condition can be set according to actual conditions. For example, the preset region condition can be set according to at least one of a distance and a shape of a key position region. For example, when the distance between the first candidate key position region and the second candidate key position region is less than or equal to a preset distance, it is determined that the first candidate key position region and the second candidate key position region satisfy the preset region condition. For another example, when the first candidate key position region and the second candidate key position region form a preset target shape, it is determined that the first candidate key position region and the second candidate key position region satisfy the preset region condition. The preset target shape can be set according to actual conditions. For example, the preset target shape can be a rectangle or a quarter circle, which is not limited in the embodiments of the present disclosure.

[0133] When the first candidate key position region and the second candidate key position region form the key position framework, the key position framework formed by the first candidate key position region and the second key position region can be as shown in FIG. 12.

[0134] In the embodiments of the present disclosure, in response to an adjustment operation on the first candidate key position region in the candidate key position regions, a second candidate key position region is selected from the candidate key position regions. The second candidate key position region and the first candidate key position region form a key position framework. The first candidate key position region and the second candidate key position region are adjusted to obtain a key position region. Through one adjustment operation, multiple candidate key position regions can be adjusted, and the adjustment efficiency of the candidate key position regions is improved.

[0135] For example, as shown in FIG. 12, when the first candidate key position region is a first rectangle, the second candidate key position region is a second rectangle, a third rectangle and a fourth rectangle. In response to an adjustment operation on the first rectangle, the first rectangle, the second rectangle, the third rectangle and the fourth rectangle are adjusted.

[0136] In some embodiments, after displaying the at least one key position region, the embodiments of the present disclosure further include:

[0137] In response to a confirmation operation on the at least one key position region, the at least one key position region is saved.

[0138] The confirmation operation can be set according to actual conditions. For example, the editing interface can include a save control, and the confirmation operation can be a click operation on the save control. Alternatively, the confirmation operation can also be a voice confirmation operation, which is not limited in the embodiments of the present disclosure.

[0139] The at least one key area can be saved in a local storage space of the terminal, or can be saved in a corresponding server, which is not limited in the embodiments of the present disclosure.

[0140] In some embodiments, after displaying the at least one key area, the embodiments of the present disclosure further include:

[0141] In response to a sharing instruction for the at least one key area, the at least one key area is shared into a corresponding server, so that other terminals obtain the at least one key area from the corresponding server.

[0142] After the terminal shares the at least one key area into the corresponding server, the terminal can obtain the at least one key area from the corresponding server and display the at least one key area on the key layout interface, thereby realizing sharing of the key area and strengthening communication and exchange between users.

[0143] In some embodiments, the editing interface includes a layout change control and a shape change control. In response to a key area generation operation, the target position and the target shape of the at least one key area are determined, including:

[0144] In response to a triggering operation on the shape change control, a shape change interface is displayed.

[0145] In response to a key area generation operation on the shape change interface, the target position and the target shape of the at least one key area are determined.

[0146] At this time, the embodiments of the present disclosure further include:

[0147] In response to a triggering operation on the layout change control, a layout change interface is displayed, and the layout change interface includes controls in the control set.

[0148] In response to a moving operation and / or a zooming operation on the controls, the controls are moved and / or zoomed.

[0149] The shape changing interface can include a generation interface and a control interface. In the embodiment of the present disclosure, the editing interface includes a layout changing control and a shape changing control. In response to a triggering operation on the shape changing control, the shape changing interface is displayed. In response to a key region generation operation on the shape changing interface, a target position and a target shape of at least one key region are determined. In response to a triggering operation on the layout changing control, the layout changing interface is displayed. The layout changing interface includes controls in the control set. In response to a moving operation and / or a zooming operation on the controls, the controls are moved and / or zoomed, the modification manner of the controls is enriched, and the flexibility of customizing the controls is further improved.

[0150] 203. determining a target control from the control set, wherein the control set includes one or more controls.

[0151] The controls included in the control set can be controls displayed on a certain interface in the terminal, or can be all controls displayed on different interfaces in the terminal. For example, the control set can include all controls in a certain client. For example, when the client is a game client, the controls included in the control set are controls displayed on all game interfaces in the game client.

[0152] Optionally, the terminal can automatically determine the target control from the control set, or the terminal can also determine the target control from the control set in response to a user operation.

[0153] When the target control is determined from the control set in response to a user operation, the editing interface includes a generation interface and a control interface. The controls in the control set are controls displayed on the control interface, and at least one key region is displayed on the generation interface. The target control is determined from the control set, including:

[0154] The control interface is displayed, and the control interface includes at least one key region and controls in the control set.

[0155] In response to a selection operation on the controls, the control corresponding to the selection operation is determined as the target control.

[0156] The selection operation on the controls can be a clicking operation or a dragging operation, which is not limited in the embodiment of the present disclosure.

[0157] The terminal can display the control interface after detecting that at least one key region is displayed, or can display the control interface after detecting that at least one key region is saved.

[0158] For example, when the generation interface is as shown in FIG. 12, the control interface can be as shown in FIG. 13, and the target controls are the shooting control, the weapon control, and the direction control.

[0159] 204、associating the target control with the target key area, wherein the target key area is a key area in the at least one key area.

[0160] The manner of associating the target control with the target key area can be set according to actual conditions, and is not limited herein in the embodiments of the present disclosure.

[0161] For example, the terminal can associate the target control with the target key area in response to a click operation on the target control and a click operation on the target key area within a preset time length.

[0162] For another example, associating the target control with the target key area includes:

[0163] In response to a drag operation on the target control, the target control is dragged onto the target key area to associate the target control with the target key area.

[0164] For example, when displaying the controls in the control set on the control interface, the control interface can be as shown in FIG. 13, in response to a drag operation on the shooting control, the shooting control is dragged onto the key area as shown in FIG. 13 to associate the shooting control with the key area as shown in FIG. 13, in response to a drag operation on the weapon control, the weapon control is dragged onto the key area as shown in FIG. 13 to associate the weapon control with the key area as shown in FIG. 13, and in response to a drag operation on the direction control, the direction control is dragged onto the key area as shown in FIG. 13 to associate the direction control with the key area as shown in FIG. 13.

[0165] In some embodiments, the control set includes controls of different interfaces, and in response to a drag operation on the target control, the target control is dragged onto the target key area, including:

[0166] In response to a drag operation on the target control, the target control is dragged onto the target key area.

[0167] If there is no control on the target key area, the target control is placed on the target key area.

[0168] If there is a control on the target key area, and the interface in which the control exists and the interface in which the target control exists are different, the target control is placed on the target key area.

[0169] In the embodiments of the present disclosure, in response to the drag operation on the target control, the target control is dragged onto the target key area, if there is no control on the target key area, the target control is placed on the target key area, if there is a control on the target key area, and the interface where the control on the target key area is located is different from the interface where the target control is located, the target control is placed on the target key area, so that different controls are displayed on the key areas on different interfaces.

[0170] For example, the interface includes a first interface and a second interface, the first interface includes a shooting control, and the second interface includes a flashlight control, the terminal can drag the shooting control onto the key area A in response to the drag operation on the shooting control, if there is no control on the key area A, the shooting control is placed on the key area A, and then the flashlight control is dragged onto the key area A in response to the drag operation on the flashlight control, at this time, there is the shooting control on the key area A, and since the shooting control and the flashlight control are in different interfaces, the flashlight control can be placed on the key area A, that is, the target control on the key area A includes the shooting control and the flashlight control.

[0171] It should be understood that if there is a control on the target key area, and the interface where the control on the target key area is located is the same as the interface where the target control is located, the control on the target key area is replaced by the target control.

[0172] In some embodiments, when the key areas constitute a key frame, after the target control is dragged onto the target key area in response to the drag operation on the target control, the method further includes:

[0173] determining a first target key area, the first target key area and the target key area constitute a key frame;

[0174] dragging a control associated with the target control onto the first target key area.

[0175] The first target key area and the target key area constitute a key frame, which can refer to the definition of the first candidate key frame and the second candidate key frame constituting a key frame described above, and the embodiments of the present disclosure will not be repeated here.

[0176] The control associated with the target control can refer to a control whose frequency of use with the target control is equal to or greater than a preset frequency, for example, the target control is a jump control, and the control associated with the target control can be a bomb control, and the embodiments of the present disclosure are not limited here.

[0177] In the embodiment of the present disclosure, the first target key position region is determined, the first target key position region and the target key position region constitute a key position framework, the control associated with the target control is dragged onto the first target key position region, and the control displayed on the first target key position region is automatically determined, thereby improving the efficiency of editing the control.

[0178] In some embodiments, the control set includes a control in the target interface, the target control and the target key position region are associated, and the method comprises:

[0179] The position of the control included in the target interface on the target interface is obtained.

[0180] According to the position and the target position, the overlapping relationship between the control included in the target interface and the key position region is determined.

[0181] The control and the key position region corresponding to the overlapping relationship satisfying the preset overlapping relationship are associated, the control corresponding to the overlapping relationship satisfying the preset overlapping relationship is the target control, and the key position region corresponding to the overlapping relationship satisfying the preset overlapping relationship is the target key position region.

[0182] The overlapping relationship can refer to the area overlapping relationship between the position of the control and the target position of the key position region. When the preset overlapping relationship is satisfied, it indicates that the distance between the control and the key position region is close, and at this time, the control can be determined as the target control displayed on the target key position region.

[0183] The preset overlapping relationship can be set according to actual conditions, for example, the largest area overlapping relationship or the second largest area overlapping relationship in the area overlapping relationship can be determined as the preset overlapping relationship, which is not limited in the embodiment of the present disclosure.

[0184] In the embodiment of the present disclosure, the position of the control included in the target interface on the target interface is obtained, the overlapping relationship between the control included in the target interface and the key position region is determined according to the position and the target position, the control and the key position region corresponding to the overlapping relationship satisfying the preset overlapping relationship are associated, the control corresponding to the overlapping relationship satisfying the preset overlapping relationship is the target control, and the key position region corresponding to the overlapping relationship satisfying the preset overlapping relationship is the target key position region, thereby automatically associating the target control and the target key position region.

[0185] In some embodiments, the editing interface further includes an application control, and the method for editing the control provided by the present disclosure further comprises:

[0186] In response to the triggering operation on the application control, the key position region created by other users is obtained from the corresponding server, and a key position layout interface is displayed, the key position layout interface including the key position region created by other users.

[0187] In response to the triggering operation on the key region, the key region corresponding to the triggering operation is displayed on the editing interface.

[0188] For example, the editing interface can be as shown in FIG. 3, the application control can be a "key workshop" control as shown in FIG. 3, in response to a click operation on the "key workshop" control, the displayed key layout interface can be as shown in FIG. 14.

[0189] In the embodiments of the present disclosure, in response to the triggering operation on the application control, the key regions created by other users are obtained from the corresponding server, and a key layout interface is displayed, the key layout interface includes the key regions created by other users, in response to the triggering operation on the key region, the key region corresponding to the triggering operation is displayed on the editing interface, the sharing of the key region is implemented, and the communication and exchange between users are strengthened.

[0190] 205、control the target control to be displayed on the target key region, wherein the control shape of the target control matches the target shape of the target key region.

[0191] When the target control is a control on the target interface, the target control can be controlled to be displayed on the target key region of the target interface when the target interface is displayed. The displayed screen on the target interface can be a target screen or not.

[0192] For example, when the editing interface is as shown in FIG. 13 and the target interface is a game interface, the target interface can be as shown in FIG. 15.

[0193] In the embodiments of the present disclosure, the target control and the target key region are associated, and the target control is controlled to be displayed on the target key region, so as to adjust the control shape of the target control to the target shape, the display position and shape of the control on the interface are customized, and the flexibility of the operation of the control is improved.

[0194] In some embodiments, the target control is controlled to be displayed on the target key region, including:

[0195] The control shape of the target control is adjusted to the target shape, and the target control after the shape adjustment is displayed on the target position.

[0196] In some embodiments, before the control shape of the target control is adjusted to the target shape, further including:

[0197] The control shape of the target control is displayed on the editing interface.

[0198] The control shape of the target control is adjusted to the target shape, including:

[0199] In response to the association of the target control and the target key region, the control shape of the target control is adjusted to the target shape.

[0200] For example, when displaying the controls in the control set on the control interface, the control shape of the control can be as shown in FIG. 13, in response to the drag operation on the shooting control, the shooting control is dragged onto the key area as shown in FIG. 13, so as to associate the shooting control with the target key area as shown in FIG. 13, the control shape of the shooting control is changed to the target shape of the key area as shown in FIG. 13, the display position of the shooting control is changed to the target position of the target key area as shown in FIG. 13, in response to the drag operation on the weapon control, the weapon control is dragged onto the target key area as shown in FIG. 13, so as to associate the weapon control with the target key area as shown in FIG. 13, the control shape of the weapon control is changed to the target shape of the key area as shown in FIG. 13, the display position of the weapon control is changed to the position of the target key area as shown in FIG. 13, in response to the drag operation on the direction control, the direction control is dragged onto the target key area as shown in FIG. 13, so as to associate the direction control with the target key area as shown in FIG. 13, the control shape of the direction control is changed to the target shape of the target key area as shown in FIG. 13, the display position of the direction control is changed to the position of the target key area as shown in FIG. 13.

[0201] In some embodiments, the control includes:

[0202] The control includes:

[0203] In the embodiments of the present disclosure, the control includes:

[0204] In some embodiments, the control includes:

[0205] The control includes:

[0206] In the embodiments of the present disclosure, the control includes:

[0207] It can be seen from the above that, in the embodiments of the present disclosure, the display editing interface, in response to the key area generation operation, determines the target position and target shape of at least one key area, and displays at least one key area on the editing interface according to the target position and target shape; determines a target control from a control set, wherein the control set includes one or more controls, and the target control is associated with a target key area, wherein the target key area is a key area in the at least one key area; controls the target control to be displayed on the target key area, wherein the control shape of the target control matches the target shape of the target key area, so as to change the shape of the target control to the target shape, realize the customization of the shape of the control, and improve the flexibility of the control operation.

[0208] The control editing method provided by the present disclosure will be further described below according to FIG. 16. In the present embodiment, the editing interface includes a generation interface and a control interface.

[0209] 1601. The terminal displays the control interface in response to the key frame setting instruction, and displays the generation interface in response to the editing trigger operation on the control interface.

[0210] For example, in response to the key frame setting instruction, the displayed control interface can be as shown in FIG. 3, and in response to the editing trigger operation on the "autonomous customization" in the control interface, the displayed generation interface can be as shown in FIG. 4.

[0211] 1602. The terminal determines the target position and target shape of at least one key area in response to the key area generation operation on the generation interface, and displays at least one key area on the generation interface according to the target position and target shape.

[0212] The key area generation operation can include at least one of a pressing operation, a clicking operation, a selection operation, a dragging operation, and a drawing operation. The process of determining the target position and target shape of the key area in response to the key area generation operation on the generation interface can refer to the control editing method embodiments described above, and the present embodiment is not limited herein.

[0213] For example, when the terminal responds to the "Customize" editing trigger operation in the control interface and displays the generation interface as shown in Figure 4, the generation interface can include at least one preset shape. At this time, the terminal can respond to the drawing operation of the generation interface to determine the target position and target shape of the key area, or respond to the selection and dragging operation of at least one preset shape to determine the target position and target shape of the key area, or respond to the trigger operation of the "Click to Draw" control to display the press interface, and respond to the press operation of the press interface to display the fingerprint graphic on the press interface, which can be shown in Figure 7. In response to the trigger operation of "Confirm to Generate Key", the key area is determined and displayed according to the press operation, which can be shown in Figure 9.

[0214] In some embodiments, the terminal can determine the target position and target shape through selection and drag operations, or through drawing operations, and then determine the target size through pressing or clicking operations. Based on the target position, target shape, and target size, at least one key area is generated so as to determine the size of the control under non-subjective user control, and determine the position and shape of the control under subjective user control, making the edited control easier for the user to operate.

[0215] 1603. In response to a confirmation operation on at least one key area, the terminal saves the key area and displays a control interface, which includes at least one key area and controls in a control set.

[0216] 1604. The terminal responds to the drag operation of the target control in the control by dragging the target control onto the target key area to associate the target control and the target key area.

[0217] 1605. The terminal displays a target interface including the target control, displays the target control on the target key area in the target interface, so as to change the display position of the target control on the target interface to the target position and change the control shape of the target control to the target shape.

[0218] In this embodiment, users can customize the shape of the controls, breaking the existing fixed key layout pattern, accommodating more diverse input methods, and creating a personalized key layout suitable for the user's specific needs, thus improving the user experience. Furthermore, when determining the key area through pressing, this disclosure allows users to customize the key area according to their own comfortable clicking habits, making the keys more consistent with their preferred clicking hotspots, thereby increasing the operational limit.

[0219] The specific implementation method and corresponding beneficial effects of this embodiment can be referred to the above-described control editing method embodiment, which will not be repeated here.

[0220] To better implement the above method, the embodiment of the disclosure further provides a control editing device, which can be specifically integrated in an electronic device, such as a computer device, which can be a terminal, a server, and the like.

[0221] The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, a personal computer, and the like. The server can be a single server or a server cluster composed of multiple servers.

[0222] For example, in the embodiment, the control editing device is specifically integrated in a terminal, and the method of the embodiment of the disclosure is described in detail. The embodiment provides a control editing device, as shown in FIG. 17, which can include:

[0223] The first display module 1701 is configured to execute display of an editing interface.

[0224] The region generation module 1702 is configured to execute determination of a target position and a target shape of at least one key region in response to a key region generation operation, and display of the at least one key region on the editing interface according to the target position and the target shape.

[0225] The control determination module 1703 is configured to execute determination of a target control from a control set, wherein the control set includes one or more controls.

[0226] The control association module 1704 is configured to execute association of the target control and a target key region, wherein the target key region is a key region in the at least one key region.

[0227] The second display module 1705 is configured to execute display of the target control on the target key region, wherein a control shape of the target control matches the target shape of the target key region.

[0228] In some embodiments, the control association module 1704 is specifically configured to execute:

[0229] In response to a drag operation on the target control, the target control is dragged onto the target key region to associate the target control and the target key region.

[0230] In some embodiments, the control set includes controls of different interfaces, and the control association module 1704 is specifically configured to execute:

[0231] In response to a drag operation on the target control, the target control is dragged onto the target key region;

[0232] If there is no control on the target key region, the target control is placed on the target key region;

[0233] If the target key region area exists a control, and the interface where the control exists on the target key region area is different from the interface where the target control exists, the target control is placed on the target key region area.

[0234] In some embodiments, the control set includes a control in the target interface, and the control association module 1704 is specifically configured to perform:

[0235] obtain a position of the control included in the target interface on the target interface;

[0236] determine an overlapping relationship between the control included in the target interface and the key region area according to the position and the target position;

[0237] associate the control and the key region area corresponding to the overlapping relationship satisfying the preset overlapping relationship, the control corresponding to the overlapping relationship satisfying the preset overlapping relationship is the target control, and the key region area corresponding to the overlapping relationship satisfying the preset overlapping relationship is the target key region area.

[0238] In some embodiments, the editing interface includes a generation interface and a control interface, the control in the control set is a control displayed on the control interface, at least one key region area is displayed on the generation interface, and the control determination module 1703 is specifically configured to perform:

[0239] display the control interface, the control interface including at least one key region area and the control in the control set;

[0240] in response to a selection operation on the control, determine the control corresponding to the selection operation as the target control.

[0241] In some embodiments, the control association module 1704 is specifically configured to perform:

[0242] adjust the control shape of the target control to the target shape, and display the target control after the shape adjustment on the target position.

[0243] In some embodiments, the first display module 1701 is specifically configured to perform:

[0244] display the control shape of the target control on the editing interface;

[0245] the control association module 1704 is specifically configured to perform:

[0246] in response to associating the target control and the target key region area, adjust the control shape of the target control to the target shape.

[0247] In some embodiments, the control association module 1704 is specifically configured to perform:

[0248] The control is generated and displayed on the target key region, and the function of the first control is the same as that of the target control.

[0249] In some embodiments, the control association module 1704 is specifically configured to perform:

[0250] The target control is displayed on the target key region, the control shape of the target control is adjusted to the target shape, and the response region of the target control is adjusted to the target key region.

[0251] In some embodiments, the control editing apparatus further includes a sharing module, which is specifically configured to perform:

[0252] In response to a sharing instruction for at least one key position, the at least one key position is shared to a corresponding server, so that other terminals obtain the at least one key position from the corresponding server.

[0253] In some embodiments, the control editing apparatus further includes a saving module, which is specifically configured to perform:

[0254] In response to a confirmation operation on at least one key region, the at least one key region is saved.

[0255] In some embodiments, the key region generation operation includes a touch operation, and the region generation module 1702 is specifically configured to perform:

[0256] In response to the touch operation, a touch parameter corresponding to the touch operation is obtained;

[0257] The touch parameter is mapped to obtain a target size corresponding to the touch parameter;

[0258] According to the target size, a target shape of the at least one key region is determined, and according to a touch position corresponding to the touch operation, a target position of the at least one key region is determined.

[0259] In some embodiments, the touch operation includes a pressing operation, and the touch parameter is a pressing degree, the greater the pressing degree, the smaller the target size, and the smaller the pressing degree, the greater the target size, and the region generation module 1702 is specifically configured to perform:

[0260] In response to the pressing operation, the pressing degree corresponding to the pressing operation is obtained through a pressure sensor.

[0261] In some embodiments, the region generation module 1702 is further configured to perform:

[0262] According to the pressing degree, a fingerprint pattern is generated;

[0263] The fingerprint pattern is displayed on the position corresponding to the pressing operation in the editing interface.

[0264] In some embodiments, the touch operation comprises a click operation, the touch parameter is a click time, the target size is smaller when the click time is less, the target size is larger when the click time is more, and the region generation module 1702 is specifically configured to perform:

[0265] In response to the click operation, the click time corresponding to the click operation is obtained through the click event.

[0266] In some embodiments, the region generation module 1702 is specifically configured to perform:

[0267] generating a candidate shape of the target size;

[0268] If there is a candidate shape satisfying the preset overlap condition, performing fusion processing on the candidate shape satisfying the preset overlap condition to obtain the target shape of the at least one key region.

[0269] In some embodiments, the editing interface further comprises at least one preset shape, the key region generation operation comprises a selection operation and a drag operation, and the region generation module 1702 is specifically configured to perform:

[0270] In response to the selection operation on the at least one preset shape, determining the preset shape corresponding to the selection operation as the target shape of the at least one key region;

[0271] In response to the drag operation on the target shape, controlling the target shape to move;

[0272] In response to the drag operation satisfying the preset end condition, determining the end position of the drag operation as the target position of the at least one key region.

[0273] In some embodiments, the key region generation operation is a drawing operation, and the region generation module 1702 is specifically configured to perform:

[0274] In response to the drawing operation, obtaining a drawing region corresponding to the drawing operation;

[0275] According to the position of the drawing region and the shape of the drawing region, determining the target position and the target shape of the at least one key region.

[0276] In some embodiments, the editing interface is a control interface, the control displayed on the control interface is a control in the control set, and the region generation module 1702 is specifically configured to perform:

[0277] In response to the drawing operation on the control interface, obtaining a drawing region corresponding to the drawing operation.

[0278] In practice, the above various modules can be implemented as independent entities, or combined as the same or several entities in any manner, and the specific implementation manners of the above various modules and the corresponding beneficial effects can be referred to the method embodiments, which will not be described here again.

[0279] Correspondingly, the embodiment of the disclosure further provides an electronic device. The electronic device can be a terminal, which can be a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), and the like. As shown in FIG. 18, FIG. 18 is a structural schematic diagram of an electronic device provided by the embodiment of the disclosure. The electronic device 1800 includes a processor 1801 having one or more processing cores, a memory 1802 having one or more computer readable storage media, and a computer program stored in the memory 1802 and executable on the processor. The processor 1801 is electrically connected to the memory 1802. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.

[0280] The processor 1801 is the control center of the electronic device 1800, and connects various parts of the entire electronic device 1800 through various interfaces and lines. By running or loading the software program and / or module stored in the memory 1802, and calling the data stored in the memory 1802, the processor 1801 performs various functions of the electronic device 1800 and processes data, thereby overall monitoring the electronic device 1800.

[0281] In the embodiment of the disclosure, the processor 1801 in the electronic device 1800 will load the instructions corresponding to the processes of one or more application programs into the memory 1802, and run the application programs stored in the memory 1802 by the processor 1801, so as to realize various functions, such as:

[0282] displaying an editing interface;

[0283] in response to a key area generation operation, determining a target position and a target shape of at least one key area, and displaying the at least one key area on the editing interface according to the target position and the target shape;

[0284] determining a target control from a control set, wherein the control set includes one or more controls;

[0285] associating the target control with a target key area, wherein the target key area is a key area in the at least one key area;

[0286] display the target control on the target key region, wherein a control shape of the target control matches a target shape of the target key region.

[0287] In some embodiments, based on the foregoing scheme, the association of the target control and the target key region comprises: in response to a drag operation on the target control, dragging the target control onto the target key region to associate the target control and the target key region.

[0288] In some embodiments, based on the foregoing scheme, the target control is dragged onto the target key region in response to a drag operation on the target control, which comprises: in response to the drag operation on the target control, dragging the target control onto the target key region; if there is no control on the target key region, placing the target control on the target key region; if there is a control on the target key region, and the interface in which the control on the target key region is located is different from the interface in which the target control is located, placing the target control on the target key region.

[0289] In some embodiments, based on the foregoing scheme, the control set includes controls in the target interface, and the association of the target control and the target key region comprises: obtaining the position of the controls included in the target interface on the target interface; determining the overlapping relationship between the controls included in the target interface and at least one key region according to the position and the target position; associating the controls and the key regions corresponding to the overlapping relationship that meets a preset overlapping relationship, wherein the control corresponding to the overlapping relationship that meets the preset overlapping relationship is the target control, and the key region corresponding to the overlapping relationship that meets the preset overlapping relationship is the target key region.

[0290] In some embodiments, based on the foregoing scheme, the editing interface includes a generation interface and a control interface, the controls in the control set are controls displayed on the control interface, and at least one key region is displayed on the generation interface; the determination of the target control from the control set comprises: displaying the control interface, which includes at least one key region and the controls in the control set; and in response to a selection operation on a control, determining the control corresponding to the selection operation as the target control.

[0291] In some embodiments, based on the foregoing scheme, the control of the display of the target control on the target key region comprises: adjusting the control shape of the target control to the target shape, and displaying the target control after the shape adjustment at the target position.

[0292] In some embodiments, based on the foregoing scheme, before adjusting the control shape of the target control to the target shape, the method further comprises: displaying the control shape of the target control on the editing interface; and adjusting the control shape of the target control to the target shape comprises: in response to the association between the target control and the target key region, adjusting the control shape of the target control to the target shape.

[0293] In some embodiments, based on the foregoing scheme, the method of displaying the target control on the target key region comprises: generating and displaying a first control on the target key region, the function of the first control being the same as that of the target control.

[0294] In some embodiments, based on the foregoing scheme, the method of displaying the target control on the target key region comprises: displaying the target control on the target key region to adjust the control shape of the target control to the target shape and adjust the response region of the target control to the target key region.

[0295] In some embodiments, based on the foregoing scheme, after displaying the at least one key region, the method further comprises: in response to a sharing instruction for the at least one key region, sharing the at least one key region to a corresponding server, so that other terminals obtain the at least one key region from the corresponding server.

[0296] In some embodiments, based on the foregoing scheme, after displaying the at least one key region, the method further comprises: in response to a confirmation operation for the at least one key region, saving the at least one key region.

[0297] In some embodiments, based on the foregoing scheme, the key region generation operation comprises a touch operation, and in response to the key region generation operation, determining the target position and the target shape of the at least one key region comprises: in response to the touch operation, obtaining a touch parameter corresponding to the touch operation; performing mapping processing on the touch parameter to obtain a target size corresponding to the touch parameter; and determining the target shape of the at least one key region according to the target size, and determining the target position of the at least one key region according to a touch position corresponding to the touch operation.

[0298] In some embodiments, based on the foregoing scheme, the touch operation comprises a pressing operation, the touch parameter is a pressing degree, the greater the pressing degree, the smaller the target size, and the smaller the pressing degree, the greater the target size; and in response to the touch operation, obtaining the touch parameter corresponding to the touch operation comprises: in response to the pressing operation, obtaining the pressing degree corresponding to the pressing operation through a pressure sensor.

[0299] In some embodiments, based on the foregoing scheme, before determining the target shape of the at least one key region according to the target size, the method further comprises: generating a fingerprint pattern according to the pressing degree; and displaying the fingerprint pattern on a position corresponding to the pressing operation in the editing interface.

[0300] In some embodiments, based on the foregoing scheme, the touch operation comprises a click operation, and the touch parameter is a click time; the smaller the click time, the smaller the target size; the larger the click time, the larger the target size; and the touch parameter corresponding to the touch operation is obtained in response to the touch operation, comprising: in response to the click operation, the click time corresponding to the click operation is obtained through a click event.

[0301] In some embodiments, based on the foregoing scheme, the target shape of the at least one key region is determined according to the target size, comprising: generating a candidate shape of the target size; if there is a candidate shape satisfying a preset overlap condition, performing fusion processing on the candidate shape satisfying the preset overlap condition to obtain the target shape of the at least one key region.

[0302] In some embodiments, based on the foregoing scheme, the editing interface further comprises at least one preset shape, the key region generation operation comprises a selection operation and a drag operation, and the target position and the target shape of the at least one key region are determined in response to the key region generation operation, comprising: in response to the selection operation on the at least one preset shape, the preset shape corresponding to the selection operation is determined as the target shape of the at least one key region; in response to the drag operation on the target shape, the target shape is controlled to move; and in response to the drag operation satisfying a preset end condition, an end position of the drag operation is determined as the target position of the at least one key region.

[0303] In some embodiments, based on the foregoing scheme, the key region generation operation is a drawing operation, and the target position and the target shape of the at least one key region are determined in response to the key region generation operation, comprising: in response to the drawing operation, a drawing region corresponding to the drawing operation is obtained; and the target position and the target shape of the at least one key region are determined according to the position of the drawing region and the shape of the drawing region.

[0304] In some embodiments, based on the foregoing scheme, the editing interface is a control interface, and the control displayed on the control interface is a control in the control set; and the drawing region corresponding to the drawing operation is obtained in response to the drawing operation, comprising: in response to the drawing operation on the control interface, the drawing region corresponding to the drawing operation is obtained.

[0305] The present disclosure can realize the customization of the shape of the control, and can improve the flexibility of the control operation.

[0306] The specific implementation manners of the above operations and the corresponding advantages can be referred to the detailed description of the control editing method, which will not be repeated here.

[0307] Optionally, as shown in FIG. 18, the electronic device 1800 further includes a touch display screen 1803, a radio frequency circuit 1804, an audio circuit 1805, an input unit 1806, and a power supply 1807. The processor 1801 is electrically connected to the touch display screen 1803, the radio frequency circuit 1804, the audio circuit 1805, the input unit 1806, and the power supply 1807, respectively. Those skilled in the art can understand that the electronic device structure shown in FIG. 18 does not constitute a limitation on the electronic device, and can include more or fewer components than shown, or combine certain components, or different component arrangements.

[0308] The touch display screen 1803 can be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 1803 can include a display panel and a touch panel. The display panel can be used to display information input by a user or information provided to a user and various graphical user interfaces of an electronic device, which can be composed of graphics, text, icons, videos, and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The touch panel can be used to collect touch operations (such as operations of a user using a finger, a stylus, or any suitable object or accessory on or near the touch panel) of a user thereon or therearound, and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts, a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into touch coordinates, and then sends it to the processor 1801, and can also receive commands from the processor 1801 and execute them. The touch panel can cover the display panel, and when the touch panel detects a touch operation thereon or therearound, it is transmitted to the processor 1801 to determine the type of the touch event, and then the processor 1801 provides corresponding visual output on the display panel according to the type of the touch event. In the embodiments of the present disclosure, the touch panel and the display panel can be integrated into the touch display screen 1803 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can realize input and output functions as two independent components. That is, the touch display screen 1803 can also realize input functions as part of the input unit 1806.

[0309] The radio frequency circuit 1804 can be used to transceive radio frequency signals to establish wireless communication with a network device or other electronic device, and transceive signals between the network device or other electronic device.

[0310] The audio circuit 1805 can be used to provide an audio interface between a user and the electronic device through a speaker and a microphone. The audio circuit 1805 can convert received audio data into an electrical signal and transmit the electrical signal to the speaker for conversion into a sound signal and output; on the other hand, the microphone collects a sound signal and converts the sound signal into an electrical signal, which is received by the audio circuit 1805 and converted into audio data, and then output to the processor 1801 for processing, and transmitted to another electronic device through the radio frequency circuit 1804, or output to the memory 1802 for further processing. The audio circuit 1805 can also include a jack for a headset to provide communication between the headset and the electronic device.

[0311] The input unit 1806 can be used to receive input digital, character information or user feature information (such as fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0312] The power supply 1807 is used to supply power to various components of the electronic device 1800. Optionally, the power supply 1807 can be logically connected to the processor 1801 through a power management system, so that the power management system can realize functions such as management of charging, discharging and power consumption management. The power supply 1807 can also include one or more direct current or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power state indicators, and any other components.

[0313] Although not shown in FIG. 18, the electronic device 1800 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, and the like, which are not described here.

[0314] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0315] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling relevant hardware, which can be stored in a computer readable storage medium and loaded and executed by a processor.

[0316] To this end, the embodiments of the present disclosure provide a computer readable storage medium, which stores a plurality of computer programs capable of being loaded by a processor to execute any one of the control editing methods provided by the embodiments of the present disclosure. For example, the computer program can execute the following steps:

[0317] displaying an editing interface;

[0318] In response to the key region generation operation, a target position and a target shape of the at least one key region are determined, and the at least one key region is displayed on the editing interface according to the target position and the target shape;

[0319] A target control is determined from the control set, wherein the control set includes one or more controls;

[0320] The target control is associated with a target key region, wherein the target key region is a key region of the at least one key region;

[0321] The target control is displayed on the target key region, wherein a control shape of the target control matches the target shape of the target key region.

[0322] In some embodiments, based on the foregoing scheme, the association of the target control and the target key region includes: in response to a drag operation on the target control, the target control is dragged onto the target key region to associate the target control and the target key region.

[0323] In some embodiments, based on the foregoing scheme, the control set includes controls of different interfaces, and the dragging of the target control onto the target key region in response to the drag operation on the target control includes: in response to the drag operation on the target control, the target control is dragged onto the target key region; if there is no control on the target key region, the target control is placed on the target key region; and if there is a control on the target key region and the interface in which the control on the target key region is located is different from the interface in which the target control is located, the target control is placed on the target key region.

[0324] In some embodiments, based on the foregoing scheme, the control set includes controls in the target interface, and the association of the target control and the target key region includes: a position of the control included in the target interface on the target interface is obtained; an overlapping relationship between the control included in the target interface and the at least one key region is determined according to the position and the target position; the control and the key region corresponding to the overlapping relationship satisfying a preset overlapping relationship are associated, the control corresponding to the overlapping relationship satisfying the preset overlapping relationship is the target control, and the key region corresponding to the overlapping relationship satisfying the preset overlapping relationship is the target key region.

[0325] In some embodiments, based on the foregoing scheme, the editing interface includes a generation interface and a control interface, the controls in the control set are controls displayed on the control interface, and the at least one key region is displayed on the generation interface; the determination of the target control from the control set includes: the control interface is displayed, the control interface includes the at least one key region and the controls in the control set; and in response to a selection operation on the controls, the control corresponding to the selection operation is determined as the target control.

[0326] In some embodiments, based on the foregoing scheme, the control of displaying the target control on the target key region comprises: adjusting the control shape of the target control to the target shape, and displaying the target control after the shape adjustment.

[0327] In some embodiments, based on the foregoing scheme, before the control shape of the target control is adjusted to the target shape, the method further comprises: displaying the control shape of the target control on the editing interface; and adjusting the control shape of the target control to the target shape comprises: in response to the association between the target control and the target key region, adjusting the control shape of the target control to the target shape.

[0328] In some embodiments, based on the foregoing scheme, the control of displaying the target control on the target key region comprises: controlling to generate and display a first control on the target key region, the function of the first control being the same as that of the target control.

[0329] In some embodiments, based on the foregoing scheme, the control of displaying the target control on the target key region comprises: controlling to display the target control on the target key region to adjust the control shape of the target control to the target shape and adjust the response region of the target control to the target key region.

[0330] In some embodiments, based on the foregoing scheme, after the display of the at least one key region, the method further comprises: in response to a sharing instruction for the at least one key region, sharing the at least one key region to a corresponding server, so that other terminals obtain the at least one key region from the corresponding server.

[0331] In some embodiments, based on the foregoing scheme, after the display of the at least one key region, the method further comprises: in response to a confirmation operation on the at least one key region, saving the at least one key region.

[0332] In some embodiments, based on the foregoing scheme, the key region generation operation comprises a touch operation, and the determination of the target position and the target shape of the at least one key region in response to the key region generation operation comprises: in response to the touch operation, obtaining a touch parameter corresponding to the touch operation; performing mapping processing on the touch parameter to obtain a target size corresponding to the touch parameter; and determining the target shape of the at least one key region according to the target size, and determining the target position of the at least one key region according to a touch position corresponding to the touch operation.

[0333] In some embodiments, based on the foregoing scheme, the touch operation comprises a pressing operation, the touch parameter is a pressing degree, the greater the pressing degree, the smaller the target size, and the smaller the pressing degree, the greater the target size; and the obtaining of the touch parameter corresponding to the touch operation in response to the touch operation comprises: in response to the pressing operation, obtaining the pressing degree corresponding to the pressing operation through a pressure sensor.

[0334] In some embodiments, based on the foregoing scheme, before determining the target shape of the at least one key region according to the target size, the method further includes: generating a fingerprint pattern according to the pressing strength; and displaying the fingerprint pattern on a position corresponding to the pressing operation in the editing interface.

[0335] In some embodiments, based on the foregoing scheme, the touch operation includes a click operation, and the touch parameter is a click time. The smaller the click time, the smaller the target size. The larger the click time, the larger the target size. In response to the touch operation, the touch parameter corresponding to the touch operation is obtained, including: in response to the click operation, the click time corresponding to the click operation is obtained through the click event.

[0336] In some embodiments, based on the foregoing scheme, determining the target shape of the at least one key region according to the target size includes: generating a candidate shape of the target size; and if there is a candidate shape that meets a preset overlap condition, performing fusion processing on the candidate shape that meets the preset overlap condition to obtain the target shape of the at least one key region.

[0337] In some embodiments, based on the foregoing scheme, the editing interface further includes at least one preset shape, the key region generation operation includes a selection operation and a drag operation, and in response to the key region generation operation, the target position and the target shape of the at least one key region are determined, including: in response to the selection operation on the at least one preset shape, determining the preset shape corresponding to the selection operation as the target shape of the at least one key region; in response to the drag operation on the target shape, controlling the target shape to move; and in response to the drag operation meeting a preset end condition, determining an end position of the drag operation as the target position of the at least one key region.

[0338] In some embodiments, based on the foregoing scheme, the key region generation operation is a drawing operation, and in response to the key region generation operation, the target position and the target shape of the at least one key region are determined, including: in response to the drawing operation, obtaining a drawing region corresponding to the drawing operation; and according to the position of the drawing region and the shape of the drawing region, determining the target position and the target shape of the at least one key region.

[0339] In some embodiments, based on the foregoing scheme, the editing interface is a control interface, and the control displayed on the control interface is a control in the control set. In response to the drawing operation, the drawing region corresponding to the drawing operation is obtained, including: in response to the drawing operation on the control interface, obtaining the drawing region corresponding to the drawing operation.

[0340] The present disclosure can realize the customization of the shape of the control, and can improve the flexibility of the control operation.

[0341] The specific implementation manners of the above operations and the corresponding advantages can be referred to the detailed description of the control editing method, which will not be repeated here. The specific implementation manners of the above operations and the corresponding advantages can be referred to the detailed description of the control editing method, which will not be repeated here.

[0342] The computer readable storage medium can include a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0343] The computer program stored in the computer readable storage medium can execute any one of the control editing methods provided by the embodiments of the present disclosure, thus achieving the beneficial effects of any one of the control editing methods provided by the embodiments of the present disclosure. Details are described in the foregoing embodiments, which will not be described here.

[0344] The above describes in detail the control editing method, device, electronic device and computer readable storage medium provided by the embodiments of the present disclosure. The principles and implementation manners of the present disclosure are described by applying specific examples. The above description of the embodiments is only used to help understand the method and core idea of the present disclosure. Meanwhile, for those skilled in the art, the specific implementation manners and application range can be changed according to the idea of the present disclosure. In summary, the content of the specification should not be understood as a limitation of the present disclosure.

Claims

1. A control editing method, the method comprising: Display the editing interface; In response to the key area generation operation, the target position and target shape of at least one key area are determined, and the at least one key area is displayed on the editing interface according to the target position and the target shape; Determine the target control from a set of controls, wherein the set of controls includes one or more controls; Associating the target control with the target key area, wherein the target key area is a key area among the at least one key area; The target control is displayed on the target key area, wherein the shape of the target control matches the target shape of the target key area.

2. The control editing method as described in claim 1, wherein, The association of the target control and the target key area includes: In response to a drag operation on the target control, the target control is dragged onto the target key area to associate the target control with the target key area.

3. The control editing method as described in claim 2, wherein, The control set includes controls from different interfaces. The step of dragging the target control onto the target key area in response to a drag operation includes: In response to a drag operation on the target control, the target control is dragged onto the target key area; If no control exists on the target key area, then the target control is placed on the target key area; If a control exists on the target key area, and the interface on which the control exists on the target key area is located is different from the interface on which the target control is located, then the target control is placed on the target key area.

4. The control editing method as described in claim 1, wherein, The control set includes controls in the target interface, and associating the target controls with the target key area includes: Obtain the positions of the controls included in the target interface on the target interface; Based on the location and the target location, determine the overlap relationship between the controls included in the target interface and the at least one key area; The controls and key areas corresponding to the overlapping relationships that satisfy the preset overlapping relationship are associated. The controls corresponding to the overlapping relationships that satisfy the preset overlapping relationship are the target controls, and the key areas corresponding to the overlapping relationships that satisfy the preset overlapping relationship are the target key areas.

5. The control editing method as described in claim 1, wherein, The editing interface includes a generation interface and a control interface. The controls in the control set are the controls displayed on the control interface, and the at least one key area is displayed on the generation interface. Determining the target control from the control set includes: The control interface is displayed, and the control interface includes the at least one key area and the controls in the control set; In response to a selection operation on the control, the control corresponding to the selection operation is determined as the target control.

6. The control editing method as described in claim 1, wherein, The control for displaying the target control on the target key area includes: Adjust the shape of the target control to the target shape, and display the adjusted target control at the target position.

7. The control editing method as described in claim 6, wherein, Before adjusting the shape of the target control to the target shape, the method further includes: The shape of the target control is displayed on the editing interface; Adjusting the shape of the target control to the target shape includes: In response to associating the target control with the target key area, the control shape of the target control is adjusted to the target shape.

8. The control editing method as described in claim 1, wherein, The control for displaying the target control on the target key area includes: The system controls the generation and display of a first control on the target key area, the first control having the same function as the target control.

9. The control editing method as described in claim 1, wherein, The control for displaying the target control on the target key area includes: The target control is displayed on the target key area to adjust the control shape of the target control to the target shape and adjust the response area of ​​the target control to the target key area.

10. The control editing method as described in claim 1, wherein, After displaying at least one key area, the method further includes: In response to a sharing instruction for the at least one key, the at least one key is shared to a corresponding server so that other terminals can obtain the at least one key from the corresponding server.

11. The control editing method as described in claim 1, wherein, After displaying the at least one key area, the method further includes: In response to a confirmation operation on the at least one key area, the at least one key area is saved.

12. The control editing method as described in claim 1, wherein, The key area generation operation includes a touch operation, and the step of determining the target position and target shape of at least one key area in response to the key area generation operation includes: In response to a touch operation, obtain the touch parameters corresponding to the touch operation; The touch parameters are mapped to obtain the target size corresponding to the touch parameters; Based on the target size, determine the target shape of at least one key area, and based on the touch position corresponding to the touch operation, determine the target position of the at least one key area.

13. The control editing method as described in claim 12, wherein, The touch operation includes a pressing operation, and the touch parameter is the pressing force. The greater the pressing force, the smaller the target size; the smaller the pressing force, the larger the target size. The step of responding to a touch operation and obtaining the touch parameters corresponding to the touch operation includes: In response to the pressing operation, the pressing force corresponding to the pressing operation is obtained through a pressure sensor.

14. The control editing method as described in claim 13, wherein, Before determining the target shape of at least one key region based on the target size, the method further includes: A fingerprint pattern is generated based on the pressure applied. The fingerprint image is displayed at the position corresponding to the pressing operation in the editing interface.

15. The control editing method as described in claim 12, wherein, The touch operation includes a click operation, and the touch parameter is the click time. The shorter the click time, the smaller the target size; the longer the click time, the larger the target size. In response to a touch operation, the touch parameters corresponding to the touch operation are obtained, including: In response to the click operation, the click time corresponding to the click operation is obtained through the click event.

16. The control editing method as described in claim 12, wherein, Determining the target shape of at least one key region based on the target size includes: Generate candidate shapes for the target size; If there are candidate shapes that meet the preset overlap conditions, then the candidate shapes that meet the preset overlap conditions are fused to obtain the target shape of at least one key area.

17. The control editing method as described in claim 1, wherein, The editing interface also includes at least one preset shape. The key area generation operation includes a selection operation and a drag operation. In response to the key area generation operation, determining the target position and target shape of at least one key area includes: In response to a selection operation on the at least one preset shape, the preset shape corresponding to the selection operation is determined as the target shape of at least one key area; In response to a drag operation on the target shape, the target shape is controlled to move; In response to the drag operation satisfying a preset end condition, the end position of the drag operation is determined as the target position of the at least one key area.

18. The control editing method as described in claim 1, wherein, The key region generation operation is a drawing operation. The step of determining the target position and target shape of at least one key region in response to the key region generation operation includes: In response to a drawing operation, obtain the drawing area corresponding to the drawing operation; Based on the position and shape of the drawing area, determine the target position and target shape of at least one key area.

19. The control editing method as described in claim 18, wherein, The editing interface is a control interface, and the controls displayed on the control interface are the controls in the control set. The step of responding to a drawing operation and obtaining the drawing area corresponding to the drawing operation includes: In response to a drawing operation on the control interface, the drawing area corresponding to the drawing operation is obtained.

20. A control editing device, the device comprising: The first display module is configured to display the editing interface; The region generation module is configured to perform a response to a key region generation operation, determine the target position and target shape of at least one key region, and display the at least one key region on the editing interface according to the target position and the target shape; A control determination module is configured to determine a target control from a control set, wherein the control set includes one or more controls; The control association module is configured to associate the target control with a target key area, wherein the target key area is a key area among the at least one key area; The second display module is configured to execute control to display the target control on the target key area, wherein the control shape of the target control matches the target shape of the target key area.

21. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loading instructions from the memory to perform a control editing method as described in any one of claims 1 to 19.

22. A computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to perform the control editing method according to any one of claims 1 to 19.

Citation Information

Patent Citations

  • Controls distribution adjustment method and device

    CN104156166A

  • Information sending and resource transferring method and device in game, medium and equipment

    CN112494943A

  • Hot area adjusting method and device, equipment, storage medium and program product

    CN117679742A

  • Editing method and device for UI interface in game, electronic equipment and storage medium

    CN117839221A

  • Control editing method and device, electronic equipment and computer readable storage medium

    CN118625974A