CN115501573B - Method and device for acquiring multi-point touch data applied to server - Google Patents

Method and device for acquiring multi-point touch data applied to server Download PDF

Info

Publication number
CN115501573B
CN115501573B CN202211460903.9A CN202211460903A CN115501573B CN 115501573 B CN115501573 B CN 115501573B CN 202211460903 A CN202211460903 A CN 202211460903A CN 115501573 B CN115501573 B CN 115501573B
Authority
CN
China
Prior art keywords
data
touch
initial
target
server
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
CN202211460903.9A
Other languages
Chinese (zh)
Other versions
CN115501573A (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.)
Beijing Weiling Times Technology Co Ltd
Original Assignee
Beijing Weiling Times Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Weiling Times Technology Co Ltd filed Critical Beijing Weiling Times Technology Co Ltd
Priority to CN202211460903.9A priority Critical patent/CN115501573B/en
Publication of CN115501573A publication Critical patent/CN115501573A/en
Application granted granted Critical
Publication of CN115501573B publication Critical patent/CN115501573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • 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/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • A63F13/358Adapting the game course according to the network or server load, e.g. for reducing latency due to different connection speeds between clients
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1068Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad
    • A63F2300/1075Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad using a touch screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a method and a device for acquiring multi-point touch data, which are applied to a server side, wherein the method comprises the following steps: after the cloud game runs, acquiring initial multi-point touch data; the initial multi-point touch data comprises initial touch position data, and the initial touch position data is used for representing a touch position corresponding to touch operation on a game interface of front-end equipment interacting with the server; mapping the initial touch position data into target touch position data corresponding to a cloud game running on a server; taking the target touch position data and other data except the initial touch position data in the initial multi-point touch data as target multi-point touch data, and storing the target multi-point touch data into a virtual environment deployed on a server; through an API function of the HOOK cloud game, the cloud game can obtain target multi-point touch data, and therefore the problems that the cloud game is bulkier and the running speed is slow in the prior art can be solved.

Description

Method and device for acquiring multi-point touch data applied to server
Technical Field
The invention relates to the technical field of cloud games, in particular to a method and a device for acquiring multi-point touch data applied to a server.
Background
The cloud game is a game mode based on cloud computing, all games run at a server side in a running mode of the cloud game, and a rendered game picture is compressed and then transmitted to a user through a network.
Currently, when a server of a cloud game processes multi-touch data, the cloud game is modified to obtain the touch data. However, the above acquisition method causes problems in that the cloud game itself becomes more bulky and the running speed is slowed down.
Disclosure of Invention
Technical problem to be solved
In view of the foregoing disadvantages and shortcomings of the prior art, the present invention provides a method and an apparatus for acquiring multi-touch data for a server, which solve the problems that a cloud game itself becomes bulkier and the running speed is slowed down due to the existing acquisition method.
(II) technical scheme
In order to achieve the purpose, the invention adopts the main technical scheme that:
in a first aspect, an embodiment of the present invention provides a method for obtaining multi-touch data, which is applied to a server, and the method includes: after the cloud game runs, acquiring initial multi-point touch data; the initial multi-point touch data comprises initial touch position data, and the initial touch position data is used for representing a touch position corresponding to touch operation on a game interface of front-end equipment interacting with the server; mapping the initial touch position data into target touch position data corresponding to a cloud game running on a server; taking the target touch position data and other data except the initial touch position data in the initial multi-point touch data as target multi-point touch data, and storing the target multi-point touch data into a virtual environment deployed on a server; and through an API (application program interface) function of the HOOK cloud game, the cloud game acquires target multi-point touch data.
In some possible embodiments, obtaining initial multi-touch data comprises: receiving a message which is sent by front-end equipment and carries initial multi-point touch data; performing data identification on all data carried by the message to identify the data types of all the data carried by the message; based on the data type, initial multi-touch data is obtained.
In some possible embodiments, prior to acquiring the initial multi-touch data, the method further comprises: when the cloud game is started, receiving a message which is sent by front-end equipment and carries parameter data of the front-end equipment and packaging format data of initial multi-point touch data.
In some possible embodiments, the data identification is performed on all data carried by the message, including: and performing data identification on all data carried by the message based on the packaging format data so as to identify the data with the data type being a multi-point touch data type from all the data carried by the message.
In some possible embodiments, the parameter data includes a target identification of the front-end device and target screen size data of the front-end device; mapping the initial touch position data to target touch position data corresponding to a cloud game running on a server, wherein the target touch position data comprises: searching target screen size data from all screen size data based on the target identifier of the front-end equipment; and mapping the initial touch position data into target touch position data corresponding to the cloud game running on the server based on the target screen size data.
In some possible embodiments, the other data includes data of the number of touch points, relative time of the touch operation, category of the touch operation, and a feature value corresponding to the category.
In some possible embodiments, the API interface function includes a GetTouchInputInfo function.
In a second aspect, an embodiment of the present invention provides an apparatus for obtaining multi-touch data, where the apparatus is applied to a server, and the apparatus includes: the acquisition module is used for acquiring initial multi-point touch data after the cloud game runs; the initial multi-point touch data comprises initial touch position data, and the initial touch position data is used for representing a touch position corresponding to touch operation on a game interface of front-end equipment interacting with the server; the mapping module is used for mapping the initial touch position data into target touch position data corresponding to a cloud game running on the server; the storage module is used for taking the target touch position data and other data except the initial touch position data in the initial multi-point touch data as target multi-point touch data and storing the target multi-point touch data into a virtual environment deployed on a server; and the HOOK module is used for enabling the cloud game to acquire target multi-point touch data through an API (application program interface) function of the HOOK cloud game.
In a third aspect, an embodiment of the present application provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program performs the method according to the first aspect or any optional implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the method of the first aspect or any of the alternative implementations of the first aspect.
In a fifth aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform the method of the first aspect or any possible implementation manner of the first aspect.
(III) advantageous effects
The invention has the beneficial effects that:
the embodiment of the application provides a method and a device for obtaining multi-touch data applied to a server, which are implemented by only putting multi-touch input data into a virtual environment corresponding to a cloud game, and then processing the data by using a logic of the cloud game for processing the multi-touch data (namely, an API (application program interface) function for processing the multi-touch data through HOOK (Hook function) so that the cloud game obtains target multi-touch data), so that a program of the cloud game does not need to be changed, and the problems that the cloud game is bulkier and the running speed is slowed down in the prior art can be solved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a method for obtaining multi-touch data applied to a server according to an embodiment of the present disclosure;
fig. 2 shows a block diagram of a structure of an apparatus for acquiring multi-touch data, which is applied to a server according to an embodiment of the present disclosure.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
In a user scenario of a cloud game, when a front-end device of a user is a device supporting a multi-touch function, related data of the multi-touch is sent to a server running a cloud game service through the front-end device of the user, and the cloud game is handed to process the related data, which is an ideal method for cloud game using the multi-touch.
Currently, the existing methods for acquiring multi-touch data include the following two methods:
one of the methods is to map the operation corresponding to the multi-touch to an equivalent operation corresponding to another input mode and send the equivalent operation to the cloud game after processing the data. However, when such a mapping operation is unknown or does not exist, the present operation data has to be discarded.
Another method is to process multi-touch data according to different devices when the front-end device used by the user is identified, and drive the modified game through related signals to acquire the stored data. However, such a method not only requires modification of the game, but also has to discard the operation data when the data format corresponding to the front-end device is unknown.
That is to say, the existing method for acquiring multi-touch data has the following disadvantages: because the front-end devices of the user are not uniform, the support of the multi-touch function by different front-end devices is also different, including but not limited to the number of touch points and the sampling frequency. Therefore, most cloud game servers choose to process touch data according to different user front ends, which causes the cloud game servers to be prone to deviation, missing or even incapable of processing multi-touch data of unknown devices, and causes the multi-touch data processing logic of the servers to be more tedious.
In addition, when part of the cloud game service terminals process the multi-point touch data, the touch data can be obtained by modifying the cloud game. However, the above-mentioned acquisition method causes the cloud game itself to become more bulky and the running speed to be slow, and the logic of the cloud game itself for processing the multi-touch data is wasted.
In addition, some cloud game servers convert the multi-touch signals of the front-end device into other input signals (for example, mouse input signals or keyboard input signals) to be processed by the cloud game, but the process of accurately converting and mapping the multi-touch signals and the other input signals is very labor-consuming, and the compiled logic has no reusability. In addition, some multi-touch signals cannot complete such conversion at all due to different input signal properties and data formats.
Based on this, the embodiment of the present application provides a scheme for obtaining multi-touch data, which is applied to a server, and only needs to put input data of multi-touch into a virtual environment corresponding to a cloud game, and then the cloud game may process the data by using its own logic for processing the multi-touch data (i.e., an API interface function for processing the multi-touch data is used by the cloud game to obtain target multi-touch data), so that a program of the cloud game does not need to be changed, and further, the problems that the cloud game itself becomes bulkier and the operation speed is slowed down in the prior art can be solved.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for obtaining multi-touch data applied to a server according to an embodiment of the present disclosure. As shown in fig. 1, the method includes:
step S110, when the cloud game is started, the server receives a message carrying the parameter data of the front-end device and the package format data of the initial multi-touch data, which is sent by the front-end device.
It should be understood that the data included in the parameter data may be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, the parameter data may include screen size data of the head end device and an identification of the head end device.
In order to facilitate understanding of step S110, the following description is made by specific embodiments.
Specifically, each time the cloud game is started, the front-end device may obtain an identifier of the front-end device, screen size data of the front-end device, a screen type of the front-end device (e.g., a capacitive screen and a resistive screen), the number of touch points of a screen of the front-end device (e.g., three-point touch, five-point touch, ten-point touch, and the like), a shake elimination logic, a packaging format of touch point data, and the like, and upload the data to the server. Correspondingly, the server can receive the data and analyze the front-end device based on the data, so that the server can obtain relevant information of the front-end device, that is, for the server, there is no unknown front-end device, and the problem that the cloud game server in the prior art is prone to deviation, missing or even incapable of processing multi-touch data of unknown devices can be solved.
Step S120, after the cloud game runs, the server side obtains initial multi-point touch data. The initial multi-touch data comprises initial touch position data, and the initial touch position data is used for representing a touch position corresponding to touch operation on a game interface of the front-end equipment interacting with the server.
It should be understood that the data included in the initial multi-touch data may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, the initial multi-touch data may include initial touch position data, data of the number of touch points, relative time of touch operations (e.g., the nth touch operation may be taken as an initial time, and then the relative time of the (n + 1) th touch operation may be a time difference from the time of the nth touch operation, etc.), type of touch operations (e.g., long press, drag, and click) and feature values corresponding to the type (e.g., last touch point corresponding to long press and drag behavior, etc.).
It should be noted here that the characteristic value may represent other parameters required for the game in addition to the above-described operation. For example, some cloud games require each touch to be mapped to a surface, and so on.
In order to facilitate understanding of step S120, description is made below by way of specific embodiments.
Specifically, the device control data uploaded by the front-end device is various (for example, it may include keyboard data, mouse data, joystick data, gyroscope data, touch data, and the like), so that the device control data uploaded by the front-end device can be subjected to data recognition, and the data recognition is used for distinguishing the types of the device control data. And when the judgment standard can be that the front-end equipment uploads the equipment control data, the data type is identified in the data head, and the identification mode depends on the data type identified in the data head, so that the multi-point touch data can be processed by reading the data type identified by the data head if the data type is multi-point touch data.
That is to say, the server receives a message carrying initial multi-touch data sent by the front-end device, and performs data identification on all data carried by the message by the server to identify the data types of all data carried by the message, and the server obtains the initial multi-touch data based on the data types.
For example, the data header of the data of the multi-touch data type may be determined by using the encapsulation format of the multi-touch data acquired in step S110, so that the data header of each data in all data carried in the message may be analyzed, and whether the data header of the current data is the data header of the data of the multi-touch data type may be determined, if the data header of the data of the multi-touch data type is used, the current data may be determined to be the multi-touch data, and then the multi-touch data may be correspondingly processed.
It should be noted here that different data may be processed differently. For example, the keyboard and mouse data can be processed by the keyboard and mouse data processing flow; for another example, the gyroscope data may follow a process flow of the gyroscope data.
Step S130, mapping the initial touch position data to target touch position data corresponding to the cloud game running on the server.
Specifically, since the aspect ratio and the size of the touch area of the front-end device are not necessarily the same as the aspect ratio (e.g., 1960 × 1080) and the size of the game running on the server, the touch position of the touch data transmitted from the front-end device needs to be mapped to the position corresponding to the cloud game running on the server.
That is, the server may find out the target screen size data from all the screen size data based on the target identifier of the front-end device, and map the initial touch position data to the target touch position data corresponding to the cloud game running on the server based on the target screen size data, so as to generate a piece of multi-touch data in a format required by the cloud game.
For example, in step S120, the server may obtain a target identifier of the current front-end device in addition to the initial multi-touch data. And, in step S130, the server may find out the target screen size data of the current front-end device from the screen size data of all the front-end devices based on the target identifier. And the server can also perform corresponding proportional amplification or reduction on the target screen size data based on the aspect ratio of the game running on the server, so that the aspect ratio of the target screen size data can be adjusted to be the aspect ratio of the adjusted target screen size data, and the aspect ratio of the adjusted target screen size data is the same as the aspect ratio of the game running on the server. And mapping the initial touch position data to target touch position data corresponding to a cloud game running on the server based on the position data of the initial touch position data corresponding to the target screen size data and the aspect ratio of the adjusted target screen size data.
Step S140 is to use the target touch position data and other data except the initial touch position data in the initial multi-touch data as target multi-touch data, and store the target multi-touch data in a virtual environment deployed on the server.
Specifically, since a shared data reading area can be set in the virtual environment, and the shared data reading area is a data reading area shared between the virtual environment and the cloud game, the server stores the target multi-touch data in the data reading area, so that the cloud game can go to the data reading area to call the target multi-touch data.
Step S150, the cloud game obtains target multi-touch data through an API interface function of the HOOK cloud game.
It should be understood that the functions included in the API interface function may be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, the API interface functions may include:
a GetSystemmetrics function for checking the support of the touch hardware;
the register touch Window function is used for obtaining the registration condition of the original touch message;
the GetTouchInputInfo function is used for intercepting original touch data;
and the GetGestureInfo function is used for intercepting gesture types and related data.
To facilitate understanding of step S150, the following description is made by specific examples.
Specifically, the HOOK is performed on the API function of the cloud game, so that the GetGestureInfo function can be used for acquiring target multi-point touch data, and the cloud game performs related processing based on the target multi-point touch data.
That is, in the application, when a program or an application is started, a HOOK initialization process is started along with a process, and after the process is completed, the HOOK intercepts an operating system function. The related data of multi-touch is sent to the back end by the front end device and then to the HOOK virtual environment of the game. When the process is triggered by the logic of the multi-touch operation by the virtual environment in the running process, the relevant functions in the HOOK virtual environment are called to acquire data, so that the identification and operation of the multi-touch data are completed.
Therefore, by means of the technical scheme, the input data of multi-touch are only required to be placed in the virtual environment corresponding to the cloud game, and then the cloud game processes the data by utilizing the logic of processing the multi-touch data, so that the program of the cloud game does not need to be changed, and the problems that the cloud game is bulkier and the running speed is slowed down in the prior art can be solved.
In addition, for the cloud game, the logic of the cloud game does not need to be modified, the cloud game is not limited by the supporting condition of the multi-touch function of the front end of the user, and errors are not easy to occur in data processing. And the method can be used for various remote programs and different front-end equipment without changing the programs of the cloud game and only changing the HOOK method.
In addition, based on the HOOK method, the multi-touch signal from the front end to the server end can be processed by the cloud game through the HOOK-related system interface. And as long as the game supports multi-touch operation, the game does not need to be modified. The probability of data errors is reduced and no signal conversion is required. The method for acquiring the multi-point touch data applied to the server only needs multi-point touch signal processing logic of the same server for different front-end devices.
It should be understood that the above method for obtaining multi-touch data applied to the server is only exemplary, and those skilled in the art may make various modifications, modifications or variations according to the above method and still fall within the scope of the present application.
Referring to fig. 2, fig. 2 is a block diagram illustrating a structure of an apparatus 200 for obtaining multi-touch data applied to a server according to an embodiment of the present disclosure. It should be understood that the apparatus 200 corresponds to the above method embodiment, and can perform the steps related to the above method embodiment, and the specific functions of the apparatus 200 can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy. The device 200 includes at least one software function module that can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the device 200. Specifically, the apparatus 200 includes:
the acquiring module 210 is configured to acquire initial multi-touch data after the cloud game runs; the initial multi-point touch data comprises initial touch position data, and the initial touch position data is used for representing a touch position corresponding to touch operation on a game interface of front-end equipment interacting with the server;
the mapping module 220 is configured to map the initial touch position data to target touch position data corresponding to a cloud game running on a server;
a storage module 230, configured to take the target touch position data and other data in the initial multi-touch data except the initial touch position data as target multi-touch data, and store the target multi-touch data in a virtual environment deployed on the server;
the HOOK module 240 is configured to enable the cloud game to obtain target multi-touch data through an API interface function of the HOOK cloud game.
Since the apparatus described in the above embodiments of the present invention is an apparatus used for implementing the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and the modification of the apparatus based on the method described in the above embodiments of the present invention, and thus the detailed description is omitted here. All the devices adopted in the method of the above embodiments of the present invention are within the intended scope of the present invention.
The present application also provides a storage medium having a computer program stored thereon, which, when executed by a processor, performs the method of the method embodiments.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the method of the method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the terms first, second, third and the like are for convenience only and do not denote any order. These words are to be understood as part of the name of the component.
Furthermore, it should be noted that in the description of the present specification, the description of the term "one embodiment", "some embodiments", "examples", "specific examples" or "some examples", etc., means that a specific feature, structure, material or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, the claims should be construed to include preferred embodiments and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include such modifications and variations.

Claims (10)

1. A method for obtaining multi-touch data applied to a server is characterized by comprising the following steps:
after the cloud game runs, acquiring initial multi-point touch data; the initial multi-touch data comprises initial touch position data, and the initial touch position data is used for representing a touch position corresponding to touch operation on a game interface of front-end equipment interacting with the server;
mapping the initial touch position data to target touch position data corresponding to a cloud game running on the server;
taking the target touch position data and other data except the initial touch position data in the initial multi-touch data as target multi-touch data, and storing the target multi-touch data into a virtual environment deployed on the server;
and obtaining the target multi-touch data by the cloud game through an API function of the cloud game by HOOK.
2. The method of claim 1, wherein the obtaining initial multi-touch data comprises:
receiving a message carrying the initial multi-point touch data sent by the front-end equipment;
performing data identification on all data carried by the message to identify the data types of all data carried by the message;
and acquiring the initial multi-point touch data based on the data type.
3. The method of claim 2, wherein prior to said obtaining initial multi-touch data, the method further comprises:
and when the cloud game is started, receiving a message which is sent by the front-end equipment and carries the parameter data of the front-end equipment and the packaging format data of the initial multi-point touch data.
4. The method of claim 3, wherein the performing data identification on all data carried by the message comprises:
and performing data identification on all data carried by the message based on the packaging format data so as to identify the data with the data type being a multi-point touch data type from all the data carried by the message.
5. The method of claim 3, wherein the parameter data includes a target identification of the head end device and target screen size data of the head end device; the mapping the initial touch position data to target touch position data corresponding to the cloud game running on the server side includes:
searching the target screen size data from all screen size data based on the target identifier of the front-end equipment;
and mapping the initial touch position data to target touch position data corresponding to the cloud game running on the server side based on the target screen size data.
6. The method according to claim 1, wherein the other data comprises data of the number of touch points, relative time of the touch operation, a type of the touch operation, and a feature value corresponding to the type.
7. The method of claim 1, wherein the API interface function comprises a GetTouchInputInfo function.
8. An apparatus for obtaining multi-touch data applied to a server, comprising:
the acquisition module is used for acquiring initial multi-point touch data after the cloud game runs; the initial multi-touch data comprises initial touch position data, and the initial touch position data is used for representing a touch position corresponding to touch operation on a game interface of front-end equipment interacting with the server;
the mapping module is used for mapping the initial touch position data into target touch position data corresponding to a cloud game running on the server;
a storage module, configured to use the target touch position data and other data in the initial multi-touch data except the initial touch position data as target multi-touch data, and store the target multi-touch data in a virtual environment deployed on the server;
and the HOOK module is used for enabling the cloud game to acquire the target multi-point touch data through an API (application program interface) function of the cloud game by HOOK.
9. A storage medium, wherein the storage medium stores thereon a computer program, and the computer program is executed by a processor to perform the method for acquiring multi-touch data applied to a server according to any one of claims 1 to 7.
10. An electronic device, characterized in that the electronic device comprises: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions being executed by the processor to perform the method for obtaining multi-touch data as claimed in any one of claims 1 to 7 when applied to the server.
CN202211460903.9A 2022-11-17 2022-11-17 Method and device for acquiring multi-point touch data applied to server Active CN115501573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211460903.9A CN115501573B (en) 2022-11-17 2022-11-17 Method and device for acquiring multi-point touch data applied to server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211460903.9A CN115501573B (en) 2022-11-17 2022-11-17 Method and device for acquiring multi-point touch data applied to server

Publications (2)

Publication Number Publication Date
CN115501573A CN115501573A (en) 2022-12-23
CN115501573B true CN115501573B (en) 2023-02-07

Family

ID=84513725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211460903.9A Active CN115501573B (en) 2022-11-17 2022-11-17 Method and device for acquiring multi-point touch data applied to server

Country Status (1)

Country Link
CN (1) CN115501573B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092711A (en) * 2013-04-01 2014-10-08 云联(北京)信息技术有限公司 Cloud game realizing method and system
CN110694267A (en) * 2019-11-14 2020-01-17 珠海金山网络游戏科技有限公司 Cloud game implementation method and device
CN111084983A (en) * 2019-11-25 2020-05-01 腾讯科技(深圳)有限公司 Cloud game service method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11395963B2 (en) * 2019-10-01 2022-07-26 Sony Interactive Entertainment Inc. High speed scan-out of server display buffer for cloud gaming applications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092711A (en) * 2013-04-01 2014-10-08 云联(北京)信息技术有限公司 Cloud game realizing method and system
CN110694267A (en) * 2019-11-14 2020-01-17 珠海金山网络游戏科技有限公司 Cloud game implementation method and device
CN111084983A (en) * 2019-11-25 2020-05-01 腾讯科技(深圳)有限公司 Cloud game service method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115501573A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
CN109308681B (en) Image processing method and device
US9418319B2 (en) Object detection using cascaded convolutional neural networks
CN105493077B (en) Utilize the file management of placeholder
CN111868750A (en) Machine learning system for content transmission with reduced network bandwidth
WO2018205918A1 (en) Webpage monitoring method and apparatus, and storage medium
CN111399729A (en) Image drawing method and device, readable medium and electronic equipment
WO2022099871A1 (en) Handwriting data processing method and apparatus, and electronic device
US10574765B2 (en) Method, device, and non-transitory computer-readable recording medium
CN111832579A (en) Map interest point data processing method and device, electronic equipment and readable medium
CN110188782B (en) Image similarity determining method and device, electronic equipment and readable storage medium
CN109213668B (en) Operation recording method and device and terminal
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
CN110209557A (en) User's operation records restoring method, device, equipment and readable storage medium storing program for executing
WO2022099872A1 (en) Smart pen character recognition method, apparatus, and electronic device
CN115501573B (en) Method and device for acquiring multi-point touch data applied to server
CN112843681A (en) Virtual scene control method and device, electronic equipment and storage medium
CN113808134B (en) Oil tank layout information generation method, oil tank layout information generation device, electronic apparatus, and medium
CN113191257B (en) Order of strokes detection method and device and electronic equipment
CN110334763B (en) Model data file generation method, model data file generation device, model data file identification device, model data file generation apparatus, model data file identification apparatus, and model data file identification medium
JP5949393B2 (en) System, terminal device, and image acquisition method
CN103547982A (en) Identifying contacts and contact attributes in touch sensor data using spatial and temporal features
CN109614137B (en) Software version control method, device, equipment and medium
WO2023109385A1 (en) Icon click detection method and apparatus, device, and storage medium
CN111061625A (en) Automatic testing method and device applied to out-of-order password keyboard
CN112311842A (en) Method and device for information interaction

Legal Events

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