Cloud game control method and device, electronic equipment, medium and product
By acquiring controller device information, registering and assigning numbers in the cloud gaming system, and establishing a signaling channel, the limitation of a single controller is solved, enabling multi-controller collaborative control and expanding the application scenarios of cloud gaming.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2023-10-31
- Publication Date
- 2026-07-07
AI Technical Summary
Existing cloud gaming systems only support single-player control, which cannot meet the needs of complex game scenarios such as multi-player battles and multi-player cooperation.
By acquiring the preset device information of the gamepad, registering it, assigning it a device management number, and establishing a signaling channel, the gamepad operation events are accurately forwarded to the cloud gaming server, supporting one cloud gaming client to manage multiple gamepad devices simultaneously.
It enables accurate identification and operation control of multiple gamepad devices, expands the application of cloud gaming scenarios, and supports multi-party collaborative gaming experiences.
Smart Images

Figure CN117258274B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of cloud computing technology, and in particular to a cloud gaming control method, apparatus, electronic device, medium, and product. Background Technology
[0002] Cloud gaming is a game scenario that runs on cloud containers, renders locally on the local client by streaming audio and video, and exchanges data between the client and the cloud via signaling channels. In cloud gaming scenarios, many complex game scenes rely on gamepad controls, requiring cloud gaming service providers to support physical gamepad control capabilities.
[0003] However, in a game scenario where a client interacts with a cloud gaming client, only single-player controller capability can be provided, which cannot meet the game control requirements of complex game scenarios, such as multi-player battles and multi-player cooperative game scenarios. Summary of the Invention
[0004] This disclosure provides a cloud gaming control method, device, electronic device, medium, and product that can support a single cloud gaming client to connect to and manage multiple gamepad devices simultaneously, allowing users to experience multi-party collaborative gaming based on the same cloud gaming client, thereby expanding the cloud gaming scenario.
[0005] In a first aspect, embodiments of this disclosure provide a cloud gaming control method, the method comprising:
[0006] When a controller connection event is received, the preset device information of the corresponding controller device is obtained;
[0007] The game controller is registered by interacting with the target cloud gaming server based on the preset device information, and a device management number is assigned to the successfully registered game controller.
[0008] The controller operation event is acquired, and the controller operation event is forwarded to the target cloud gaming server based on the device management number associated with the controller operation event, so as to realize the corresponding cloud gaming operation control.
[0009] Secondly, embodiments of this disclosure also provide a cloud gaming control device, the device comprising:
[0010] The controller connection detection module is used to obtain the preset device information of the corresponding controller device each time a controller connection event is detected.
[0011] The controller registration module is used to interact with the target cloud gaming server based on the preset device information to register the controller device, and to determine a device management number for the successfully registered controller device.
[0012] The game control command acquisition module is used to acquire gamepad operation events and forward the gamepad operation events to the target cloud gaming server based on the device management number associated with the gamepad operation events, so as to realize the corresponding cloud gaming operation control.
[0013] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0014] One or more processors;
[0015] Storage device for storing one or more programs.
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the cloud gaming control method as described in any of the embodiments of this disclosure.
[0017] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the cloud gaming control method as described in any of the embodiments of this disclosure.
[0018] Fifthly, this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the cloud gaming control method as described in any of the embodiments of the present invention.
[0019] In this embodiment, each time a gamepad connection event is received, preset device information for the corresponding gamepad device is obtained. Based on this preset device information, the gamepad device is registered with the target cloud gaming server, and a device management number is assigned to each successfully registered gamepad device to distinguish different gamepads. Gamepad operation events are obtained, and based on the device management number associated with each operation event, the gamepad operation event is forwarded to the target cloud gaming server. This ensures that the operation control commands of each gamepad can be accurately identified to achieve the corresponding cloud gaming operation control. The technical solution of this embodiment solves the problem of limited gamepad connectivity, which restricts gaming scenarios. It supports a single cloud gaming client to connect to and manage multiple gamepad devices simultaneously, allowing users to experience multi-party collaborative gaming based on the same cloud gaming client, thus expanding the cloud gaming scenario. Attached Figure Description
[0020] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1This is a schematic flowchart of a cloud gaming control method provided in an embodiment of this disclosure;
[0022] Figure 2 This is a schematic diagram illustrating the interaction between a cloud gaming client and a cloud gaming server provided in an embodiment of this disclosure;
[0023] Figure 3 This is a schematic flowchart of a cloud gaming control method provided in an embodiment of this disclosure;
[0024] Figure 4 This is a schematic flowchart of a cloud gaming control method provided in an embodiment of this disclosure;
[0025] Figure 5 This is a flowchart illustrating a cloud gaming control example provided in this embodiment of the disclosure;
[0026] Figure 6 This is a schematic diagram of the structure of a cloud gaming control device provided in an embodiment of this disclosure;
[0027] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0029] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0032] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0033] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0034] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0035] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0036] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0037] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0038] Figure 1 This is a flowchart illustrating a cloud gaming control method provided in an embodiment of the present disclosure. This embodiment is applicable to cloud gaming scenarios, particularly when multiple people collaborate to play a game through the same game client. The method can be executed by a cloud gaming control device, which can be implemented in software and / or hardware. Optionally, the cloud gaming control device can be configured on the cloud gaming client and implemented through an electronic device, such as a mobile terminal, a PC, or a server.
[0039] like Figure 1 As shown, the cloud gaming control method includes:
[0040] S110. When a controller connection event is obtained, the preset device information of the corresponding controller device is obtained.
[0041] In cloud gaming scenarios, users can control the cloud game through the operation controls on the cloud gaming client, essentially treating the client's controls as a virtual game controller. Alternatively, they can connect an external device, such as a game controller, to the terminal running the cloud gaming client to control the game. Typically, each client only supports one controller device (physical or virtual) for controlling the cloud game. In multi-player game scenarios, multiple clients connect to a single controller device to interact with the cloud gaming server, enabling control of multiple characters. This requires the cloud gaming server to connect to multiple clients simultaneously, repeatedly sending and rendering the same game audio and video data for the same scene.
[0042] In this embodiment, a cloud gaming client can support the simultaneous connection of multiple game controller devices. These multiple game controller devices can be physical game controllers, virtual game controllers, or a combination of both. Therefore, whenever a game controller connection event is received, the corresponding preset device information of the game controller device is obtained to distinguish between multiple game controller devices during subsequent game controller operation event recognition and forwarding.
[0043] In one feasible implementation, a pre-defined controller connection event detection interface can be used to acquire controller connection events. This interface detects a controller connection event upon receiving a device connection signal from a pre-defined physical interface or a virtual controller creation command. For example, when a physical controller connects to a terminal device running a cloud gaming client via USB or Bluetooth, the controller connection event detection interface function is called, causing the cloud gaming client to acquire a controller connection event.
[0044] Upon receiving a controller connection event, the default device information for the corresponding controller device can be obtained by calling a parameter reading function or through other means. This default device information may include one or more of the following combinations: device index number, device type (physical or virtual), device name, device manufacturer identifier, device product number, and device connection status (device inserted or removed). When the device is a virtual controller, the corresponding device manufacturer identifier and product number may be omitted or represented by an executable symbol.
[0045] S120. Based on the preset device information, interact with the target cloud gaming server to register the gamepad device, and assign a device management number to the successfully registered gamepad device.
[0046] After obtaining the device information of the connected gamepad, the cloud gaming client will send a registration request for the gamepad to the cloud gaming server so that the operation commands of the gamepad can be recognized and distinguished during subsequent cloud gaming operations.
[0047] When the cloud gaming server receives a gamepad registration request, it verifies the gamepad's device information as trustworthy and saves a copy of the device information in the cloud. Then, it sends a successful registration message to the cloud gaming client.
[0048] Upon receiving feedback that the gamepad device has successfully registered, the cloud gaming client can list the gamepad device as a target managed device and determine its device management number. This device management number can be a trusted number generated based on preset numbering rules, or it can be the gamepad's corresponding device index number. Based on this device management number, the cloud gaming client can distinguish between different gamepad devices and intercept and identify the gamepad's operation control commands.
[0049] S130. Obtain the controller operation event and forward the controller operation event to the target cloud gaming server based on the device management number associated with the controller operation event, so as to realize the corresponding cloud gaming operation control.
[0050] Gamepad operation events can be triggered by actions such as button presses, joystick activation, or changes in gamepad positioning information. The triggering of a gamepad operation event is associated with its corresponding gamepad device; therefore, the device management number of the corresponding gamepad device can be obtained from the acquired gamepad operation event.
[0051] Furthermore, the cloud gaming client can encapsulate the event information of the acquired controller operation events based on a pre-defined communication management protocol for multiple controller devices and the corresponding device association number, and forward it to the target cloud gaming server. This enables the target cloud gaming server to parse the controller operation events according to preset protocol rules (rules corresponding to the aforementioned multi-controller device management communication protocol), and add the corresponding control commands to the corresponding cloud gaming process, i.e., inject them into the operating system running the target cloud game, thus realizing the cloud gaming operation control process. After parsing the controller operation events, the cloud gaming server can determine which successfully registered controller issued the operation command, thereby enabling the corresponding operation.
[0052] In one feasible embodiment, the interaction between the cloud gaming client and the cloud gaming server can refer to... Figure 2 The interactive framework shown. Figure 2In this cloud gaming client, a single client can simultaneously connect to N gamepad devices, providing pre-defined gamepad services such as monitoring and handling the connection status of physical / virtual gamepads, gamepad registration / unregistration, gamepad information management, device index information allocation, and interception of physical gamepad operation events. The cloud gaming client can also forward gamepad operation events packaged using a pre-defined gamepad protocol and handle message events such as device registration status changes returned by the cloud gaming server. The gamepad protocol refers to the protocol module used for gamepad communication between the cloud gaming client SDK and the core services of the cloud gaming server. For example, it is responsible for packaging and parsing event protocols related to physical or virtual gamepad registration / unregistration, gamepad button activity, and gamepad joystick activity. The cloud gaming server can parse gamepad operation times based on the gamepad protocol to implement game operations. In this embodiment, cloud gaming primarily involves third-party PC games that support multiple players and multiple roles.
[0053] The technical solution of this disclosure involves acquiring preset device information for each gamepad connection event, interacting with the target cloud gaming server based on the preset device information to register the gamepad device, and assigning a device management number to each successfully registered gamepad to distinguish different gamepads. Gamepad operation events are acquired and forwarded to the target cloud gaming server based on the device management number associated with each operation event, ensuring that the operation control commands of each gamepad can be accurately identified to achieve the corresponding cloud gaming operation control. This technical solution solves the problem of limited gamepad connectivity and restricted gaming scenarios, allowing a single cloud gaming client to connect to and manage multiple gamepad devices simultaneously. This enables users to experience multi-party collaborative gaming based on the same cloud gaming client, thus expanding the scope of cloud gaming scenarios.
[0054] Figure 3 This is a flowchart illustrating yet another cloud gaming control method provided in this disclosure. Based on the above embodiments, it further explains the forwarding process of operation events for each game controller. This method can be executed by a cloud gaming control device, which can be implemented in software and / or hardware, optionally through an electronic device such as a mobile terminal, PC, or server.
[0055] like Figure 3 As shown, the cloud gaming control method includes:
[0056] S210. When a controller connection event is obtained, the preset device information of the corresponding controller device is obtained.
[0057] S220. Based on the preset device information, interact with the target cloud gaming server to register the gamepad device, and assign a device management number to the successfully registered gamepad device.
[0058] S230. Establish a signaling channel between the successfully registered gamepad device and the target cloud gaming server, and save the mapping relationship between the device management number of the successfully registered gamepad device and the signaling channel.
[0059] Specifically, in this embodiment, to enable the interaction of game control commands between the cloud gaming client and the cloud gaming server, a signaling channel can be established between each gamepad device and the cloud gaming server. For example, when five gamepad devices simultaneously connect to the cloud gaming client and successfully register on the cloud gaming server, the cloud gaming client will establish five signaling channels with the cloud gaming server. Each signaling channel can use the device management number of the corresponding gamepad device as the distinguishing information, or it can be marked separately for each signaling channel, thereby establishing a mapping relationship between the device management number of the successfully registered gamepad device and the signaling channel.
[0060] S240. Obtain the handle operation event, and determine the target signaling channel for forwarding the handle operation event based on the device management number associated with the handle operation event and the mapping relationship.
[0061] The mapping relationship between device management number and signaling channel can be stored as a data table in the cloud gaming client. When forwarding operation events, the target signaling channel is determined by looking up the table.
[0062] For the acquired controller operation events, the operation events can be forwarded through the dedicated signaling channel of the associated controller device. This can avoid information confusion between multiple controller devices, ensure that controller operation events are responded to effectively, and manage multiple controller devices accurately and efficiently, so as to ensure the smooth operation of multi-role games.
[0063] S250. The controller operation event is forwarded to the target cloud gaming server through the target signaling channel to realize the corresponding cloud gaming operation control.
[0064] The cloud gaming client can encapsulate the event information of the acquired gamepad operation events based on a pre-defined communication management protocol for multiple gamepad devices and the corresponding device association number. This encapsulated gamepad operation events are then forwarded to the target cloud gaming server via a target signaling channel. The target cloud gaming server then parses the gamepad operation events according to preset protocol rules (rules corresponding to the aforementioned multi-gamepad device management communication protocol) and adds the corresponding control commands to the corresponding cloud gaming process, i.e., injects them into the operating system running the target cloud game, thus realizing the cloud gaming operation control process.
[0065] The technical solution of this disclosure involves acquiring preset device information for each game controller connection event, interacting with the target cloud gaming server based on the preset device information to register the game controller, and assigning a device management number to each successfully registered game controller to distinguish different game controllers. A signaling channel is then established between the successfully registered game controller and the target cloud gaming server, and the mapping relationship between the device management number of the successfully registered game controller and the signaling channel is saved. Game controller operation events are acquired, and based on the device management number associated with the game controller operation event and the mapping relationship, a target signaling channel for forwarding the game controller operation event is determined. The game controller operation event is then forwarded to the target cloud gaming server, ensuring that the operation control commands of each game controller can be accurately identified to achieve the corresponding cloud gaming operation control. This technical solution solves the problem of limited game controller access numbers restricting gaming scenarios. It supports a single cloud gaming client to connect to and manage multiple game controller devices simultaneously, allowing users to experience multi-party collaborative gaming based on the same cloud gaming client, thus expanding the cloud gaming scenario.
[0066] Figure 4 This is a flowchart illustrating a cloud gaming control method provided in an embodiment of this disclosure. Based on the above embodiment, the registration and unregistration management process of the gamepad device is further explained. This method can be executed by a cloud gaming control device, which can be implemented in software and / or hardware, optionally through an electronic device, such as a mobile terminal, PC, or server.
[0067] like Figure 4 As shown, the cloud gaming control method includes:
[0068] S310. When a controller connection event is obtained, the preset device information of the corresponding controller device is obtained.
[0069] S320. Based on the preset device information, interact with the target cloud gaming server to register the gamepad device, and assign a device management number to the successfully registered gamepad device.
[0070] S330. Establish a signaling channel between the successfully registered gamepad device and the target cloud gaming server, and save the mapping relationship between the device management number of the successfully registered gamepad device and the signaling channel.
[0071] S340. Obtain the controller operation event and verify the registration connection status of the controller device associated with the controller operation event.
[0072] Once a gamepad operation event is received from the gamepad device, it can be intercepted using a pre-defined event interception function. The registration and connection status of the gamepad device associated with the operation event is verified to prevent the forwarding of operation events from unregistered gamepads to the cloud gaming server, which could cause abnormal operation responses.
[0073] In some scenarios, the controller device may lose connection or unregister with the cloud gaming server to exit game control. Operation events from controller devices that are not maintaining a registered connection will not be sent to the cloud gaming server.
[0074] S350. When it is determined that the controller device associated with the controller operation event is in a registered connection state, the controller operation event is forwarded to the target cloud gaming server based on the device management number associated with the controller operation event, so as to realize the corresponding cloud gaming operation control.
[0075] S360. When registration cancellation information of any controller device is obtained, the controller operation event of the controller device is blocked according to the device management number associated with the registration cancellation information, and the registration information of the controller device is removed.
[0076] It is understandable that this step of S360 can occur at any time after any gamepad device has been registered, and is not limited to after a gamepad operation event is detected.
[0077] When multiple gamepad devices are connected to the cloud gaming client, if any gamepad device loses its connection to the cloud gaming client (either by physically unplugging it or by using a virtual gamepad exit command), a registration cancellation event (unregistration) will be triggered. The cloud gaming client will then receive the registration cancellation information. Based on this message, the client will stop intercepting the corresponding gamepad operation events and remove the gamepad device's registration information, reducing redundant signaling channels and information exchange between the cloud gaming client and the cloud gaming server.
[0078] In one feasible implementation, the cloud gaming control process can be referenced. Figure 5 The flowchart shown is in Figure 5The code indicates that after a multi-player game begins, the cloud gaming client loops to detect gamepad insertion and removal events until a corresponding event is detected. When a gamepad is inserted into the terminal device running the cloud gaming client, its device information is obtained. Based on this information, a registration message is sent to the cloud gaming server (cloud container). Upon detecting the registration message, the cloud gaming server registers the gamepad and returns a registration message. Successful registration is achieved by saving the registration message on both the cloud gaming server and the cloud gaming client. The cloud gaming client can then intercept gamepad operation events and verify the associated gamepad device. If the verification is successful, the gamepad operation event is forwarded to the cloud gaming server based on the gamepad protocol. The cloud gaming server then parses the gamepad operation event based on the gamepad protocol and injects the parsed result into the operating system, responding with the corresponding operation commands. When a gamepad is unplugged, a deregistration message is sent to the cloud gaming server to unbind the gamepad from the cloud gaming client, cancel the interception of corresponding gamepad operation events, and remove the registration information corresponding to that gamepad. Through this process, a single cloud gaming client can support the access of multiple gamepads, enabling multi-character game operation based on a single client.
[0079] The technical solution of this disclosure involves acquiring preset device information for each game controller connection event, interacting with the target cloud gaming server based on the preset device information to register the game controller, and assigning a device management number to each successfully registered game controller to distinguish different game controllers. A signaling channel is established between the successfully registered game controller and the target cloud gaming server, and the mapping relationship between the device management number of the successfully registered game controller and the signaling channel is saved. Game controller operation events are acquired, and the registration connection status of the game controller associated with the operation event is verified. When it is determined that the game controller associated with the operation event is in a registration connection state, the game controller operation event is forwarded to the target cloud gaming server based on the device management number associated with the operation event. This ensures that the operation control commands of each game controller can be accurately identified to achieve the corresponding cloud gaming operation control. The technical solution of this disclosure solves the problem of limited game controller access quantity, which restricts game scenarios. It supports a single cloud gaming client to connect to and manage multiple game controllers simultaneously, allowing users to experience multi-party collaborative gaming based on the same cloud gaming client, thus expanding the cloud gaming scenario.
[0080] Figure 6This disclosure provides a cloud gaming control device suitable for cloud gaming scenarios, particularly where multiple users collaborate to play a game through the same game client. The cloud gaming control device can be implemented in software and / or hardware and can be configured on an electronic device, such as a mobile terminal, a PC, or a server.
[0081] like Figure 6 As shown, the cloud gaming control device includes: a gamepad connection detection module 410, a gamepad registration module 420, and a game control command acquisition module 430.
[0082] The controller connection detection module 410 is used to obtain the preset device information of the corresponding controller device each time a controller connection event is obtained; the controller registration module 420 is used to interact with the target cloud gaming server to register the controller device according to the preset device information, and to determine the device management number for the successfully registered controller device; the game control command acquisition module 430 is used to acquire controller operation events, and forward the controller operation events to the target cloud gaming server based on the device management number associated with the controller operation events, so as to realize the corresponding cloud gaming operation control.
[0083] The technical solution of this disclosure involves acquiring preset device information for each gamepad connection event, interacting with the target cloud gaming server based on the preset device information to register the gamepad device, and assigning a device management number to each successfully registered gamepad to distinguish different gamepads. Gamepad operation events are acquired and forwarded to the target cloud gaming server based on the device management number associated with each operation event, ensuring that the operation control commands of each gamepad can be accurately identified to achieve the corresponding cloud gaming operation control. This technical solution solves the problem of limited gamepad connectivity and restricted gaming scenarios, allowing a single cloud gaming client to connect to and manage multiple gamepad devices simultaneously. This enables users to experience multi-party collaborative gaming based on the same cloud gaming client, thus expanding the scope of cloud gaming scenarios.
[0084] In an optional implementation, the handle registration module 420 can also be used for:
[0085] Establish a signaling channel between the successfully registered gamepad device and the target cloud gaming server, and save the mapping relationship between the device management number of the successfully registered gamepad device and the signaling channel.
[0086] In one optional implementation, the game control command acquisition module 430 is specifically used for:
[0087] Based on the device management number associated with the handle operation event and the mapping relationship, determine the target signaling channel for forwarding the handle operation event;
[0088] The controller operation event is forwarded to the target cloud gaming server through the target signaling channel.
[0089] In an alternative implementation, the handle registration module 420 can also be used for:
[0090] Before forwarding the controller operation event, verify the registration connection status of the controller device associated with the controller operation event.
[0091] In one optional implementation, the handle connection detection module 410 is specifically used for:
[0092] A controller connection event is received, including:
[0093] In response to a device connection signal from a preset physical interface, a controller connection event is received; or...
[0094] In response to the virtual controller creation command, a controller connection event is received.
[0095] In an optional implementation, the handle registration module 420 is further configured to:
[0096] Obtain registration cancellation information for any of the aforementioned controller devices;
[0097] Based on the device management number associated with the registration cancellation information, the blocking of the controller operation events of the controller device is canceled, and the registration information of the controller device is removed.
[0098] In one optional implementation, the game control command acquisition module 430 is specifically used for:
[0099] Forwarding the controller operation events to the target cloud gaming server to achieve corresponding cloud gaming operation control includes:
[0100] The controller operation event is forwarded to the target cloud gaming server, so that the target cloud gaming server parses the controller operation event according to the preset protocol rules, and adds the control command corresponding to the parsing result to the corresponding cloud gaming process, thereby realizing the cloud gaming operation control process.
[0101] The cloud gaming control device provided in this disclosure can execute the cloud gaming control method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0102] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0103] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 7 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 7 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0104] like Figure 7 As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.
[0105] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0106] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0107] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0108] The electronic device provided in this embodiment and the cloud gaming control method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0109] This disclosure also provides a computer storage medium storing a computer program that, when executed by a processor, implements the cloud gaming control method provided in the above embodiments.
[0110] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0111] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0112] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0113] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:
[0114] When a controller connection event is received, the preset device information of the corresponding controller device is obtained;
[0115] The game controller is registered by interacting with the target cloud gaming server based on the preset device information, and a device management number is assigned to the successfully registered game controller.
[0116] The controller operation event is acquired, and the controller operation event is forwarded to the target cloud gaming server based on the device management number associated with the controller operation event, so as to realize the corresponding cloud gaming operation control.
[0117] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0118] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0119] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0120] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0121] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0122] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the cloud gaming control method provided in any embodiment of this disclosure.
[0123] In implementing a computer program product, computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0124] According to one or more embodiments of this disclosure, [Example 1] provides a cloud gaming control method, the method comprising:
[0125] When a controller connection event is received, the preset device information of the corresponding controller device is obtained;
[0126] The game controller is registered by interacting with the target cloud gaming server based on the preset device information, and a device management number is assigned to the successfully registered game controller.
[0127] The controller operation event is acquired, and the controller operation event is forwarded to the target cloud gaming server based on the device management number associated with the controller operation event, so as to realize the corresponding cloud gaming operation control.
[0128] According to one or more embodiments of this disclosure, [Example 2] provides a cloud gaming control method, which further includes:
[0129] In some alternative implementations, the method further includes:
[0130] Establish a signaling channel between the successfully registered gamepad device and the target cloud gaming server, and save the mapping relationship between the device management number of the successfully registered gamepad device and the signaling channel.
[0131] According to one or more embodiments of this disclosure, [Example 3] provides a cloud gaming control method, including:
[0132] In some optional implementations, the controller operation event is forwarded to the target cloud gaming server based on the device management number associated with the controller operation event, including:
[0133] Based on the device management number associated with the handle operation event and the mapping relationship, determine the target signaling channel for forwarding the handle operation event;
[0134] The controller operation event is forwarded to the target cloud gaming server through the target signaling channel.
[0135] According to one or more embodiments of this disclosure, [Example 4] provides a cloud gaming control method, which further includes:
[0136] In some alternative implementations, the method further includes, before forwarding the handle action event:
[0137] Verify the registration and connection status of the controller device associated with the controller operation event.
[0138] According to one or more embodiments of this disclosure, [Example 5] provides a cloud gaming control method, which further includes:
[0139] In some optional implementations, a handle connection event is obtained, including:
[0140] In response to a device connection signal from a preset physical interface, a controller connection event is received; or...
[0141] In response to the virtual controller creation command, a controller connection event is received.
[0142] According to one or more embodiments of this disclosure, [Example Six] provides a cloud gaming control method, further comprising:
[0143] In some alternative implementations, the method further includes:
[0144] Obtain registration cancellation information for any of the aforementioned controller devices;
[0145] Based on the device management number associated with the registration cancellation information, the blocking of the controller operation events of the controller device is canceled, and the registration information of the controller device is removed.
[0146] According to one or more embodiments of this disclosure, [Example Seven] provides a cloud gaming control method, further comprising:
[0147] In some optional implementations, the controller operation events are forwarded to the target cloud gaming server to achieve corresponding cloud gaming operation control, including:
[0148] The controller operation event is forwarded to the target cloud gaming server, so that the target cloud gaming server parses the controller operation event according to the preset protocol rules, and adds the control command corresponding to the parsing result to the corresponding cloud gaming process, thereby realizing the cloud gaming operation control process.
[0149] According to one or more embodiments of this disclosure, [Example Eight] provides a cloud gaming control device, including:
[0150] The controller connection detection module is used to obtain the preset device information of the corresponding controller device each time a controller connection event is detected.
[0151] The controller registration module is used to interact with the target cloud gaming server based on the preset device information to register the controller device, and to determine a device management number for the successfully registered controller device.
[0152] The game control command acquisition module is used to acquire gamepad operation events and forward the gamepad operation events to the target cloud gaming server based on the device management number associated with the gamepad operation events, so as to realize the corresponding cloud gaming operation control.
[0153] According to one or more embodiments of this disclosure, [Example Nine] provides a cloud gaming control device, further comprising:
[0154] In an optional implementation, the handle registration module can also be used for:
[0155] Establish a signaling channel between the successfully registered gamepad device and the target cloud gaming server, and save the mapping relationship between the device management number of the successfully registered gamepad device and the signaling channel.
[0156] According to one or more embodiments of this disclosure, [Example 10] provides a cloud gaming control device, further comprising:
[0157] In one optional implementation, the game control command acquisition module is specifically used for:
[0158] Based on the device management number associated with the handle operation event and the mapping relationship, determine the target signaling channel for forwarding the handle operation event;
[0159] The controller operation event is forwarded to the target cloud gaming server through the target signaling channel.
[0160] According to one or more embodiments of this disclosure, [Example 11] provides a cloud gaming control device, further comprising:
[0161] In one alternative implementation, the handle registration module can also be used for:
[0162] Before forwarding the controller operation event, verify the registration connection status of the controller device associated with the controller operation event.
[0163] According to one or more embodiments of this disclosure, [Example Twelve] provides a cloud gaming control device, further comprising:
[0164] In one optional implementation, the handle connection detection module is specifically used for:
[0165] A controller connection event is received, including:
[0166] In response to a device connection signal from a preset physical interface, a controller connection event is received; or...
[0167] In response to the virtual controller creation command, a controller connection event is received.
[0168] According to one or more embodiments of this disclosure, [Example Thirteen] provides a cloud gaming control device, further comprising:
[0169] In an optional implementation, the handle registration module is further configured to:
[0170] Obtain registration cancellation information for any of the aforementioned controller devices;
[0171] Based on the device management number associated with the registration cancellation information, the blocking of the controller operation events of the controller device is canceled, and the registration information of the controller device is removed.
[0172] According to one or more embodiments of this disclosure, [Example Fourteen] provides a cloud gaming control device, further comprising:
[0173] In one optional implementation, the game control command acquisition module is specifically used for:
[0174] Forwarding the controller operation events to the target cloud gaming server to achieve corresponding cloud gaming operation control includes:
[0175] The controller operation event is forwarded to the target cloud gaming server, so that the target cloud gaming server parses the controller operation event according to the preset protocol rules, and adds the control command corresponding to the parsing result to the corresponding cloud gaming process, thereby realizing the cloud gaming operation control process.
[0176] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0177] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0178] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A cloud gaming control method, applied to a cloud gaming client, characterized in that, include: When a controller connection event is received, the preset device information of the corresponding controller device is obtained; The game controller is registered by interacting with the target cloud gaming server based on the preset device information, and a device management number is assigned to the successfully registered game controller. The controller operation event is acquired, and the controller operation event is forwarded to the target cloud gaming server based on the device management number associated with the controller operation event, so as to realize the corresponding cloud gaming operation control.
2. The method according to claim 1, characterized in that, The method further includes: Establish a signaling channel between the successfully registered gamepad device and the target cloud gaming server, and save the mapping relationship between the device management number of the successfully registered gamepad device and the signaling channel.
3. The method according to claim 2, characterized in that, Forwarding the controller operation event to the target cloud gaming server based on the device management number associated with the controller operation event includes: Based on the device management number associated with the handle operation event and the mapping relationship, determine the target signaling channel for forwarding the handle operation event; The controller operation event is forwarded to the target cloud gaming server through the target signaling channel.
4. The method according to claim 1, characterized in that, Before forwarding the controller operation event, the method further includes: Verify the registration and connection status of the controller device associated with the controller operation event.
5. The method according to claim 1, characterized in that, A controller connection event is received, including: In response to a device connection signal from a preset physical interface, a controller connection event is received; or... In response to the virtual controller creation command, a controller connection event is received.
6. The method according to claim 1, characterized in that, The method further includes: Obtain registration cancellation information for any of the aforementioned controller devices; Based on the device management number associated with the registration cancellation information, the blocking of the controller operation events of the controller device is canceled, and the registration information of the controller device is removed.
7. The method according to any one of claims 1-6, characterized in that, Forwarding the controller operation events to the target cloud gaming server to achieve corresponding cloud gaming operation control includes: The controller operation event is forwarded to the target cloud gaming server, so that the target cloud gaming server parses the controller operation event according to the preset protocol rules, and adds the control command corresponding to the parsing result to the corresponding cloud gaming process, thereby realizing the cloud gaming operation control process.
8. A cloud gaming control device, characterized in that, include: The controller connection detection module is used to obtain the preset device information of the corresponding controller device each time a controller connection event is detected. The controller registration module is used to interact with the target cloud gaming server based on the preset device information to register the controller device, and to determine a device management number for the successfully registered controller device. The game control command acquisition module is used to acquire gamepad operation events and forward the gamepad operation events to the target cloud gaming server based on the device management number associated with the gamepad operation events, so as to realize the corresponding cloud gaming operation control.
9. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the cloud gaming control method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the cloud gaming control method as described in any one of claims 1-7.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the cloud gaming control method as described in any one of claims 1-7.