Virtual joystick touch control method, device and electronic device with function area control

By configuring the functional area in the virtual joystick area and identifying touch behavior, the problem of poor interactivity of traditional virtual joysticks is solved, and a single control multi-function operation is realized, improving the user experience.

CN115721923BActive Publication Date: 2025-09-02DASANSHI (HANGZHOU) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211492248.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-25
Publication Date
2025-09-02
Estimated Expiration
2042-11-25

AI Technical Summary

Technical Problem

The traditional virtual joystick design can only control the movement of game characters through finger dragging. It has poor interactivity and a single mode, which cannot meet the smooth operation experience of users, especially the low utilization rate of left-handed users.

Method used

Configure the functional area in the virtual rocker area, and determine the distance between the contacts and the controls by identifying different finger touch behaviors and positions, realizing multi-functional control of the virtual rocker, including skill or shortcut key operations.

Benefits of technology

It enhances the functionality of the virtual rocker, realizes multi-function operation of single controls, improves the user's non-idiopic operation, and avoids misoperation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115721923B_ABST
    Figure CN115721923B_ABST
Patent Text Reader

Abstract

The present application discloses a virtual joystick touch method, device and electronic device with function area control, comprising the following steps: configuring a virtual joystick area and a function area of ​​the virtual joystick area; receiving an input touch behavior, and in a non-cancelling tracking state, implementing the internal logic of the virtual joystick in response to a first touch behavior of coordinates within the virtual joystick setting area; and determining whether it is a function area touch behavior in response to a second touch behavior after the first touch behavior, and if so, implementing the corresponding function area function. The method provided in the present application can realize more operating functions based on the user's own settings on the basis of the traditional virtual joystick functions, thereby enhancing the functionality of the virtual joystick. A single control achieves the goal of multiple functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game control technology, and in particular to a virtual joystick touch control method, device and electronic device with function area control. Background Art

[0002] Currently, mobile phone virtual joystick designs are mostly based on the touch control methods provided by the development engine, offering basic functional interfaces such as single click and press-and-drag. These screen touch control methods implement corresponding functions according to different application scenarios. Virtual joysticks use the drag interface to control the direction and displacement of the virtual joystick with your fingers, thereby controlling basic actions such as character movement in game applications. Since most people are left-handed, virtual joysticks for controlling movement, which require less manipulation, are generally placed on the left side of the screen for operation.

[0003] The traditional virtual joystick design can only be used to drag the joystick with fingers, and use the displacement and direction changes of the joystick to control the movement or other actions of the character in the game. It has poor interactivity with other functional modules, a single mode, and has only a low utilization rate of the user's left hand, which cannot meet the smooth operation experience of some users. Summary of the Invention

[0004] This application mainly solves the problem of weak interactive experience of virtual joysticks under the existing technology, and proposes a multi-touch virtual joystick control method to achieve enhanced functions.

[0005] In order to achieve the goal of connecting more functional modules with the virtual joystick and improving the operating feel of the user's non-dominant hand without affecting multi-touch, this application is solved by the following technical solutions:

[0006] A virtual joystick touch control method with function area control includes the following steps:

[0007] Configure the virtual joystick area and its functional areas;

[0008] Receiving a touch input, and in a non-cancelling tracking state, implementing internal logic of the virtual joystick in response to a first touch input at coordinates within a setting area of ​​the virtual joystick;

[0009] In response to a second touch action after the first touch action, it is determined whether it is a touch action for implementing a function area, and if so, the corresponding function area function is implemented.

[0010] Wherein, after the touch action received as input is determined to be in a non-cancelling tracking state, the method further includes the step of recording a unique identifier and coordinates of the current touch action.

[0011] The method of determining whether the second touch action after the first touch action is a touch action for implementing a function area, and if so, implementing the corresponding function area function, includes the following steps:

[0012] When the second touch behavior is a touch behavior of leaving the screen, it is determined that the local coordinates of the first touch behavior are located in the function area or close to the function area, and the current unique identifier has not generated a sliding touch behavior, then the corresponding function area function is implemented.

[0013] Among them, the second touch behavior includes touching the screen and continuously touching the screen. When the second touch behavior is recognized as touching the screen or continuously touching the screen, the virtual joystick enters a ready state, ready to receive the next touch behavior of leaving the screen or sliding.

[0014] As a preferred solution, after recording the unique identifier and coordinates of the current touch behavior, the method further includes the following steps:

[0015] If multiple touch behaviors are identified at the same time, the distances between the local coordinates of all touch behaviors and the center of the virtual joystick are compared to determine the touch behaviors whose local coordinates are within the setting area of ​​the virtual joystick. In response to the first touch behavior of the coordinates within the setting area of ​​the virtual joystick, the internal logic of the virtual joystick is implemented.

[0016] As another preferred solution, if multiple touch behaviors are identified at the same time, in response to a newly input touch behavior, a tracking list of all current touch behaviors is traversed, and a unique identifier t of the touch behavior closest to the virtual joystick area is recorded;

[0017] When it is recognized that the unique identifier t has left the screen touch behavior, cancel the current touch tracking after responding to t leaving the screen touch behavior;

[0018] When it is recognized that the unique identifier t has a sliding touch behavior, the displacement change of the touch behavior represented by the unique identifier t is calculated.

[0019] Based on the above-mentioned virtual joystick touch control method with function area control, a virtual joystick touch control device with function area control is provided, which provides a graphical user interface through a touch display, wherein the graphical user interface includes a virtual joystick control area, the virtual joystick control area includes a joystick control area and a function control area, and the control area of ​​the joystick control area is greater than or equal to the function control area;

[0020] The touch display screen, in a non-cancelling tracking state, implements the internal logic of the virtual joystick in response to a first touch action on coordinates within the setting area of ​​the virtual joystick;

[0021] The joystick control area is used to respond to a second touch behavior after the first touch behavior, determine whether it is a sliding touch behavior, and if so, perform a corresponding sliding control function;

[0022] The function control area is used to respond to the second touch behavior after the first touch behavior, determine whether it is a touch behavior implemented in the function area, and if so, implement the corresponding function area function.

[0023] Beneficial effects of the present invention: The method provided by the present application can realize more operation functions based on the user's settings on the basis of the traditional virtual joystick functions, thereby enhancing the functionality of the virtual joystick. A single control can achieve the goal of multiple functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 is a flow chart of the method disclosed in Example 1;

[0026] Figure 2 is a flow chart of the method disclosed in Example 2;

[0027] Figure 3 is a flow chart of the method disclosed in Example 3;

[0028] Figure 4 This is a schematic diagram of the virtual joystick control area disclosed in Example 4. DETAILED DESCRIPTION

[0029] Unless otherwise defined, technical or scientific terms used in this application shall have the ordinary meanings understood by those skilled in the art. The terms "first," "second," "third," "fourth," and similar words used in this specification and claims do not denote any order, quantity, or importance, but are simply used to distinguish different components.

[0030] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. In the following description, reference is made to the drawings that form a part of this application and illustrate specific aspects of the embodiments of the present application or specific aspects of the embodiments of the present application that can be used. It should be understood that the embodiments of the present application can be used in other aspects and may include structural or logical changes not depicted in the drawings. Therefore, the following detailed description should not be understood in a restrictive sense, and the scope of the present application is defined by the appended claims. In addition, it should also be understood that, unless otherwise expressly stated, the features of the various exemplary embodiments and / or aspects described herein can be combined with each other.

[0031] Example 1:

[0032] A virtual joystick touch method with function area control, such as Figure 1 , including the following steps:

[0033] Configure the virtual joystick area and its functional areas;

[0034] In a non-cancelled tracking state, in response to a first touch action on coordinates within a setting area of ​​the virtual joystick, implementing internal logic of the virtual joystick;

[0035] In response to a second touch action after the first touch action, it is determined whether it is a touch action for implementing a function area, and if so, the corresponding function area function is implemented.

[0036] For the game control interface with a virtual joystick based on a touch screen, the common virtual joystick only includes a single remote control target object function. This solution is targeted at the virtual joystick, such as Figure 2 The disclosed configuration includes a function area in the middle of the virtual joystick, which is used to implement the corresponding functions loaded in the function area. Specifically, the virtual joystick includes a function area and a joystick control area. The joystick control area is used to control the movement of the target object, while the function area contains props, skills, or other function shortcuts according to user settings. By implementing it in the settings module, the system will implement the corresponding touch behavior based on the touch mode (click or drag, etc.) required for the set function.

[0037] Because the function area is located in the center of or around the virtual joystick and near the remote control area (ensuring that the gap between the remote control area and the target object can be quickly and easily accessed with one hand), the solution requires further attention to ensure that the system can correctly and accurately identify whether the user is attempting to access the function area or the target control function, thereby avoiding misoperation. The key lies in identifying the different behaviors generated by different finger touches and the distance between the touch position and the currently controlled control. Based on these two points, the target touch point (target finger) and its corresponding touch behavior are determined to ensure that a single control can achieve multiple functions.

[0038] For example, the skills loaded in the function area can be cast by clicking or dragging. When the touch behavior position is in the function area, the module will automatically block (cancel monitoring) the touch logic of the virtual joystick's click and drag behavior, and implement the corresponding logic of the skill module to prevent confusion in the effect of the touch behavior implementation; when the touch behavior position is in the virtual joystick area outside the function area, the inherent monitoring of the touch behavior will not be modified, and the above virtual joystick logic will be executed normally.

[0039] The detailed implementation steps include the following:

[0040] Initialize a list containing all touch behaviors. The "all touch behaviors" mentioned in this embodiment are pre-configured by the system. When designing the initial touch behavior types, multiple touch behaviors can be configured, including finger touching the screen, finger continuously touching the screen, finger sliding, finger leaving the screen and canceling touch behavior tracking. It can be known that the touch behaviors of finger touching the screen, finger continuously touching the screen, finger sliding, and finger leaving the screen can also be set to other achievable interactive actions, and the response targets preset for several interactive actions can also be configured.

[0041] Among them, the step of judging whether the current state is the touch tracking cancellation state according to the list is as follows: when there are more than n touch actions in the tracking list at the same time, cancel the current touch tracking and enter the touch tracking cancellation state, and do not track all subsequent touch actions until the state of more than n touch actions in the tracking list ends. N is 3 or more. The tracking list is a list of all touch actions currently received.

[0042] After receiving the touch input and determining that it is in a non-cancelled tracking state, the unique identifier and coordinates of the current touch behavior are recorded.

[0043] If the coordinates of the touch action are within the virtual joystick setting area, it is determined that the first touch action needs to be further implemented by the internal logic of the virtual joystick. Waiting to receive the second touch action, and making corresponding response information according to the type of the second touch action, including:

[0044] If the second touch action is leaving the screen, and the local coordinates of the first touch action are determined to be in or near a functional area, and the current unique identifier has not generated a sliding touch action, the corresponding functional area function is implemented. If the first touch action is not in or near a functional area, or the current unique identifier has generated a sliding touch action, the virtual joystick returns to standby mode and the tracking ends.

[0045] As mentioned above, the touch behaviors in the initialized list include finger contacting the screen and finger continuous contacting the screen. When the second touch behavior is recognized as contacting the screen or continuous contacting the screen, the virtual joystick enters a ready state, ready to receive the next touch behavior of leaving the screen or sliding, and implements the method corresponding to the logic of contacting the screen or continuous contacting the screen.

[0046] When the second touch behavior is a sliding touch behavior, in response to the sliding touch behavior, the local coordinates are converted according to the current sliding touch behavior to perform follow-up movement, and the displacement change is output to the entity operation module to implement the operation of the corresponding entity.

[0047] It should be noted that, when the second touch behavior is recognized as the finger leaving the screen, the finger contacting the screen, or the finger continuously contacting the screen, the system automatically starts tracking the unique identifier corresponding to the touch behavior.

[0048] When the second touch action is to cancel the touch action tracking, the current state is updated to the tracking cancellation state, the virtual joystick returns to the standby state, and the current tracking is ended.

[0049] The above disclosure is a solution for one mode of application, that is, when there is only one touch point on the touch screen. However, the actual application scenarios are more complex and changeable, and further technical means are needed to ensure a responsible application scenario.

[0050] Example 2:

[0051] If one hand performs operations only at the virtual joystick position, this can be achieved by canceling the monitoring of specific touch behaviors, ensuring that the implementation of the target control function and the function area function are not confused. In actual experience, for example, in gaming, multi-touch behaviors of both hands often occur. Then, the system responds to the first touch behavior of the coordinates in the virtual joystick setting area. Before performing the steps of implementing the internal logic of the virtual joystick, it is necessary to execute the multi-touch behavior position comparison logic to ensure accurate identification of the first touch behavior of the coordinates in the virtual joystick setting area under multi-touch behavior. Thus, an optimal solution is derived based on Example 1.

[0052] like Figure 2 , the further added pre-order steps include:

[0053] After receiving the touch input and determining that it is in a non-cancelled tracking state, the unique identifier and coordinates of the current touch behavior are recorded.

[0054] If multiple touch behaviors are identified at the same time, the distances between the local coordinates of all touch behaviors and the center of the virtual joystick are compared to determine the touch behaviors whose local coordinates are within the setting area of ​​the virtual joystick. In response to the first touch behavior of the coordinates within the setting area of ​​the virtual joystick, the internal logic of the virtual joystick is implemented.

[0055] If the identified corresponding touch behavior is not the one closest to the center of the virtual joystick, the tracking of the unique identifier is terminated; if the comparison shows that the touch behavior corresponding to the unique identifier is the one closest to the center of the virtual joystick, it is further determined whether the local coordinates of the touch behavior are within the set area of ​​the virtual joystick. If so, wait for the identification of the second touch behavior. If not, the tracking of the corresponding unique identifier is terminated.

[0056] Regarding the recognition and response of the second touch behavior, as described above, no further details are given.

[0057] Example 3:

[0058] like Figure 3 Based on Example 2, a preferred solution is further disclosed. This solution is based on the fact that in the process of implementing the above logic, finger sliding may cause disconnection (touch failure) during multi-finger touch. In fact, when the two touch behaviors of finger contacting the screen and finger leaving the screen occur continuously in a short period of time, the program will make a mistake in judging the finger sliding. In this case, it is necessary to use the unique identifier and the distance between the touch behavior and the virtual joystick to make a judgment. When the system receives the input touch behavior, it traverses the tracking list of all current touch behaviors and records the unique identifier of the touch behavior closest to the virtual joystick as t. When the finger slides, for the manipulation of the virtual joystick, only the displacement change of the touch behavior represented by the unique identifier t is considered. When the unique identifier t leaves the screen touch behavior, the touch tracking is canceled after the response t leaves the screen touch behavior. This solves the problem of disconnection during multi-touch.

[0059] In addition, when a new touch behavior is generated, the touch displacement identifier and coordinates are recorded. If multiple touch behaviors are currently present, the system inserts the new touch behaviors received into the tracking list in descending order of the distance between the touch behavior and the virtual joystick, using the distance as the tracking list key value, and the unique identifier and touch behavior type as the value value. When retrieving, the touch behavior with the smallest distance is taken from the head of the list to eliminate the overhead of traversing the list. The unique identifier t and the logic of updating the tracking list based on the distance ensure that the problem of touch interruption occurs and that the marked touch behavior closest to the virtual joystick is responded to.

[0060] Example 4:

[0061] Based on any one of the virtual joystick touch control methods with function area control in Examples 1-3, this embodiment discloses a touch control device for a virtual joystick, which provides a graphical user interface through a touch display, wherein the graphical user interface includes a virtual joystick control area, the virtual joystick control area includes a joystick control area and a function control area, and the control area of ​​the joystick control area is greater than or equal to the function control area, such as Figure 4 .

[0062] The touch display screen, in a non-cancelled tracking state, responds to a first touch action on a coordinate within a setting area of ​​the virtual joystick to implement internal logic of the virtual joystick;

[0063] The joystick control area 100 is used to respond to the second touch behavior after the first touch behavior, determine whether it is a sliding touch behavior, and if so, perform the corresponding sliding control function;

[0064] The function control area 200 is used to respond to the second touch behavior after the first touch behavior, determine whether it is a touch behavior for the function area, and if so, implement the corresponding function area function.

[0065] It should be noted that the joystick control area 100 and the function control area 200 are inclusive, that is, when the local coordinates of the first touch behavior fall into the function control area 200 and the second touch behavior is recognized as a finger slide, the corresponding control behavior is the finger slide.

[0066] The touch screen uses a unified touch response interface for the entire interface, and each functional module is divided into different areas according to its location, rather than implementing different interfaces for different components. This enables simpler multi-touch control.

[0067] Example 5:

[0068] An electronic device includes a memory and a processor, wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the aforementioned virtual joystick touch control method with function area control. The electronic device may be a computing device such as a desktop computer, a laptop, a PDA, or a cloud server.

[0069] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the electronic device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0070] A computer-readable storage medium storing a computer program, wherein the computer program enables a computer to implement the above-mentioned virtual joystick touch control method with function area control when executed.

[0071] In the above embodiments, the description of each embodiment has different emphases. For the parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The method steps discussed in the above-mentioned embodiments of this application are merely some preferred implementation methods, which are used to illustrate the feasibility of the structure described in this application and do not limit the scope of the invention. The implementation of the method of the present invention by other process methods or sequences is also within the scope of protection of the present invention. The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A virtual joystick touch control method with function area control, characterized in that: The following steps are involved: Configure the virtual joystick area and its functional areas; Receive a touch action input and determine whether the current state is a canceled tracking state: when there are more than n touch actions in the tracking list at the same time, cancel the current touch tracking and enter the canceled tracking state, and do not track all subsequent touch actions until the state of more than n touch actions in the tracking list ends; when in the non-cancelled tracking state, record the unique identifier and coordinates of the current touch action. If multiple touch actions are identified at the same time, compare the distances between the local coordinates of all touch actions and the center of the virtual joystick to determine the touch actions whose local coordinates are within the virtual joystick setting area. In response to the first touch action with coordinates within the virtual joystick setting area, implement the internal logic of the virtual joystick; The virtual joystick includes a function area and a joystick control area, wherein the function area is arranged in the middle of the virtual joystick or in the area around the virtual joystick and close to the joystick control area; In response to a second touch action after the first touch action, determining whether it is a touch action for implementing a function area, and if so, implementing a corresponding function area function; When the second touch action is an off-screen touch action, it is determined that the local coordinates of the first touch action are located in or near the functional area, and the current unique identifier has not generated a sliding touch action, then the corresponding functional area function is implemented; Traverse the tracking list of all current touch actions and record the unique identifier t of the touch action closest to the virtual joystick area; when a sliding touch action is detected with the unique identifier t, calculate the displacement change of the touch action represented by the unique identifier t.

2. The virtual joystick touch control method with function area control according to claim 1, wherein: The second touch behavior includes touching the screen and continuously touching the screen. When the second touch behavior is identified as touching the screen or continuously touching the screen, the virtual joystick enters a ready state, ready to receive the next touch behavior of leaving the screen or sliding.

3. The virtual joystick touch control method with function area control according to claim 1, wherein: If multiple touch behaviors are identified at the same time, in response to the newly input touch behavior, when it is identified that the unique identifier t has a touch behavior of leaving the screen, the current touch tracking is canceled after responding to the touch behavior t leaving the screen.

4. A virtual joystick touch device with function area control, applicable to the virtual joystick touch method with function area control according to any one of claims 1 to 3, characterized in that: Providing a graphical user interface through a touch display, the graphical user interface including a virtual joystick control area, the virtual joystick control area including a joystick control area and a function control area, the control area of ​​the joystick control area being greater than or equal to the function control area; The touch display, in a non-cancelling tracking state, implements the internal logic of the virtual joystick in response to a first touch action on coordinates within the setting area of ​​the virtual joystick; The joystick control area is used to respond to a second touch behavior after the first touch behavior, determine whether it is a sliding touch behavior, and if so, perform a corresponding sliding control function; The function control area is used to respond to the second touch behavior after the first touch behavior, determine whether it is a touch behavior implemented in the function area, and if so, implement the corresponding function area function.

5. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the virtual joystick touch control method with functional area control are implemented as described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the virtual joystick touch control method with functional area control according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Method and device for controlling virtual characters in game, storage medium and electronic equipment

    CN107551537A

  • Multi-point touch gesture recognition method and mistaken touch prevention method

    CN113031817A