CN111766958B - Input method implementation method, device, electronic equipment and storage medium - Google Patents

Input method implementation method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111766958B
CN111766958B CN202010626975.0A CN202010626975A CN111766958B CN 111766958 B CN111766958 B CN 111766958B CN 202010626975 A CN202010626975 A CN 202010626975A CN 111766958 B CN111766958 B CN 111766958B
Authority
CN
China
Prior art keywords
game
input
attribute
window
adjusted
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
CN202010626975.0A
Other languages
Chinese (zh)
Other versions
CN111766958A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010626975.0A priority Critical patent/CN111766958B/en
Publication of CN111766958A publication Critical patent/CN111766958A/en
Application granted granted Critical
Publication of CN111766958B publication Critical patent/CN111766958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Abstract

The application discloses an input method implementation method, an input method implementation device, electronic equipment and a storage medium; in the embodiment of the application, a game picture transmitted by a cloud game server is displayed on a cloud game client; responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to an input method in the current game picture; responding to the text input confirmation operation aiming at the input control, and sending an input method text instruction carrying the input text content to the cloud game server; acquiring game picture data and adjusted attribute information of the input control from the cloud game server; and displaying a target game picture according to the game picture data and the adjusted attribute information of the input control. According to the embodiment of the application, the input method program is installed on the cloud game client, the input method program does not need to be installed in the cloud game server in advance, the deployment and maintenance cost of the cloud game server is reduced, and the safety of the cloud game server is improved.

Description

Input method implementation method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an input method implementation method, an input method implementation device, an electronic device, and a storage medium.
Background
Cloud game is a novel game mode based on cloud computing, and the cloud game technology mainly transmits audio and video media data generated by a game running on a server to a client of a player through a computer network, and simultaneously transmits an operation instruction generated by the player at the client back to the server.
At present, a scheme for supporting an input method in a cloud game scene requires higher maintenance cost, and for a cloud game server, an input method program belongs to a third party application program outside the cloud game server, so that potential safety hazards exist.
Disclosure of Invention
The embodiment of the application provides an input method implementation method, an input method implementation device, electronic equipment and a storage medium, which can reduce the cost of deployment and maintenance of a cloud game server and improve the safety of the cloud game server.
The embodiment of the application provides an input method implementation method, which comprises the following steps:
displaying a game picture transmitted by a cloud game server on a cloud game client;
responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to an input method in the current game picture;
responding to a text input confirmation operation aiming at the input control, and sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic;
Acquiring game picture data and adjusted attribute information of the input control from the cloud game server;
and displaying a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
The embodiment of the application provides another implementation method of the input method, which comprises the following steps:
transmitting the game picture to a cloud game client;
receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content;
according to the text content and the game logic, attribute information of an input control in the cloud game client is adjusted;
and sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
Correspondingly, the embodiment of the application provides an input method implementation device, which comprises the following steps:
the first display unit is used for displaying the game picture transmitted by the cloud game server on the cloud game client;
the second display unit is used for responding to the text input triggering operation aiming at the game picture and displaying an input control corresponding to the input method in the current game picture;
the first sending unit is used for responding to the text input confirmation operation aiming at the input control, sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic;
the acquisition unit is used for acquiring game picture data and the adjusted attribute information of the input control from the cloud game server;
and the third display unit is used for displaying a target game picture according to the game picture data and the regulated attribute information of the input control, wherein the target game picture comprises an attribute regulated input control, and the attribute regulated input control comprises the text content.
Correspondingly, the embodiment of the application provides another device for realizing the input method, which comprises the following steps:
The transmission unit is used for transmitting the game picture to the cloud game client;
the receiving unit is used for receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content;
the adjusting unit is used for adjusting attribute information of an input control in the cloud game client according to the text content and the game logic;
the second sending unit is used for sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
Optionally, in some embodiments of the present application, the second display unit may include a first sending subunit and a first display subunit as follows:
the first sending subunit is used for responding to the text input triggering operation aiming at the game picture and sending an input method starting request to the cloud game server, wherein the input method starting request instructs the cloud game server to send an input method starting instruction to the cloud game client;
And the first display subunit is used for displaying an input control corresponding to the input method in the current game picture according to the input method starting instruction sent by the cloud game server.
Optionally, in some embodiments of the present application, the input method initiation instruction indicates an initial attribute of the input control; the first display subunit may be specifically configured to receive an input method start instruction sent by the cloud game server; analyzing the input method starting instruction to obtain the initial attribute of the input control; and displaying an input control corresponding to the input method in the current game picture according to the initial attribute.
Optionally, in some embodiments of the present application, the first sending unit may include a second display subunit and a second sending subunit, as follows:
the second display subunit is configured to respond to a text input operation for the input control, and display an input method panel, where the input method panel includes candidate input text corresponding to the text input operation;
and the second sending subunit is used for responding to the text input confirmation operation aiming at the input method panel and sending an input method text instruction carrying the input text content to the cloud game server.
Optionally, in some embodiments of the present application, the first display unit may be specifically configured to display a game window on a cloud game client, where the game window includes a game screen transmitted by a cloud game server, and the input control includes an input child window on the game window.
Optionally, in some embodiments of the present application, the input control includes an input sub-window on the game window; the third display unit may include a first adjustment subunit and a third display subunit, as follows:
the first adjustment subunit is configured to adjust the input sub-window based on the adjusted attribute information of the input sub-window, so as to obtain an input sub-window with an adjusted attribute;
and the third display subunit is used for displaying a target game picture in the game window according to the text content, the game picture data and the attribute-adjusted input sub-window, wherein the target game picture comprises the attribute-adjusted input sub-window, and the attribute-adjusted input sub-window comprises the text content.
Optionally, in some embodiments of the present application, the adjusted attribute information of the input control includes an adjusted control attribute of the input control, and an adjusted text attribute of the text to be displayed in the input control; the third display unit may include a first control adjustment subunit, a first text adjustment subunit, and a fourth display subunit, as follows:
The first control adjusting subunit is used for adjusting the input control according to the adjusted control attribute to obtain an input control with the attribute adjusted;
the first character adjusting subunit is used for adjusting the character content according to the character attribute after adjustment to obtain character content after attribute adjustment;
and the fourth display subunit is used for displaying a target game picture based on the attribute-adjusted input control, the attribute-adjusted text content and the game picture data, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the attribute-adjusted text content.
Optionally, in some embodiments of the present application, the adjusted attribute information includes an adjusted cursor position corresponding to an input cursor in the input control; the third display unit may further include a cursor display subunit, as follows:
the cursor display subunit is configured to display an input cursor in the attribute-adjusted input control based on the adjusted cursor position.
Optionally, in some embodiments of the present application, the game screen data includes a base game screen with attribute-adjusted text content; the adjusted attribute information of the input control comprises an adjusted control attribute of the input control; the third display unit may include a second adjustment subunit, a first fusion subunit, and a fifth display subunit, as follows:
The second adjustment subunit is configured to adjust the input control according to the adjusted control attribute to obtain an input control after attribute adjustment;
the first fusion subunit is used for fusing the basic game picture and the input control after the attribute adjustment to obtain a target game picture;
and a fifth display subunit, configured to display the target game screen.
Optionally, in some embodiments of the present application, the input control is an editable game window, and the game window is used for displaying a game screen; the third display unit may include a third adjustment subunit and a sixth display subunit, as follows:
the third adjustment subunit is configured to adjust the game window based on the adjusted attribute information of the game window, so as to obtain an attribute-adjusted game window;
and a sixth display subunit, configured to display a target game screen in the game window after attribute adjustment according to the text content, the game screen data, and the game window after attribute adjustment, where the target game screen includes the text content.
Optionally, in some embodiments of the present application, the input method implementation device may further include a starting unit; the starting unit may include an acquisition subunit, a generation subunit, and a third sending subunit, as follows:
The acquisition subunit is used for acquiring the current game logic of the cloud game when receiving an input method starting request sent by the cloud game client;
the generation subunit is used for generating an input method starting instruction when the current game logic meets preset conditions;
and the third sending subunit is used for sending the input method starting instruction to the cloud game client so that the cloud game client displays an input control corresponding to the input method in the current game picture.
Optionally, in some embodiments of the present application, the generating subunit may be specifically configured to obtain, when the current game logic meets a preset condition, an initial attribute of an input control in the cloud game client based on a game frame that needs to be displayed corresponding to the current game logic; and generating an input method starting instruction based on the initial attribute of the input control.
Optionally, in some embodiments of the present application, the attribute information includes a control attribute of the input control, and a text attribute of a text to be displayed in the input control; the adjustment unit may include a second text adjustment subunit and a second control adjustment subunit, as follows:
The second character adjusting subunit is used for adjusting character attributes of the character content according to the character content and game logic;
and the second control adjusting subunit is used for adjusting the control attribute of the input control in the cloud game client based on the adjusted text attribute.
Optionally, in some embodiments of the present application, the second text adjustment subunit may be specifically configured to obtain, according to game logic, a game screen to be displayed; and adjusting the character attribute of the character content based on the character content and the game picture to be displayed.
Optionally, in some embodiments of the present application, the attribute information includes a cursor position corresponding to an input cursor in the input control; the adjustment unit may comprise a cursor adjustment subunit, as follows:
and the cursor adjusting subunit is used for adjusting the cursor position corresponding to the input cursor in the cloud game client according to the text content and the game logic.
Optionally, in some embodiments of the present application, the attribute information includes a control attribute of the input control, and a text attribute of a text to be displayed in the input control; the adjustment unit may include a third text adjustment subunit, a third control adjustment subunit, and a second fusion subunit, as follows:
The third character adjusting subunit is used for adjusting character attributes of the character content based on the character content and game logic;
the third control adjusting subunit is used for adjusting the control attribute of the input control in the cloud game client based on the adjusted character attribute;
and the second fusion subunit is used for fusing the character content with the current game picture after attribute adjustment to obtain fused game picture data.
Optionally, in some embodiments of the present application, the attribute information includes a control attribute of the input control, and a text attribute of a text to be displayed in the input control; the second sending unit may be specifically configured to send the fused game picture data and the adjusted control attribute of the input control to the cloud game client, so that the cloud game client displays a target game picture according to the fused game picture data and the adjusted control attribute of the input control, where the target game picture includes an attribute-adjusted input control, and the attribute-adjusted input control includes attribute-adjusted text content.
Optionally, in some embodiments of the present application, the input control is an editable game window, and the game window is used for displaying a game screen; the adjusting unit is specifically configured to adjust attribute information of an editable game window in the cloud game client according to the text content and the game logic;
The second sending unit may specifically be configured to send game picture data and adjusted attribute information of the editable game window to the cloud game client, so that the cloud game client displays a target game picture on the editable game window with the adjusted attribute according to the game picture data and the adjusted attribute information of the editable game window, where the target game picture includes the text content.
Optionally, in some embodiments of the present application, before the step of adjusting attribute information of an editable game window in the cloud game client according to the text content and the game logic, the method further includes:
and according to the input method framework, realizing the game window on the cloud game client as a game window capable of supporting text editing, and obtaining the editable game window.
The electronic device provided by the embodiment of the application comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the input method implementation method provided by the embodiment of the application.
In addition, the embodiment of the application further provides a storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps in the input method implementation method provided in the embodiment of the application.
The embodiment of the application provides an input method implementation method, an input method implementation device, electronic equipment and a storage medium, wherein game pictures transmitted by a cloud game server can be displayed on a cloud game client; responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to an input method in the current game picture; responding to a text input confirmation operation aiming at the input control, and sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic; acquiring game picture data and adjusted attribute information of the input control from the cloud game server; and displaying a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content. According to the embodiment of the application, the input method program is installed on the cloud game client, the input method program does not need to be installed in the cloud game server in advance, the deployment and maintenance cost of the cloud game server is reduced, and the safety of the cloud game server is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1a is a schematic view of a scenario of an implementation method of an input method according to an embodiment of the present application;
FIG. 1b is a flowchart of an implementation method of an input method according to an embodiment of the present application;
FIG. 1c is a schematic page diagram of an implementation method of an input method according to an embodiment of the present application;
FIG. 1d is another page diagram of the implementation method of the input method according to the embodiment of the present application;
fig. 1e is a schematic diagram of an implementation method of an input method according to an embodiment of the present application;
FIG. 1f is another schematic diagram of an implementation method of an input method according to an embodiment of the present disclosure;
FIG. 2a is another flowchart of an implementation method of an input method according to an embodiment of the present application;
FIG. 2b is another flowchart of an implementation method of the input method according to the embodiment of the present application;
fig. 3a is a schematic structural diagram of an input method implementation device according to an embodiment of the present application;
Fig. 3b is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3c is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3d is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3e is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3f is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3g is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3h is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3i is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3j is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3k is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 3l is another schematic structural diagram of the input method implementation device provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides an input method implementation method, an input method implementation device, electronic equipment and a storage medium.
Specifically, the embodiment of the application provides an input method implementation device (for distinguishing, may be referred to as a first input method implementation device) applicable to a first electronic device, where the first electronic device may be a device such as a terminal. The embodiment of the application also provides an input method implementation device (for distinguishing, may be referred to as a second input method implementation device) applicable to the second electronic device, where the second electronic device may be a network side device such as a server.
For example, the first input method implementation means may be integrated in the terminal. The terminal may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal computer (PC, personal Computer), or the like, but is not limited thereto. The second input method implementation means may be integrated in the server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN, content Delivery Network), basic cloud computing services such as big data and artificial intelligent platforms, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
In the embodiment of the application, the input method implementation method is introduced by taking the first electronic device as a terminal and the second electronic device as a server as an example.
As shown in fig. 1a, an embodiment of the present application provides an input method implementation system, which includes a terminal 10 and a server 11, where the terminal 10 and the server 11 are connected through a network, for example, through a wireless network connection or the like. The terminal 10 may have a client integrated therein, and the client may specifically be an application program installed in the terminal. The terminal 10 may interact with the server 11 through a network by means of input methods.
The terminal 10 may be configured to display, on a cloud game client, a game screen transmitted by the cloud game server 11; responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to an input method in the current game picture; in response to a text input confirmation operation for the input control, an input method text instruction carrying input text content is sent to the cloud game server 11, wherein the input method text instruction indicates: the cloud game server 11 adjusts attribute information of the input control based on the text content and game logic; obtaining game picture data and adjusted attribute information of the input control from the cloud game server 11; and displaying a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
Wherein, the server 11 can be used for transmitting the game picture to the cloud game client; receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content; according to the text content and the game logic, attribute information of an input control in the cloud game client is adjusted; and sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
In this embodiment, the transmission of information between the terminal and the server may be implemented through some communication networks, and the type and system of the communication network are not limited.
The embodiment of the application provides an input method implementation method, which relates to a Cloud game (Cloud game) direction in the field of Cloud technology. According to the embodiment of the application, the input method program is installed on the cloud game client, the input method program does not need to be installed in the cloud game server in advance, the deployment and maintenance cost of the cloud game server is reduced, and the safety of the cloud game server is improved.
Cloud technology (Cloud technology) refers to a hosting technology that unifies serial resources such as hardware, software, networks and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data. The cloud technology is a generic term of network technology, information technology, integration technology, management platform technology, application technology and the like based on cloud computing business model application, can form a resource pool, and is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
Cloud gaming (Cloud gaming), which may also be referred to as game on demand, is an online gaming technology based on Cloud computing technology. Cloud gaming technology enables lightweight devices (thin clients) with relatively limited graphics processing and data computing capabilities to run high quality games. In a cloud game scene, the game is not run in a player game terminal, but is run in a cloud server, the cloud server renders the game scene into a video and audio stream, and the video and audio stream is transmitted to the player game terminal through a network. The player game terminal does not need to have strong graphic operation and data processing capability, and only needs to have basic streaming media playing capability and the capability of acquiring player input instructions and sending the player input instructions to the cloud server.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The present embodiment will be described from the perspective of a first input method implementation apparatus, which may be specifically integrated in a terminal, where the first input method implementation apparatus may be regarded as a client in the terminal.
The input method implementation method of the embodiment of the application can be applied to various cloud game scenes.
The embodiment of the application provides an implementation method of an input method, as shown in fig. 1b, the specific flow of the implementation method of the input method may be as follows:
101. and displaying the game picture transmitted by the cloud game server at the cloud game client.
The cloud game client may be a browser client or an application client, which is not limited in this embodiment. Cloud game clients support a variety of operating system platforms, such as Windows operating system (Windows) and apple operating system (macOS), among others.
In a cloud game scenario, a game player may perform a game operation through an input device of a client, such as a game input operation through a gamepad, a touch screen, a keyboard, and the like. For the cloud game, the game is not installed on the terminal, but runs on the cloud server, the cloud server renders the game scene into an audio-video stream, the audio-video stream is transmitted to the terminal display through the network, and the game picture can be displayed through the terminal display. Meanwhile, terminal operation of the game player is converted into an instruction and is transmitted back to the cloud server.
102. And responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to the input method in the current game picture.
In this embodiment, the step of "responding to the text input triggering operation for the game screen, and displaying the input control corresponding to the input method in the current game screen" may include:
responding to a text input triggering operation aiming at the game picture, sending an input method starting request to the cloud game server, wherein the input method starting request instructs the cloud game server to send an input method starting instruction to the cloud game client;
and displaying an input control corresponding to the input method in the current game picture according to the input method starting instruction sent by the cloud game server.
The text input triggering operation may specifically be that the game player clicks a specific position in the game screen through a mouse, or may also be that a designated key is pressed. The specific position and the designated key may be set according to the actual situation, which is not limited in this embodiment, for example, the text input triggering operation may be that a combination key "ctrl+shift" is pressed by a keyboard. In an embodiment, a combination key "ctrl+shift" may be preset as a text input triggering operation, and when it is detected that the game player presses the combination key "ctrl+shift", an input method start request is sent to the cloud game server.
After receiving the input method starting request, the cloud game server judges whether to send an input method starting instruction to the cloud game client based on game logic.
Specifically, in some embodiments, after receiving an input method start request, the cloud game server transmits the input method start request to the game process, and processes the input method start request based on game logic of the game process itself. If the current game logic prohibits starting the input method, the cloud game server can send an input method disabling instruction to the cloud game client, and the cloud game client prohibits starting of the local input method after receiving the input method disabling instruction. If the current game logic needs to start the input method, the game process calls an API (Application Programming Interface, application program interface) of the related system, the API is monitored by the cloud game server, when the cloud game server monitors the related API call, an input method start instruction is generated, and the input method start instruction is sent to the cloud game client.
Optionally, in some embodiments, the input method initiation instruction indicates an initial attribute of the input control; the step of displaying an input control corresponding to the input method in the current game picture according to the input method starting instruction sent by the cloud game server may include:
Receiving an input method starting instruction sent by the cloud game server;
analyzing the input method starting instruction to obtain the initial attribute of the input control;
and displaying an input control corresponding to the input method in the current game picture according to the initial attribute.
The input method starting instruction can be used for starting an input method of a cloud game client side locally and indicating initial attributes of an input control corresponding to the input method. The initial properties of the input control may include an initial position and an initial size, in particular.
The cloud game server can determine initial attributes of the input controls according to the current game picture, generate an input method starting instruction based on the initial attributes of the input controls, and send the input method starting instruction containing the initial attributes of the input controls to the cloud game client; the cloud game client analyzes the input method starting instruction to acquire the initial attribute of the input control, and the input control can be displayed at the initial position in the current game picture in the initial size based on the initial attribute. The initial position and the initial size of the input control are determined based on the game picture, so that the input control can be prevented from being blocked to main content in the game picture, and the use experience of a user on the cloud game is improved.
Optionally, in some embodiments, the initial attribute of the input control may further include an initial cursor position corresponding to the input cursor in the input control. Specifically, an initial cursor position corresponding to the input cursor may be determined based on the initial position of the input control. For example, the middle position in the input control may be used as the initial cursor position, or the leftmost position in the input control may be used as the initial cursor position, and the initial cursor position may be set according to the actual situation, which is not limited in this embodiment.
103. Responding to a text input confirmation operation aiming at the input control, and sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic.
The text input confirmation operation may specifically be an operation on a related confirmation control, or may be a pressing operation of a preset designated key. The preset designated key may be an "enter" key or a "space" key, and the preset designated key may be set according to actual situations, which is not limited in this embodiment. For example, in one embodiment, after a user inputs a text, pressing the enter key to send text content, the input text content is sent to the cloud game server.
Optionally, in some embodiments, the step of "sending, to the cloud game server, an input method text instruction carrying input text content in response to a text input confirmation operation for the input control" may include:
responding to a text input operation aiming at the input control, and displaying an input method panel, wherein the input method panel comprises candidate input text corresponding to the text input operation;
and responding to the text input confirmation operation aiming at the input method panel, and sending an input method text instruction carrying the input text content to the cloud game server.
Optionally, in a specific embodiment, referring to fig. 1c, when the game player performs a text input operation on the input control, the input method panel displays candidate input text corresponding to the text input operation, for example, the game player inputs pinyin yun ' you ' xi ' corresponding to the word "cloud game", and displays candidate input text such as "cloud game", "cloud game" and "fortune friend" on the input method panel; when the game player performs a text input confirmation operation on the input panel, the cloud game client transmits text content corresponding to the text input confirmation operation to the cloud game server. Specifically, if the text content that the game player wants to input is "cloud game", the text input confirmation operation may be a click operation of "cloud game" on the text in the input method panel on the display screen, or a touch operation of "1" on the keyboard.
Optionally, in this embodiment, when a text input confirmation operation for the input method panel is detected, an input method text instruction is generated, the input method text instruction may be encoded, and then the encoded input method text instruction is sent to a cloud game server through a cloud game network protocol.
104. And acquiring game picture data and the adjusted attribute information of the input control from the cloud game server.
105. And displaying a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
In a specific embodiment, when the game player performs text input operation on the input control, the word "cloud game" corresponding to pinyin "yun 'you' xi" is input, and then candidate input text such as "cloud game", "cloud game" and "fortune friend" can be displayed on the input method panel, and when the game player performs text input confirmation operation on the word "cloud game" in the input panel, the cloud game client sends the text content ("cloud game" word) to the cloud game server. After receiving the game picture data and the regulated attribute information sent by the cloud game server, the cloud game client displays a target game picture, wherein the target game picture comprises an attribute regulated input control, and the attribute regulated input control comprises the word 'cloud game'.
Optionally, in an embodiment, after the game player inputs the word "cloud game", the text may also be further input for the input control. For example, as shown in fig. 1d, the game player continues to input the pinyin "wan' jia" corresponding to the word "player" after the word "cloud game", and at this time, candidate input characters such as "player", "ten thousand home" and "bowl shelf" are displayed on the input method panel; then, based on the character input confirmation operation of the game player on the word of the player in the input method panel, the character content, namely the word of the player, is sent to the cloud game server; after receiving the corresponding game picture data and the adjusted attribute information sent by the cloud game server, the cloud game client displays a target game picture, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises a word of a cloud game player, namely the word of the cloud game player is continuously displayed behind the word of the cloud game. In addition, the game player can delete the text content in the input control, the cloud game client can send a deletion request corresponding to the deletion operation to the cloud game server, the cloud game server generates a deletion instruction based on the deletion request and game logic, the deletion instruction can comprise the adjusted control attribute and the text to be displayed, the deletion instruction is sent to the cloud game client, the cloud game client deletes the corresponding text based on the deletion instruction, and a target game picture is displayed, wherein the target game picture does not display the deleted text.
Optionally, in some embodiments, the step of displaying, at the cloud game client, the game screen transmitted by the cloud game server may include:
and displaying a game window on the cloud game client, wherein the game window comprises a game picture transmitted by a cloud game server, and the input control comprises an input child window on the game window.
Alternatively, in this embodiment, an input control may be used as a sub-window (i.e., an input method window) on the game window, where the sub-window is a window that can support text editing, and the background color of the input control may be transparent, that is, the input control may be regarded as a hidden editing control, see fig. 1e. The cloud game client can control the enabling, position, size and the like of the child window according to the adjusted attribute information sent by the cloud game server. Wherein, enable refers to the state of input method enabling and disabling. The method has the advantages that the capability of local input method interaction is realized by taking the input control as a child window on the game window, the method is simple and easy to realize, and the componentization can be better realized.
Optionally, in some embodiments, the step of displaying the target game screen according to the game screen data and the adjusted attribute information of the input control may include:
Based on the adjusted attribute information of the input sub-window, adjusting the input sub-window to obtain an attribute-adjusted input sub-window;
and displaying a target game picture in the game window according to the text content, the game picture data and the attribute-adjusted input sub-window, wherein the target game picture comprises the attribute-adjusted input sub-window, and the attribute-adjusted input sub-window comprises the text content.
The adjusted attribute information of the input sub-window may include the adjusted position and size of the input sub-window; and adjusting the input sub-window based on the adjusted position and size to obtain an attribute-adjusted input sub-window, and displaying the attribute-adjusted input sub-window in the game window.
Optionally, in some embodiments, the input control is an editable game window for displaying a game screen. Specifically, referring to fig. 1f, based on the input method framework, the game window of the whole cloud game client can be realized as a window capable of supporting text editing, so that text content input by a game player through the input method can be captured, and the interaction capability with the local input method is realized. The cloud game client can determine the position and the size of an area for displaying the text content in the game window according to the adjusted attribute information sent by the cloud game server, and the area for displaying the text content can be regarded as an input method window. The game window is realized as a window capable of supporting text editing and is used as an input control, the input method realized in the mode has more accurate processing logic and simple control logic, but the whole game window is changed into a window with input capability, which is provided by an operating system, so that the realization is more complex, and additional heavy logic is introduced to the game window.
Specifically, in some embodiments, the input control is an editable game window, and the game window is used for displaying a game screen; the step of displaying the target game screen according to the game screen data and the adjusted attribute information of the input control may include:
adjusting the game window based on the adjusted attribute information of the game window to obtain an attribute-adjusted game window;
and displaying a target game picture in the game window after attribute adjustment according to the text content, the game picture data and the game window after attribute adjustment, wherein the target game picture comprises the text content.
The adjusted attribute information of the game window may include an adjusted character attribute of characters to be displayed in the game window, and the adjusted character attribute may include an adjusted character color, an adjusted character size, an adjusted character position, and the like.
Optionally, in some embodiments, the adjusted attribute information of the input control includes an adjusted control attribute of the input control, and an adjusted text attribute of the text to be displayed in the input control; the step of displaying the target game screen according to the game screen data and the adjusted attribute information of the input control may include:
According to the attribute of the adjusted control, the input control is adjusted to obtain an input control with the adjusted attribute;
according to the character attribute after adjustment, adjusting the character content to obtain character content after attribute adjustment;
and displaying a target game picture based on the attribute-adjusted input control, the attribute-adjusted text content and the game picture data, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the attribute-adjusted text content.
The adjusted control attribute may include an adjusted control position and an adjusted control size. The text attributes may include text color, text size, text position, etc., and the adjusted text attributes may include adjusted text color, adjusted text size, adjusted text position, etc.
The step of adjusting the input control according to the adjusted control attribute to obtain an attribute-adjusted input control may include:
according to the adjusted control position, adjusting the position of the input control to obtain a position-adjusted input control;
and adjusting the size of the input control after position adjustment according to the size of the control after adjustment, so as to obtain the input control after attribute adjustment.
Optionally, in some embodiments, the adjusted attribute information includes an adjusted cursor position corresponding to an input cursor in the input control; the method may further comprise:
and displaying an input cursor in the attribute-adjusted input control based on the adjusted cursor position.
The adjusted cursor position corresponding to the input cursor can be determined based on the attribute-adjusted text content. For example, an input cursor may be displayed after the last word in the input control from left to right after the attribute adjustment.
Optionally, in some embodiments, the adjusted cursor position of the input cursor may be determined based on the operation of the input control in the game screen by the game player. For example, when a game player is detected to click on a middle position of two words in the input control, the middle position is determined as an adjusted cursor position, and the input cursor is displayed at the middle position.
Optionally, in some embodiments, the game screen data includes a base game screen with attribute-adjusted text content; the adjusted attribute information of the input control comprises an adjusted control attribute of the input control; the step of displaying the target game screen according to the game screen data and the adjusted attribute information of the input control may include:
According to the attribute of the adjusted control, the input control is adjusted to obtain an input control with the adjusted attribute;
fusing the basic game picture and the input control after the attribute adjustment to obtain a target game picture;
and displaying the target game picture.
The cloud game server sends the basic game picture obtained after the fusion to the cloud game client.
The process of fusing the basic game picture and the input control after attribute adjustment can specifically fuse the input control after attribute adjustment with a region corresponding to the text content after attribute adjustment in the basic game picture, so that the text content after attribute adjustment is displayed on the input control after attribute adjustment, and a target game picture is obtained.
In this embodiment, the input control is an input method installed locally by the cloud game client. Specifically, when the user needs to use the function of inputting text content, the user can switch to the required input method by using the familiar local input method switching mode, and then normally input text.
As can be seen from the above, the embodiment can display the game screen transmitted by the cloud game server on the cloud game client; responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to an input method in the current game picture; responding to a text input confirmation operation aiming at the input control, and sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic; acquiring game picture data and adjusted attribute information of the input control from the cloud game server; and displaying a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the text content. According to the embodiment of the application, the input method program is installed on the cloud game client, the input method program does not need to be installed in the cloud game server in advance, the deployment and maintenance cost of the cloud game server is reduced, and the safety of the cloud game server is improved.
The present embodiment will be described from the perspective of a second input method implementation apparatus, which may be specifically integrated in a server, which may be specifically a cloud server or the like.
The embodiment of the application provides an implementation method of an input method, as shown in fig. 2a, the specific flow of the implementation method of the input method may be as follows:
201. the game screen is transmitted to a cloud game client.
Based on an operation instruction sent to a cloud game server by a cloud game client, generating a game picture corresponding to the operation, and transmitting the game picture to the cloud game client.
202. And receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content.
The input method word instruction can be generated by the cloud game client aiming at the word input confirmation operation of the input control in the game picture.
Optionally, in some embodiments, the step of receiving an input method text instruction sent by the cloud game client based on the game screen may further include:
when an input method starting request sent by the cloud game client is received, acquiring the current game logic of a cloud game;
When the current game logic meets preset conditions, generating an input method starting instruction;
and sending the input method starting instruction to the cloud game client so that the cloud game client displays an input control corresponding to the input method in the current game picture.
Specifically, after receiving an input method starting request, the cloud game server transmits the input method starting request into a game process, and processes the input method starting request based on game logic of the game process. If the current game logic prohibits starting the input method, the cloud game server can send an input method disabling instruction to the cloud game client, and the cloud game client prohibits starting of the local input method after receiving the input method disabling instruction. If the current game logic needs to start the input method, the game process calls an API of a related system, the API is monitored by the cloud game server, when the cloud game server monitors the related API call, an input method start instruction is generated, and the input method start instruction is sent to the cloud game client.
The input method starting instruction can be used for starting an input method of a cloud game client side locally and indicating initial attributes of an input control corresponding to the input method on the cloud game client side. The initial properties of the input control may include an initial position and an initial size, in particular.
Optionally, in some embodiments, the step of generating an input method start instruction when the current game logic meets a preset condition may include:
when the current game logic meets preset conditions, acquiring initial attributes of input controls in the cloud game client based on game pictures which are needed to be displayed and corresponding to the current game logic;
and generating an input method starting instruction based on the initial attribute of the input control.
After an input method starting instruction with initial attribute indicating an input control is generated by the cloud game server, the input method starting instruction is sent to the cloud game client, the cloud game client can acquire the initial attribute of the input control by analyzing the input method starting instruction, and the input control is displayed at an initial position in a current game picture in an initial size based on the initial attribute. The initial position and the initial size of the input control are determined based on the game picture, so that the input control can be prevented from being blocked to main content in the game picture, and the use experience of a user on the cloud game is improved.
Optionally, in some embodiments, the initial attribute of the input control may further include an initial cursor position corresponding to the input cursor in the input control. Specifically, an initial cursor position corresponding to the input cursor may be determined based on the initial position of the input control.
Optionally, in some embodiments, after the input method word instruction is encoded by the cloud game client, the input method word instruction is sent to the cloud game server, and after the cloud game server receives the input method word instruction, the input method word instruction may be decoded, and then the corresponding word content is sent to the current game process, so as to adjust attribute information of an input control in the cloud game client.
203. And adjusting attribute information of an input control in the cloud game client according to the text content and the game logic.
Specifically, after receiving the text content sent by the cloud game client, the cloud game server can decode the text content and send the decoded text content to a current game process, the current game process processes the text content according to game logic, meanwhile, the cloud game can adjust attribute information of an input control, after the adjusted attribute information of the input control is monitored by the cloud game server, the cloud game server generates a new input method state update instruction, the input method state update instruction comprises the adjusted attribute information, and the input method state update instruction is sent to the cloud game client.
Optionally, in some embodiments, the attribute information includes a control attribute of the input control, and a text attribute of a text to be displayed in the input control; the step of adjusting attribute information of an input control in the cloud game client according to the text content and the game logic may include:
according to the text content and the game logic, adjusting the text attribute of the text content;
and adjusting the control attribute of the input control in the cloud game client based on the adjusted text attribute.
The control attribute of the input control may include a control position and a control size of the input control. The text attributes may include text color, text size, and text position, and the adjusted text attributes may include adjusted text color, adjusted text size, adjusted text position, and the like.
The step of adjusting the control attribute of the input control in the cloud game client based on the adjusted text attribute may include:
based on the adjusted text size, adjusting the control size of an input control in the cloud game client;
and adjusting the control position of the input control in the cloud game client based on the adjusted text position.
Since the adjusted text content is displayed in the attribute-adjusted input control, the attribute of the input control may be adjusted based on the adjusted text attribute.
Optionally, in some embodiments, the step of adjusting the text attribute of the text content according to the text content and the game logic may include:
obtaining a game picture to be displayed according to game logic;
and adjusting the character attribute of the character content based on the character content and the game picture to be displayed.
In order to avoid the important content in the game screen, the text can be appropriately reduced, or the text can be placed in other relatively unimportant areas in the game screen. For example, a relatively unimportant region in the game screen may be determined based on the game screen currently to be displayed, and the text size and text position of the text content may be adjusted based on the relatively unimportant region and the text content.
Optionally, in some embodiments, the attribute information includes a cursor position corresponding to an input cursor in the input control; the step of adjusting attribute information of an input control in the cloud game client according to the text content and the game logic may include:
And adjusting the cursor position corresponding to the input cursor in the cloud game client according to the text content and the game logic.
The position and the size of the text to be displayed can be determined according to game logic and text content, and the cursor position of the input cursor can be adjusted based on the position and the size of the text to be displayed. For example, an input cursor may be displayed at the end of the last word in the text content.
Optionally, in some embodiments, the position of the input cursor may be displayed based on a user's cursor adjustment operation on the input control. The cursor adjustment operation may specifically be an adjustment operation of a cursor position by a directional key of a keyboard, or a click operation of a position in an input control, which is not limited in this embodiment. For example, the cursor adjustment operation may be a click operation performed by the user on a position intermediate a certain two words in the input control. Specifically, the cloud game client may transmit operation information corresponding to the cursor adjustment operation to the cloud game server, where the cloud game server determines, based on the operation information, a cursor position where the input cursor needs to be displayed, and then transmits the cursor position to the cloud game client, so that the cloud game client displays the input cursor based on the cursor position. For example, if the cursor adjustment operation is a click operation performed by the user on a position intermediate between two words in the input control, the input cursor may be displayed at a position intermediate between the two words.
Optionally, in some embodiments, the input control is an editable game window, and the game window is used for displaying a game screen; the step of adjusting attribute information of an input control in the cloud game client according to the text content and the game logic may include:
according to the text content and the game logic, attribute information of an editable game window in the cloud game client is adjusted;
the sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, including:
and sending game picture data and the adjusted attribute information of the editable game window to the cloud game client so that the cloud game client displays a target game picture on the editable game window with the adjusted attribute according to the game picture data and the adjusted attribute information of the editable game window, wherein the target game picture comprises the text content.
The character attribute of the character content can be adjusted according to the character content and the game logic, and the attribute information of the editable game window in the cloud game client can be adjusted based on the adjusted character attribute. The attribute information of the editable game window may include character attributes of characters to be displayed in the game window, and the character attributes may include character colors, character sizes, character positions, and the like.
The attribute information of the editable game window can also comprise a character area attribute corresponding to a character area for displaying character content in the game window, and the character area attribute can comprise a character area position and a character area size; the adjusted attribute information of the editable game window may include the adjusted text region position and the adjusted text region size. And adjusting the character area based on the adjusted character area attribute to obtain an adjusted character area, and displaying character content in the adjusted character area. Alternatively, the attribute information of the editable game window may further include a background color of a text area displaying the text content, for example, when the font color of the text content is white, the background color of the text area may be adjusted to black.
Before the step of adjusting the attribute information of the editable game window in the cloud game client according to the text content and the game logic, the method further comprises the following steps:
and according to the input method framework, realizing the game window on the cloud game client as a game window capable of supporting text editing, and obtaining the editable game window.
Alternatively, in some embodiments, the input control may be an input sub-window on the game window, the input sub-window being a text editing-supportable window. The attribute information of the input control may include the enabling, position, size, etc. of the input sub-window; the enabling, position and size of the input sub-window may be controlled based on the text content and game logic. Wherein, enable refers to the state of input method enabling and disabling.
204. And sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
Optionally, in some embodiments, the attribute information includes a control attribute of the input control, and a text attribute of a text to be displayed in the input control; the step of adjusting attribute information of an input control in the cloud game client according to the text content and the game logic may include:
based on the text content and game logic, adjusting text attributes of the text content;
based on the adjusted character attribute, adjusting a control attribute of an input control in the cloud game client;
fusing the character content with the current game picture after attribute adjustment to obtain fused game picture data;
the sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, including:
And sending the fused game picture data and the adjusted control attribute of the input control to the cloud game client so that the cloud game client displays a target game picture according to the fused game picture data and the adjusted control attribute of the input control, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises attribute-adjusted text content.
The control attribute of the input control can include a control size and a control position, and the character attribute can include a character color, a character size, a character position and the like.
The fusion mode of the character content after attribute adjustment and the current game picture is various, and the embodiment is not limited to this. For example, the text content with the adjusted attribute can be superimposed on the current game screen. After the cloud game client receives the fused game picture data and the adjusted control attribute, the cloud game client can generate an attribute-adjusted input control on a game picture corresponding to the fused game picture data based on the adjusted control attribute, and generate attribute-adjusted text content in the attribute-adjusted input control so as to obtain a target game picture.
Currently, in the mainstream scheme of the existing cloud game supporting input method, multiple language input methods are pre-installed on a server, and a cloud game client does not support related operations of the input methods. When the user needs to use the input method, the cloud game server is controlled to switch to the corresponding input method, and then key position information can be input to the input method of the server through a keyboard instruction. However, the scheme of pre-installing the input method at the cloud game server requires a high operation and maintenance cost because the multi-language input method needs to be pre-installed to all cloud game servers and languages of all countries and regions which may be used by cloud game users need to be considered; moreover, installing the first input method program on the cloud game server side brings potential safety hazards, because the input method belongs to a third party application program outside the system, and if the input method program has a safety problem, the cloud game server may be controlled. On the other hand, the input method is installed at the cloud game service end, only one or more input method programs can be installed, the use habits of all cloud game users cannot be considered, and if the installed input method programs are different from the input methods frequently used by the users, the users need to learn and adapt to the new input methods in the process of using the cloud games, so that the product experience is affected.
In a specific scenario, the application may be used in a scenario where a user needs to input in a non-latin language during a cloud game play, for example, a scenario where text chat, text commands, etc. are input in a cloud game. When the User needs to input characters by using the input method, the User only needs to use a normal input method to switch the combination key to switch the local input method, and all User Interface (UI) interactions of the input method are consistent with those of the local input method. The text content input by the user is acquired at the client, is transmitted to the cloud game server through the special network protocol, then the corresponding text content is displayed at the designated position, and finally the game picture is transmitted back to the client through the media stream, so that the multi-language input method interaction under the cloud game scene is realized.
According to the method and the system, the interaction of the input method can be realized, the input method program is not required to be installed in advance at the game server, the workload of maintenance at the server is reduced, and the safety of the cloud game server is improved. On the other hand, cloud game users can use any input method existing locally, interaction experience is completely consistent with the playing of the local game, and the cloud game user does not need to learn and adapt to a new input method, so that the use experience of the cloud game is greatly improved.
Specifically, in this embodiment, as shown in fig. 2b, a user may click a designated area of a game screen in a cloud game through a mouse, or input through designated keys of a keyboard, send an input method start request to a cloud game server, the cloud game server receives the input method start request, when a game logic meets a preset condition, generates a first input method state update instruction to trigger the start of the input method, and the cloud game server sends the first input method state update instruction to a cloud game client, where the first input method state update instruction may control the enable, position and size of an input control in the cloud game client, and the first input method state update instruction is specifically referred to herein as an input method start instruction and is used for starting an input method of the cloud game client; after receiving the first input method state updating instruction, the cloud game client initializes the input method, displays an input box (namely an input control) on a game picture, and the user can switch the input method, input text contents, send the input method text instruction carrying the text contents to the cloud game server based on the text input confirmation operation of the user, receive and process the instruction by the cloud game server, generate a second input method state updating instruction, and send the second input method state updating instruction to the cloud game client, so that the cloud game client updates the state of the input control based on the second input method state updating instruction, and displays a target game picture.
As can be seen from the above, the present embodiment can transmit the game screen to the cloud game client; receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content; according to the text content and the game logic, attribute information of an input control in the cloud game client is adjusted; and sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the text content. According to the embodiment of the application, the input method program is installed on the cloud game client, the input method program does not need to be installed in the cloud game server in advance, the deployment and maintenance cost of the cloud game server is reduced, and the safety of the cloud game server is improved.
In order to better implement the above method, the embodiment of the application also provides an input method implementation system. As shown in fig. 3a, the input method implementation system includes a first input method implementation device 31 and a second input method implementation device 32, where the first input method implementation device may be regarded as a client in a terminal, and the second input method implementation device may be specifically integrated in a server. The first input method implementing apparatus 31 may include a first display unit 3101, a second display unit 3102, a first transmitting unit 3103, an acquiring unit 3104, and a third display unit 3105; the second input method implementation device 32 may include a transmission unit 3201, a reception unit 3202, an adjustment unit 3203, and a second transmission unit 3204, as follows:
(1) A first display unit 3101;
the first display unit 3101 is configured to display, on the cloud game client, a game screen transmitted by the cloud game server.
Optionally, in some embodiments of the present application, the first display unit 3101 may be specifically configured to display a game window on a cloud game client, where the game window includes a game screen transmitted by a cloud game server, and the input control includes an input child window on the game window.
(2) A second display unit 3102;
and a second display unit 3102, configured to display an input control corresponding to the input method in the current game screen in response to a text input trigger operation for the game screen.
Optionally, in some embodiments of the present application, the second display unit 3102 may include a first transmitting subunit 31021 and a first display subunit 31022, see fig. 3b, as follows:
the first sending subunit 31021 is configured to send an input method start request to the cloud game server in response to a text input trigger operation for the game screen, where the input method start request instructs the cloud game server to send an input method start instruction to the cloud game client;
The first display subunit 31022 is configured to display an input control corresponding to the input method in the current game screen according to the input method start instruction sent by the cloud game server.
Optionally, in some embodiments of the present application, the input method initiation instruction indicates an initial attribute of the input control; the first display subunit 31022 may be specifically configured to receive an input method start instruction sent by the cloud game server; analyzing the input method starting instruction to obtain the initial attribute of the input control; and displaying an input control corresponding to the input method in the current game picture according to the initial attribute.
(3) A first transmission unit 3103;
a first sending unit 3103, configured to send, to the cloud game server, an input method text instruction carrying input text content in response to a text input confirmation operation for the input control, where the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic.
Optionally, in some embodiments of the present application, the first transmitting unit 3103 may include a second display subunit 31031 and a second transmitting subunit 31032, see fig. 3c, as follows:
The second display subunit 31031 is configured to display an input method panel in response to a text input operation for the input control, where the input method panel includes candidate input text corresponding to the text input operation;
the second sending subunit 31032 is configured to send, to the cloud game server, an input method text instruction carrying the input text content in response to a text input confirmation operation for the input method panel.
(4) An acquisition unit 3104;
an obtaining unit 3104 is configured to obtain game screen data and adjusted attribute information of the input control from the cloud game server.
(5) A third display unit 3105;
and a third display unit 3105, configured to display a target game screen according to the game screen data and the adjusted attribute information of the input control, where the target game screen includes an attribute-adjusted input control, and the attribute-adjusted input control includes the text content.
Optionally, in some embodiments of the present application, the input control includes an input sub-window on the game window; the third display unit 3105 may comprise a first adjustment subunit 31051 and a third display subunit 31052, see fig. 3d, as follows:
The first adjustment subunit 31051 is configured to adjust the input sub-window based on the adjusted attribute information of the input sub-window, to obtain an attribute-adjusted input sub-window;
and a third display sub-unit 31052, configured to display a target game screen in the game window according to the text content, the game screen data, and the attribute-adjusted input sub-window, where the target game screen includes the attribute-adjusted input sub-window, and the attribute-adjusted input sub-window includes the text content.
Optionally, in some embodiments of the present application, the adjusted attribute information of the input control includes an adjusted control attribute of the input control, and an adjusted text attribute of the text to be displayed in the input control; the third display unit 3105 may include a first control adjustment subunit 31053, a first text adjustment subunit 31054, and a fourth display subunit 31055, see fig. 3e, as follows:
the first control adjustment subunit 31053 is configured to adjust the input control according to the adjusted control attribute, to obtain an input control after attribute adjustment;
a first text adjustment subunit 31054, configured to adjust the text content according to the adjusted text attribute, to obtain an attribute-adjusted text content;
The fourth display subunit 31055 is configured to display a target game screen based on the attribute-adjusted input control, the attribute-adjusted text content, and the game screen data, where the target game screen includes the attribute-adjusted input control, and the attribute-adjusted input control includes the attribute-adjusted text content.
Optionally, in some embodiments of the present application, the adjusted attribute information includes an adjusted cursor position corresponding to an input cursor in the input control; the third display unit 3105 may further include a cursor display subunit 31056, see fig. 3f, as follows:
the cursor display subunit 31056 is configured to display an input cursor in the attribute-adjusted input control based on the adjusted cursor position.
Optionally, in some embodiments of the present application, the game screen data includes a base game screen with attribute-adjusted text content; the adjusted attribute information of the input control comprises an adjusted control attribute of the input control; the third display unit 3105 may include a second adjustment subunit 31057, a first fusion subunit 31058, and a fifth display subunit 31059, see fig. 3g, as follows:
The second adjustment subunit 31057 is configured to adjust the input control according to the adjusted control attribute, to obtain an attribute-adjusted input control;
a first fusing subunit 31058, configured to fuse the basic game frame and the attribute-adjusted input control, to obtain a target game frame;
a fifth display subunit 31059 for displaying the target game screen.
Optionally, in some embodiments of the present application, the input control is an editable game window, and the game window is used for displaying a game screen; the third display unit 3105 may include a third adjustment subunit 310510 and a sixth display subunit 310511, see fig. 3h, as follows:
the third adjustment subunit 310510 is configured to adjust the game window based on the adjusted attribute information of the game window, to obtain an attribute-adjusted game window;
and a sixth display subunit 310511, configured to display a target game screen in the game window after attribute adjustment according to the text content, the game screen data, and the game window after attribute adjustment, where the target game screen includes the text content.
(6) A transmission unit 3201;
a transmission unit 3201 for transmitting the game screen to the cloud game client.
(7) A receiving unit 3202;
and a receiving unit 3202, configured to receive an input method text instruction sent by the cloud game client based on the game screen, where the input method text instruction carries input text content.
(8) An adjusting unit 3203;
and the adjusting unit 3203 is used for adjusting attribute information of the input control in the cloud game client according to the text content and the game logic.
Optionally, in some embodiments of the present application, the attribute information includes a control attribute of the input control, and a text attribute of a text to be displayed in the input control; the adjustment unit 3203 may include a second text adjustment subunit 32031 and a second control adjustment subunit 32032, see fig. 3i, as follows:
the second text adjustment subunit 32031 is configured to adjust text attributes of the text content according to the text content and game logic;
the second control adjustment subunit 32032 is configured to adjust a control attribute of an input control in the cloud game client based on the adjusted text attribute.
Optionally, in some embodiments of the present application, the second text adjustment subunit 32031 may be specifically configured to obtain, according to game logic, a game screen to be displayed; and adjusting the character attribute of the character content based on the character content and the game picture to be displayed.
Optionally, in some embodiments of the present application, the attribute information includes a cursor position corresponding to an input cursor in the input control; the adjustment unit 3203 may comprise a cursor adjustment subunit 32033, see fig. 3j, as follows:
the cursor adjusting subunit 32033 is configured to adjust a cursor position corresponding to an input cursor in the cloud game client according to the text content and the game logic.
Optionally, in some embodiments of the present application, the attribute information includes a control attribute of the input control, and a text attribute of a text to be displayed in the input control; the adjustment unit 3203 may include a third text adjustment subunit 32034, a third control adjustment subunit 32035, and a second fusion subunit 32036, see fig. 3k, as follows:
the third text adjustment subunit 32034 is configured to adjust a text attribute of the text content based on the text content and game logic;
a third control adjustment subunit 32035, configured to adjust a control attribute of an input control in the cloud game client based on the adjusted text attribute;
and the second fusing subunit 32036 is configured to fuse the text content after attribute adjustment with the current game picture, and obtain fused game picture data.
(9) A second transmission unit 3204;
the second sending unit 3204 is configured to send game frame data and adjusted attribute information of the input control to the cloud game client, so that the cloud game client displays a target game frame according to the game frame data and the adjusted attribute information of the input control, where the target game frame includes an attribute-adjusted input control, and the attribute-adjusted input control includes the text content.
Optionally, in some embodiments of the present application, the attribute information includes a control attribute of the input control, and a text attribute of a text to be displayed in the input control; the second sending unit 3204 may specifically be configured to send the fused game frame data and the adjusted control attribute of the input control to the cloud game client, so that the cloud game client displays a target game frame according to the fused game frame data and the adjusted control attribute of the input control, where the target game frame includes an attribute-adjusted input control, and the attribute-adjusted input control includes attribute-adjusted text content.
Optionally, in some embodiments of the present application, the second input method implementation device 32 may further include a starting unit 3205; the initiation unit may comprise an acquisition subunit 32051, a generation subunit 32052 and a third transmission subunit 32053, see fig. 3l, as follows:
The obtaining subunit 32051 is configured to obtain a current game logic of the cloud game when receiving an input method start request sent by the cloud game client;
a generating subunit 32052, configured to generate an input method start instruction when the current game logic meets a preset condition;
and the third sending subunit 32053 is configured to send the input method start instruction to the cloud game client, so that the cloud game client displays an input control corresponding to the input method in the current game screen.
Optionally, in some embodiments of the present application, the generating subunit 32052 may be specifically configured to obtain, when the current game logic meets a preset condition, an initial attribute of an input control in the cloud game client based on a game frame that needs to be displayed corresponding to the current game logic; and generating an input method starting instruction based on the initial attribute of the input control.
Optionally, in some embodiments of the present application, the input control is an editable game window, and the game window is used for displaying a game screen; the adjusting unit 3203 may be specifically configured to adjust attribute information of an editable game window in the cloud game client according to the text content and the game logic;
The second sending unit 3204 may specifically be configured to send game frame data and adjusted attribute information of the editable game window to the cloud game client, so that the cloud game client displays a target game frame on the editable game window with the adjusted attribute according to the game frame data and the adjusted attribute information of the editable game window, where the target game frame includes the text content.
Optionally, in some embodiments of the present application, before the step of adjusting attribute information of an editable game window in the cloud game client according to the text content and the game logic, the method further includes:
and according to the input method framework, realizing the game window on the cloud game client as a game window capable of supporting text editing, and obtaining the editable game window.
As can be seen from the above, in this embodiment, the game screen transmitted by the cloud game server may be displayed on the cloud game client through the first display unit 3101; the second display unit 3102 is used for responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to the input method in the current game picture; transmitting, by the first transmitting unit 3103, an input method text instruction carrying input text content to the cloud game server in response to a text input confirmation operation for the input control, the input method text instruction indicating: the cloud game server adjusts attribute information of the input control based on the text content and game logic; acquiring game screen data and adjusted attribute information of the input control from the cloud game server through an acquisition unit 3104; displaying, by a third display unit 3105, a target game screen according to the game screen data and the adjusted attribute information of the input control, the target game screen including an attribute-adjusted input control including the text content;
Alternatively, the game screen is transmitted to the cloud game client through the transmission unit 3201; receiving, by a receiving unit 3202, an input method text instruction sent by the cloud game client based on the game screen, where the input method text instruction carries input text content; adjusting attribute information of an input control in the cloud game client by an adjusting unit 3203 according to the text content and the game logic; sending game picture data and the adjusted attribute information of the input control to the cloud game client through a second sending unit 3204, so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content;
according to the embodiment of the application, the input method program is installed on the cloud game client, the input method program does not need to be installed in the cloud game server in advance, the deployment and maintenance cost of the cloud game server is reduced, and the safety of the cloud game server is improved.
The embodiment of the application also provides an electronic device, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
The electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402.
If the electronic device is a terminal, the electronic device may implement the following functions:
displaying a game picture transmitted by a cloud game server on a cloud game client; responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to an input method in the current game picture; responding to a text input confirmation operation aiming at the input control, and sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic; acquiring game picture data and adjusted attribute information of the input control from the cloud game server; and displaying a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
If the electronic device is a server, the electronic device may implement the following functions:
transmitting the game picture to a cloud game client; receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content; according to the text content and the game logic, attribute information of an input control in the cloud game client is adjusted; and sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
As can be seen from the above, the embodiment can display the game screen transmitted by the cloud game server on the cloud game client; responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to an input method in the current game picture; responding to a text input confirmation operation aiming at the input control, and sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic; acquiring game picture data and adjusted attribute information of the input control from the cloud game server; and displaying a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content. According to the embodiment of the application, the input method program is installed on the cloud game client, the input method program does not need to be installed in the cloud game server in advance, the deployment and maintenance cost of the cloud game server is reduced, and the safety of the cloud game server is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform steps in any of the input method implementation methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
displaying a game picture transmitted by a cloud game server on a cloud game client; responding to the text input triggering operation aiming at the game picture, and displaying an input control corresponding to an input method in the current game picture; responding to a text input confirmation operation aiming at the input control, and sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic; acquiring game picture data and adjusted attribute information of the input control from the cloud game server; displaying a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises an attribute-adjusted input control, and the attribute-adjusted input control comprises the text content;
Or alternatively, the process may be performed,
transmitting the game picture to a cloud game client; receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content; according to the text content and the game logic, attribute information of an input control in the cloud game client is adjusted; and sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client displays a target game picture according to the game picture data and the adjusted attribute information of the input control, wherein the target game picture comprises the attribute-adjusted input control, and the attribute-adjusted input control comprises the text content.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium may perform steps in any one of the input method implementation methods provided in the embodiments of the present application, so that the beneficial effects that any one of the input method implementation methods provided in the embodiments of the present application can be achieved, which are detailed in the previous embodiments and are not repeated herein.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in various alternative implementations of the cloud game input method aspects described above.
The foregoing describes in detail a method, an apparatus, an electronic device, and a storage medium for implementing an input method provided in the embodiments of the present application, where specific examples are applied to illustrate principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (19)

1. An implementation method of an input method is characterized by comprising the following steps:
displaying a game window on a cloud game client, wherein the game window comprises a game picture transmitted by a cloud game server;
Responding to a text input triggering operation aiming at the game picture, sending an input method starting request to the cloud game server, wherein the input method starting request instructs the cloud game server to send an input method starting instruction to the cloud game client;
displaying an input control corresponding to an input method in a current game picture according to an input method starting instruction sent by the cloud game server, wherein the input control comprises an input sub-window on the game window;
responding to a text input confirmation operation aiming at the input control, and sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic;
obtaining game picture data and adjusted attribute information of the input control from the cloud game server, wherein the adjusted attribute information of the input control comprises the adjusted attribute information of the input sub-window;
based on the adjusted attribute information of the input sub-window, adjusting the input sub-window to obtain an attribute-adjusted input sub-window;
And displaying a target game picture in the game window according to the text content, the game picture data and the attribute-adjusted input sub-window, wherein the target game picture comprises the attribute-adjusted input sub-window, and the attribute-adjusted input sub-window comprises the text content.
2. The method of claim 1, wherein the input method initiation instruction indicates an initial attribute of an input control; the method for displaying the input control corresponding to the input method in the current game picture according to the input method starting instruction sent by the cloud game server comprises the following steps:
receiving an input method starting instruction sent by the cloud game server;
analyzing the input method starting instruction to obtain the initial attribute of the input control;
and displaying an input control corresponding to the input method in the current game picture according to the initial attribute.
3. The method of claim 1, wherein the sending, to the cloud gaming server, an input method word instruction carrying the input word content in response to a word input validation operation for the input control, comprises:
responding to a text input operation aiming at the input control, and displaying an input method panel, wherein the input method panel comprises candidate input text corresponding to the text input operation;
And responding to the text input confirmation operation aiming at the input method panel, and sending an input method text instruction carrying the input text content to the cloud game server.
4. The method of claim 1, wherein the adjusted attribute information of the input control further comprises an adjusted text attribute of text to be displayed within the input control; the sub-window is input after being adjusted according to the text content, the game picture data and the attribute, and before the target game picture is displayed in the game window, the method further comprises the following steps:
according to the character attribute after adjustment, adjusting the character content to obtain character content after attribute adjustment;
the step of inputting the sub-window after the adjustment according to the text content, the game picture data and the attribute, and displaying a target game picture in the game window comprises the following steps:
and displaying a target game picture in the game window based on the attribute-adjusted input sub-window, the attribute-adjusted text content and the game picture data, wherein the target game picture comprises the attribute-adjusted input sub-window, and the attribute-adjusted input sub-window comprises the attribute-adjusted text content.
5. The method of claim 1, wherein the adjusted attribute information of the input control further comprises an adjusted cursor position corresponding to an input cursor in the input control; the method further comprises the steps of:
and displaying an input cursor in the attribute-adjusted input sub-window based on the adjusted cursor position.
6. The method of claim 1, wherein the game screen data comprises a base game screen with attribute-adjusted text content; the step of inputting the sub-window after the adjustment according to the text content, the game picture data and the attribute, and displaying a target game picture in the game window comprises the following steps:
the basic game picture and the attribute are input into a sub-window for fusion after being adjusted, and a target game picture is obtained;
and displaying the target game picture in the game window.
7. The method of claim 1, wherein the input control is an editable game window, the adjusted input sub-window according to the text content, the game screen data, and the attribute, displaying a target game screen in the game window, comprising:
adjusting the game window based on the adjusted attribute information of the game window to obtain an attribute-adjusted game window;
And displaying a target game picture in the game window after attribute adjustment according to the text content, the game picture data, the input sub window after attribute adjustment and the game window after attribute adjustment, wherein the target game picture comprises the text content.
8. An implementation method of an input method is characterized by comprising the following steps:
transmitting a game picture to a cloud game client so that the cloud game client displays the game picture on a game window;
when an input method starting request sent by the cloud game client is received, acquiring the current game logic of a cloud game;
when the current game logic meets preset conditions, generating an input method starting instruction;
the input method starting instruction is sent to the cloud game client so that the cloud game client displays an input control corresponding to an input method in a current game picture, wherein the input control comprises an input sub-window on the game window;
receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content;
according to the text content and the game logic, attribute information of an input control in the cloud game client is adjusted;
And sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client adjusts the input sub-window based on the adjusted attribute information of the input sub-window to obtain an attribute-adjusted input sub-window, and displaying a target game picture in the game window according to the text content, the game picture data and the attribute-adjusted input sub-window, wherein the target game picture comprises the attribute-adjusted input sub-window, and the attribute-adjusted input sub-window comprises the text content.
9. The method of claim 8, wherein generating an input method start instruction when the current game logic meets a preset condition comprises:
when the current game logic meets preset conditions, acquiring initial attributes of input controls in the cloud game client based on game pictures which are needed to be displayed and corresponding to the current game logic;
and generating an input method starting instruction based on the initial attribute of the input control.
10. The method of claim 8, wherein the attribute information includes a control attribute of the input control and a text attribute of text to be displayed within the input control; and adjusting attribute information of an input control in the cloud game client according to the text content and the game logic, wherein the attribute information comprises:
According to the text content and the game logic, adjusting the text attribute of the text content;
and adjusting the control attribute of the input control in the cloud game client based on the adjusted text attribute.
11. The method of claim 10, wherein said adjusting the text attribute of the text content according to the text content and game logic comprises:
obtaining a game picture to be displayed according to game logic;
and adjusting the character attribute of the character content based on the character content and the game picture to be displayed.
12. The method of claim 8, wherein the attribute information includes a cursor position corresponding to an input cursor in the input control; and adjusting attribute information of an input control in the cloud game client according to the text content and the game logic, wherein the attribute information comprises:
and adjusting the cursor position corresponding to the input cursor in the cloud game client according to the text content and the game logic.
13. The method of claim 8, wherein the attribute information includes a control attribute of the input control and a text attribute of text to be displayed within the input control; and adjusting attribute information of an input control in the cloud game client according to the text content and the game logic, wherein the attribute information comprises:
Based on the text content and game logic, adjusting text attributes of the text content;
based on the adjusted character attribute, adjusting a control attribute of an input control in the cloud game client;
fusing the character content with the current game picture after attribute adjustment to obtain fused game picture data;
the sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client adjusts the input sub-window based on the adjusted attribute information of the input sub-window to obtain an attribute-adjusted input sub-window, and displaying a target game picture in the game window according to the text content, the game picture data and the attribute-adjusted input sub-window, comprising:
and sending the fused game picture data and the adjusted control attribute of the input control to the cloud game client so that the cloud game client adjusts the input sub-window based on the adjusted control attribute of the input sub-window to obtain an attribute-adjusted input sub-window, and displaying a target game picture in the game window according to the fused game picture data and the attribute-adjusted input sub-window, wherein the target game picture comprises the attribute-adjusted input sub-window, and the attribute-adjusted input sub-window comprises attribute-adjusted text content.
14. The method of claim 8, wherein the input control is an editable game window; and adjusting attribute information of an input control in the cloud game client according to the text content and the game logic, wherein the attribute information comprises:
according to the text content and the game logic, attribute information of an editable game window in the cloud game client is adjusted;
the sending game picture data and the adjusted attribute information of the input control to the cloud game client so that the cloud game client adjusts the input sub-window based on the adjusted attribute information of the input sub-window to obtain an attribute-adjusted input sub-window, and displaying a target game picture in the game window according to the text content, the game picture data and the attribute-adjusted input sub-window, comprising:
and sending game picture data and the adjusted attribute information of the editable game window to the cloud game client, so that the cloud game client adjusts the input sub-window based on the adjusted attribute information of the input sub-window to obtain an attribute-adjusted input sub-window, and displaying a target game picture on the attribute-adjusted editable game window according to the game picture data, the attribute-adjusted input sub-window and the adjusted attribute information of the editable game window, wherein the target game picture comprises the text content.
15. The method of claim 14, wherein before adjusting the property information of the editable game window in the cloud game client according to the text content and game logic, further comprising:
and according to the input method framework, realizing the game window on the cloud game client as a game window capable of supporting text editing, and obtaining the editable game window.
16. An input method implementation device, comprising:
the first display unit is used for displaying a game window on the cloud game client, wherein the game window comprises a game picture transmitted by the cloud game server;
the second display unit is used for responding to the text input triggering operation aiming at the game picture and sending an input method starting request to the cloud game server, wherein the input method starting request instructs the cloud game server to send an input method starting instruction to the cloud game client; displaying an input control corresponding to an input method in a current game picture according to an input method starting instruction sent by the cloud game server, wherein the input control comprises an input sub-window on the game window;
the first sending unit is used for responding to the text input confirmation operation aiming at the input control, sending an input method text instruction carrying input text content to the cloud game server, wherein the input method text instruction indicates: the cloud game server adjusts attribute information of the input control based on the text content and game logic;
The acquisition unit is used for acquiring game picture data and the adjusted attribute information of the input control from the cloud game server, wherein the adjusted attribute information of the input control comprises the adjusted attribute information of the input sub-window;
the third display unit is used for adjusting the input sub-window based on the adjusted attribute information of the input sub-window to obtain an attribute-adjusted input sub-window; and displaying a target game picture in the game window according to the text content, the game picture data and the attribute-adjusted input sub-window, wherein the target game picture comprises the attribute-adjusted input sub-window, and the attribute-adjusted input sub-window comprises the text content.
17. An input method implementation device, comprising:
the transmission unit is used for transmitting the game picture to the cloud game client so that the cloud game client displays the game picture on a game window;
the starting unit is used for acquiring the current game logic of the cloud game when receiving an input method starting request sent by the cloud game client; when the current game logic meets preset conditions, generating an input method starting instruction; the input method starting instruction is sent to the cloud game client so that the cloud game client displays an input control corresponding to an input method in a current game picture, wherein the input control comprises an input sub-window on the game window;
The receiving unit is used for receiving an input method word instruction sent by the cloud game client based on the game picture, wherein the input method word instruction carries input word content;
the adjusting unit is used for adjusting attribute information of an input control in the cloud game client according to the text content and the game logic;
the second sending unit is used for sending game picture data and the adjusted attribute information of the input control to the cloud game client, so that the cloud game client adjusts the input sub-window based on the adjusted attribute information of the input sub-window to obtain an attribute adjusted input sub-window, and a target game picture is displayed in the game window according to the text content, the game picture data and the attribute adjusted input sub-window, wherein the target game picture comprises the attribute adjusted input sub-window, and the attribute adjusted input sub-window comprises the text content.
18. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform the operations in the input method implementation method of any one of claims 1 to 15.
19. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the input method implementation of any of claims 1 to 15.
CN202010626975.0A 2020-07-01 2020-07-01 Input method implementation method, device, electronic equipment and storage medium Active CN111766958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010626975.0A CN111766958B (en) 2020-07-01 2020-07-01 Input method implementation method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010626975.0A CN111766958B (en) 2020-07-01 2020-07-01 Input method implementation method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111766958A CN111766958A (en) 2020-10-13
CN111766958B true CN111766958B (en) 2023-07-25

Family

ID=72723470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010626975.0A Active CN111766958B (en) 2020-07-01 2020-07-01 Input method implementation method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111766958B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491974A (en) * 2020-11-11 2021-03-12 恒安嘉新(北京)科技股份公司 Remote browsing method and device, storage medium, terminal equipment and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653066A (en) * 2016-01-29 2016-06-08 腾讯科技(深圳)有限公司 Input method processing method and equipment
CN111324216A (en) * 2020-02-19 2020-06-23 北京视博云信息技术有限公司 Character input method, device and system for cloud application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150040393A (en) * 2013-10-04 2015-04-15 한국전자통신연구원 Cloud server and method for providing cloud game service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653066A (en) * 2016-01-29 2016-06-08 腾讯科技(深圳)有限公司 Input method processing method and equipment
CN111324216A (en) * 2020-02-19 2020-06-23 北京视博云信息技术有限公司 Character input method, device and system for cloud application

Also Published As

Publication number Publication date
CN111766958A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
JP7263442B2 (en) System and method for real-time remote control of mobile applications
KR102255138B1 (en) Message processing method and device, storage medium, and computer device
WO2021159771A1 (en) Overlay comment processing method and apparatus, electronic device, and computer-readable storage medium
CN110418151B (en) Bullet screen information sending and processing method, device, equipment and medium in live game
WO2018113140A1 (en) Method and system for displaying virtual gift during live video broadcast
CN107145355B (en) Page layout adjusting method and device, storage medium, processor and terminal
WO2022188595A1 (en) Method and apparatus for displaying application picture, and terminal, screen projection system and medium
CN115509398A (en) Method for displaying emoticons using instant messaging service and user device thereof
US20140052801A1 (en) Method for transmitting messages in instant messaging, client and storage medium thereof
CN102460407A (en) Virtual desktop services
CN103530096A (en) Remote control method, remote control equipment and display equipment
KR102136474B1 (en) Synchronization of client-side keyboard layout with server-side keyboard layout in a virtual session
US20230364516A1 (en) Methods and apparatuses for creating team in virtual scene and joining team in virtual scene
CN101669104A (en) Local themeing of remote applications
CN112516589A (en) Game commodity interaction method and device in live broadcast, computer equipment and storage medium
CN113117326B (en) Frame rate control method and device
CN111880695A (en) Screen sharing method, device, equipment and storage medium
US20230032666A1 (en) Data transmission method and apparatus, terminal, and storage medium
US20220291815A1 (en) Message transmitting method and apparatus, message receiving method and apparatus, device, and medium
CN111766958B (en) Input method implementation method, device, electronic equipment and storage medium
CN112295217B (en) Device joining method and device, electronic device and computer readable medium
WO2018046007A1 (en) Instant dynamic text inputting method, system, and device
CN113360034A (en) Picture display method and device, computer equipment and storage medium
KR20160094663A (en) Method and server for providing user emoticon of online chat service
WO2022166943A1 (en) Message sending method and apparatus, and electronic device and readable 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40031345

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant