Method, device, electronic device and storage medium for controlling a cursor via a handle
The control method that combines the handle buttons and the joystick solves the problems of the joystick being difficult to accurately move small icons on the UI interface and the cumbersome operation of the cross navigation key, and achieves convenient control switching and precise movement.
Patent Information
- Application Number
- CN202210714041.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-06-22
AI Technical Summary
When using the handle to control the cursor, the joystick is difficult to accurately move small icons or buttons on the UI interface, and the cross navigation key is cumbersome to operate, resulting in inconvenience for users.
By combining the buttons and joystick of the handle, two control methods are provided, supporting convenient switching between the joystick and buttons. The buttons are used for discrete movement, and the joystick is used for sensitivity and distance control.
It achieves seamless switching between joystick and button control modes, improves the convenience and accuracy of user operation, and reduces the complexity of operation.
Smart Images

Figure CN115155052B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device, electronic device, and storage medium for controlling a cursor through a handle. Background Art
[0002] In recent years, game consoles have often used controllers as input devices to meet user demands for game control sensitivity and tactile feel. Furthermore, when playing games on handheld gaming consoles or computers, users may also choose controllers as input devices due to limitations in screen size or the flexibility of keyboard and mouse controls.
[0003] When using a controller as an input device, there are the following issues: When using the joystick to control the cursor on the UI interface, the cross-shaped navigation key is ineffective. When the UI interface displays many small UI icons or buttons, if the user controls the cursor with the joystick, it is difficult to quickly and accurately find a specific UI icon or button. If the user controls the cursor with the cross-shaped navigation key, the user needs to repeat the same operation multiple times (for example, multiple clicks on the Dpad-down), which makes the operation cumbersome. Summary of the Invention
[0004] In view of this, the embodiments of the present application at least provide a method, device, electronic device and storage medium for controlling a cursor through a handle, which can support both joystick and button control modes, and is easy to switch and not likely to cause user confusion.
[0005] In a first aspect, an exemplary embodiment of the present application provides a method for controlling a cursor through a handle, wherein the handle includes a button and a joystick, and the method includes: displaying a target interface through a terminal device; receiving a first control instruction for the cursor through the button of the handle, and controlling the cursor to move in a first movement mode on the target interface, wherein the first movement mode includes: controlling the cursor to move from the control currently indicated by the cursor to the next control on the target interface along the direction indicated by the first control instruction; receiving a second control instruction for the cursor through the joystick of the handle, controlling the cursor to switch from the first movement mode to the second movement mode on the target interface, and controlling the movement distance of the cursor on the target interface according to the second control instruction; wherein the second movement mode includes: controlling the cursor to determine the movement distance of the cursor according to the movement sensitivity and the duration indicated by the second control instruction on the target interface along the direction indicated by the second control instruction; receiving a third control instruction for the cursor through the button of the handle, and controlling the cursor to switch from the second movement mode to the first movement mode on the target interface.
[0006] In one possible implementation, it may also include: when responding to a preset input instruction, prohibiting responding to a target input instruction, wherein the preset input instruction may be one of the first control instruction and the second control instruction, and the target input instruction may be the other of the first control instruction and the second control instruction.
[0007] In one possible implementation, the step of prohibiting responding to the target input instruction may include: receiving the target input instruction, and prohibiting responding to the target input instruction.
[0008] In one possible embodiment, the second control instruction may include a first switching sub-instruction and a first manipulation sub-instruction, wherein the first switching sub-instruction can be used to control the cursor to switch from a first movement mode to a second movement mode on the target interface, and the first manipulation sub-instruction can be used to control the cursor to move in the second movement mode on the target interface.
[0009] In one possible embodiment, the third control instruction may include a second switching sub-instruction and a second manipulation sub-instruction, wherein the second switching sub-instruction can be used to control the cursor to switch from the second movement mode to the first movement mode on the target interface, and the second manipulation sub-instruction can be used to control the cursor to move in the first movement mode on the target interface.
[0010] In one possible implementation, the target interface may be an interface displayed on the terminal device for presenting a plurality of controls in a static form.
[0011] In one possible implementation, the target interface may include a game configuration screen in a game provided by the terminal device.
[0012] In one possible embodiment, the step of displaying the target interface through the terminal device may include: displaying a game scene screen corresponding to a virtual character located in the game scene in a graphical user interface provided by the terminal device; in response to manipulation of the virtual character, controlling the virtual character to perform an action corresponding to the manipulation in the virtual scene; in response to a preset trigger event, controlling the screen displayed in the graphical user interface to switch from the game scene screen to the target interface.
[0013] In one possible implementation, the target interface may include multiple controls, wherein the initial control module under the target interface can be determined in the following manner: based on the display properties of the multiple controls on the target interface, the initial control module under the target interface is determined from the buttons and the joystick.
[0014] In one possible implementation, the initial control module under the target interface can be determined in the following manner: based on the display attributes, determining whether the multiple controls meet preset display conditions, the preset display conditions are used to characterize the display complexity of the multiple controls on the target interface; if the preset display conditions are met, selecting the joystick as the initial control module under the target interface; if the preset display conditions are not met, selecting the button as the initial control module under the target interface.
[0015] In one possible embodiment, the display attributes may include the display layout and / or display quantity of the multiple controls on the target interface, wherein the preset display conditions may include at least one of the following items: the number of controls displayed in any preset display area is not less than a first set value, and the target interface is divided into multiple preset display areas; the total number of the multiple controls displayed on the target interface is not less than a second set value.
[0016] In a second aspect, an embodiment of the present application further provides a device for controlling a cursor through a handle, the handle including a button and a joystick, the device including: a display control module, configured to display a target interface through a terminal device; a cursor control module, configured to receive a first control instruction for a cursor through the button of the handle, and control the cursor to move in a first movement mode on the target interface, wherein the first movement mode includes: controlling the cursor to move from a control currently indicated by the cursor to a next control on the target interface along a direction indicated by the first control instruction; a first switching module, configured to receive a second control instruction for a cursor through the joystick of the handle, control the cursor to switch from the first movement mode to a second movement mode on the target interface, and control the movement distance of the cursor on the target interface according to the second control instruction; wherein the second movement mode includes: controlling the cursor to move in the target interface along the direction indicated by the second control instruction, and determining the movement distance of the cursor according to the movement sensitivity and the duration indicated by the second control instruction; and a second switching module, configured to receive a third control instruction for the cursor through the button of the handle, and control the cursor to switch from the second movement mode to the first movement mode on the target interface.
[0017] In a third aspect, an embodiment of the present application further provides an electronic device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the method of controlling a cursor by a handle in the above-mentioned first aspect or any possible implementation of the first aspect.
[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for controlling a cursor by a handle in the above-mentioned first aspect or any possible implementation of the first aspect are executed.
[0019] The method, device, electronic device and storage medium for controlling a cursor through a handle provided in the embodiments of the present application can support both joystick and button control modes, and the switching is convenient and not likely to cause user confusion.
[0020] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 A flow chart showing a method for controlling a cursor by a handle provided by an exemplary embodiment of the present application;
[0023] Figure 2 A flowchart showing steps of displaying a target interface provided by an exemplary embodiment of the present application;
[0024] Figure 3 A schematic diagram showing a handle provided by an exemplary embodiment of the present application;
[0025] Figure 4 A schematic structural diagram of a device for controlling a cursor through a handle provided by an exemplary embodiment of the present application is shown;
[0026] Figure 5 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0028] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.
[0029] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "Including A, B and / or C" means including any one, any two, or any three of A, B, and C.
[0030] It should be understood that in the embodiments of the present application, "B corresponding to A," "B corresponding to A," "A corresponds to B," or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based solely on A; B can also be determined based on A and / or other information.
[0031] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0032] In recent years, cloud gaming has been gaining market share. Dedicated game console platforms often use controllers as input devices to meet user demands for game control sensitivity and tactile feel. Furthermore, when playing games on handheld gaming consoles or computers, users sometimes choose controllers as input devices due to limitations in screen size or keyboard and mouse control. However, using a controller as an input device presents the following issues: When using the controller's joystick to control cursor movement within the UI, the cross navigation key becomes ineffective.
[0033] For example, users can use a joystick to control the cursor to simulate a mouse-like method of moving the cursor on the UI interface. When there are many small UI icons or buttons displayed on the UI interface, for PC-side mouse users, even very small UI button icons can be easily clicked with the mouse, but for console platform controller users, it is difficult to accurately find a particularly small icon or button by controlling the cursor with a joystick. In addition, users can also use the cross navigation key to control the cursor on the UI interface. If players want to move from the upper left corner of the UI interface to a button in the lower right corner by pressing Dpad-down, they need to repeat the operation multiple times (for example, multiple clicks of Dpad-down and Dpad-Right), which makes the operation very cumbersome.
[0034] In response to the above problems, the present application proposes a method, device, electronic device and storage medium for controlling a cursor through a handle, which not only supports both joystick and button control methods, but also can achieve seamless switching between the two control methods, making switching convenient and less likely to cause user confusion.
[0035] First, a brief introduction is given to the names involved in the embodiments of this application.
[0036] In the embodiment of the present application, a graphical user interface may be provided by a terminal device, wherein:
[0037] Terminal equipment:
[0038] The terminal device involved in the embodiments of the present application mainly refers to an electronic device that can provide a user interface (User Interface) to realize human-computer interaction. In an exemplary application scenario, the terminal device may refer to an intelligent device used to provide a game scene and can control the operation of a virtual character. The terminal device may include but is not limited to any one of the following devices: a smart phone, a tablet computer, a portable computer, a desktop computer, a game console, a personal digital assistant (PDA), an e-book reader, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, etc. An application that supports game scenes is installed and running in the terminal device, such as an application that supports three-dimensional game scenes. The application may include but is not limited to any one of a virtual reality application, a three-dimensional map program, a military simulation program, a MOBA game, a multiplayer gun battle survival game, and a third-person shooter game (TPS, Third-Personal Shooting Game). Optionally, the application can be a stand-alone application, such as a stand-alone 3D game program, or a network-connected application.
[0039] Graphical User Interface:
[0040] A graphical user interface (GUI) is an interface display format for communication between humans and computers. It allows users to manipulate on-screen icons, logos, or menu options using input devices such as a mouse, keyboard, or controller. It also allows users to manipulate on-screen icons or menu options by performing touch operations on the touch screen of a touch-sensitive terminal to select commands, launch programs, or perform other tasks. In a gaming scenario, the GUI can display both the game scene interface and the game configuration interface.
[0041] Virtual Characters:
[0042] A virtual character in a virtual environment (e.g., a game scene) can be a player-controlled virtual character, including but not limited to at least one of a virtual person, a virtual animal, and an animated character. It can also be a non-player-controlled virtual character (NPC). It can also be a virtual object, such as a static object in the virtual scene, for example, a virtual prop in the virtual scene, a virtual task, a location in the virtual environment, terrain, a house, a bridge, vegetation, etc. Static objects are often not directly controlled by the player, but can respond to the interactive actions of the virtual character in the scene (e.g., attacking, demolishing, etc.) and perform corresponding actions. For example, a virtual character can demolish, pick up, drag, and build buildings. Alternatively, a virtual object may not respond to the virtual character's interactive actions. For example, a virtual object can also be a building, door, window, or plant in the game scene, but the virtual character cannot interact with it. For example, the virtual character cannot destroy or remove a window. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual character can be a three-dimensional virtual model. Each virtual character has its own shape and volume in the three-dimensional virtual environment and occupies a portion of the space in the three-dimensional virtual environment. Optionally, the virtual character is a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual character achieves different external images by wearing different skins. In some implementations, the virtual character can also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in this embodiment of the present application.
[0043] There may be multiple virtual characters in a virtual scene, which are virtual characters controlled by players (i.e., characters controlled by players through input devices and touch screens), or artificial intelligence (AI) set up in a virtual environment through training. Optionally, the virtual character is a virtual person competing in a game scene. Optionally, the number of virtual characters in the game scene battle is preset, or dynamically determined according to the number of terminal devices joining the virtual battle, which is not limited in the embodiments of the present application. In one possible implementation, the user can control the virtual character to move in the virtual scene, for example, to control the virtual character to run, jump, crawl, etc., and can also control the virtual character to use the skills, virtual props, etc. provided by the application to fight with other virtual characters.
[0044] In an optional embodiment, the terminal device can be a local terminal device. Taking a game as an example, the local terminal device stores the game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in various ways, for example, it can be rendered and displayed on the terminal device's display screen, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface includes the game scene screen and the game configuration interface, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0045] The application scenarios to which this application is applicable are introduced. This application can be applied to the field of game technology, in which multiple players participating in the game join the same virtual battle.
[0046] Before entering a virtual battle, players can select different character attributes, such as identity attributes, for their virtual characters in the virtual battle. By assigning different character attributes to determine different camps, players can win the game by completing tasks assigned by the game during different stages of the virtual battle. For example, multiple virtual characters with character attribute A can "eliminate" virtual characters with character attribute B during the game to win the game. Alternatively, character attributes can be randomly assigned to each virtual character participating in the virtual battle upon entering the virtual battle.
[0047] An implementation environment provided by one embodiment of the present application may include: a first terminal device, a server, and a second terminal device, wherein the first terminal device and the second terminal device each communicate with the server to implement data communication. In this embodiment, the first terminal device and the second terminal device are each installed with an application program that executes the method for controlling a cursor using a handle provided in the present application, and the server is a server end that executes the method for controlling a cursor using a handle provided in the present application. Through the application program, the first terminal device and the second terminal device can each communicate with the server.
[0048] Taking the first terminal device as an example, the first terminal device establishes communication with the server by running an application. In an optional embodiment, the server establishes a virtual battle based on the game request of the application. The parameters of the virtual battle can be determined based on the parameters in the received game request. For example, the parameters of the virtual battle may include the number of people participating in the virtual battle, the levels of the characters participating in the virtual battle, etc. When the first terminal device receives a response from the game server, the game scene corresponding to the virtual battle is displayed through the graphical user interface of the first terminal device. The first terminal device is a device controlled by the first user. The virtual character displayed in the graphical user interface of the first terminal device is the player character controlled by the first user (i.e., the first virtual character). The first user inputs character operation instructions through the graphical user interface to control the player character to perform corresponding operations in the game scene. The first user also inputs cursor control instructions through the graphical user interface to control the movement of the cursor on the graphical user interface.
[0049] Taking the second terminal device as an example, the second terminal device establishes communication with the server by running an application. In an optional embodiment, the server establishes a virtual battle based on the game request of the application. The parameters of the virtual battle can be determined based on the parameters in the received game request. For example, the parameters of the virtual battle may include the number of participants in the virtual battle, the levels of the characters participating in the virtual battle, etc. When the second terminal device receives the response from the server, the game scene corresponding to the virtual battle is displayed through the graphical user interface of the second terminal device. The second terminal device is a device controlled by a second user. The virtual character displayed in the graphical user interface of the second terminal device is the player character controlled by the second user (i.e., the second virtual character). The second user enters character operation instructions through the graphical user interface to control the player character to perform corresponding operations in the virtual scene. The second user also enters cursor control instructions through the graphical user interface to control the movement of the cursor on the graphical user interface.
[0050] The server performs data calculation based on the game data reported by the first terminal device and the second terminal device, and synchronizes the calculated game data to the first terminal device and the second terminal device, so that the first terminal device and the second terminal device control the graphical user interface to render the corresponding game scene and / or virtual character according to the synchronization data sent by the game server.
[0051] In this embodiment, the first virtual character controlled by the first terminal device and the second virtual character controlled by the second terminal device are virtual characters in the same virtual battle. The first virtual character controlled by the first terminal device and the second virtual character controlled by the second terminal device can have the same character attributes or different character attributes, and the first virtual character controlled by the first terminal device and the second virtual character controlled by the second terminal device can belong to the same camp or different camps.
[0052] It should be noted that a virtual battle may include two or more virtual characters, and different virtual characters may correspond to different terminal devices. That is to say, in a virtual battle, there are more than two terminal devices that send and synchronize game data with the game server respectively.
[0053] To facilitate understanding of the present application, the method, device, electronic device, and storage medium for controlling a cursor through a handle provided in the embodiments of the present application are described in detail below.
[0054] See also Figure 1 , which is a flow chart of a method for controlling a cursor by a handle provided by an exemplary embodiment of the present application, specifically comprising:
[0055] Step S101: Displaying a target interface via a terminal device.
[0056] In an embodiment of the present application, a graphical user interface may be provided by a terminal device, and the target interface is an interface displayed on the graphical user interface.
[0057] In a preferred embodiment, the target interface may refer to an interface displayed on a terminal device for displaying multiple controls in a static form. For example, the static display here can be understood as the display positions of the multiple controls on the interface not moving, that is, the display positions of the controls will not move with the operations performed by the user on the interface (for example, the user manipulates the cursor, triggers a specific button). In other words, the display positions of the multiple controls on the interface are fixed, and the multiple controls can be selected based on the operations performed by the user on the interface to trigger the functions corresponding to the selected controls.
[0058] Taking the case where a game program is running in the above-mentioned terminal device as an example, a game scene screen corresponding to the game may be displayed in the graphical user interface. In this case, the target interface may refer to a game configuration screen corresponding to the game running in the terminal device.
[0059] As an example, the game configuration screen may include any of the following items: a character parameter configuration interface for a virtual character in the game, a task viewing interface for a virtual task in the game, a backpack viewing interface for a virtual backpack equipped with a virtual character, and a battle parameter configuration interface for a virtual battle.
[0060] Refer to the following Figure 2 , taking the target interface as the game configuration screen in the game as an example to introduce a method of displaying the target interface.
[0061] Figure 2 A flowchart showing steps of displaying a target interface provided by an exemplary embodiment of the present application is shown.
[0062] Reference Figure 2 In step S201, a game scene screen corresponding to a virtual character in the game scene is displayed in a graphical user interface provided by a terminal device.
[0063] In an embodiment of the present application, the game scene screen is a screen obtained by observing the game scene using the perspective corresponding to the virtual character. For example, it can be a game scene screen under the first-person perspective or the third-person perspective (also known as the God's perspective). The game scene screen can include the game scene, and can also include the game scene and the virtual character located in the game scene. The virtual character is configured to perform virtual actions according to the game instructions received by the terminal device.
[0064] Exemplarily, each virtual character has a one-to-one corresponding virtual camera in the virtual environment. In this step, the position of the virtual camera changes synchronously with the position of the virtual character, so that the game scene image captured by the virtual camera changes with the position of the virtual character.
[0065] In contrast to the statically displayed game configuration screen, the game scene screen described above can be understood as a dynamic interface. Within the game scene screen, as the user performs actions on the interface, at least one of the following changes occurs: the game scene changes, the position of the virtual character within the game scene changes, or the position and / or form of virtual objects within the game scene change.
[0066] In step S202 , in response to the manipulation of the virtual character, the virtual character is controlled to perform an action corresponding to the manipulation in the virtual scene.
[0067] Here, the above-mentioned manipulation is sent by the game player to the terminal device, and the manipulation is used to control the virtual character to perform the action indicated by the manipulation in the game scene of the graphical user interface.
[0068] Taking the movement operation of the virtual character as an example, in this step, in response to the movement operation of the virtual character, the virtual character can be controlled to move in the game scene, and the range of the game scene displayed in the graphical user interface can be controlled to change accordingly according to the movement of the virtual character.
[0069] The movement operation in the embodiments of the present application is used to control the movement of a virtual character within a game scene in a graphical user interface. The terminal device responds to the movement operation to control the movement of the virtual character within the game scene. As the virtual character moves, the position of the virtual character within the game scene changes accordingly. In other words, the terminal device responds to the movement operation to control the range of the game scene displayed in the graphical user interface to change accordingly based on the movement of the virtual character.
[0070] For example, a game scene displayed in a graphical user interface may be a picture obtained by observing the game scene with a virtual character as the observation center. When the virtual character in the game scene is controlled to move, the game scene picture will follow the movement. That is, the observation center of the game scene picture is bound to the position of the virtual character, so that the observation center moves with the movement of the virtual character. However, the present application is not limited to this, and other observation positions in the game scene can also be used as the observation center, as long as the displayed game scene range changes accordingly with the movement of the virtual character.
[0071] Exemplarily, the process of controlling the movement of a virtual character in a game scene may include: receiving a selection operation of a game player on a virtual character, and controlling the virtual character to move in the game scene in response to a drag operation on the selected virtual character; or, receiving a selection operation of a game player on a virtual character, and controlling the virtual character to move to a selected position in response to a position selection operation performed in the game scene. As an example, the movement operation may include, but is not limited to, at least one of the following: on a computer, clicking on the virtual character with the left mouse button and not releasing it, and dragging the mouse to change the position of the virtual character in the game scene; or on a mobile device, long-pressing the virtual character with a finger and not releasing it, and changing the position of the virtual character in the game scene by sliding the finger on the graphical user interface; or on a host platform, selecting a direction by toggling the first joystick of the handle, and controlling the virtual character to move in the direction indicated by the first joystick in the game scene or to stop moving by toggling the second joystick of the handle.
[0072] As the scope of the game scene changes in response to the movement of the virtual character, the changed game scene may include another virtual character (here, the game scene before the change may also include another virtual character). Here, the other virtual character is a virtual character controlled by another player in the current virtual game. Similarly, the terminal devices of other players can also control the movement of the other virtual character in the game scene in response to their movement operations. As the other virtual character moves, the position of the other virtual character in the game scene will also change accordingly.
[0073] For example, a virtual character can perform system-specified tasks in a game scenario to achieve victory by completing the task, and the same applies to another virtual character in the game scenario. If the virtual character has a first role attribute and the other virtual character has a second role attribute, then during the other virtual character's task execution, the virtual character can disrupt the other virtual character's task, kill the other virtual character, or complete the task designated for the virtual character. If the virtual character has a second role attribute and the other virtual character has a first role attribute, the same process can be performed. If the virtual character and the other virtual character have the same role attribute, the virtual character and the other virtual character can perform the task together or separately, and can also search together or separately for other virtual characters with the other role attribute to disrupt the other virtual character's task execution or kill the other virtual character.
[0074] In step S203, in response to a preset trigger event, the screen displayed in the graphical user interface is controlled to switch from the game scene screen to the target interface.
[0075] Here, the preset trigger event refers to an event used to trigger interface switching.
[0076] In an optional embodiment, the triggering event may include at least one of the following items: controlling the virtual character to move to a specific location in the game scene, or the virtual character picking up a specific virtual item in the game scene, the virtual character triggering a specific virtual task in the game scene, or the virtual game entering a specific game stage. In this case, the switching of the screen displayed in the graphical user interface can be triggered.
[0077] In an optional embodiment, the trigger event is used to trigger a switching operation from the game scene screen to the target interface. Exemplarily, the switching operation may include but is not limited to: operating on the configuration options displayed on the graphical user interface to exit the game scene screen and display the game configuration interface.
[0078] The above method of the embodiment of the present application is applicable to controlling the movement of the cursor through a handle on the game configuration interface. In the game scene, the input of the handle can be controlled by other means. In other words, the method of controlling the cursor through a handle in the present application does not support use in the game scene.
[0079] It should be understood that the above describes one way to enter the target interface, that is, switching from the game scene, but the present application is not limited to this, and entry into the target interface can also be triggered by other methods.
[0080] return Figure 1 , step S102: receiving a first control instruction for the cursor through a button of the handle, and controlling the cursor to move in a first moving manner on the target interface.
[0081] Here, the first movement mode includes controlling the cursor to move from the control currently indicated by the cursor to the next control on the target interface along the direction indicated by the first control instruction. The cursor moving on the target interface can also be called a free cursor. The initial position of the cursor on the target interface can be set as required, and this application does not impose any restrictions on this. Furthermore, the coordinate changes of the cursor in the first movement mode are discrete and discontinuous. For example, the cursor jumps from the currently indicated control to the next control.
[0082] Figure 3 A schematic diagram showing a handle provided by an exemplary embodiment of the present application is shown.
[0083] In this example, multiple mounting slots are provided on the handle 10, such as the mounting slots 11, 12, and 13 shown in the figure. The handle 10 includes buttons and joysticks. Taking the handle shown in the figure as an example, the first joystick A1 is arranged in the mounting slot 11, the button B is arranged in the mounting slot 12, and the second joystick A2 is arranged in the mounting slot 13.
[0084] In the target interface, the first joystick A1, second joystick A2, and button B on the handle 10 can all be used to control the movement of the cursor on the target interface. The difference between joysticks and buttons in cursor control is that buttons are pre-set with fixed movement directions. For example, as shown in the figure, button B is a cross button, and each extension of the cross corresponds to a movement direction. For example, the upper extension of the cross controls the cursor upward on the target interface, the lower extension of the cross controls the cursor downward on the target interface, the left extension of the cross controls the cursor left on the target interface, and the right extension of the cross controls the cursor right on the target interface. In other words, by manipulating any extension of button B on the handle 10, the cursor can be controlled to automatically navigate to the next focus point on the target interface in the direction indicated by any extension. Each time button B is pressed, the cursor performs an automatic navigation action on the target interface.
[0085] For each joystick, the direction of movement of the cursor on the target interface changes with the direction of the joystick. The joystick can be moved in any direction over 360 degrees, making the control of the cursor's movement direction very flexible.
[0086] It should be understood that in addition to the joystick and buttons, the handle may also be provided with other mounting slots to accommodate various other function buttons. These function buttons are used to trigger a pre-set function. For example, in a game, pressing a function button can control a virtual character to perform a corresponding specific action or open a designated backpack. Furthermore, the handle structure shown in the above figure is merely an example, and the present application is not limited thereto. Other handle configurations may also be employed, as long as the handle includes buttons and a joystick.
[0087] Taking the case where a game program is running in the above-mentioned terminal device as an example, when the game scene screen corresponding to the game is displayed in the graphical user interface provided by the terminal device, the joystick and / or buttons of the controller can be used to control the virtual character to perform actions in the game scene. When the game configuration screen corresponding to the game is displayed in the graphical user interface provided by the terminal device, the joystick or buttons of the controller can be used to control the movement of the cursor on the game configuration interface. Optionally, in the game configuration interface, no response is given to the operation of other types of function keys (except buttons and joysticks) arranged on the controller. However, the present application is not limited thereto, and the operation of other types of function keys can also be responded to.
[0088] Through the above method, the target interface can support two control modes of the joystick and buttons of the handle, and switching between the joystick and buttons on the handle can be realized.
[0089] Step S103: receiving a second control instruction for the cursor through the joystick of the handle, controlling the cursor to switch from the first movement mode to the second movement mode on the target interface, and controlling the movement distance of the cursor on the target interface according to the second control instruction.
[0090] Here, the second movement mode includes: controlling the cursor on the target interface along the direction indicated by the second control instruction to determine the movement distance of the cursor according to the movement sensitivity and the duration indicated by the second control instruction.
[0091] Exemplarily, the movement sensitivity can be determined based on the pressure value of the joystick being toggled. For example, the pressure value corresponding to the toggling of the joystick in a direction beyond a specified direction can be detected. The greater the detected pressure value, the higher the movement sensitivity (i.e., the faster the cursor moves on the target interface), and the smaller the detected pressure value, the lower the movement sensitivity (i.e., the slower the cursor moves on the target interface). It should be understood that the above method of determining movement sensitivity is only an example, and movement sensitivity can also be determined by other methods, and this application does not limit this.
[0092] Exemplarily, the duration indicated by the second control instruction can be determined based on the duration of time the joystick is moved. For example, the duration of time the joystick is moved can be directly determined as the duration indicated by the second control instruction, or it can be determined that the duration indicated by the second control instruction is positively correlated with the duration of time the joystick is moved.
[0093] Furthermore, in the second movement mode, the cursor coordinate changes continuously. For example, the cursor does not discretely jump from the currently indicated control to the next control. In the above steps, the direction of movement of the cursor on the target interface can be determined based on the direction of the joystick being toggled, and the distance of movement of the cursor on the target interface can be controlled by the pressure and duration of the joystick being toggled.
[0094] In the embodiment of the present application, when responding to a preset input instruction, responding to a target input instruction is prohibited. Here, the preset input instruction is one of the first control instruction and the second control instruction, and the target input instruction is the other of the first control instruction and the second control instruction.
[0095] That is, when responding to the first control instruction, the second control instruction is prohibited, and / or, when responding to the second control instruction, the first control instruction is prohibited. In other words, at any moment in the target interface, the terminal device only responds to the input of one control module on the handle, that is, the input of the control module of one of the joystick and buttons on the handle is valid.
[0096] In the embodiment of the present application, prohibiting responding to the target input instruction includes the following two situations.
[0097] In one case, the target input command is not detected to prohibit responding to the target input command.
[0098] In this case, the switching operation for switching the movement mode of the cursor can be triggered by other control modules on the handle, that is, the switching operation is triggered by other control modules other than the input of the first control instruction and the second control instruction.
[0099] For example, assuming that a function button on the handle is pre-set as the button for triggering the above-mentioned switching operation, when the cursor is controlled to move in a first movement mode on the target interface by the button on the handle, if an operation is received on the above-mentioned pre-set function button, the switching is triggered to control the cursor to switch from the first movement mode to the second movement mode on the target interface.
[0100] In another case, the target input command is detected, but responding to the target input command is prohibited.
[0101] That is to say, when the cursor is controlled to move on the target interface according to the preset input instruction, the target input instruction can be received, but responding to the target input instruction is prohibited, that is, the cursor is not controlled to move on the target interface according to the movement method indicated by the target input instruction.
[0102] In this case, the switching operation for switching the movement mode of the cursor can be triggered by the control module on the handle corresponding to the target input instruction, that is, the switching operation from the first movement mode to the second movement mode is triggered by the joystick on the handle.
[0103] Exemplarily, the second control instruction may include a first switching sub-instruction and a first manipulation sub-instruction, where the first switching sub-instruction is used to control the cursor to switch from a first movement mode to a second movement mode on the target interface, and the first manipulation sub-instruction is used to control the cursor to move in the second movement mode on the target interface.
[0104] In an embodiment of the present application, the first switching sub-command and the first manipulation sub-command may be commands generated by the same triggering action of the joystick, for example, by moving the joystick in a certain direction. For example, if a user wishes to switch the cursor from button control to joystick control, the user may directly move the joystick (equivalent to the first switching sub-command, where the direction and pressure of the movement are not restricted) to activate the joystick. After the joystick is activated, the user may then control the movement of the cursor on the target interface according to the manipulation of the joystick (equivalent to the first manipulation sub-command).
[0105] In addition, the first switching sub-command and the first control sub-command can also be commands generated by the joystick under different trigger actions. For example, the first switching sub-command can be a pressing operation on the joystick, and the first control sub-command can be a toggling operation on the joystick.
[0106] In an embodiment of the present application, the switching operation from the first movement mode to the second movement mode is triggered by the joystick on the handle, that is, the switching is triggered by the target object switched to. This can effectively avoid switching confusion for the user and prevent the user from being unable to confirm which control mode for the cursor is currently in.
[0107] Step S104: receiving a third control instruction for the cursor through the button of the handle, and controlling the cursor to switch from the second movement mode to the first movement mode on the target interface.
[0108] In an embodiment of the present application, it is possible to switch back and forth between the buttons and the joystick of the handle, that is, after receiving the second control instruction, the cursor can be controlled to switch from the first movement mode to the second movement mode. After that, when the third control instruction is received, the cursor can be controlled to switch from the second movement mode to the first movement mode. After that, if the second control instruction for the cursor is received through the joystick of the handle, the cursor is again controlled to switch from the first movement mode to the second movement mode, and so on.
[0109] For the above situation where the target input instruction is not detected, the switching operation for switching the movement mode of the cursor can be triggered by other control modules on the handle, that is, the above switching operation is triggered by inputting other control modules other than the third control instruction and the second control instruction.
[0110] For example, assuming that another function button on the handle is pre-set as the button for triggering the above-mentioned switching operation, when the cursor is controlled to move in the second movement mode on the target interface by the joystick of the handle, if an operation is received on the above-mentioned pre-set other function button, the switching is triggered to control the cursor to switch from the second movement mode to the first movement mode on the target interface.
[0111] For the above-mentioned case of detecting the target input instruction, the above-mentioned switching operation for switching the movement mode of the cursor can be triggered by the control module corresponding to the target input instruction on the handle, that is, the switching operation from the second movement mode to the first movement mode is triggered by the button on the handle.
[0112] Exemplarily, the third control instruction may include a second switching sub-instruction and a second manipulation sub-instruction, where the second switching sub-instruction is used to control the cursor to switch from the second movement mode to the first movement mode on the target interface, and the second manipulation sub-instruction is used to control the cursor to move in the first movement mode on the target interface.
[0113] In an embodiment of the present application, the second switching sub-command and the second manipulation sub-command can be commands generated by the same triggering action of a button. For example, if a user wishes to switch the cursor from joystick control to button control, they can directly press the button (equivalent to the second switching sub-command, which can be pressing either extended end of the button) to activate the button. After the button is activated, the cursor can be controlled to move on the target interface based on the manipulation of the button (equivalent to the second manipulation sub-command).
[0114] In addition, the second switching sub-command and the second control sub-command can also be commands generated by different triggering actions of the button. For example, the second switching sub-command can be a long press operation on the button, and the second control sub-command can be a short press operation on the joystick. Alternatively, the second switching sub-command can be a predetermined number of press operations on the button within a predetermined time, and the second control sub-command can be a short press / long press operation on the joystick.
[0115] In the embodiment of the present application, in the case where the above-mentioned key is a cross key, the above-mentioned switching operation can be achieved by using a specific extension end of the cross key (such as Dpad Right).
[0116] In a preferred embodiment, in the method of controlling a cursor by a handle according to the embodiment of the present application, a prompt for switching the movement mode of the cursor can also be provided on the graphical user interface.
[0117] For example, after completing the switching of the cursor movement mode, prompt information corresponding to the switched control module is displayed on the graphical user interface. Exemplarily, the prompt information can be text information used to indicate the switched control module, or it can be a schematic image that is similar / identical to the appearance structure of the switched control module.
[0118] In a preferred embodiment, the display transparency of the prompt information on the graphical user interface can also be adjusted to avoid blocking the content displayed on the graphical user interface.
[0119] It should be understood that in the method of controlling the cursor through the handle in the embodiment of the present application, it is possible to switch arbitrarily between the two control modes of the handle, the joystick and the button. It is not limited to the above-mentioned switching process from button → joystick → button → joystick. It can repeatedly switch between the two control modes of the joystick and the button, as long as the switching conditions are met.
[0120] In a preferred embodiment, the control module initially active upon entering the target interface can be selected based on the display properties of multiple controls displayed in the target interface. It should be understood that the present application is not limited thereto, and an initial control module can also be pre-set for the target interface. Each time the target interface is entered, the pre-set initial control module is activated, and thereafter, switching between the joystick and buttons of the controller is performed based on the above-described switching method.
[0121] Exemplarily, the initial control module in a valid state under the target interface can be determined by any one of the following items: the control module selected by the user when last exiting the target interface, the default control module, the control module determined based on the display properties of multiple controls displayed on the target interface, and the control module determined based on the number of times / frequency of use / duration of use of each control module by the user (e.g., the one used the most times).
[0122] In a preferred embodiment, the step of determining the initial control module under the target interface based on the display properties of multiple controls displayed on the target interface may include: determining the initial control module under the target interface from buttons and joysticks based on the display properties of multiple controls on the target interface.
[0123] Specifically, it is possible to determine whether the multiple controls meet the preset display conditions based on the display properties of each control on the target interface. Here, the preset display conditions can be used to characterize the display complexity of the multiple controls on the target interface.
[0124] Exemplarily, the display attributes include the display layout and / or display quantity of the multiple controls on the target interface, that is, the display complexity of the multiple controls on the target interface is measured from two aspects: the display layout and / or the display quantity.
[0125] In this case, the preset display condition may include at least one of the following: the number of controls displayed in any preset display area is not less than a first set value; and the total number of multiple controls displayed on the target interface is not less than a second set value. Here, the target interface can be divided into multiple preset display areas, and the sizes of each preset display area can be the same or different.
[0126] If the preset display conditions are met, it indicates that the display complexity of each control on the target interface is relatively high. At this time, the joystick can be selected as the initial control module under the target interface to control the cursor to quickly locate around the target control.
[0127] If the preset display conditions are not met, it indicates that the display complexity of each control on the target interface is low. At this time, the button can be selected as the initial control module under the target interface to control the game to locate the target control.
[0128] In this way, any control can be selected quickly and accurately in the target interface, simplifying the operation steps.
[0129] In one example, assuming the initial control module in the target interface is the joystick of a controller, a single joystick operation can be used to select a control near the target control, and then the buttons can be used to precisely locate the target control. For example, you can first use the joystick to select a control near the target control, and then switch to button control to make fine adjustments. This way, you can use the buttons to navigate to the small, nearby buttons for up, down, left, and right at any selected location, avoiding the problem of inaccurate joystick control and the need to use buttons multiple times to navigate.
[0130] Through the above method, users can freely use the joystick or button navigation to control the movement of the cursor according to the position of the target control in the target interface. For controls that are closer and smaller in size, you can use button navigation. For controls that are farther away, you can use the joystick to control the cursor to quickly select them.
[0131] The method of controlling the cursor through a handle in this application can support two modes: button navigation and joystick-based free cursor, which can simplify the operation difficulty of handle players facing complex UI interfaces. The two modes can be switched seamlessly and freely at any time, allowing players to have more freedom of operation.
[0132] Based on the same application concept, the embodiments of the present application also provide a device for controlling the cursor through a handle corresponding to the method provided in the above embodiments. Since the principle of solving the problem by the device in the embodiments of the present application is similar to the method of controlling the cursor through a handle in the above embodiments of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0133] Figure 4 This is a schematic diagram of the structure of a device for controlling a cursor through a handle provided by an exemplary embodiment of the present application. Figure 4 As shown, the device 300 for controlling a cursor by a handle includes:
[0134] The display control module 310 displays the target interface through the terminal device.
[0135] The cursor control module 320 receives a first control instruction for the cursor through the button of the handle, and controls the cursor to move in a first movement mode on the target interface, wherein the first movement mode includes: controlling the cursor to move from the control currently indicated by the cursor to the next control on the target interface along the direction indicated by the first control instruction.
[0136] The first switching module 330 receives a second control instruction for the cursor through the joystick of the handle, controls the cursor to switch from the first movement mode to the second movement mode on the target interface, and controls the movement distance of the cursor on the target interface according to the second control instruction; wherein, the second movement mode includes: controlling the cursor on the target interface along the direction indicated by the second control instruction to determine the movement distance of the cursor according to the movement sensitivity and the duration indicated by the second control instruction.
[0137] The second switching module 340 receives a third control instruction for the cursor through the button of the handle, and controls the cursor to switch from the second movement mode to the first movement mode on the target interface.
[0138] In one possible implementation of the present application, when the cursor control module 320 responds to a preset input instruction, it prohibits responding to a target input instruction. Here, the first switching module 330 and the second switching module 340 also perform corresponding processing on the preset input instruction and the target input instruction. Here, the preset input instruction is one of the first control instruction and the second control instruction, and the target input instruction is the other of the first control instruction and the second control instruction.
[0139] In a possible implementation manner of the present application, the above module may receive a target input instruction and prohibit responding to the target input instruction.
[0140] In one possible implementation of the present application, the second control instruction includes a first switching sub-instruction and a first manipulation sub-instruction, wherein the first switching sub-instruction is used to control the cursor to switch from a first movement mode to a second movement mode on the target interface, and the first manipulation sub-instruction is used to control the cursor to move in the second movement mode on the target interface.
[0141] In one possible implementation of the present application, the third control instruction includes a second switching sub-instruction and a second manipulation sub-instruction, wherein the second switching sub-instruction is used to control the cursor to switch from the second movement mode to the first movement mode on the target interface, and the second manipulation sub-instruction is used to control the cursor to move in the first movement mode on the target interface.
[0142] In a possible implementation manner of the present application, the target interface is an interface displayed on a terminal device for displaying multiple controls in a static form.
[0143] In a possible implementation manner of the present application, the target interface includes a game configuration screen in a game provided by the terminal device.
[0144] In one possible implementation of the present application, the display control module 310 displays a game scene screen corresponding to a virtual character located in the game scene in a graphical user interface provided by a terminal device; in response to manipulation of the virtual character, controls the virtual character to perform actions corresponding to the manipulation in the virtual scene; and in response to a preset trigger event, controls the screen displayed in the graphical user interface to switch from the game scene screen to the target interface.
[0145] In one possible implementation of the present application, the target interface includes multiple controls, and the cursor control module 320 can determine the initial control module under the target interface in the following manner: based on the display properties of the multiple controls on the target interface, determine the initial control module under the target interface from the buttons and joysticks.
[0146] In one possible implementation of the present application, the cursor control module 320 can determine the initial control module under the target interface in the following manner: based on the display attributes, determine whether multiple controls meet the preset display conditions, and the preset display conditions are used to characterize the display complexity of multiple controls on the target interface; if the preset display conditions are met, select the joystick as the initial control module under the target interface; if the preset display conditions are not met, select the button as the initial control module under the target interface.
[0147] In one possible implementation of the present application, the display attributes include the display layout and / or display quantity of multiple controls on the target interface, wherein the preset display conditions include at least one of the following items: the number of controls displayed in any preset display area is not less than a first set value, and the target interface is divided into multiple preset display areas; the total number of multiple controls displayed on the target interface is not less than a second set value.
[0148] The device for controlling the cursor through a handle of the present application can support two modes: button navigation and joystick-based free cursor, which can simplify the operation difficulty of handle players facing complex UI interfaces. The two modes can be seamlessly switched at any time, allowing players to have more freedom of operation.
[0149] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. Figure 5 As shown, the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .
[0150] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the steps of the method for controlling a cursor by a handle in any of the above embodiments can be performed, which are specifically as follows:
[0151] The target interface is displayed through the terminal device; a first control instruction for the cursor is received through the button of the handle, and the cursor is controlled to move in a first movement mode on the target interface, wherein the first movement mode includes: controlling the cursor to move from the control currently indicated by the cursor to the next control along the direction indicated by the first control instruction on the target interface; a second control instruction for the cursor is received through the joystick of the handle, and the cursor is controlled to switch from the first movement mode to the second movement mode on the target interface, and the movement distance of the cursor on the target interface is controlled according to the second control instruction; wherein the second movement mode includes: controlling the cursor to determine the movement distance of the cursor according to the movement sensitivity and the duration indicated by the second control instruction on the target interface; a third control instruction for the cursor is received through the button of the handle, and the cursor is controlled to switch from the second movement mode to the first movement mode on the target interface.
[0152] In one possible implementation of the present application, the processor 410 may also perform the following processing: when responding to a preset input instruction, prohibiting responding to a target input instruction, where the preset input instruction is one of the first control instruction and the second control instruction, and the target input instruction is the other of the first control instruction and the second control instruction.
[0153] In a possible implementation of the present application, the processor 410 may further perform the following processing: receiving a target input instruction, and prohibiting responding to the target input instruction.
[0154] In one possible implementation of the present application, the second control instruction includes a first switching sub-instruction and a first manipulation sub-instruction, wherein the first switching sub-instruction is used to control the cursor to switch from a first movement mode to a second movement mode on the target interface, and the first manipulation sub-instruction is used to control the cursor to move in the second movement mode on the target interface.
[0155] In one possible implementation of the present application, the third control instruction includes a second switching sub-instruction and a second manipulation sub-instruction, wherein the second switching sub-instruction is used to control the cursor to switch from the second movement mode to the first movement mode on the target interface, and the second manipulation sub-instruction is used to control the cursor to move in the first movement mode on the target interface.
[0156] In a possible implementation manner of the present application, the target interface is an interface displayed on a terminal device for displaying multiple controls in a static form.
[0157] In a possible implementation manner of the present application, the target interface includes a game configuration screen in a game provided by the terminal device.
[0158] In one possible implementation of the present application, the processor 410 may also perform the following processing: displaying a game scene screen corresponding to a virtual character located in the game scene in a graphical user interface provided by the terminal device; in response to manipulation of the virtual character, controlling the virtual character to perform actions corresponding to the manipulation in the virtual scene; in response to a preset trigger event, controlling the screen displayed in the graphical user interface to switch from the game scene screen to the target interface.
[0159] In one possible implementation of the present application, the target interface includes multiple controls, and the processor 410 can also perform the following processing to determine the initial control module under the target interface in the following manner: based on the display properties of multiple controls on the target interface, determine the initial control module under the target interface from the buttons and joysticks.
[0160] In a possible implementation of the present application, the processor 410 may also perform the following processing to determine the initial control module under the target interface in the following manner: based on the display attributes, determine whether multiple controls meet the preset display conditions, and the preset display conditions are used to characterize the display complexity of multiple controls on the target interface; if the preset display conditions are met, select the joystick as the initial control module under the target interface; if the preset display conditions are not met, select the button as the initial control module under the target interface.
[0161] In one possible implementation of the present application, the display attributes include the display layout and / or display quantity of multiple controls on the target interface, wherein the preset display conditions include at least one of the following items: the number of controls displayed in any preset display area is not less than a first set value, and the target interface is divided into multiple preset display areas; the total number of multiple controls displayed on the target interface is not less than a second set value.
[0162] The electronic device of the present application can support two modes: button navigation and joystick-based free cursor, which can simplify the operation difficulty of controller players facing complex UI interfaces. The two modes can be seamlessly switched at any time, allowing players to have more freedom of operation.
[0163] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for controlling a cursor by a handle in any of the above embodiments are executed, specifically as follows:
[0164] The target interface is displayed through the terminal device; a first control instruction for the cursor is received through the button of the handle, and the cursor is controlled to move in a first movement mode on the target interface, wherein the first movement mode includes: controlling the cursor to move from the control currently indicated by the cursor to the next control along the direction indicated by the first control instruction on the target interface; a second control instruction for the cursor is received through the joystick of the handle, and the cursor is controlled to switch from the first movement mode to the second movement mode on the target interface, and the movement distance of the cursor on the target interface is controlled according to the second control instruction; wherein the second movement mode includes: controlling the cursor to determine the movement distance of the cursor according to the movement sensitivity and the duration indicated by the second control instruction on the target interface; a third control instruction for the cursor is received through the button of the handle, and the cursor is controlled to switch from the second movement mode to the first movement mode on the target interface.
[0165] In one possible implementation of the present application, the processor may also perform the following processing: when responding to a preset input instruction, prohibiting responding to a target input instruction, where the preset input instruction is one of the first control instruction and the second control instruction, and the target input instruction is the other of the first control instruction and the second control instruction.
[0166] In a possible implementation manner of the present application, the processor may further perform the following processing: receiving a target input instruction, and prohibiting responding to the target input instruction.
[0167] In one possible implementation of the present application, the second control instruction includes a first switching sub-instruction and a first manipulation sub-instruction, wherein the first switching sub-instruction is used to control the cursor to switch from a first movement mode to a second movement mode on the target interface, and the first manipulation sub-instruction is used to control the cursor to move in the second movement mode on the target interface.
[0168] In one possible implementation of the present application, the third control instruction includes a second switching sub-instruction and a second manipulation sub-instruction, wherein the second switching sub-instruction is used to control the cursor to switch from the second movement mode to the first movement mode on the target interface, and the second manipulation sub-instruction is used to control the cursor to move in the first movement mode on the target interface.
[0169] In a possible implementation manner of the present application, the target interface is an interface displayed on a terminal device for displaying multiple controls in a static form.
[0170] In a possible implementation manner of the present application, the target interface includes a game configuration screen in a game provided by the terminal device.
[0171] In one possible implementation of the present application, the processor may also perform the following processing: displaying a game scene screen corresponding to a virtual character located in the game scene in a graphical user interface provided by a terminal device; in response to manipulation of the virtual character, controlling the virtual character to perform actions corresponding to the manipulation in the virtual scene; in response to a preset trigger event, controlling the screen displayed in the graphical user interface to switch from the game scene screen to the target interface.
[0172] In one possible implementation of the present application, the target interface includes multiple controls, and the processor 410 can also perform the following processing to determine the initial control module under the target interface in the following manner: based on the display properties of multiple controls on the target interface, determine the initial control module under the target interface from the buttons and joysticks.
[0173] In one possible implementation of the present application, the processor may also perform the following processing to determine the initial control module under the target interface in the following manner: based on the display attributes, determine whether multiple controls meet the preset display conditions, and the preset display conditions are used to characterize the display complexity of multiple controls on the target interface; if the preset display conditions are met, select the joystick as the initial control module under the target interface; if the preset display conditions are not met, select the button as the initial control module under the target interface.
[0174] In one possible implementation of the present application, the display attributes include the display layout and / or display quantity of multiple controls on the target interface, wherein the preset display conditions include at least one of the following items: the number of controls displayed in any preset display area is not less than a first set value, and the target interface is divided into multiple preset display areas; the total number of multiple controls displayed on the target interface is not less than a second set value.
[0175] The computer-readable storage medium of the present application can support both button navigation and joystick-based free cursor modes, which can simplify the operation difficulty of controller players facing complex UI interfaces. The two modes can be seamlessly switched at any time, allowing players to have more freedom of operation.
[0176] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0177] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0178] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0179] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0180] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in 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 method for controlling a cursor by a handle, characterized in that: The handle includes buttons and a joystick, and the method includes: Displaying a target interface through a terminal device, wherein the target interface includes an interface displayed on the terminal device for displaying a plurality of controls in a static form; Receiving a first control instruction for a cursor through a button of the handle, and controlling the cursor to move in a first movement manner on the target interface, wherein the first movement manner includes: controlling the cursor to move from a control currently indicated by the cursor to a next control on the target interface along a direction indicated by the first control instruction; receiving a second control instruction for the cursor via the joystick of the handle, controlling the cursor to switch from a first movement mode to a second movement mode on the target interface, and controlling a movement distance of the cursor on the target interface according to the second control instruction; wherein the second movement mode includes controlling the cursor to move on the target interface in a direction indicated by the second control instruction, and determining the movement distance of the cursor according to a movement sensitivity and a duration indicated by the second control instruction; receiving a third control instruction for the cursor through the button of the handle, and controlling the cursor to switch from the second movement mode to the first movement mode on the target interface; The second control instruction includes a first switching sub-instruction and a first manipulation sub-instruction, wherein the first switching sub-instruction is used to control the cursor to switch from a first movement mode to a second movement mode on the target interface, and the first manipulation sub-instruction is used to control the cursor to move in the second movement mode on the target interface; The third control instruction includes a second switching sub-instruction and a second manipulation sub-instruction, wherein the second switching sub-instruction is used to control the cursor to switch from the second movement mode to the first movement mode on the target interface, and the second manipulation sub-instruction is used to control the cursor to move in the first movement mode on the target interface.
2. The method according to claim 1, characterized in that Also includes: When responding to a preset input instruction, responding to a target input instruction is prohibited, wherein the preset input instruction is one of a first control instruction and a second control instruction, and the target input instruction is the other of the first control instruction and the second control instruction.
3. The method according to claim 2, characterized in that The steps for disabling response to target input commands include: The target input instruction is received, and a response to the target input instruction is prohibited.
4. The method according to claim 1, wherein The target interface includes a game configuration screen in a game provided by the terminal device.
5. The method according to claim 4, characterized in that The steps of displaying the target interface through the terminal device include: Displaying a game scene screen corresponding to a virtual character in the game scene in a graphical user interface provided by the terminal device; In response to a manipulation of the virtual character, controlling the virtual character to perform an action corresponding to the manipulation in the game scene; In response to a preset trigger event, the screen displayed in the graphical user interface is controlled to switch from the game scene screen to the target interface.
6. The method according to claim 1, wherein The target interface includes multiple controls. The initial control module under the target interface is determined in the following manner: According to the display properties of the multiple controls on the target interface, an initial control module under the target interface is determined from the buttons and the joystick.
7. The method according to claim 6, characterized in that The initial control module under the target interface is determined by: Determining, based on the display attributes, whether the multiple controls meet preset display conditions, where the preset display conditions are used to characterize the display complexity of the multiple controls on the target interface; If the preset display condition is met, the joystick is selected as the initial control module in the target interface; If the preset display condition is not met, the button is selected as the initial control module in the target interface.
8. The method according to claim 7, characterized in that The display attributes include the display layout and / or display quantity of the multiple controls on the target interface. The preset display condition includes at least one of the following items: The number of controls displayed in any preset display area is not less than a first set value, and the target interface is divided into multiple preset display areas; The total number of the multiple controls displayed on the target interface is not less than a second set value.
9. A device for controlling a cursor by a handle, characterized in that: The handle includes buttons and a rocker, and the device includes: A display control module, configured to display a target interface through a terminal device, wherein the target interface includes an interface displayed on the terminal device for displaying a plurality of controls in a static form; a cursor control module, receiving a first control instruction for a cursor via a button on the handle, and controlling the cursor to move in a first movement manner on the target interface, wherein the first movement manner includes controlling the cursor to move from a control currently indicated by the cursor to a next control on the target interface along a direction indicated by the first control instruction; a first switching module, receiving a second control instruction for a cursor via the joystick of the handle, controlling the cursor to switch from a first movement mode to a second movement mode on the target interface, and controlling a movement distance of the cursor on the target interface according to the second control instruction; wherein the second movement mode includes controlling the cursor to move on the target interface in a direction indicated by the second control instruction, and determining the movement distance of the cursor according to a movement sensitivity and a duration indicated by the second control instruction; a second switching module, receiving a third control instruction for the cursor via the button of the handle, and controlling the cursor to switch from the second movement mode to the first movement mode on the target interface; The second control instruction includes a first switching sub-instruction and a first manipulation sub-instruction, wherein the first switching sub-instruction is used to control the cursor to switch from a first movement mode to a second movement mode on the target interface, and the first manipulation sub-instruction is used to control the cursor to move in the second movement mode on the target interface; The third control instruction includes a second switching sub-instruction and a second manipulation sub-instruction, wherein the second switching sub-instruction is used to control the cursor to switch from the second movement mode to the first movement mode on the target interface, and the second manipulation sub-instruction is used to control the cursor to move in the first movement mode on the target interface.
10. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of any method described in claims 1 to 8.
11. 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 method according to any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Control method, device and equipment for virtual skills in virtual scene and storage medium
CN113440852A