[go: up one dir, main page]

CN119987574B - Manipulation event processing method and device - Google Patents

Manipulation event processing method and device

Info

Publication number
CN119987574B
CN119987574B CN202510467427.0A CN202510467427A CN119987574B CN 119987574 B CN119987574 B CN 119987574B CN 202510467427 A CN202510467427 A CN 202510467427A CN 119987574 B CN119987574 B CN 119987574B
Authority
CN
China
Prior art keywords
event
user
keyboard
handle
manipulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202510467427.0A
Other languages
Chinese (zh)
Other versions
CN119987574A (en
Inventor
王笃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haima Cloud Tianjin Information Technology Co Ltd
Original Assignee
Haima Cloud Tianjin Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haima Cloud Tianjin Information Technology Co Ltd filed Critical Haima Cloud Tianjin Information Technology Co Ltd
Priority to CN202510467427.0A priority Critical patent/CN119987574B/en
Publication of CN119987574A publication Critical patent/CN119987574A/en
Application granted granted Critical
Publication of CN119987574B publication Critical patent/CN119987574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The application provides a method and a device for processing a control event, wherein the method comprises the steps of distributing a virtual keyboard for a first user when the first user applies for using a cloud application, distributing a virtual handle for a second user when the second user applies for using the cloud application, wherein physical input equipment used by the first user and the second user is a keyboard, receiving a first control event sent by terminal equipment of the first user, sending the keyboard event to a system of a cloud server through the virtual keyboard, and receiving a second control event sent by terminal equipment of the second user, and sending the handle event to the system of the cloud server through the virtual handle.

Description

操控事件处理方法与装置Control event processing method and device

技术领域Technical Field

本发明涉及云应用领域,特别涉及一种操控事件处理方法与装置。The present invention relates to the field of cloud applications, and in particular to a method and device for processing control events.

背景技术Background Art

目前在云应用领域中支持手柄输入方案,可允许多个用户使用手柄操控运行于云服务器中支持手柄和键盘操控的同一云应用,该云应用的画面依次经渲染、采集、编码过程后推送给用户进行解码、渲染显示。具体实现时,可以通过虚拟化技术将手柄映射至云服务器的独立输入接口,此方案支持最多4个用户通过手柄使用云应用。而由于键盘输入无法隔离,即多个用户的键盘输入在云服务器中会被识别为单一键盘输入,导致不同用户的键盘输入无法区分,从而导致此方案仅能支持手柄用户,无法支持至少两个键盘用户。Currently, the controller input solution is supported in the cloud application field, which allows multiple users to use the controller to control the same cloud application running on the cloud server that supports controller and keyboard control. The screen of the cloud application is pushed to the user for decoding and rendering after rendering, acquisition, and encoding. In specific implementation, the controller can be mapped to an independent input interface of the cloud server through virtualization technology. This solution supports up to 4 users to use the cloud application through the controller. However, since keyboard input cannot be isolated, that is, the keyboard input of multiple users will be recognized as a single keyboard input in the cloud server, resulting in the inability to distinguish the keyboard input of different users, so that this solution can only support controller users and cannot support at least two keyboard users.

因此,如何提供一种可实现至少两个键盘用户使用支持手柄和键盘操控的云应用的方案,成为亟待解决的技术问题。Therefore, how to provide a solution that enables at least two keyboard users to use cloud applications that support handle and keyboard control has become a technical problem that needs to be solved urgently.

发明内容Summary of the Invention

针对现有技术存在的技术问题,本申请实施例提供一种操控事件处理方法与装置。In order to solve the technical problems existing in the prior art, the embodiments of the present application provide a method and device for handling control events.

第一方面,本申请实施例提供了一种操控事件处理方法,应用于云服务器,包括:In a first aspect, an embodiment of the present application provides a method for processing a manipulation event, which is applied to a cloud server and includes:

在第一用户申请使用云应用时,为第一用户分配虚拟键盘,在第二用户申请使用云应用时,为第二用户分配虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;When a first user applies to use a cloud application, a virtual keyboard is allocated to the first user, and when a second user applies to use the cloud application, a virtual handle is allocated to the second user, wherein the physical input devices used by the first user and the second user are keyboards;

接收第一用户的终端设备发送的第一操控事件,将键盘事件通过虚拟键盘发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将手柄事件通过虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,键盘事件与第一操控事件相同,或者根据第一操控事件生成,手柄事件与第二操控事件相同,或者根据第二操控事件生成。A system that receives a first manipulation event sent by a terminal device of a first user and sends a keyboard event to a cloud server through a virtual keyboard, and a system that receives a second manipulation event sent by a terminal device of a second user and sends a handle event to a cloud server through a virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the keyboard event is the same as the first manipulation event, or is generated based on the first manipulation event, and the handle event is the same as the second manipulation event, or is generated based on the second manipulation event.

第二方面,本申请实施例还提供了一种操控事件处理方法,应用于云服务器,包括:In a second aspect, an embodiment of the present application further provides a method for handling manipulation events, which is applied to a cloud server and includes:

在第一用户申请使用云应用时,为第一用户分配第一虚拟手柄,在第二用户申请使用云应用时,为第二用户分配第二虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;When a first user applies to use a cloud application, a first virtual handle is allocated to the first user; when a second user applies to use the cloud application, a second virtual handle is allocated to the second user, wherein the physical input devices used by the first user and the second user are keyboards;

接收第一用户的终端设备发送的第一操控事件,将第一手柄事件通过第一虚拟手柄发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将第二手柄事件通过第二虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,第一手柄事件与第一操控事件相同,或者根据第一操控事件生成,第二手柄事件与第二操控事件相同,或者根据第二操控事件生成。A system that receives a first manipulation event sent by a terminal device of a first user and sends the first handle event to a cloud server through a first virtual handle, and a system that receives a second manipulation event sent by a terminal device of a second user and sends the second handle event to a cloud server through a second virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the first handle event is the same as the first manipulation event, or is generated based on the first manipulation event, and the second handle event is the same as the second manipulation event, or is generated based on the second manipulation event.

第三方面,本申请实施例还提供了一种操控事件处理方法,应用于终端设备,包括:In a third aspect, an embodiment of the present application further provides a method for handling a manipulation event, which is applied to a terminal device and includes:

根据用户操控键盘产生的键盘事件确定出操控事件,将操控事件发送给云服务器,以使云服务器将键盘事件通过预先为用户分配的虚拟键盘发送给云服务器的系统或将手柄事件通过预先为用户分配的虚拟手柄发送给云服务器的系统,其中,操控事件为用户操控键盘产生的键盘事件,或者根据用户操控键盘产生的键盘事件生成。A manipulation event is determined based on a keyboard event generated by a user manipulating the keyboard, and the manipulation event is sent to a cloud server, so that the cloud server sends the keyboard event to the cloud server system through a virtual keyboard pre-assigned to the user, or sends the handle event to the cloud server system through a virtual handle pre-assigned to the user, wherein the manipulation event is a keyboard event generated by a user manipulating the keyboard, or is generated based on a keyboard event generated by a user manipulating the keyboard.

第四方面,本申请实施例还提供了一种操控事件处理装置,应用于云服务器,包括:In a fourth aspect, an embodiment of the present application further provides a manipulation event processing device, which is applied to a cloud server and includes:

第一分配单元,用于在第一用户申请使用云应用时,为第一用户分配虚拟键盘,在第二用户申请使用云应用时,为第二用户分配虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;A first allocating unit is configured to allocate a virtual keyboard to the first user when the first user applies to use the cloud application, and allocate a virtual controller to the second user when the second user applies to use the cloud application, wherein the physical input devices used by the first user and the second user are keyboards;

第一发送单元,用于接收第一用户的终端设备发送的第一操控事件,将键盘事件通过虚拟键盘发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将手柄事件通过虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,键盘事件与第一操控事件相同,或者根据第一操控事件生成,手柄事件与第二操控事件相同,或者根据第二操控事件生成。The first sending unit is used to receive a first manipulation event sent by a terminal device of a first user, and send the keyboard event to the system of the cloud server through a virtual keyboard, and to receive a second manipulation event sent by a terminal device of a second user, and send the handle event to the system of the cloud server through a virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the keyboard event is the same as the first manipulation event, or is generated based on the first manipulation event, and the handle event is the same as the second manipulation event, or is generated based on the second manipulation event.

第五方面,本申请实施例还提供了一种操控事件处理装置,应用于云服务器,包括:In a fifth aspect, an embodiment of the present application further provides a manipulation event processing device, which is applied to a cloud server and includes:

第二分配单元,用于在第一用户申请使用云应用时,为第一用户分配第一虚拟手柄,在第二用户申请使用云应用时,为第二用户分配第二虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;a second allocating unit, configured to allocate a first virtual handle to the first user when the first user applies to use the cloud application, and allocate a second virtual handle to the second user when the second user applies to use the cloud application, wherein the physical input devices used by the first user and the second user are keyboards;

第二发送单元,用于接收第一用户的终端设备发送的第一操控事件,将第一手柄事件通过第一虚拟手柄发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将第二手柄事件通过第二虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,第一手柄事件与第一操控事件相同,或者根据第一操控事件生成,第二手柄事件与第二操控事件相同,或者根据第二操控事件生成。The second sending unit is used to receive a first manipulation event sent by a terminal device of a first user, and send the first handle event to a system of a cloud server through a first virtual handle, and to receive a second manipulation event sent by a terminal device of a second user, and send the second handle event to a system of a cloud server through a second virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the first handle event is the same as the first manipulation event, or is generated based on the first manipulation event, and the second handle event is the same as the second manipulation event, or is generated based on the second manipulation event.

第六方面,本申请实施例还提供了一种操控事件处理装置,应用于终端设备,包括:In a sixth aspect, an embodiment of the present application further provides a manipulation event processing device, applied to a terminal device, comprising:

确定单元,用于根据用户操控键盘产生的键盘事件确定出操控事件,将操控事件发送给云服务器,以使云服务器将键盘事件通过预先为用户分配的虚拟键盘发送给云服务器的系统或将手柄事件通过预先为用户分配的虚拟手柄发送给云服务器的系统,其中,操控事件为用户操控键盘产生的键盘事件,或者根据用户操控键盘产生的键盘事件生成。A determination unit is used to determine a manipulation event based on a keyboard event generated by a user manipulating a keyboard, and send the manipulation event to a cloud server so that the cloud server sends the keyboard event to the cloud server system through a virtual keyboard pre-assigned to the user, or sends the handle event to the cloud server system through a virtual handle pre-assigned to the user, wherein the manipulation event is a keyboard event generated by a user manipulating a keyboard, or is generated based on a keyboard event generated by a user manipulating a keyboard.

综上,本申请实施例提供的操控事件处理方法与装置,对于至少两个键盘用户,最多只为一个用户分配虚拟键盘,而为其他用户分配虚拟手柄,并将不同用户操控键盘产生的键盘事件对应的键盘事件/手柄事件通过虚拟键盘/虚拟手柄发送给云服务器的系统,也就是说最多只允许根据一个用户的键盘输入来模拟键盘输入,并根据其他用户的键盘输入来模拟手柄输入,而云服务器支持多个手柄的输入,如此可将不同用户的键盘输入区分开,从而实现至少两个键盘用户使用支持手柄和键盘操控的云应用。In summary, the control event processing method and device provided in the embodiments of the present application, for at least two keyboard users, only assign a virtual keyboard to one user at most, and assign virtual handles to other users, and send the keyboard events/handle events corresponding to the keyboard events generated by different users manipulating the keyboard to the cloud server system through the virtual keyboard/virtual handle. That is to say, at most, it is allowed to simulate keyboard input based on the keyboard input of one user, and simulate handle input based on the keyboard input of other users, and the cloud server supports the input of multiple handles, so that the keyboard input of different users can be distinguished, thereby enabling at least two keyboard users to use cloud applications that support handle and keyboard control.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例提供的一种操控事件处理方法的流程示意图;FIG1 is a flow chart of a method for handling a manipulation event according to an embodiment of the present application;

图2为本申请实施例提供的另一种操控事件处理方法的流程示意图;FIG2 is a flow chart of another method for handling manipulation events provided in an embodiment of the present application;

图3为本申请实施例提供的又一种操控事件处理方法的流程示意图;FIG3 is a flow chart of another method for handling a manipulation event provided in an embodiment of the present application;

图4为本申请实施例提供的一种操控事件处理装置的结构示意图;FIG4 is a schematic diagram of the structure of a manipulation event processing device provided in an embodiment of the present application;

图5为本申请实施例提供的另一种操控事件处理装置的结构示意图;FIG5 is a schematic diagram of the structure of another control event processing device provided in an embodiment of the present application;

图6为本申请实施例提供的又一种操控事件处理装置的结构示意图。FIG6 is a schematic structural diagram of another control event processing device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,应当理解,本申请中附图仅起到说明和描述的目的,并不用于限定本申请的保护范围。另外,应当理解,示意性的附图并未按实物比例绘制。本申请中使用的流程图示出了根据本申请的一些实施例实现的操作。应该理解,流程图的操作可以不按顺序实现,没有逻辑的上下文关系的步骤可以反转顺序或者同时实施。此外,本领域技术人员在本申请内容的指引下,可以向流程图添加一个或多个其他操作,也可以从流程图中移除一个或多个操作。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

另外,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

需要说明的是,本申请实施例中将会用到术语“包括”,用于指出其后所声明的特征的存在,但并不排除增加其它的特征。It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

参照图1所示,本申请实施例提供了一种操控事件处理方法的流程示意图,应用于云服务器,包括:1 , an embodiment of the present application provides a flow chart of a method for handling a manipulation event, which is applied to a cloud server and includes:

S10、在第一用户申请使用云应用时,为第一用户分配虚拟键盘,在第二用户申请使用云应用时,为第二用户分配虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;S10. When a first user applies to use a cloud application, a virtual keyboard is allocated to the first user. When a second user applies to use the cloud application, a virtual controller is allocated to the second user. The physical input devices used by the first user and the second user are keyboards.

本实施例中,需要说明的是,云应用为运行在云服务器中的应用,本实施例适用的云应用为需要至少两个用户共同参与的云应用(比如多人同屏游戏),适用的场景包括至少两个用户使用物理键盘来操控云应用,此种场景下会为一个键盘用户(即第一用户)分配虚拟键盘,其它键盘用户(即第二用户)分配虚拟手柄,而虚拟键盘和虚拟手柄的创建时机可以根据需要设置,比如在相应的用户申请使用云应用时创建或者在相应的用户申请使用云应用前创建。In this embodiment, it should be noted that the cloud application is an application running in the cloud server. The cloud application applicable to this embodiment is a cloud application that requires the participation of at least two users (such as multi-person same-screen games). The applicable scenarios include at least two users using a physical keyboard to control the cloud application. In this scenario, a virtual keyboard will be assigned to one keyboard user (i.e., the first user), and a virtual handle will be assigned to the other keyboard user (i.e., the second user). The timing of creating the virtual keyboard and virtual handle can be set as needed, such as creating them when the corresponding user applies to use the cloud application or before the corresponding user applies to use the cloud application.

S11、接收第一用户的终端设备发送的第一操控事件,将键盘事件通过虚拟键盘发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将手柄事件通过虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,键盘事件与第一操控事件相同,或者根据第一操控事件生成,手柄事件与第二操控事件相同,或者根据第二操控事件生成。S11. A system that receives a first manipulation event sent by a terminal device of a first user and sends a keyboard event to a cloud server through a virtual keyboard, and a system that receives a second manipulation event sent by a terminal device of a second user and sends a handle event to a cloud server through a virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the keyboard event is the same as the first manipulation event, or is generated based on the first manipulation event, and the handle event is the same as the second manipulation event, or is generated based on the second manipulation event.

本实施例中,需要说明的是,第一用户操控键盘产生的键盘事件最终需要转换为步骤S11中的键盘事件通过虚拟键盘发送给云服务器的系统,分为二种情况:其一,第一用户操控键盘产生的键盘事件与步骤S11中的键盘事件相同;其二,需要将第一用户操控键盘产生的键盘事件映射为步骤S11中的键盘事件,比如将按下A键产生的键盘事件映射为按下云服务器的键盘的B键会产生的键盘事件,或者将按下A键产生的键盘事件映射为按下云服务器的键盘的A键会产生的键盘事件(按下A键产生的键盘事件与按下云服务器的键盘的A键会产生的键盘事件不同)。相应的,第一操控事件可以为从第一用户操控键盘产生的键盘事件转换为步骤S11中的键盘事件整个过程中的任意阶段的数据,如果第一操控事件为步骤S11中的键盘事件,则云服务器直接将第一操控事件通过虚拟键盘发送给云服务器的系统;而如果第一操控事件不是步骤S11中的键盘事件,则云服务器需要将第一操控事件转换为步骤S11中的键盘事件后,将步骤S11中的键盘事件通过虚拟键盘发送给云服务器的系统。也就是说,将第一用户操控键盘产生的键盘事件转换为步骤S11中的键盘事件的过程可以由第一用户的终端设备执行,也可以由云服务器执行,或者由第一用户的终端设备和云服务器协同执行。In this embodiment, it should be noted that the keyboard event generated by the first user operating the keyboard ultimately needs to be converted into the keyboard event in step S11 and sent to the cloud server system through the virtual keyboard. There are two situations: first, the keyboard event generated by the first user operating the keyboard is the same as the keyboard event in step S11; second, the keyboard event generated by the first user operating the keyboard needs to be mapped to the keyboard event in step S11, for example, the keyboard event generated by pressing the A key is mapped to the keyboard event generated by pressing the B key of the cloud server keyboard, or the keyboard event generated by pressing the A key is mapped to the keyboard event generated by pressing the A key of the cloud server keyboard (the keyboard event generated by pressing the A key is different from the keyboard event generated by pressing the A key of the cloud server keyboard). Accordingly, the first manipulation event can be data from any stage of the entire process of converting the keyboard event generated by the first user manipulating the keyboard into the keyboard event in step S11. If the first manipulation event is the keyboard event in step S11, the cloud server directly sends the first manipulation event to the cloud server system via the virtual keyboard. If the first manipulation event is not the keyboard event in step S11, the cloud server needs to convert the first manipulation event into the keyboard event in step S11 and then send the keyboard event in step S11 to the cloud server system via the virtual keyboard. In other words, the process of converting the keyboard event generated by the first user manipulating the keyboard into the keyboard event in step S11 can be performed by the first user's terminal device, or by the cloud server, or by the first user's terminal device and the cloud server in collaboration.

类似地,第二用户操控键盘产生的键盘事件最终需要转换为步骤S11中的手柄事件通过虚拟手柄发送给云服务器的系统,其中涉及到的部分键盘按键与手柄交互组件的映射关系可以如下表所示:Similarly, the keyboard events generated by the second user manipulating the keyboard ultimately need to be converted into handle events in step S11 and sent to the cloud server system via the virtual handle. The mapping relationship between some keyboard keys and handle interaction components involved can be shown in the following table:

部分键盘按键与手柄交互组件的映射关系表Mapping relationship table of some keyboard keys and handle interaction components

键盘按键keyboard keys 映射手柄操作Mapping handle operations 功能描述Functional Description WW 左摇杆上推Push the left stick up 角色向前移动The character moves forward SS 左摇杆下推Push the left stick down 角色向后移动The character moves backward AA 左摇杆左推Push the left stick left 角色向左移动The character moves left DD 左摇杆右推Push the left stick right 角色向右移动The character moves right 方向键上Up arrow key 菜单向上选择Menu Up Select 方向键下Arrow key down 菜单向下选择Menu down selection 方向键左Arrow key left 菜单向左选择Menu left selection 方向键右Arrow key right 菜单向右选择Menu right selection SpaceSpace A键按下A key pressed 确认/跳跃/交互Confirm/Jump/Interact JJ B键按下B key pressed 取消/闪避Cancel/Dodge KK X键按下X key pressed 攻击/技能1Attack/Skill 1 LL Y键按下Y key pressed 特殊技能/切换武器Special Skills/Switch Weapons EE 右摇杆上推Push the right stick up 视角向上调整Adjust the viewing angle upwards QQ 右摇杆下推Push the right stick down 视角向下调整Adjust the viewing angle downward UU 左扳机键按下Left trigger pressed 瞄准/防御Aim/Defend OO 右扳机键按下Right trigger pressed 射击/加速Shooting/Acceleration MM Start键按下Start key pressed 打开游戏菜单Open the game menu , Select键按下Select key pressed 地图/状态切换Map/status switching ShiftShift 左扳机键半按Left trigger button halfway pressed 步行/潜行Walking/Sneaking CtrlCtrl 右扳机键半按Right trigger half-press 精确操作模式Precision operation mode

按照上表中的映射关系,如果第二用户按下键盘上W键,则按下W键产生的键盘事件最终需要转换为上推左摇杆会产生的手柄事件。上表中键盘按键与手柄交互组件的映射关系只是一个简单实施方式,可以根据需要设置键盘按键与手柄交互组件的其它简单或更复杂的映射关系,比如多个/单个键盘按键与单个/多个手柄组件的映射关系等。键盘事件转换为手柄事件的转换过程类似第一用户操控键盘产生的键盘事件转换为步骤S11中的键盘事件的过程,可以由第二用户的终端设备或云服务器单独执行,或者由第二用户的终端设备和云服务器协同执行,而第二操控事件的内容则由转换方式确定,比如,如果由第二用户的终端设备单独执行,则第二操控事件为最终转换得到的手柄事件,再比如,如果由云服务器单独执行,则第二操控事件为第二用户操控键盘产生的键盘事件,再比如,如果由第二用户的终端设备和云服务器协同执行,则第二操控事件为第二用户的终端设备的执行结果,则可以为从第二用户操控键盘产生的键盘事件转换为步骤S11中的手柄事件整个过程中的任意阶段的数据。步骤S11中的手柄事件中还可以添加有虚拟手柄的标识,以区分不同键盘的输入。According to the mapping relationship in the above table, if the second user presses the W key on the keyboard, the keyboard event generated by pressing the W key will eventually be converted into a handle event generated by pushing the left joystick up. The mapping relationship between keyboard keys and handle interaction components in the above table is only a simple implementation method. Other simple or more complex mapping relationships between keyboard keys and handle interaction components can be set as needed, such as mapping relationships between multiple/single keyboard keys and single/multiple handle components. The conversion process of keyboard events into handle events is similar to the process of converting keyboard events generated by the first user manipulating the keyboard into keyboard events in step S11. It can be executed independently by the second user's terminal device or cloud server, or by the second user's terminal device and cloud server in collaboration. The content of the second manipulation event is determined by the conversion method. For example, if it is executed independently by the second user's terminal device, the second manipulation event is the handle event finally converted. For another example, if it is executed independently by the cloud server, the second manipulation event is the keyboard event generated by the second user manipulating the keyboard. For another example, if it is executed jointly by the second user's terminal device and cloud server, the second manipulation event is the execution result of the second user's terminal device. It can be data at any stage of the entire process of converting the keyboard event generated by the second user manipulating the keyboard into the handle event in step S11. The handle event in step S11 may also include a virtual handle identifier to distinguish inputs from different keyboards.

另外,需要说明的是,对于需要单独操控的至少两个键盘按键,如果第一用户/第二用户同时操控该至少两个键盘按键,则最终通过虚拟键盘/虚拟手柄发送给云服务器的系统的是最后操控的键盘按键对应的键盘事件/手柄事件。In addition, it should be noted that for at least two keyboard keys that need to be manipulated separately, if the first user/second user manipulates the at least two keyboard keys at the same time, what is ultimately sent to the cloud server system through the virtual keyboard/virtual handle is the keyboard event/handle event corresponding to the last manipulated keyboard key.

本申请实施例提供的操控事件处理方法,对于至少两个键盘用户,只为一个用户分配虚拟键盘,而为其他用户分配虚拟手柄,并将不同用户操控键盘产生的键盘事件对应的键盘事件/手柄事件通过虚拟键盘/虚拟手柄发送给云服务器的系统,也就是说只允许根据一个用户的键盘输入来模拟键盘输入,并根据其他用户的键盘输入来模拟手柄输入,而云服务器支持多个手柄的输入,如此可将不同用户的键盘输入区分开,从而实现至少两个键盘用户使用支持手柄和键盘操控的云应用。The control event processing method provided in the embodiment of the present application, for at least two keyboard users, only allocates a virtual keyboard to one user, and allocates virtual handles to other users, and sends the keyboard events/handle events corresponding to the keyboard events generated by different users manipulating the keyboard to the cloud server system through the virtual keyboard/virtual handle. That is to say, it is only allowed to simulate keyboard input based on the keyboard input of one user, and simulate handle input based on the keyboard input of other users. The cloud server supports the input of multiple handles, so that the keyboard input of different users can be distinguished, thereby enabling at least two keyboard users to use cloud applications that support handle and keyboard control.

在前述方法实施例的基础上,手柄事件的生成过程,可以包括:Based on the aforementioned method embodiment, the process of generating a handle event may include:

将第二操控事件映射为中间手柄事件,在中间手柄事件中添加虚拟手柄的标识得到手柄事件;或者Map the second manipulation event to an intermediate handle event, and add the virtual handle identifier to the intermediate handle event to obtain a handle event; or

在中间手柄事件中添加虚拟手柄的标识得到手柄事件,其中,第二操控事件为中间手柄事件。The identifier of the virtual handle is added to the middle handle event to obtain a handle event, wherein the second control event is the middle handle event.

本实施例中,需要说明的是,可以由云服务器来单独完成键盘事件到手柄事件的转换过程,具体地,可以接收第二用户的终端设备发送的作为第二操控事件的键盘事件,先将键盘事件映射为中间手柄事件,再在中间手柄事件中添加虚拟手柄的标识得到手柄事件。或者可以由第二用户的终端设备和云服务器协同完成键盘事件到手柄事件的转换过程,比如,可以由第二用户的终端设备先将键盘事件映射为中间手柄事件,将中间手柄事件作为第二操控事件发送给云服务器,再由云服务器在中间手柄事件中添加虚拟手柄的标识得到手柄事件。或者可以由第二用户的终端设备单独完成键盘事件到手柄事件的转换过程,具体地,可以先将键盘事件映射为中间手柄事件,再在中间手柄事件中添加虚拟手柄的标识得到手柄事件,之后将手柄事件作为第二操控事件发送给云服务器。中间手柄事件可以指示特定的手柄组件被操控,比如可以指示A键被按下,最终通过虚拟手柄发送给云服务器的系统的手柄事件相较于中间手柄事件多了虚拟手柄的标识。In this embodiment, it should be noted that the cloud server can independently complete the conversion process from keyboard events to controller events. Specifically, it can receive a keyboard event sent by the second user's terminal device as the second manipulation event, first map the keyboard event to an intermediate controller event, and then add the virtual controller identifier to the intermediate controller event to obtain the controller event. Alternatively, the second user's terminal device and the cloud server can collaboratively complete the conversion process from keyboard events to controller events. For example, the second user's terminal device can first map the keyboard event to an intermediate controller event, send the intermediate controller event to the cloud server as the second manipulation event, and then the cloud server can add the virtual controller identifier to the intermediate controller event to obtain the controller event. Alternatively, the second user's terminal device can independently complete the conversion process from keyboard events to controller events. Specifically, it can first map the keyboard event to an intermediate controller event, then add the virtual controller identifier to the intermediate controller event to obtain the controller event, and then send the controller event to the cloud server as the second manipulation event. The intermediate controller event can indicate that a specific controller component has been manipulated, such as indicating that the A key has been pressed. The controller event of the system sent to the cloud server via the virtual controller will include the virtual controller identifier compared to the intermediate controller event.

参照图2所示,本申请实施例提供了一种操控事件处理方法的流程示意图,应用于云服务器,包括:2 , an embodiment of the present application provides a flow chart of a method for handling a manipulation event, which is applied to a cloud server and includes:

S20、在第一用户申请使用云应用时,为第一用户分配第一虚拟手柄,在第二用户申请使用云应用时,为第二用户分配第二虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;S20. When a first user applies to use the cloud application, assign a first virtual handle to the first user; when a second user applies to use the cloud application, assign a second virtual handle to the second user, wherein the physical input devices used by the first user and the second user are keyboards;

本实施例中,需要说明的是,本实施例适用的场景与图1所示实施例适用的场景相同,但处理过程与图1所示实施例略有不同。本实施例不再如图1所示实施例为一个键盘用户分配虚拟键盘,而是为不同的键盘用户分配不同的虚拟手柄,即为第一用户分配第一虚拟手柄,为第二用户分配第二虚拟手柄,为第三用户分配不同于第一虚拟手柄和第二虚拟手柄的第三虚拟手柄等等。In this embodiment, it should be noted that the applicable scenario of this embodiment is the same as the applicable scenario of the embodiment shown in Figure 1, but the processing process is slightly different from the embodiment shown in Figure 1. In this embodiment, instead of assigning a virtual keyboard to a keyboard user as shown in the embodiment of Figure 1, different virtual handles are assigned to different keyboard users, that is, a first virtual handle is assigned to the first user, a second virtual handle is assigned to the second user, and a third virtual handle that is different from the first and second virtual handles is assigned to the third user, and so on.

S21、接收第一用户的终端设备发送的第一操控事件,将第一手柄事件通过第一虚拟手柄发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将第二手柄事件通过第二虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,第一手柄事件与第一操控事件相同,或者根据第一操控事件生成,第二手柄事件与第二操控事件相同,或者根据第二操控事件生成。S21. A system that receives a first manipulation event sent by a terminal device of a first user, and sends the first handle event to a cloud server through a first virtual handle, and a system that receives a second manipulation event sent by a terminal device of a second user, and sends the second handle event to a cloud server through a second virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the first handle event is the same as the first manipulation event, or is generated based on the first manipulation event, and the second handle event is the same as the second manipulation event, or is generated based on the second manipulation event.

本实施例中,需要说明的是,不同用户的键盘输入产生的键盘事件需要对应转换为手柄事件通过对应的虚拟手柄发送给云服务器的系统,如此,可以将不同键盘用户的键盘输入在云服务器侧模拟为不同的手柄输入,从而实现不同键盘用户的键盘输入的隔离。不同用户对应的手柄事件通过为用户分配的虚拟手柄的标识区分,将键盘事件转换为手柄事件的过程可参考图1所示实施例,此处不再赘述。In this embodiment, it should be noted that the keyboard events generated by keyboard input from different users need to be converted into corresponding handle events and sent to the cloud server system via the corresponding virtual handle. In this way, the keyboard inputs of different keyboard users can be simulated as different handle inputs on the cloud server side, thereby isolating the keyboard inputs of different keyboard users. The handle events corresponding to different users are distinguished by the identifiers of the virtual handles assigned to the users. The process of converting keyboard events into handle events can be referred to the embodiment shown in Figure 1 and will not be repeated here.

本申请实施例提供的操控事件处理方法,对于至少两个键盘用户,为这些用户分配虚拟手柄,并将不同用户操控键盘产生的键盘事件对应的手柄事件通过虚拟手柄发送给云服务器的系统,也就是说根据这些用户的键盘输入来模拟手柄输入,而云服务器支持多个手柄的输入,如此可将不同用户的键盘输入区分开,从而实现至少两个键盘用户使用支持手柄和键盘操控的云应用。The control event processing method provided in the embodiment of the present application assigns virtual handles to at least two keyboard users, and sends handle events corresponding to keyboard events generated by different users operating the keyboard to the cloud server system through the virtual handle. In other words, the handle input is simulated based on the keyboard input of these users, and the cloud server supports the input of multiple handles. In this way, the keyboard input of different users can be distinguished, thereby enabling at least two keyboard users to use cloud applications that support handle and keyboard control.

在前述方法实施例的基础上,第一手柄事件的生成过程,可以包括:Based on the aforementioned method embodiment, the process of generating the first handle event may include:

将第一操控事件映射为中间手柄事件,在中间手柄事件中添加第一虚拟手柄的标识得到第一手柄事件;或者Mapping the first manipulation event to an intermediate handle event, and adding the identifier of the first virtual handle to the intermediate handle event to obtain the first handle event; or

在中间手柄事件中添加第一虚拟手柄的标识得到第一手柄事件,其中,第一操控事件为中间手柄事件。The identifier of the first virtual handle is added to the middle handle event to obtain a first handle event, wherein the first manipulation event is the middle handle event.

参照图3所示,本申请实施例提供了一种操控事件处理方法的流程示意图,应用于终端设备,包括:3 , an embodiment of the present application provides a flowchart of a method for handling a manipulation event, which is applied to a terminal device and includes:

S30、根据用户操控键盘产生的键盘事件确定出操控事件,将操控事件发送给云服务器,以使云服务器将键盘事件通过预先为用户分配的虚拟键盘发送给云服务器的系统或将手柄事件通过预先为用户分配的虚拟手柄发送给云服务器的系统,其中,操控事件为用户操控键盘产生的键盘事件,或者根据用户操控键盘产生的键盘事件生成。S30. Determine a manipulation event based on a keyboard event generated by the user manipulating the keyboard, and send the manipulation event to a cloud server, so that the cloud server sends the keyboard event to the cloud server's system through a virtual keyboard pre-assigned to the user, or sends the handle event to the cloud server's system through a virtual handle pre-assigned to the user, wherein the manipulation event is a keyboard event generated by the user manipulating the keyboard, or is generated based on a keyboard event generated by the user manipulating the keyboard.

本实施例中,需要说明的是,本实施例为图1所示实施例和图2所示实施例对应的终端设备侧的执行逻辑。终端设备只负责确定出操控事件,并将操控事件发送给云服务器,云服务器侧的执行逻辑可参照图1所示实施例和图2所示实施例,操控事件的内容可参照图1所示实施例中的第一操控事件和第二操控事件,此处不再赘述。In this embodiment, it should be noted that this embodiment is the execution logic on the terminal device side corresponding to the embodiments shown in Figures 1 and 2. The terminal device is only responsible for determining the manipulation event and sending the manipulation event to the cloud server. The execution logic on the cloud server side can refer to the embodiments shown in Figures 1 and 2. The content of the manipulation event can refer to the first manipulation event and the second manipulation event in the embodiment shown in Figure 1, and will not be repeated here.

本申请实施例提供的操控事件处理方法,根据用户操控键盘产生的键盘事件确定出操控事件,将操控事件发送给云服务器,便于云服务器将不同用户操控键盘产生的键盘事件对应的键盘事件/手柄事件通过虚拟键盘/虚拟手柄发送给云服务器的系统,也就是说最多只允许根据一个用户的键盘输入来模拟键盘输入,并根据其他用户的键盘输入来模拟手柄输入,而云服务器支持多个手柄的输入,如此可将不同用户的键盘输入区分开,从而实现至少两个键盘用户使用支持手柄和键盘操控的云应用。The control event processing method provided in the embodiment of the present application determines the control event based on the keyboard event generated by the user manipulating the keyboard, and sends the control event to the cloud server, so that the cloud server can send the keyboard events/handle events corresponding to the keyboard events generated by different users manipulating the keyboard to the cloud server system through the virtual keyboard/virtual handle. In other words, it is only allowed to simulate keyboard input based on the keyboard input of one user at most, and simulate handle input based on the keyboard input of other users. The cloud server supports the input of multiple handles, so that the keyboard input of different users can be distinguished, thereby enabling at least two keyboard users to use cloud applications that support handle and keyboard control.

在前述方法实施例的基础上,操控事件为对用户操控键盘产生的键盘事件进行映射得到的键盘事件,或者对用户操控键盘产生的键盘事件进行映射得到的手柄事件,或者在对用户操控键盘产生的键盘事件进行映射得到的手柄事件中添加虚拟手柄的标识得到的数据。Based on the aforementioned method embodiment, the control event is a keyboard event obtained by mapping the keyboard event generated by the user operating the keyboard, or a handle event obtained by mapping the keyboard event generated by the user operating the keyboard, or data obtained by adding a virtual handle identifier to the handle event mapped to the keyboard event generated by the user operating the keyboard.

参照图4所示,本申请实施例提供了一种操控事件处理装置的结构示意图,应用于云服务器,包括:4 , an embodiment of the present application provides a schematic structural diagram of a manipulation event processing device, which is applied to a cloud server and includes:

第一分配单元40,用于在第一用户申请使用云应用时,为第一用户分配虚拟键盘,在第二用户申请使用云应用时,为第二用户分配虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;A first allocating unit 40 is configured to allocate a virtual keyboard to the first user when the first user applies to use the cloud application, and allocate a virtual controller to the second user when the second user applies to use the cloud application, wherein the physical input devices used by the first user and the second user are keyboards;

第一发送单元41,用于接收第一用户的终端设备发送的第一操控事件,将键盘事件通过虚拟键盘发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将手柄事件通过虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,键盘事件与第一操控事件相同,或者根据第一操控事件生成,手柄事件与第二操控事件相同,或者根据第二操控事件生成。The first sending unit 41 is used to receive a first manipulation event sent by a terminal device of a first user, and send the keyboard event to the system of the cloud server through a virtual keyboard, and to receive a second manipulation event sent by a terminal device of a second user, and send the handle event to the system of the cloud server through a virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the keyboard event is the same as the first manipulation event, or is generated based on the first manipulation event, and the handle event is the same as the second manipulation event, or is generated based on the second manipulation event.

本申请实施例提供的操控事件处理装置,对于至少两个键盘用户,只为一个用户分配虚拟键盘,而为其他用户分配虚拟手柄,并将不同用户操控键盘产生的键盘事件对应的键盘事件/手柄事件通过虚拟键盘/虚拟手柄发送给云服务器的系统,也就是说只允许根据一个用户的键盘输入来模拟键盘输入,并根据其他用户的键盘输入来模拟手柄输入,而云服务器支持多个手柄的输入,如此可将不同用户的键盘输入区分开,从而实现至少两个键盘用户使用支持手柄和键盘操控的云应用。The control event processing device provided in the embodiment of the present application, for at least two keyboard users, only allocates a virtual keyboard to one user, and allocates virtual handles to other users, and sends the keyboard events/handle events corresponding to the keyboard events generated by different users manipulating the keyboard to the cloud server system through the virtual keyboard/virtual handle. That is to say, it is only allowed to simulate keyboard input based on the keyboard input of one user, and simulate handle input based on the keyboard input of other users. The cloud server supports the input of multiple handles, so that the keyboard input of different users can be distinguished, thereby enabling at least two keyboard users to use cloud applications that support handle and keyboard control.

参照图5所示,本申请实施例提供了一种操控事件处理装置的结构示意图,应用于云服务器,包括:5 , an embodiment of the present application provides a schematic structural diagram of a manipulation event processing device, which is applied to a cloud server and includes:

第二分配单元50,用于在第一用户申请使用云应用时,为第一用户分配第一虚拟手柄,在第二用户申请使用云应用时,为第二用户分配第二虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;A second allocation unit 50 is configured to allocate a first virtual handle to the first user when the first user applies to use the cloud application, and allocate a second virtual handle to the second user when the second user applies to use the cloud application, wherein the physical input devices used by the first user and the second user are keyboards;

第二发送单元51,用于接收第一用户的终端设备发送的第一操控事件,将第一手柄事件通过第一虚拟手柄发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将第二手柄事件通过第二虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,第一手柄事件与第一操控事件相同,或者根据第一操控事件生成,第二手柄事件与第二操控事件相同,或者根据第二操控事件生成。The second sending unit 51 is used to receive a first manipulation event sent by a terminal device of a first user, and send the first handle event to the system of the cloud server through a first virtual handle, and to receive a second manipulation event sent by a terminal device of a second user, and send the second handle event to the system of the cloud server through a second virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the first handle event is the same as the first manipulation event, or is generated based on the first manipulation event, and the second handle event is the same as the second manipulation event, or is generated based on the second manipulation event.

本申请实施例提供的操控事件处理装置,对于至少两个键盘用户,为这些用户分配虚拟手柄,并将不同用户操控键盘产生的键盘事件对应的手柄事件通过虚拟手柄发送给云服务器的系统,也就是说根据这些用户的键盘输入来模拟手柄输入,而云服务器支持多个手柄的输入,如此可将不同用户的键盘输入区分开,从而实现至少两个键盘用户使用支持手柄和键盘操控的云应用。The control event processing device provided in the embodiment of the present application assigns virtual handles to at least two keyboard users, and sends handle events corresponding to keyboard events generated by different users operating the keyboard to the cloud server system through the virtual handle. In other words, the handle input is simulated based on the keyboard input of these users, and the cloud server supports the input of multiple handles. In this way, the keyboard input of different users can be distinguished, thereby enabling at least two keyboard users to use cloud applications that support handle and keyboard control.

参照图6所示,本申请实施例提供了一种操控事件处理装置的结构示意图,应用于终端设备,包括:6 , an embodiment of the present application provides a schematic structural diagram of a manipulation event processing device, which is applied to a terminal device and includes:

确定单元60,用于根据用户操控键盘产生的键盘事件确定出操控事件,将操控事件发送给云服务器,以使云服务器将键盘事件通过预先为用户分配的虚拟键盘发送给云服务器的系统或将手柄事件通过预先为用户分配的虚拟手柄发送给云服务器的系统,其中,操控事件为用户操控键盘产生的键盘事件,或者根据用户操控键盘产生的键盘事件生成。The determination unit 60 is used to determine the manipulation event based on the keyboard event generated by the user manipulating the keyboard, and send the manipulation event to the cloud server, so that the cloud server sends the keyboard event to the cloud server system through a virtual keyboard pre-assigned to the user, or sends the handle event to the cloud server system through a virtual handle pre-assigned to the user, wherein the manipulation event is a keyboard event generated by the user manipulating the keyboard, or is generated based on the keyboard event generated by the user manipulating the keyboard.

本申请实施例提供的操控事件处理装置,根据用户操控键盘产生的键盘事件确定出操控事件,将操控事件发送给云服务器,便于云服务器将不同用户操控键盘产生的键盘事件对应的键盘事件/手柄事件通过虚拟键盘/虚拟手柄发送给云服务器的系统,也就是说最多只允许根据一个用户的键盘输入来模拟键盘输入,并根据其他用户的键盘输入来模拟手柄输入,而云服务器支持多个手柄的输入,如此可将不同用户的键盘输入区分开,从而实现至少两个键盘用户使用支持手柄和键盘操控的云应用。The control event processing device provided in the embodiment of the present application determines the control event based on the keyboard event generated by the user operating the keyboard, and sends the control event to the cloud server, so that the cloud server can send the keyboard events/handle events corresponding to the keyboard events generated by different users operating the keyboard to the cloud server system through the virtual keyboard/virtual handle. In other words, it is only allowed to simulate keyboard input based on the keyboard input of one user at most, and simulate handle input based on the keyboard input of other users. The cloud server supports the input of multiple handles, so that the keyboard input of different users can be distinguished, thereby enabling at least two keyboard users to use cloud applications that support handle and keyboard control.

本申请实施例提供的操控事件处理装置,其实现过程与本申请实施例提供的操控事件处理方法一致,所能达到的效果也与本申请实施例提供的操控事件处理方法相同,在此不再赘述。The control event processing device provided in the embodiment of the present application has an implementation process consistent with the control event processing method provided in the embodiment of the present application, and the effect that can be achieved is also the same as the control event processing method provided in the embodiment of the present application, which will not be repeated here.

以上仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims (9)

1.一种操控事件处理方法,其特征在于,应用于云服务器,包括:1. A method for handling manipulation events, characterized in that it is applied to a cloud server and comprises: 在第一用户申请使用云应用时,为第一用户分配虚拟键盘,在第二用户申请使用云应用时,为第二用户分配虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;When a first user applies to use a cloud application, a virtual keyboard is allocated to the first user, and when a second user applies to use the cloud application, a virtual handle is allocated to the second user, wherein the physical input devices used by the first user and the second user are keyboards; 接收第一用户的终端设备发送的第一操控事件,将键盘事件通过虚拟键盘发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将手柄事件通过虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,键盘事件与第一操控事件相同,或者根据第一操控事件生成,手柄事件与第二操控事件相同,或者根据第二操控事件生成。A system that receives a first manipulation event sent by a terminal device of a first user and sends a keyboard event to a cloud server through a virtual keyboard, and a system that receives a second manipulation event sent by a terminal device of a second user and sends a handle event to a cloud server through a virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the keyboard event is the same as the first manipulation event, or is generated based on the first manipulation event, and the handle event is the same as the second manipulation event, or is generated based on the second manipulation event. 2.如权利要求1所述的方法,其特征在于,手柄事件的生成过程,包括:2. The method according to claim 1, wherein the process of generating the handle event comprises: 将第二操控事件映射为中间手柄事件,在中间手柄事件中添加虚拟手柄的标识得到手柄事件;或者Map the second manipulation event to an intermediate handle event, and add the virtual handle identifier to the intermediate handle event to obtain a handle event; or 在中间手柄事件中添加虚拟手柄的标识得到手柄事件,其中,第二操控事件为中间手柄事件。The identifier of the virtual handle is added to the middle handle event to obtain a handle event, wherein the second control event is the middle handle event. 3.一种操控事件处理方法,其特征在于,应用于云服务器,包括:3. A method for handling manipulation events, characterized in that it is applied to a cloud server and comprises: 在第一用户申请使用云应用时,为第一用户分配第一虚拟手柄,在第二用户申请使用云应用时,为第二用户分配第二虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;When a first user applies to use a cloud application, a first virtual handle is allocated to the first user, and when a second user applies to use the cloud application, a second virtual handle is allocated to the second user, wherein the physical input devices used by the first user and the second user are keyboards; 接收第一用户的终端设备发送的第一操控事件,将第一手柄事件通过第一虚拟手柄发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将第二手柄事件通过第二虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,第一手柄事件与第一操控事件相同,或者根据第一操控事件生成,第二手柄事件与第二操控事件相同,或者根据第二操控事件生成。A system that receives a first manipulation event sent by a terminal device of a first user and sends the first handle event to a cloud server through a first virtual handle, and a system that receives a second manipulation event sent by a terminal device of a second user and sends the second handle event to a cloud server through a second virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the first handle event is the same as the first manipulation event, or is generated based on the first manipulation event, and the second handle event is the same as the second manipulation event, or is generated based on the second manipulation event. 4.如权利要求3所述的方法,其特征在于,第一手柄事件的生成过程,包括:4. The method according to claim 3, wherein the process of generating the first handle event comprises: 将第一操控事件映射为中间手柄事件,在中间手柄事件中添加第一虚拟手柄的标识得到第一手柄事件;或者Mapping the first manipulation event to an intermediate handle event, and adding the identifier of the first virtual handle to the intermediate handle event to obtain the first handle event; or 在中间手柄事件中添加第一虚拟手柄的标识得到第一手柄事件,其中,第一操控事件为中间手柄事件。The identifier of the first virtual handle is added to the middle handle event to obtain a first handle event, wherein the first manipulation event is the middle handle event. 5.一种操控事件处理方法,其特征在于,应用于至少两个终端设备中的第一终端设备,包括:5. A method for handling a manipulation event, characterized in that it is applied to a first terminal device among at least two terminal devices, comprising: 根据第一用户操控键盘产生的键盘事件确定出第一操控事件,将第一操控事件发送给云服务器,以使云服务器将键盘事件通过预先为第一用户分配的虚拟键盘发送给云服务器的系统,并且,云服务器在接收到第二用户的第二终端设备发送的第二操控事件后,将手柄事件通过预先为第二用户分配的虚拟手柄发送给云服务器的系统,其中,所述至少两个终端设备包括第一终端设备和第二终端设备,第一终端设备为所述至少两个终端设备中的任一个终端设备,第一操控事件为第一用户操控与第一终端设备连接的键盘产生的键盘事件,或者根据第一用户操控与第一终端设备连接的键盘产生的键盘事件生成,第二操控事件为第二用户操控与第二终端设备连接的键盘产生的键盘事件,或者根据第二用户操控与第二终端设备连接的键盘产生的键盘事件生成。A first manipulation event is determined based on a keyboard event generated by a first user manipulating a keyboard, and the first manipulation event is sent to a cloud server so that the cloud server sends the keyboard event to the cloud server system through a virtual keyboard pre-assigned to the first user. Moreover, after receiving a second manipulation event sent by a second terminal device of the second user, the cloud server sends the handle event to the cloud server system through a virtual handle pre-assigned to the second user, wherein the at least two terminal devices include a first terminal device and a second terminal device, the first terminal device is any one of the at least two terminal devices, the first manipulation event is a keyboard event generated by the first user manipulating a keyboard connected to the first terminal device, or is generated based on a keyboard event generated by the first user manipulating a keyboard connected to the first terminal device, and the second manipulation event is a keyboard event generated by the second user manipulating a keyboard connected to the second terminal device, or is generated based on a keyboard event generated by the second user manipulating a keyboard connected to the second terminal device. 6.如权利要求5所述的方法,其特征在于,第一操控事件为对第一用户操控与第一终端设备连接的键盘产生的键盘事件进行映射得到的键盘事件,第二操控事件为对第二用户操控与第二终端设备连接的键盘产生的键盘事件进行映射得到的手柄事件,或者在对第二用户操控与第二终端设备连接的键盘产生的键盘事件进行映射得到的手柄事件中添加虚拟手柄的标识得到的数据。6. The method as claimed in claim 5 is characterized in that the first manipulation event is a keyboard event obtained by mapping a keyboard event generated by the first user manipulating a keyboard connected to the first terminal device, and the second manipulation event is a handle event obtained by mapping a keyboard event generated by the second user manipulating a keyboard connected to the second terminal device, or data obtained by adding a virtual handle identifier to a handle event obtained by mapping a keyboard event generated by the second user manipulating a keyboard connected to the second terminal device. 7.一种操控事件处理装置,其特征在于,应用于云服务器,包括:7. A manipulation event processing device, characterized in that it is applied to a cloud server and comprises: 第一分配单元,用于在第一用户申请使用云应用时,为第一用户分配虚拟键盘,在第二用户申请使用云应用时,为第二用户分配虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;A first allocating unit is configured to allocate a virtual keyboard to the first user when the first user applies to use the cloud application, and allocate a virtual controller to the second user when the second user applies to use the cloud application, wherein the physical input devices used by the first user and the second user are keyboards; 第一发送单元,用于接收第一用户的终端设备发送的第一操控事件,将键盘事件通过虚拟键盘发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将手柄事件通过虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,键盘事件与第一操控事件相同,或者根据第一操控事件生成,手柄事件与第二操控事件相同,或者根据第二操控事件生成。The first sending unit is used to receive a first manipulation event sent by a terminal device of a first user, and send the keyboard event to the system of the cloud server through a virtual keyboard, and to receive a second manipulation event sent by a terminal device of a second user, and send the handle event to the system of the cloud server through a virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the keyboard event is the same as the first manipulation event, or is generated based on the first manipulation event, and the handle event is the same as the second manipulation event, or is generated based on the second manipulation event. 8.一种操控事件处理装置,其特征在于,应用于云服务器,包括:8. A manipulation event processing device, characterized in that it is applied to a cloud server and comprises: 第二分配单元,用于在第一用户申请使用云应用时,为第一用户分配第一虚拟手柄,在第二用户申请使用云应用时,为第二用户分配第二虚拟手柄,其中,第一用户和第二用户使用的物理输入设备为键盘;a second allocating unit, configured to allocate a first virtual handle to the first user when the first user applies to use the cloud application, and allocate a second virtual handle to the second user when the second user applies to use the cloud application, wherein the physical input devices used by the first user and the second user are keyboards; 第二发送单元,用于接收第一用户的终端设备发送的第一操控事件,将第一手柄事件通过第一虚拟手柄发送给云服务器的系统,以及接收第二用户的终端设备发送的第二操控事件,将第二手柄事件通过第二虚拟手柄发送给云服务器的系统,以实现第一用户和第二用户对云应用中不同应用对象的操控,其中,第一手柄事件与第一操控事件相同,或者根据第一操控事件生成,第二手柄事件与第二操控事件相同,或者根据第二操控事件生成。The second sending unit is used to receive a first manipulation event sent by a terminal device of a first user, and send the first handle event to a system of a cloud server through a first virtual handle, and to receive a second manipulation event sent by a terminal device of a second user, and send the second handle event to a system of a cloud server through a second virtual handle, so as to enable the first user and the second user to manipulate different application objects in the cloud application, wherein the first handle event is the same as the first manipulation event, or is generated based on the first manipulation event, and the second handle event is the same as the second manipulation event, or is generated based on the second manipulation event. 9.一种操控事件处理装置,其特征在于,应用于至少两个终端设备中的第一终端设备,包括:9. A manipulation event processing device, characterized in that it is applied to a first terminal device among at least two terminal devices, comprising: 确定单元,用于根据第一用户操控键盘产生的键盘事件确定出第一操控事件,将第一操控事件发送给云服务器,以使云服务器将键盘事件通过预先为第一用户分配的虚拟键盘发送给云服务器的系统,并且,云服务器在接收到第二用户的第二终端设备发送的第二操控事件后,将手柄事件通过预先为第二用户分配的虚拟手柄发送给云服务器的系统,其中,所述至少两个终端设备包括第一终端设备和第二终端设备,第一终端设备为所述至少两个终端设备中的任一个终端设备,第一操控事件为第一用户操控与第一终端设备连接的键盘产生的键盘事件,或者根据第一用户操控与第一终端设备连接的键盘产生的键盘事件生成,第二操控事件为第二用户操控与第二终端设备连接的键盘产生的键盘事件,或者根据第二用户操控与第二终端设备连接的键盘产生的键盘事件生成。A determination unit is used to determine a first manipulation event based on a keyboard event generated by a first user manipulating a keyboard, and send the first manipulation event to a cloud server so that the cloud server sends the keyboard event to the cloud server system through a virtual keyboard pre-assigned to the first user. Moreover, after receiving a second manipulation event sent by a second terminal device of a second user, the cloud server sends the handle event to the cloud server system through a virtual handle pre-assigned to the second user, wherein the at least two terminal devices include a first terminal device and a second terminal device, the first terminal device is any one of the at least two terminal devices, the first manipulation event is a keyboard event generated by the first user manipulating a keyboard connected to the first terminal device, or is generated based on a keyboard event generated by the first user manipulating a keyboard connected to the first terminal device, and the second manipulation event is a keyboard event generated by the second user manipulating a keyboard connected to the second terminal device, or is generated based on a keyboard event generated by the second user manipulating a keyboard connected to the second terminal device.
CN202510467427.0A 2025-04-15 2025-04-15 Manipulation event processing method and device Active CN119987574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510467427.0A CN119987574B (en) 2025-04-15 2025-04-15 Manipulation event processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510467427.0A CN119987574B (en) 2025-04-15 2025-04-15 Manipulation event processing method and device

Publications (2)

Publication Number Publication Date
CN119987574A CN119987574A (en) 2025-05-13
CN119987574B true CN119987574B (en) 2025-08-15

Family

ID=95637027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510467427.0A Active CN119987574B (en) 2025-04-15 2025-04-15 Manipulation event processing method and device

Country Status (1)

Country Link
CN (1) CN119987574B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598931A (en) * 2022-03-08 2022-06-07 杭州雾联科技有限公司 Streaming method, system, device and medium for multi-open cloud game
CN117065319A (en) * 2023-09-05 2023-11-17 咪咕互动娱乐有限公司 Cloud game control method, storage medium and electronic device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102360249B (en) * 2011-09-29 2016-09-07 上海触乐信息科技有限公司 Discrete keyboard layout system and method to set up, corresponding mancarried electronic aid and control method
US9846496B2 (en) * 2014-09-04 2017-12-19 Home Box Office, Inc. Virtual input device system
CN112791387B (en) * 2021-01-08 2024-09-17 杭州雾联科技有限公司 Data processing method, device and medium based on mouse and keyboard
CN113778622B (en) * 2021-08-20 2025-10-03 新华三大数据技术有限公司 Cloud desktop keyboard event processing method, device, equipment and storage medium
CN115837159A (en) * 2021-09-18 2023-03-24 福建星网视易信息系统有限公司 Android device-based virtual handle control method and storage medium
CN117319495A (en) * 2022-06-21 2023-12-29 中国联合网络通信集团有限公司 Interaction method, equipment, terminal and system between cloud terminal peripherals and virtual terminal
CN115269121A (en) * 2022-08-02 2022-11-01 北京蔚领时代科技有限公司 Method and device for dynamically adding human-computer interface equipment applied to cloud game
CN115645919A (en) * 2022-10-31 2023-01-31 网易(杭州)网络有限公司 Game control method and device, electronic equipment and readable storage medium
CN116755556A (en) * 2023-06-06 2023-09-15 深圳市瑞云科技股份有限公司 Processing method for supporting multi-terminal sharing user-defined virtual keyboard and mouse by cloud application
CN118356636A (en) * 2024-03-13 2024-07-19 深圳云天畅想信息科技有限公司 Method for controlling TV end cloud electronic contest game by virtual handle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598931A (en) * 2022-03-08 2022-06-07 杭州雾联科技有限公司 Streaming method, system, device and medium for multi-open cloud game
CN117065319A (en) * 2023-09-05 2023-11-17 咪咕互动娱乐有限公司 Cloud game control method, storage medium and electronic device

Also Published As

Publication number Publication date
CN119987574A (en) 2025-05-13

Similar Documents

Publication Publication Date Title
US11709582B2 (en) Apparatus and method for managing operations of accessories
US11850506B2 (en) Apparatus and method for managing user inputs in video games
CN110559651A (en) Control method and device of cloud game, computer storage medium and electronic equipment
KR20060099402A (en) System and method for providing system level notification in a multimedia console
CN101380519A (en) Input terminal emulator for game consoles
US20150156278A1 (en) Methods and systems for bandwidth-efficient remote procedure calls
US20240390789A1 (en) Method for controlling cloud game, and storage medium, and electronic device thereof
CN103889524A (en) Information processing system, information processing method, information processing program, computer-readable recording medium storing information processing program, data structure, information processing server and information processing terminal
WO2012077409A1 (en) Information processing system, information processing method, information processing program, and computer-readable storage medium storing the information processing program
JP2023523195A (en) Virtual character selection method, device, equipment, and program
CN119987574B (en) Manipulation event processing method and device
KR101859724B1 (en) A collaboration management system
CN112221127A (en) Multi-point control method and device for cloud games
US8150970B1 (en) Work load distribution among server processes
JP5705523B2 (en) Information processing system, information processing method, information processing program, and computer-readable recording medium storing information processing program
EP2861313B1 (en) Processing system, information processing apparatus, control method, program and storage medium
CN113117321B (en) Skill cancellation release method and device, terminal equipment and medium
CN113877198A (en) Terminal operation method and device, electronic equipment and storage medium
KR100945132B1 (en) System and method for changing the operating system of an application using a plurality of input devices
JP3243899U (en) character input system
JP2016101261A (en) Sound message system
JP3555471B2 (en) Master terminal assignment method and system in three-dimensional shared virtual space, and storage medium storing master terminal assignment program in three-dimensional shared virtual space
CN111841008A (en) Event execution method and device, storage medium and electronic device
CN119633401A (en) Team invitation method, device, server and storage medium
CN115990336A (en) An interactive method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant