A PC-side cloud game control method, device, equipment and medium
Patent Information
- Application Number
- CN202310673311.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-07
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2043-06-07
AI Technical Summary
[0051]As can be seen, this application acquires operation commands sent by the PC-side input device, and then determines operation touch commands based on the current function mode conversion rules and the operation commands; the operation touch commands are commands that the remote device can directly recognize; the operation touch commands are sent to the remote device so that the remote device can execute the operation corresponding to the operation touch commands. Therefore, this application converts operation commands into touch commands through the PC-side cloud gaming touch module and according to the current function mode conversion rules, so that after the touch commands are sent to the remote device, the remote device can directly complete the corresponding operation based on the touch commands. This reasonable conversion rule enables cross-platform cloud gaming control from the PC to the remote device.
Smart Images

Figure CN116688486B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a PC-based cloud gaming control method, apparatus, device, and medium. Background Technology
[0002] Currently, with the development of mobile phone technology and the increasingly fast pace of social life, mobile games account for a growing share of the gaming market. This trend has naturally impacted mobile devices; for example, the stability of games like Genshin Impact has even replaced some professional software as an essential part of mobile phone performance testing. On the one hand, to continuously improve game quality, and on the other hand, to allow more people to experience and play games, many manufacturers have considered cloud gaming.
[0003] The essence of cloud gaming is processing data and performing calculations remotely, while the local device simply displays the real-time visuals. This solves the problem of high-cost game platforms. Besides playing on mobile devices, seamlessly continuing games on large screens like PCs (Personal Computers) web browsers and TVs has become a demand. At this point, how to control the game in PC web browsers, gamepads, etc., becomes a challenge. Unlike mobile devices with the same operating logic, which can be easily mapped, how to provide users with a better experience with cloud gaming across different control logics becomes a key issue.
[0004] In conclusion, how to achieve cross-platform cloud gaming control is a problem that urgently needs to be solved. Summary of the Invention
[0005] In view of the above, the purpose of this invention is to provide a PC-based cloud gaming control method, apparatus, device, and medium, capable of cross-platform cloud gaming control, the specific solution of which is as follows:
[0006] In a first aspect, this application discloses a PC-based cloud gaming control method, applied to a PC-based cloud gaming touch module, comprising:
[0007] The system acquires operation commands sent by the PC input device, and then determines operation touch commands based on the current function mode conversion rules and the operation commands; the operation touch commands are commands that the remote device can directly recognize.
[0008] The operation touch command is sent to the remote device so that the remote device can execute the operation corresponding to the operation touch command.
[0009] Optionally, before obtaining the operation command sent by the PC input device, the method further includes:
[0010] If a target function mode change instruction is received, the target function mode is determined as the current function mode, and a function preparation touch instruction corresponding to the target function mode is determined; the function preparation touch instruction is sent to the remote device so that the remote device can enter the target function mode based on the function preparation touch instruction.
[0011] Optionally, if a target function mode change instruction is obtained, the target function mode is determined as the current function mode, and the function preparation touch instruction corresponding to the target function mode is determined, including:
[0012] If a vision function mode change instruction is received, the vision function mode is determined as the current function mode, and a press instruction simulating pressing a preset coordinate in the remote device is generated.
[0013] Accordingly, the operation touch commands include field-of-view movement touch commands.
[0014] Optionally, the step of acquiring the operation command sent by the PC input device, and then determining the operation touch command based on the current function mode conversion rules and the operation command, includes:
[0015] Get the first mouse movement command sent by the PC input device;
[0016] Based on the switching rules of the field of view function mode and the first mouse movement command, the field of view coordinate movement trajectory corresponding to the remote device is determined, and then the field of view movement touch command is determined based on the field of view coordinate movement trajectory; the field of view movement touch command is used to control the change of field of view in the remote device.
[0017] Optionally, the step of determining the field-view coordinate movement trajectory corresponding to the remote device based on the field-view function mode conversion rules and the first mouse movement command, and then determining the field-view movement touch command based on the field-view coordinate movement trajectory, includes:
[0018] The first offset value between the first current mouse coordinate and the first previous mouse coordinate is determined in real time based on the listening function and the first mouse movement command.
[0019] According to the conversion rules of the field of view function mode, the current field of view coordinates are determined based on the first offset value and the previous field of view coordinates, and the field of view coordinate movement trajectory corresponding to the remote device is determined based on the current field of view coordinates and the previous field of view coordinates.
[0020] The field of view movement touch command is determined based on the field of view coordinate movement trajectory; the field of view movement touch command is used to control the remote device to move the field of view coordinate from the previous field of view coordinate to the current field of view coordinate; wherein, if the first mouse movement command is the first mouse movement command after the field of view function mode change command, then the previous field of view coordinate is the preset coordinate.
[0021] Optionally, the step of acquiring the operation command sent by the PC input device, and then determining the operation touch command based on the current function mode conversion rules and the operation command, includes:
[0022] The system acquires several operation commands sent by the PC input device, and then determines a touch command based on the current function mode conversion rules and the several operation commands.
[0023] Optionally, the step of acquiring several operation commands sent by the PC input device, and then determining a touch command based on the current function mode conversion rules and the several operation commands, includes:
[0024] The system acquires several directional commands sent by the PC input device, and then determines a directional touch command based on the current function mode conversion rules and the aforementioned directional commands.
[0025] Optionally, determining a directional touch command based on the current function mode switching rules and several directional commands includes:
[0026] Determine whether instruction combinations are possible;
[0027] If instruction combination cannot be performed, the latest directional instruction among the aforementioned directional instructions will be determined as a directional touch instruction.
[0028] If instruction combination is possible, then determine whether several directional instructions can be combined to obtain multiple combined instructions based on the instruction conflict avoidance principle; the instruction conflict avoidance principle is that two directional instructions in opposite directions cannot be combined with each other;
[0029] If multiple combined instructions cannot be obtained, then a current combined instruction is directly combined and determined as a direction touch instruction;
[0030] If multiple combined instructions are available, they are combined to obtain the multiple combined instructions. Based on the latest instruction principle, a latest combined instruction is selected from the multiple combined instructions, and then the latest combined instruction is determined as a directional touch instruction. The latest instruction principle is that each directional instruction in the latest combined instruction is the latest directional instruction in the associated direction corresponding to that directional instruction. The associated direction is the target direction corresponding to the directional instruction and the direction opposite to the target direction.
[0031] Optionally, if a target function mode change instruction is obtained, the target function mode is determined as the current function mode, and the function preparation touch instruction corresponding to the target function mode is determined, including:
[0032] If a character movement function mode change instruction is received, the character movement function mode is determined as the current function mode, and a pressing instruction simulating the specified coordinates of the game wheel in the remote device is generated.
[0033] Accordingly, the operation touch commands include character movement touch commands.
[0034] Optionally, the step of acquiring the operation command sent by the PC input device, and then determining the operation touch command based on the current function mode conversion rules and the operation command, includes:
[0035] Obtain the second mouse movement command sent by the PC input device;
[0036] Based on the conversion rules of the character movement function mode and the second mouse movement command, the character coordinate movement trajectory corresponding to the remote device is determined, and then the character movement touch command is determined based on the character coordinate movement trajectory; the character movement touch command is used to control the change of character coordinates in the remote device.
[0037] Optionally, the step of determining the character coordinate movement trajectory corresponding to the remote device based on the character movement function mode conversion rule and the second mouse movement command, and then determining the character movement touch command based on the character coordinate movement trajectory, includes:
[0038] The second current mouse coordinates are determined in real time based on the conversion rules of the character movement function mode and the second mouse movement command;
[0039] Calculate a second offset value between the second current mouse coordinates and the second previous mouse coordinates, and determine the character coordinate movement trajectory corresponding to the remote device based on the second offset value and the specified coordinates of the game wheel;
[0040] The character movement touch command is determined based on the character coordinate movement trajectory; the character movement touch command is used to control the remote device to move the character coordinates from the character coordinate position corresponding to the previous mouse coordinate to the character coordinate position corresponding to the second current mouse coordinate; wherein, if the first mouse movement command is the first mouse movement command after the character function mode change command, then the character coordinate position corresponding to the previous mouse coordinate is the specified coordinate of the game wheel.
[0041] Optionally, the PC-based cloud gaming control method further includes:
[0042] Select an identifier from the previously used identifier pool to prepare touch instructions for each function and assign an identifier to the operation touch instructions;
[0043] Alternatively, if the previously used identifier is not present in the preset identifier pool, an identifier is set for each function preparation touch instruction and the operation touch instruction by incrementing the identifier; wherein, if the function preparation touch instruction and the operation touch instruction are associated instructions and correspond to the same function, then the function preparation touch instruction and the operation touch instruction correspond to the same identifier.
[0044] Secondly, this application discloses a PC-based cloud gaming control device, applied to a PC-based cloud gaming touch module, comprising:
[0045] The instruction determination module is used to acquire the operation instruction sent by the PC input device, and then determine the operation touch instruction based on the current function mode conversion rules and the operation instruction; the operation touch instruction is an instruction that the remote device can directly recognize.
[0046] The instruction execution module is used to send the operation touch instruction to the remote device so that the remote device can execute the operation corresponding to the operation touch instruction.
[0047] Thirdly, this application discloses an electronic device, including:
[0048] Memory, used to store computer programs;
[0049] A processor is used to execute the computer program to implement the aforementioned disclosed PC-based cloud gaming control method.
[0050] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed PC-based cloud gaming control method.
[0051] As can be seen, this application acquires operation commands sent by the PC-side input device, and then determines operation touch commands based on the current function mode conversion rules and the operation commands; the operation touch commands are commands that the remote device can directly recognize; the operation touch commands are sent to the remote device so that the remote device can execute the operation corresponding to the operation touch commands. Therefore, this application converts operation commands into touch commands through the PC-side cloud gaming touch module and according to the current function mode conversion rules, so that after the touch commands are sent to the remote device, the remote device can directly complete the corresponding operation based on the touch commands. This reasonable conversion rule enables cross-platform cloud gaming control from the PC to the remote device. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0053] Figure 1 This application discloses a flowchart of a PC-based cloud gaming control method.
[0054] Figure 2 This application discloses a flowchart of a specific PC-based cloud gaming control method.
[0055] Figure 3 This is a schematic diagram of a field-of-view movement control process disclosed in this application;
[0056] Figure 4 This application discloses a flowchart of a specific PC-based cloud gaming control method.
[0057] Figure 5 This is a schematic diagram of a directional touch command determination process disclosed in this application;
[0058] Figure 6 This application discloses a flowchart of a specific PC-based cloud gaming control method.
[0059] Figure 7 This is a schematic diagram of a character movement control process disclosed in this application;
[0060] Figure 8 This is a schematic diagram of the structure of a PC-based cloud gaming control device disclosed in this application;
[0061] Figure 9 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0062] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0063] The essence of cloud gaming is processing data and performing calculations remotely, while the local device simply displays the real-time visuals. This solves the problem of high-cost game platforms. Besides playing on mobile devices, seamlessly continuing games on large screens like PC web browsers and TVs has become a demand. However, how to control the game in PC web browsers or with a gamepad becomes a challenge. Unlike mobile devices with similar control logic, which can be easily mapped, providing a better user experience for users with different control logics in cloud gaming presents a significant challenge.
[0064] Therefore, this application proposes a PC-based cloud gaming control scheme that enables cross-platform cloud gaming control.
[0065] This application discloses a PC-based cloud gaming control method, applied to a PC-based cloud gaming touch module. (See also...) Figure 1 As shown, the method includes:
[0066] Step S11: Obtain the operation command sent by the PC input device, and then determine the operation touch command based on the current function mode conversion rules and the operation command; the operation touch command is a command that the remote device can directly recognize.
[0067] In this embodiment, the PC input device includes a mouse and keyboard, and may also include a gamepad.
[0068] In this embodiment, before obtaining the operation command sent by the PC input device, the method further includes: if a target function mode change command is obtained, then the target function mode is determined as the current function mode, and a function preparation touch command corresponding to the target function mode is determined; the function preparation touch command is used to send to the remote device so that the remote device can enter the target function mode based on the function preparation touch command. It should be noted that if the current function mode is the target function mode, then no function mode change is needed. It should also be noted that the target function mode change command can be sent by pressing and holding a specific key on the PC, or by pressing and releasing a specific key on the PC. Therefore, exiting the target function mode can be done by releasing the pressed specific key on the PC, or by pressing and releasing the specific key again on the PC.
[0069] It should be noted that the operation instruction can be the first operation instruction obtained after obtaining the target function mode change instruction, or it can be a subsequent operation instruction when the target function mode has not been exited.
[0070] In this embodiment, the operation touch command is a command that the remote device can directly recognize. However, after the operation touch command enters the remote device, the remote device still needs to perform corresponding operations on the touch command before it can be directly recognized. However, the recognition of the operation touch command is simpler and more direct than the recognition of the operation command. It does not require converting the PC-side command into a touch command. For example, the format of the transmitted touch command is directly the same as the command generated by the user directly touching the screen on the remote device.
[0071] Step S12: Send the operation touch command to the remote device so that the remote device can execute the operation corresponding to the operation touch command.
[0072] In this embodiment, the target function mode change instruction is obtained before the operation instruction sent by the PC input device is obtained.
[0073] In this embodiment, if the operation instruction is the first operation instruction obtained after obtaining the target function mode change instruction, the function preparation touch instruction can be sent to the remote device after generating the function preparation touch instruction, or the function preparation touch instruction and the operation touch instruction can be sent to the remote device sequentially after the operation touch instruction corresponding to the first operation instruction is generated.
[0074] In this embodiment, if the operation instruction is a subsequent operation instruction before exiting the current target function mode, the operation touch instruction can be sent directly to the remote device separately.
[0075] In this embodiment, Android natively assigns each finger a unique ID (Identity Document). Based on this ID, it records the finger's subsequent movement trajectory and triggers corresponding commands. When not all fingers have left the screen, the IDs increment systematically. When some fingers leave and others join, previously used IDs are reused. This relationship is not present on web pages. Therefore, a corresponding setting is needed: a preset ID pool is established. This pool stores used IDs. If an ID is in the pool, a new "finger" is preferentially retrieved from this pool. If the pool is empty, an appropriate ID is retrieved through incrementing. Furthermore, the state is reset after all user operations cease, thus mapping the Android device's touch logic and laying the foundation for all the aforementioned adaptations.
[0076] In this embodiment, an identifier is selected from the previously used identifiers in the preset identifier pool to assign an identifier to each function preparation touch instruction and the operation touch instruction; or, if the previously used identifier does not exist in the preset identifier pool, an identifier is set for each function preparation touch instruction and the operation touch instruction by incrementing the identifier; wherein, if the function preparation touch instruction and the operation touch instruction are associated instructions and correspond to the same function, then the function preparation touch instruction and the operation touch instruction correspond to the same identifier. It should be noted that if the function preparation touch instruction and the operation touch instruction are associated instructions and correspond to the same function, then the function preparation touch instruction and the operation touch instruction can simulate the instruction corresponding to a finger during the time from when a finger touches the screen to when it leaves the screen, and therefore can correspond to the same ID.
[0077] As can be seen, this application acquires operation commands sent by the PC-side input device, and then determines operation touch commands based on the current function mode conversion rules and the operation commands; the operation touch commands are commands that the remote device can directly recognize; the operation touch commands are sent to the remote device so that the remote device can execute the operation corresponding to the operation touch commands. Therefore, this application uses a PC-side cloud gaming touch module and converts operation commands into touch commands according to the current function mode conversion rules, so that after the touch commands are sent to the remote device, the remote device can directly complete the corresponding operation based on the touch commands, thereby realizing cross-platform cloud gaming control from the PC to the remote device. Furthermore, the function mode can be changed through a target function mode change command to achieve more functions.
[0078] This application discloses a specific PC-based cloud gaming control method, applied to a PC-based cloud gaming touch module. Compared to the previous embodiment, this embodiment further explains and optimizes the technical solution. See also... Figure 2 As shown, it specifically includes:
[0079] Step S21: Obtain the first mouse movement command sent by the PC input device; determine the field of view coordinate movement trajectory corresponding to the remote device based on the field of view function mode conversion rules and the first mouse movement command, and then determine the field of view movement touch command based on the field of view coordinate movement trajectory; the field of view movement touch command is used to control the change of field of view in the remote device.
[0080] For a large portion of large-scale role-playing games, camera angle is a crucial feature. It simulates the action of tapping the screen and moving / rotating the character's view on a mobile phone (some games use a gyroscope, allowing you to see things from different angles by moving the phone). Achieving a similar effect on a PC requires a dedicated camera angle control system.
[0081] Implementing a view-oriented function on a PC obviously cannot be done by simulating a gyroscope. Therefore, the optimal solution is to simulate a click followed by a continuous movement. This is where the requestLock interface in HTML (Hypertext Markup Language) comes in. It can hide the mouse pointer, thus achieving a similar effect more effectively. This interface only hides the pointer; simulating a click while hiding it is the first step in implementing this functionality—realizing the click action.
[0082] On a PC, the mouse is a more flexible control device, making mouse position tracking the best option, as seen in PC games where players move the mouse to rotate the view. Therefore, when calling the API, the current mouse position needs to be recorded. After a click is implemented, the coordinates of the current view are calculated using the mouse movement offset and then sent to the receiving end, thus achieving the view functionality.
[0083] In this embodiment, before obtaining the first mouse movement command sent by the PC input device, the method further includes: if a field of view function mode change command is obtained, the field of view function mode is determined as the current function mode, and a press command simulating pressing a preset coordinate in the remote device is generated; correspondingly, the operation touch command includes a field of view movement touch command.
[0084] It should be noted that after receiving the vision function mode change instruction, the PC cloud gaming touch module will also determine the initial first mouse click coordinates based on the vision function mode change instruction, so as to start the listening function from the first mouse click coordinates to listen to mouse movement and obtain mouse offset values.
[0085] It should be noted that the preset coordinates are pre-set coordinate positions. If the preset click coordinates of the remote device when calling the interface have function keys or skill keys, there may be conflicts. Therefore, different preset coordinates need to be set according to different games.
[0086] It should be noted that the command to change the view function mode can be entered by pressing the view function key and exited by releasing it, or it can be entered by pressing the view function key once and then pressing it again to exit.
[0087] It should be noted that the first mouse movement command can be the first mouse movement command obtained after obtaining the view function mode change command, or it can be a subsequent first mouse movement command before exiting the current view function mode.
[0088] In this embodiment, the step of determining the field of view coordinate movement trajectory corresponding to the remote device based on the field of view function mode conversion rule and the first mouse movement command, and then determining the field of view movement touch command based on the field of view coordinate movement trajectory, specifically includes: determining a first offset value between the first current mouse coordinate and the first previous mouse coordinate in real time based on a listening function and the first mouse movement command; determining the current field of view coordinate based on the field of view function mode conversion rule, the first offset value, and the previous field of view coordinate, and determining the field of view coordinate movement trajectory corresponding to the remote device based on the current field of view coordinate and the previous field of view coordinate; determining the field of view movement touch command based on the field of view coordinate movement trajectory; the field of view movement touch command is used to control the remote device to move the field of view coordinate from the previous field of view coordinate to the current field of view coordinate; wherein, if the first mouse movement command is the first mouse movement command after the field of view function mode change command, then the previous field of view coordinate is the preset coordinate.
[0089] It should be noted that the step of determining the current field of view coordinates based on the conversion rules of the field of view function mode and based on the first offset value and the previous field of view coordinates includes: converting the first offset value into a field of view coordinate offset value according to the conversion rules of the field of view function mode, and determining the current field of view coordinates based on the field of view coordinate offset value and the previous field of view coordinates.
[0090] It should be noted that if the first mouse movement command is not the first mouse movement command after the view function mode change command (the first first mouse movement command), then the previous view coordinates are the view coordinates after the last first mouse movement command.
[0091] It should be noted that the listening function is a function that is started when the initial first mouse click coordinates are determined based on the vision function mode change instruction, and is used to listen for mouse movement in order to subsequently determine the offset value.
[0092] Step S22: Send the field-of-view movement touch command to the remote device so that the remote device can execute the operation corresponding to the field-of-view movement touch command.
[0093] In this embodiment, the field of view function mode change instruction has been obtained before the first mouse movement instruction sent by the PC input device is obtained.
[0094] In this embodiment, if the first mouse movement command is the first first mouse movement command obtained after obtaining the field of view function mode change command, the press command can be sent to the remote device immediately after the press command is generated, or the press command and the field of view movement touch command can be sent to the remote device sequentially after the field of view movement touch command corresponding to the first first mouse movement command is generated.
[0095] In this embodiment, if the first mouse movement command is a subsequent first mouse movement command before exiting the current field of view function mode, the field of view movement touch command can be sent directly to the remote device.
[0096] See Figure 3 The diagram illustrates a view movement control process. First, after pressing the view function key, the PC-side cloud gaming touch module receives a view function mode change command and enters the view function mode, generating a first movement preparation touch command (this first movement preparation touch command can be sent to a remote device, or not). Then, it receives a first mouse movement command and determines whether it's the first time or not, determining the view movement touch command based on the first mouse movement command. If it's the first time the first mouse movement command is received and the first movement preparation touch command hasn't been sent, then both the view movement touch command and the first movement preparation touch command are sent to the remote device. If it's the first time the first mouse movement command is received and the first movement preparation touch command has been sent, then only the view movement touch command is sent to the remote device. If it's not the first time the first mouse movement command is received, then only the view movement touch command is sent to the remote device.
[0097] In one specific embodiment, after pressing a function key (which can be a keyboard key or a mouse key), the PC-side cloud gaming touch module obtains a view function mode change instruction, enters the view function mode, determines the first mouse click coordinates, and determines a press instruction simulating a preset coordinate in the remote device, for example, the preset coordinates (previous view coordinates) are {x:0.5, y:0.5}. Then, when the mouse moves (obtaining the first mouse movement instruction), the listening function can return the first offset value of the current mouse coordinates relative to the coordinates at the previous moment (first mouse click coordinates), and convert this offset value into a view coordinate offset value, such as {offset x:0.1, offset y:0.5}. Given {x: -0.2}, we can calculate that the visual field coordinate movement trajectory from the start time to the current time is from {x: 0.5, y: 0.5} (previous visual field coordinates) to {x: 0.6, y: 0.3} (current visual field coordinates). Based on the visual field coordinate movement trajectory, we determine the visual field movement touch command. We then sequentially send the simulated press command at the preset coordinates in the remote device and the visual field movement touch command to the remote device. This can be interpreted as the finger initially clicking and holding, then dragging to the next coordinate. It should be noted that alternatively, after determining the simulated press command at the preset coordinates in the remote device, the press command can be sent to the remote device. Then, after determining the visual field movement touch command based on the visual field coordinate movement trajectory, the visual field movement touch command can be sent separately to the remote device.
[0098] If the function key is not released at this time, the system remains in the field-of-view mode. If the mouse moves again (receiving the first mouse movement command), then {x:0.6, y:0.3} is used as the previous field-of-view coordinates. The listening function continues to return the first offset value of the current mouse coordinates relative to the previous coordinates (previous mouse coordinates). This offset value is then converted into a field-of-view coordinate offset value, such as {offset X:0.2, offset...} Given {x: -0.1}, we can calculate that the field of view coordinate movement trajectory from the previous moment to the current moment has moved from {x: 0.6, y: 0.3} (previous field of view coordinates) to {x: 0.8, y: 0.2} (current field of view coordinates). Based on this field of view coordinate movement trajectory, we determine the field of view touch movement command and send it to the remote device. This can be interpreted as the finger being dragged to the next coordinate without being released (the first mouse movement command obtained at this time is not the first mouse movement command from the first time, so the press command is not considered). Similarly, if the mouse continues to move in this field of view movement function mode, the above process continues (the field of view coordinates depend on the actual situation). When the function key is released, the current field of view function mode is exited.
[0099] As can be seen, this application acquires the first mouse movement command sent by the PC input device; determines the field of view coordinate movement trajectory corresponding to the remote device based on the field of view function mode conversion rules and the first mouse movement command; then determines the field of view movement touch command based on the field of view coordinate movement trajectory; the field of view movement touch command is used to control the change of field of view coordinates in the remote device; and sends the field of view movement touch command to the remote device so that the remote device executes the operation corresponding to the field of view movement touch command. Therefore, this application determines the field of view coordinate movement trajectory corresponding to the remote device based on the first mouse movement command and the field of view function mode conversion rules, thus completing the field of view conversion function.
[0100] This application discloses a specific PC-based cloud gaming control method, applied to a PC-based cloud gaming touch module. Compared to the previous embodiment, this embodiment further explains and optimizes the technical solution. See also... Figure 4 As shown, it specifically includes:
[0101] Step S31: Obtain several operation instructions sent by the PC input device, and then determine a touch instruction based on the current function mode conversion rules and the several operation instructions.
[0102] In this embodiment, several operation instructions can constitute a single touch instruction. Specifically, taking a directional instruction as an example, the process of acquiring several operation instructions sent by the PC input device and then determining a touch instruction based on the current function mode conversion rules and the several operation instructions includes: acquiring several directional instructions sent by the PC input device, and then determining a directional touch instruction based on the current function mode conversion rules and the several directional instructions. It should be noted that the several directional instructions are acquired simultaneously.
[0103] In this embodiment, determining a directional touch instruction based on the current functional mode conversion rule and several directional instructions includes: determining whether instruction combination is possible; if not, determining the latest directional instruction among the several directional instructions as a directional touch instruction; if possible, determining whether the several directional instructions can be combined to obtain multiple combined instructions based on the instruction conflict avoidance principle; the instruction conflict avoidance principle is that two directional instructions in opposite directions cannot be combined with each other; if not possible, directly combining to obtain a current combined instruction and determining the current combined instruction as a directional touch instruction; if possible, combining to obtain the multiple combined instructions, and selecting a latest combined instruction from the multiple combined instructions based on the latest instruction principle, and then determining the latest combined instruction as a directional touch instruction; the latest instruction principle is that each directional instruction in the latest combined instruction is the latest directional instruction in the associated direction corresponding to that directional instruction; the associated direction is the target direction corresponding to the directional instruction and the direction opposite to the target direction.
[0104] It should be noted that the determination of whether instruction combination is possible, and if not, the latest direction instruction among the plurality of direction instructions is determined as a direction touch instruction, includes: if there is only a single direction instruction, the latest single direction instruction is determined as a direction touch instruction; if there are multiple direction instructions, but the PC cloud gaming touch module does not support instruction combination, the latest direction instruction among the multiple direction instructions is determined as a direction touch instruction.
[0105] It should be noted that moving the character using directional commands can only maintain the same speed, which is the radius of the specified game disc. At this point, a function key is needed to control the speed. The function key allows users to switch speed modes, including but not limited to fast walking mode and slow walking mode. Different modes correspond to different speeds, which in turn correspond to different game disc radii. Thus, the speed can be changed by modifying the radius of the specified game disc.
[0106] It should be noted that the directional keys corresponding to the above directional commands can include up, down, left, and right, or up, down, left, right, upper right, lower right, upper left, and lower left.
[0107] Step S32: Send the operation touch command to the remote device so that the remote device can execute the operation corresponding to the operation touch command.
[0108] In this embodiment, when the plurality of operation instructions are plurality of directional instructions, the directional touch instructions are sent to the remote device so that the remote device executes the operation corresponding to the directional touch instructions.
[0109] It should be noted that when a direction-related command is first triggered on the PC side in this application, a click command is sent to the receiving end. This command is not released until the listening module detects that there are no direction-related commands at present, at which point a release command is sent. When a new direction command is subsequently detected, the information from the previous command is reused, only the coordinates corresponding to the command are modified before being sent to the receiving end. This simulates the behavior of controlling a character's movement with a single finger on a mobile device; that is, pressing and then moving, only the coordinates change, the finger itself remains stationary.
[0110] See Figure 5 The diagram illustrates a process for determining directional touch commands. If an operation command is parsed as a directional command, and if it's a single directional command, then that single directional command is used as a directional touch command. If it's not a single directional command (multiple directional commands), then it's determined whether the PC-side cloud gaming touch module supports command combination. If not, the correct directional command is selected from all directional commands as a directional touch command. If it supports it, it's determined whether multiple combined commands can be obtained. If multiple combined commands cannot be obtained, then the currently obtained combined command is directly used as a directional touch command. If multiple combined commands can be obtained, then the latest combined command is selected as a directional touch command. It should be noted that if the parsed operation command is not a directional command, it needs to be sent to other modules for processing.
[0111] In one specific embodiment, four directional commands can be generated using four directional keys (up, down, left, and right).
[0112] 1. Determine whether command combination is possible; if command combination is not possible, then determine the latest directional command among the several directional commands as a single directional touch command; the following is a specific example:
[0113] If several directional commands are obtained, and these commands are single commands (such as the right directional command), it means that command combinations cannot be performed. In this case, the current direction (right), which is the latest directional command, is directly used as the directional touch command.
[0114] The system acquires several directional commands, which can be multiple commands acquired simultaneously (e.g., up and right directional commands, where the up command is the command the user presses and holds down the directional key first, and the right command is the command the user presses down the directional key later). However, the PC-based cloud gaming touch module does not support command combination. Therefore, when up and right directional commands are acquired simultaneously, the right directional command (the one the user presses later) will be used as the directional touch command. It should be noted that when the up directional command is pressed, it will be used as the directional touch command. Similarly, if the right directional command is pressed simultaneously with the up command (i.e., the up and right directional commands are acquired simultaneously), the right directional command will be used as the directional touch command.
[0115] The PC-based cloud gaming touch module acquires several directional commands. These commands can be combined, with each command acquired simultaneously (up and down, where the up command is the user's command to press and hold the up arrow key first, and the down command is the user's command to press the down arrow key later). In this case, the up and down commands cannot be combined; the latest command (the down command) will be used as the directional touch command. It's important to note that when the up command is pressed, it will be used as the directional touch command. However, if the down command is pressed simultaneously with the up command (i.e., the up and down commands are acquired simultaneously), the down command, the latest one, will be used as the directional touch command.
[0116] 2. If instruction combination is possible, determine whether several directional instructions can be combined to obtain multiple combined instructions based on the instruction conflict avoidance principle; the instruction conflict avoidance principle is that two directional instructions in opposite directions cannot be combined with each other; if multiple combined instructions cannot be obtained, directly combine them to obtain a current combined instruction, and determine the current combined instruction as a single directional touch instruction; the following is a specific example:
[0117] If several directional commands are acquired simultaneously (e.g., up and right directional commands, where the up command is the command the user presses and holds down the directional key first, and the right command is the command the user presses down the directional key later), and the PC cloud gaming touch module supports command combination, then based on the command conflict avoidance principle, only one up-right directional command can be obtained, and this up-right directional command will be directly used as the directional touch command. It should be noted that when acquiring the up directional command, it will be used as the directional touch command. If, subsequently, the up directional command is pressed simultaneously with the right directional command (i.e., several directional commands are acquired simultaneously, up and right), the right and up commands will be combined to obtain the up-right directional command, which will then be used as the directional touch command.
[0118] 3. If multiple combined instructions are available, they are combined to obtain the multiple combined instructions. Based on the latest instruction principle, a latest combined instruction is selected from the multiple combined instructions, and then the latest combined instruction is determined as a directional touch instruction. The latest instruction principle is that each directional instruction in the latest combined instruction is the latest directional instruction in the associated direction corresponding to that directional instruction. The associated direction is the target direction corresponding to the directional instruction and the direction opposite to the target direction. Specific examples are as follows:
[0119] Several directional commands are acquired simultaneously (e.g., up, right, and down directional commands, with the user pressing the directional keys in the order up, right, and down). Since the PC-based cloud gaming touch module supports command combination, the upper-right and lower-right directional commands are obtained based on the command conflict avoidance principle. Because down is the newest directional command among the up and down commands, the lower-right directional command is used as the directional touch command. It should be noted that when an up directional command is acquired, it is used as the directional touch command. When a right directional command is acquired simultaneously with an up directional command, the upper-right directional command is used as the directional touch command. Similarly, when a down directional command is acquired simultaneously with both up and right directional commands (i.e., several directional commands are acquired simultaneously, i.e., up, right, and down directional commands), the lower-right directional command is used as the directional touch command.
[0120] Several directional commands are acquired simultaneously (e.g., up, right, down, left directional commands, with the user pressing the directional keys in the order up, right, down, left). Since the PC cloud gaming touch module supports command combination, the following directional commands are obtained based on the command conflict avoidance principle: upper right, lower right, upper left, and lower left. Because down is the updated directional command among up and down, and left is the updated directional command among left and right, the lower left directional command is used as the directional touch command. It should be noted that when the up directional command is acquired, it is used as the directional touch command. When the right directional command is acquired simultaneously with the up directional command, the upper right directional command is used. When the down directional command is acquired simultaneously with the up and right directional commands, the lower right directional command is used. And when the left directional command is acquired simultaneously with the up, right, and down directional commands, the lower left directional command is used.
[0121] As can be seen, this application acquires several operation commands sent by a PC-side input device, then determines a touch command based on the current function mode conversion rules and the several operation commands; the touch command is then sent to the remote device so that the remote device executes the operation corresponding to the touch command. Therefore, this application can convert several operation commands into a single touch command, specifically converting several directional commands into a single directional touch command.
[0122] This application discloses a specific PC-based cloud gaming control method, applied to a PC-based cloud gaming touch module. Compared to the previous embodiment, this embodiment further explains and optimizes the technical solution. See also... Figure 6 As shown, it specifically includes:
[0123] Step S41: Obtain the second mouse movement command sent by the PC input device; determine the character coordinate movement trajectory corresponding to the remote device based on the character movement function mode conversion rules and the second mouse movement command, and then determine the character movement touch command based on the character coordinate movement trajectory; the character movement touch command is used to control the change of character coordinates in the remote device.
[0124] In this embodiment, before obtaining the second mouse movement command sent by the PC input device, the method further includes: if a character movement function mode change command is obtained, the character movement function mode is determined as the current function mode, and a press command simulating the specified coordinates of the game wheel in the remote device is generated; correspondingly, the operation touch command includes a character movement touch command.
[0125] It should be noted that after receiving the character movement function mode change instruction, the PC-side cloud gaming touch module will also determine the initial second mouse click coordinates based on the character movement function mode change instruction, so as to start the listening function from the second mouse click coordinates to listen for mouse movement and obtain the mouse offset value.
[0126] It should be noted that the specified coordinates of the game wheel are preset coordinate positions. If the remote device has function keys or skill keys on the specified coordinates of the game wheel when calling the interface, there may be conflicts. Therefore, different specified coordinates of the game wheel need to be set according to different games.
[0127] In this embodiment, the step of determining the character coordinate movement trajectory corresponding to the remote device based on the character movement function mode conversion rule and the second mouse movement command, and then determining the character movement touch command based on the character coordinate movement trajectory, includes: determining the second current mouse coordinate in real time based on the character movement function mode conversion rule and the second mouse movement command; calculating the second offset value between the second current mouse coordinate and the second previous mouse coordinate, and determining the character coordinate movement trajectory corresponding to the remote device based on the second offset value and the specified coordinate of the game wheel; determining the character movement touch command based on the character coordinate movement trajectory; the character movement touch command is used to control the remote device to move the character coordinate from the character coordinate position corresponding to the second previous mouse coordinate to the character coordinate position corresponding to the second current mouse coordinate; wherein, if the first mouse movement command is the first mouse movement command after the character function mode change command, then the character coordinate position corresponding to the previous mouse coordinate is the specified coordinate of the game wheel.
[0128] It should be noted that determining the character coordinate movement trajectory corresponding to the remote device based on the second offset value and the specified coordinates of the game wheel includes: determining the character movement offset value corresponding to the second offset value according to the conversion rules of the character movement function mode, and determining the character coordinate movement trajectory corresponding to the remote device based on the character movement offset value and the specified coordinates of the game wheel.
[0129] It should be noted that if the second mouse movement command is not the first mouse movement command after the character function mode change command (the first second mouse movement command), then the second previous mouse coordinate is the mouse coordinate after the previous second mouse movement command.
[0130] Step S42: Send the character movement touch command to the remote device so that the remote device can execute the operation corresponding to the character movement touch command.
[0131] In this embodiment, the character movement function mode change instruction has been obtained before the second mouse movement instruction sent by the PC input device is obtained.
[0132] In this embodiment, if the second mouse movement command is the first second mouse movement command obtained after obtaining the character movement function mode change command, the press command can be sent to the remote device immediately after the press command is generated, or the press command and the character movement touch command can be sent to the remote device sequentially after the character movement touch command corresponding to the first second mouse movement command is generated.
[0133] In this embodiment, if the second mouse movement command is a subsequent second mouse movement command before exiting the current character function mode, the character movement touch command can be sent directly to the remote device separately.
[0134] See Figure 7 The diagram illustrates the character movement control process: The character enters the character movement mode by receiving a character movement function mode change command and determines the second movement preparation touch command (at this point, the second movement preparation touch command can be sent to the remote device, or not); the character moves by receiving the second mouse movement command. If this is the first time the character moves by receiving the command and no movement preparation touch command has been sent, the character movement touch command is determined based on the second mouse movement command, and both the movement preparation touch command and the character movement touch command are sent to the remote device; if this is the first time the character moves by receiving the command and a movement preparation touch command has been sent, the character movement touch command is determined based on the second mouse movement command, and both the character movement touch command and the character movement touch command are sent to the remote device; if this is not the first time the character moves by receiving the command, only the character movement touch command is sent to the remote device.
[0135] In one specific embodiment, after the right mouse button is pressed, the PC-side cloud gaming touch module obtains a character movement function mode change instruction, enters the character movement function mode, determines the second mouse click coordinates, and determines a press instruction simulating the pressing of a specified coordinate on the game wheel in the remote device, for example, the specified coordinates of the game wheel are {x:0.1, y:0.2} (the previous character coordinates). Then, when the mouse moves (obtaining the second mouse movement instruction), it listens for the second offset value of the current mouse position relative to the coordinates of the previous moment (the second mouse click coordinates), and converts this offset value into a character movement coordinate offset value, such as {offset x:0.3, offset y:0.2}. Given {x: -0.1}, we can calculate that the character's movement trajectory from the start to the current moment is from {x: 0.1, y: 0.2} (the previous character coordinates) to {x: 0.4, y: 0.1} (the current character coordinates). Based on this trajectory, we determine the character's movement touch command and sequentially send the simulated press command (pressing the game wheel at a specified coordinate on the remote device) and the character movement touch command to the remote device. This can be interpreted as the finger initially clicking and holding, then dragging to the next coordinate. It should be noted that alternatively, after determining the simulated press command (pressing the game wheel at a specified coordinate on the remote device), the press command can be sent to the remote device, and then the character movement touch command can be separately sent to the remote device after determining the character's movement trajectory.
[0136] If the right mouse button is not released at this time, the character movement mode remains active. If the mouse moves again (receiving a second mouse movement command), then {x:0.4, y:0.1} is used as the previous character coordinates. The second offset value between the current mouse coordinates and the previous mouse coordinates (the current mouse coordinates of the last mouse movement) is calculated. This offset value is converted into a character movement coordinate offset value, such as {offset X:0.2, offset Y:0.2}. Therefore, the character coordinate movement trajectory from the previous moment to the current moment can be calculated as moving from {x:0.4, y:0.1} (previous character coordinates) to {x:0.6, y:0.3} (current character coordinates). Based on this trajectory, the character movement touch command is sent to the remote device, which can be interpreted as the finger being held down and dragged to the next coordinate. This process continues if the mouse continues to move within the current character movement mode (the character coordinates depend on the actual situation). If the right mouse button is released, the current character movement mode is exited.
[0137] As can be seen, this application acquires a second mouse movement command sent by a PC input device; determines the character coordinate movement trajectory corresponding to the remote device based on the character movement function mode conversion rules and the second mouse movement command; then determines a character movement touch command based on the character coordinate movement trajectory; the character movement touch command is used to control the change of character coordinates in the remote device; and sends the character movement touch command to the remote device so that the remote device executes the operation corresponding to the character movement touch command. Therefore, this application determines the character coordinate movement trajectory corresponding to the remote device based on the second mouse movement command and the character movement function mode conversion rules, thus realizing the character movement function.
[0138] Accordingly, this application also discloses a PC-based cloud gaming control device, applied to a PC-based cloud gaming touch module, see [link to relevant documentation]. Figure 8 As shown, the device includes:
[0139] The instruction determination module 11 is used to acquire the operation instruction sent by the PC input device, and then determine the operation touch instruction based on the current function mode conversion rule and the operation instruction; the operation touch instruction is an instruction that the remote device can directly recognize.
[0140] The instruction execution module 12 is used to send the operation touch instruction to the remote device so that the remote device can perform the operation corresponding to the operation touch instruction.
[0141] For more detailed information on the working process of each of the above modules, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.
[0142] As can be seen, this application acquires the operation instructions sent by the PC-side input device, and then determines the operation touch instructions based on the current function mode conversion rules and the operation instructions; the operation touch instructions are instructions that the remote device can directly recognize; the operation touch instructions are sent to the remote device so that the remote device can execute the operation corresponding to the operation touch instructions. Therefore, this application uses a PC-side cloud gaming touch module and converts operation instructions into touch instructions according to the current function mode conversion rules, so that after the touch instructions are sent to the remote device, the remote device can directly complete the corresponding operation based on the touch instructions, thereby realizing cross-platform cloud gaming control from the PC to the remote device.
[0143] Furthermore, embodiments of this application also provide an electronic device. Figure 9 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0144] Figure 9 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the PC-based cloud gaming control method disclosed in any of the foregoing embodiments. Alternatively, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0145] In this embodiment, the power supply 26 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 24 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0146] Furthermore, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk, or optical disk, etc. The resources stored thereon may include computer programs 221, and the storage method may be temporary storage or permanent storage. The computer programs 221 may include, in addition to computer programs capable of performing the PC-based cloud gaming control method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, computer programs capable of performing other specific tasks.
[0147] Furthermore, embodiments of this application also disclose a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed PC-based cloud gaming control method.
[0148] For the specific steps of this method, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.
[0149] The various embodiments in this application are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. For the same or similar parts between the various embodiments, refer to each other. As for the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and relevant parts can be referred to the method section.
[0150] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0151] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0152] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0153] The above provides a detailed description of a PC-based cloud gaming control method, apparatus, device, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A PC-based cloud gaming control method, characterized in that, Touch control modules for PC-based cloud gaming include: The system acquires operation commands sent by the PC input device, and then determines operation touch commands based on the current function mode conversion rules and the operation commands. The operation touch commands are commands that the remote device can directly recognize. The current function mode includes field function mode and character movement function mode. The operation touch command is sent to the remote device so that the remote device can execute the operation corresponding to the operation touch command; The step of acquiring the operation command sent by the PC input device, and then determining the operation touch command based on the current function mode conversion rules and the operation command, includes: In the field of view function mode, a first mouse movement command sent by the PC input device is acquired; the field of view coordinate movement trajectory corresponding to the remote device is determined according to the conversion rules of the field of view function mode and based on the first mouse movement command; then, a field of view movement touch command is determined based on the field of view coordinate movement trajectory; the field of view movement touch command is used to control the change of field of view in the remote device. In the character movement function mode, a second mouse movement command sent by the PC input device is obtained; the character coordinate movement trajectory corresponding to the remote device is determined according to the conversion rules of the character movement function mode and based on the second mouse movement command; then, a character movement touch command is determined based on the character coordinate movement trajectory; the character movement touch command is used to control the change of character coordinates in the remote device.
2. The PC-based cloud gaming control method according to claim 1, characterized in that, Before obtaining the operation command sent by the PC input device, the process also includes: If a target function mode change instruction is received, the target function mode is determined as the current function mode, and a function preparation touch instruction corresponding to the target function mode is determined; the function preparation touch instruction is sent to the remote device so that the remote device can enter the target function mode based on the function preparation touch instruction.
3. The PC-based cloud gaming control method according to claim 2, characterized in that, If a target function mode change instruction is obtained, the target function mode is determined as the current function mode, and the corresponding function preparation touch instruction for the target function mode is determined, including: If a vision function mode change instruction is received, the vision function mode is determined as the current function mode, and a press instruction simulating the preset coordinates in the remote device is generated. Accordingly, the operation touch commands include field-of-view movement touch commands.
4. The PC-based cloud gaming control method according to claim 3, characterized in that, The step of determining the field-of-view coordinate movement trajectory corresponding to the remote device based on the field-of-view function mode conversion rules and the first mouse movement command, and then determining the field-of-view movement touch command based on the field-of-view coordinate movement trajectory, includes: The first offset value between the first current mouse coordinate and the first previous mouse coordinate is determined in real time based on the listening function and the first mouse movement command. According to the conversion rules of the field of view function mode, the current field of view coordinates are determined based on the first offset value and the previous field of view coordinates, and the field of view coordinate movement trajectory corresponding to the remote device is determined based on the current field of view coordinates and the previous field of view coordinates. The field of view movement touch command is determined based on the field of view coordinate movement trajectory; the field of view movement touch command is used to control the remote device to move the field of view coordinate from the previous field of view coordinate to the current field of view coordinate; wherein, if the first mouse movement command is the first mouse movement command after the field of view function mode change command, then the previous field of view coordinate is the preset coordinate.
5. The PC-based cloud gaming control method according to claim 1, characterized in that, The step of acquiring the operation command sent by the PC input device, and then determining the operation touch command based on the current function mode conversion rules and the operation command, includes: The system acquires several operation commands sent by the PC input device, and then determines a touch command based on the current function mode conversion rules and the several operation commands.
6. The PC-based cloud gaming control method according to claim 5, characterized in that, The process of acquiring several operation commands sent by the PC input device, and then determining a touch command based on the current function mode conversion rules and the several operation commands, includes: The system acquires several directional commands sent by the PC input device, and then determines a directional touch command based on the current function mode conversion rules and the aforementioned directional commands.
7. The PC-based cloud gaming control method according to claim 6, characterized in that, The step of determining a directional touch command based on the current function mode switching rules and several directional commands includes: Determine whether instruction combinations are possible; If instruction combination cannot be performed, the latest directional instruction among the aforementioned directional instructions will be determined as a directional touch instruction. If instruction combination is possible, then determine whether several directional instructions can be combined to obtain multiple combined instructions based on the instruction conflict avoidance principle; the instruction conflict avoidance principle is that two directional instructions in opposite directions cannot be combined with each other; If multiple combined instructions cannot be obtained, then a current combined instruction is directly combined and determined as a direction touch instruction; If multiple combined instructions are available, they are combined to obtain the multiple combined instructions. Based on the latest instruction principle, a latest combined instruction is selected from the multiple combined instructions, and then the latest combined instruction is determined as a directional touch instruction. The latest instruction principle is that each directional instruction in the latest combined instruction is the latest directional instruction in the associated direction corresponding to that directional instruction. The associated direction is the target direction corresponding to the directional instruction and the direction opposite to the target direction.
8. The PC-based cloud gaming control method according to claim 2, characterized in that, If a target function mode change instruction is obtained, the target function mode is determined as the current function mode, and the corresponding function preparation touch instruction for the target function mode is determined, including: If a character movement function mode change instruction is received, the character movement function mode is determined as the current function mode, and a pressing instruction simulating the specified coordinates of the game wheel in the remote device is generated. Accordingly, the operation touch commands include character movement touch commands.
9. The PC-based cloud gaming control method according to claim 8, characterized in that, The step of determining the character coordinate movement trajectory corresponding to the remote device based on the character movement function mode conversion rule and the second mouse movement command, and then determining the character movement touch command based on the character coordinate movement trajectory, includes: The second current mouse coordinates are determined in real time based on the conversion rules of the character movement function mode and the second mouse movement command; Calculate a second offset value between the second current mouse coordinates and the second previous mouse coordinates, and determine the character coordinate movement trajectory corresponding to the remote device based on the second offset value and the specified coordinates of the game wheel; The character movement touch command is determined based on the character coordinate movement trajectory; the character movement touch command is used to control the remote device to move the character coordinates from the character coordinate position corresponding to the previous mouse coordinate to the character coordinate position corresponding to the second current mouse coordinate; wherein, if the first mouse movement command is the first mouse movement command after the character movement function mode change command, then the character coordinate position corresponding to the previous mouse coordinate is the specified coordinate of the game wheel.
10. The PC-based cloud gaming control method according to claim 2, characterized in that, Also includes: Select an identifier from a preset identifier pool of previously used identifiers to prepare touch commands for each function and assign an identifier to the operation touch commands; Alternatively, if the previously used identifier is not present in the preset identifier pool, an identifier is set for each function preparation touch instruction and the operation touch instruction by incrementing the identifier; wherein, if the function preparation touch instruction and the operation touch instruction are associated instructions and correspond to the same function, then the function preparation touch instruction and the operation touch instruction correspond to the same identifier.
11. A PC-based cloud gaming control device, characterized in that, Touch control modules for PC-based cloud gaming include: The instruction determination module is used to acquire the operation instruction sent by the PC input device, and then determine the operation touch instruction based on the current function mode conversion rules and the operation instruction; the operation touch instruction is an instruction that the remote device can directly recognize. The instruction execution module is used to send the operation touch instruction to the remote device so that the remote device can execute the operation touch instruction corresponding to the operation touch instruction; The instruction determination module includes: The first instruction determining unit is used to acquire a first mouse movement instruction sent by a PC input device in the field of view function mode; determine the field of view coordinate movement trajectory corresponding to the remote device according to the conversion rules of the field of view function mode and based on the first mouse movement instruction; and then determine the field of view movement touch instruction based on the field of view coordinate movement trajectory; the field of view movement touch instruction is used to control the change of field of view in the remote device. The second instruction determination unit is used to acquire a second mouse movement instruction sent by a PC input device in the character movement function mode; determine the character coordinate movement trajectory corresponding to the remote device according to the conversion rules of the character movement function mode and based on the second mouse movement instruction; and then determine a character movement touch instruction based on the character coordinate movement trajectory; the character movement touch instruction is used to control the change of character coordinates in the remote device.
12. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the PC-based cloud gaming control method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein, when the computer programs are executed by a processor, they implement the PC-based cloud gaming control method as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Input event conversion method and device, electronic equipment and computer readable medium
CN115793946A