Method, device and equipment for operating mobile phone game by smart television

By parsing the game program to obtain information about clickable elements, detecting and defining the interface, filtering target clickable objects, and combining this with TV remote control commands to determine focus movement logic, the problem of incompatibility between smart TVs and mobile game controls has been solved, achieving low-cost game operation adaptation.

CN121130422BActive Publication Date: 2026-03-31北京视游互动科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-23
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

The control methods of smart TVs and mobile games do not have the same corresponding operation processing architecture, which means that the porting process needs to be redeveloped, increasing the research and development costs.

Method used

By parsing the game program to obtain information about the clicked object elements, detecting and defining the current interface, filtering the target clicked objects, and combining the TV remote control commands to determine the focus movement logic and execute the functional logic, control adaptation on the TV is achieved.

Benefits of technology

The low-cost solution addresses the control compatibility issue between smart TVs and mobile games, enabling smooth game operation and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121130422B_ABST
    Figure CN121130422B_ABST
Patent Text Reader

Abstract

The application discloses a control adaptation method, device and equipment for running mobile phone games on a smart television, and relates to the technical field of running transplanted application programs on a smart television. In view of the operation mode of the original mobile phone games by clicking the control elements on the touch screen, when running the transplanted mobile phone games, the smart television end can first acquire all the click object elements and their information; then, based on the game running logic, the click object elements are detected and the current interface is defined, then the detection results suitable for display are filtered out to obtain the target click object corresponding to the current interface; after the television remote controller issues an instruction, the moving operation logic of the focus point is determined based on the target click object and the target object to be controlled is obtained, and according to the preset function information of the object element, the corresponding function logic is determined and executed. The application effectively solves the problem of analyzing the point control operation of the mobile phone games on the smart television end, so that the smooth operation and running of the transplanted mobile phone games on the television end are realized in a low-cost mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of running ported applications on smart TVs, and more particularly to a control adaptation method, apparatus, and device for running mobile games on smart TVs. Background Technology

[0002] In recent years, the mobile game industry has developed rapidly, and a large amount of high-quality content has been ported to smart TV devices, such as Android smart TVs. One of the main tasks in the porting process is to make the touch controls of smartphone games compatible with the button controls of TV remote controls.

[0003] However, on the one hand, most smart TV manufacturers currently use custom operating systems, and the TV platform does not have a standard operating environment adapted to mobile games; on the other hand, there are no unified rules for mobile game engines, which makes the control methods of mobile games ported to the TV platform not have a relatively consistent corresponding operation processing architecture.

[0004] To solve this problem, in most cases, mobile game developers have to redevelop game versions specifically compatible with various smart TVs, which adds at least one-third to the development costs. Summary of the Invention

[0005] In view of the above, the present invention aims to provide a control adaptation method, device and equipment for running mobile games on a smart TV, so as to solve the problem that the control logic of mobile games cannot be adapted when they are ported to the TV.

[0006] The technical solution adopted in this invention is as follows:

[0007] In a first aspect, the present invention provides a control adaptation method for running mobile games on a smart TV, comprising:

[0008] Step S1: Pre-parse the ported game program and obtain all clickable object elements and their corresponding element information;

[0009] Step S2: Based on the game's running logic, detect the clicked object element and define the current interface according to the detection results;

[0010] Step S3: Filter the detection results to obtain the target click object of the current interface;

[0011] Step S4: Combine the target click object with the control command issued by the TV remote control to determine the focus movement operation logic and obtain the target click object to be controlled;

[0012] Step S5: After detecting that the TV remote control has issued a trigger command for the target click object to be controlled, determine and execute the functional logic corresponding to the target click object to be controlled based on the element information.

[0013] In at least one possible implementation, the detection of the clicked object element includes: detecting all receivable candidate clicked objects from all clicked object elements using a ray function, wherein the candidate clicked objects include clickable and visible clicked object elements.

[0014] In at least one of the possible implementations, defining the current interface based on the detection result includes: naming the interface associated with the candidate click object and defining it as the current interface of the game program.

[0015] In at least one possible implementation, obtaining the target click object of the current interface includes:

[0016] Iterate through the coordinate values ​​of the candidate clickable objects;

[0017] Determine whether the candidate clickable object is located within a preset screen range based on the coordinate values;

[0018] The candidate clickable objects that are determined to be located within the screen range are designated as target clickable objects and stored on a per-interface basis.

[0019] In at least one possible implementation, the movement operation logic for determining the focus and obtaining the target click object to be manipulated includes:

[0020] Use the target click object to set the first object where the focus initially resides in the current interface;

[0021] Listen for user commands to move focus triggered by the directional keys on the remote control;

[0022] Within a preset area corresponding to the direction of the focus movement command, a second object to which the focus is moved is identified and designated as the target click object to be manipulated.

[0023] In at least one possible implementation, the functional logic for determining and executing the target click object to be manipulated based on the element information includes:

[0024] Based on the element information, if it is determined that the target click object to be manipulated is an interface switching control, then after receiving the trigger command issued by the TV remote control, steps S2 to S5 are executed again.

[0025] Secondly, the present invention provides a control adaptation device for running mobile games on a smart TV, comprising:

[0026] The click element acquisition module is used to pre-parse the ported game program and obtain all clickable object elements and their corresponding element information.

[0027] The clickable element detection module is used to detect the clickable object element based on the game's running logic, and define the current interface based on the detection results;

[0028] The click element filtering module is used to filter the detection results and obtain the target click object of the current interface.

[0029] The focus movement analysis module is used to combine the target click object with the control command issued by the TV remote control to determine the focus movement operation logic and obtain the target click object to be controlled.

[0030] The function trigger analysis module is used to determine and execute the corresponding function logic of the target click object based on the element information after detecting that the TV remote control has issued a trigger command for the target click object to be controlled.

[0031] Thirdly, the present invention provides an electronic device comprising: one or more processors, a memory, and one or more computer programs, the memory being a non-volatile storage medium, wherein the one or more computer programs are stored in the memory, the one or more computer programs including instructions that, when executed by the device, cause the electronic device to perform the method as described in the first aspect or any possible implementation thereof.

[0032] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the method as described in the first aspect or any possible implementation thereof.

[0033] Fifthly, the present invention also provides a computer program product, which, when executed by a computer, performs the method described in the first aspect or any possible implementation thereof. In one possible design of the fifth aspect, the relevant program involved in the product may be stored wholly or partially on a memory packaged with a processor, or may be stored wholly or partially on a storage medium not packaged with a processor.

[0034] It should be understood that the second to fifth aspects of the embodiments of this application are consistent with the technical solutions of the first aspect of the embodiments of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again.

[0035] The main design concept of this invention lies in addressing the operation method of original mobile games using touch screen click controls. When a ported mobile game is running on a smart TV, the system first parses the ported game program and obtains all clickable elements and their information. Then, based on the game's operating logic, it detects the clickable elements and defines the current interface. Next, it filters out the detection results adapted for display, obtaining the target clickable object corresponding to the current interface. After the TV remote control issues a control command, it determines the focus movement operation logic based on the target clickable object and obtains the target clickable object to be controlled. Finally, upon detecting a trigger command from the TV remote control targeting the target clickable object, it determines and executes the corresponding functional logic based on the preset functional information of the clickable element. The focus of this invention is to analyze the currently running ported mobile game from the TV's perspective. By gradually "understanding" which elements are clickable, which are candidate clickable objects that define the current page, and which are valid clickable targets that match the TV's display effect, a reliable foundation is laid for subsequently listening to remote control commands and executing corresponding movement and triggering logic. This solves the problem of parsing mobile game touch controls on a smart TV in a low-cost manner. Attached Figure Description

[0036] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described below with reference to the accompanying drawings, wherein:

[0037] Figure 1 A flowchart illustrating the control adaptation method for running mobile games on a smart TV, as provided in an embodiment of the present invention.

[0038] Figure 2 A schematic diagram of a control adaptation device for running mobile games on a smart TV, provided in an embodiment of the present invention.

[0039] Figure 3 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0040] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0041] This invention proposes an embodiment of a control adaptation method for running mobile games on a smart TV. Specifically, as follows: Figure 1 As shown, it includes:

[0042] Step S1: Pre-parse the ported game program and obtain all clickable object elements and their corresponding element information;

[0043] In practice, it is preferable to use the GameObject.GetComponent core API (a code function in the Unity3D engine) provided by the Unity3D game engine to obtain all components in the mobile game program. <boxcollider>(Code type in the Unity3D engine, representing the clicked object) and its information and save it. The clicked object element is such as, but not limited to, buttons, sliding lists, etc. The element information is such as, but not limited to, the function after the element is triggered, such as switching interfaces, scrolling lists, etc.

[0044] Step S2: Based on the game's running logic, detect the clicked object element and define the current interface (page) according to the detection results.

[0045] The purpose of this process is to lay the foundation for subsequent operations on the current interface, which mainly includes two steps:

[0046] Step 1, specifically, refers to detecting the clicked object element:

[0047] The raycasting function is used to detect all potential clickable objects from all clickable object elements. These potential clickable objects include clickable and visible clickable object elements. Using the example above, the implementation can use the Unity3d game engine's Physics.Raycast (physics function) to search for objects in the BoxCollider obtained in the previous step whose rays are not blocked and can be returned, thereby identifying the candidate clickable objects that are both visible and clickable.

[0048] Step 2: Based on the candidate clickable objects, define and obtain the current interface of the game program.

[0049] Combining the previous example, all element objects (candidate clickable objects) whose ray detection result is "true" are formed into a set and stored (e.g., added to a preset list). This set can represent all clickable controls contained in the current interface of the game program from another perspective. Conversely, the current interface can be named by these detected candidate clickable objects, that is, the interface associated with these detected candidate clickable objects is defined as the "current interface".

[0050] Step S3: Filter the detection results to obtain the target click object of the current interface;

[0051] Using a previous example, the coordinate values ​​of the candidate clickable objects can be iterated through. Based on these coordinate values, it can be determined whether the candidate clickable object is within a preset screen area (which can be set to full screen). Candidate clickable objects determined to be within the screen area are then stored as target clickable objects, organized by interface. Thus, by combining the content that can be displayed on the actual screen, target controls that can be actually touched and manipulated in the current interface can be filtered from the candidate clickable objects, and then stored in corresponding containers according to the aforementioned defined interface units.

[0052] Furthermore, in other embodiments of the present invention, a filtering and classification operation can be performed on candidate clickable objects or target clickable objects before or after filtering. This allows for the identification of the types of clickable object elements contained on the current page. Corresponding to the element information mentioned above, it can be determined which controls on the current page are button types and which are sliding list types. For example, calling code functions in the Unity3D engine to obtain the current interface... <uidragscrollview>(Component types in the Unity3D engine, used to represent sliding lists), determine whether the current page contains object elements such as sliding lists, and categorize the filtered object elements.

[0053] Step S4: Combine the target click object with the control command issued by the TV remote control to determine the focus movement operation logic and obtain the target click object to be controlled;

[0054] For example, a target clickable object can be selected from the aforementioned container as the default focus. This means setting the initial cursor position as the first object (the first point where the cursor is focused when the user opens the interface). It's worth noting that this target clickable object can be arbitrarily selected or drawn from a pre-defined "default focus configuration table." This allows the system to prioritize controls with higher priority based on the importance of the UI elements on the current screen when the game reaches that screen. For instance, on a login screen, the default focus could be configured as the "login button."

[0055] Next, listen for user-triggered focus movement commands triggered by the directional keys on the remote control.

[0056] Then, within a preset area corresponding to the direction of the focus movement command, a second object to which the focus is moved is determined. Specifically, when the user operates the up, down, left, and right buttons on the TV remote, based on the corresponding directional button pressed, the nearest target object within a fan-shaped area with the same direction and an angle between 30° and 150° is selected as the new focus. The focus (cursor) displayed on the TV screen is then moved from the first object and placed on this second object. In addition, in some embodiments, a "movement rule configuration table" can be set: based on the relationship between target click objects in the current interface, corresponding movement rules are configured. For example, in the character setting interface, if there are two buttons of equal distance to the right of the current focus, "Create Character" and "Delete Character," pressing the right arrow key will prioritize moving to "Create Character."

[0057] The logic for other movement operations on the current interface is similar to that described above, that is, the second object is treated as the new first object, and this invention will not elaborate further.

[0058] The aforementioned movement operation logic ultimately locks onto the target click object to be manipulated.

[0059] Step S5: After detecting that the TV remote control has issued a trigger command for the target click object to be controlled, determine and execute the functional logic corresponding to the target click object to be controlled based on the element information.

[0060] For example, if the target click object is determined to be a sliding list based on its type, then if the user continues to use the directional keys on the remote control, the list will be dragged in that direction. Alternatively, if the target click object is determined to be an interface switching control, pressing the confirmation button on the remote control will cause the game to enter a new interface. After processing the user's command, the data of the interface before the switch (i.e., the current interface mentioned earlier) will be cleared. However, for the TV, it is "unclear" how to execute the next control. In this case, a new round of the above process will be triggered, i.e., steps S2 to S5 will be executed again. This re-detects the clickable elements of the current interface (i.e., the switched interface), filters out the target clickable objects corresponding to the current interface, redefines the initial focus position of the current interface, and continues to listen for commands from the TV remote control.

[0061] Using the above example, a unified porting solution can be provided for Unity3D games, implemented based on the Unity3D core source code, and compatible with all Unity3D games. However, this invention is not limited to using only the Unity3D engine architecture. It should be further noted that the embodiments of this invention are not limited to implementation through the YTS (Unity TV Service) engine. YTS mainly refers to the Unity visualization rendering service system. Unity is a platform for real-time 3D interactive content creation and operation, enabling all creators, including game developers, artists, architects, automotive designers, and filmmakers, to turn their ideas into reality. The platform provides a complete software toolkit solution that can be used to create, operate, and monetize any real-time interactive 2D and 3D content, supporting media including mobile phones, tablets, smart TVs, PCs, game consoles, augmented reality, and virtual reality devices. Those skilled in the art will understand that, based on the scenario requirements of this invention, in actual operation, YTS can be configured as a technical service suite for application porting solutions from mobile terminals to smart TV platforms. In other words, by developing toolkits / optimization libraries that can be deployed on terminals to complement ported applications (such as mobile games), the porting and expansion of applications across different types of carrier platforms can be facilitated. For example, in some embodiments of this invention, the operation of Unity3d NGUI mobile games on TVs can be adapted and optimized.

[0062] In summary, the main design concept of this invention lies in addressing the issue of touchscreen-based control operation in original mobile games. When a ported mobile game is run on a smart TV, the system first parses the ported game program and obtains all clickable elements and their information. Then, based on the game's execution logic, it detects the clickable elements and defines the current interface. Next, it filters out the detection results adapted for display, obtaining the target clickable object corresponding to the current interface. After the TV remote control issues a control command, it determines the focus movement operation logic based on the target clickable object and obtains the target clickable object to be controlled. Finally, upon detecting a trigger command from the TV remote control targeting the target clickable object, it determines and executes the corresponding functional logic based on the preset function information of the clickable element. This invention effectively solves the problem of parsing mobile game touch controls on a smart TV, thereby achieving smooth operation and running of ported mobile games on the TV in a low-cost manner.

[0063] Corresponding to the above embodiments and preferred solutions, the present invention also provides an embodiment of a control adaptation device for running mobile games on a smart TV, such as... Figure 2 As shown, it may specifically include the following components:

[0064] Click element acquisition module 201 is used to pre-parse the ported game program and obtain all clickable object elements and their corresponding element information.

[0065] Click element detection module 202 is used to detect the clicked object element based on the game running logic, and define the current interface according to the detection result;

[0066] The element filtering module 203 is used to filter the detection results and obtain the target clickable object of the current interface.

[0067] The focus movement analysis module 204 is used to combine the target click object with the control command issued by the TV remote control to determine the focus movement operation logic and obtain the target click object to be controlled.

[0068] The function trigger analysis module 205 is used to determine and execute the corresponding function logic of the target click object based on the element information after detecting that the TV remote control has issued a trigger command for the target click object to be controlled.

[0069] The above should be understood Figure 2 The division of components in the control adapter device for running mobile games on a smart TV shown is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these components can be implemented entirely through software calls via processing elements; alternatively, some components can be implemented through software calls via processing elements, while others can be implemented in hardware. For example, a particular module can be a separate processing element or integrated into a chip within the electronic device. The implementation of other components is similar. Moreover, these components can be fully or partially integrated together, or implemented independently. During implementation, each step of the above method or each of the above components can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.

[0070] For example, these components can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs). Alternatively, these components can be integrated together to form a system-on-a-chip (SOC).

[0071] Based on the above embodiments and preferred solutions, those skilled in the art will understand that, in actual operation, the technical concept involved in this invention can be applied to various implementation methods. The following embodiments are used as illustrative examples:

[0072] (1) An electronic device. The device may specifically include: one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the steps / functions of the foregoing embodiments or equivalent embodiments.

[0073] The electronic device can specifically be a computer-related electronic device, such as, but not limited to, various computing terminals and electronic products. Preferably, the electronic device includes a smart TV, such as an Android TV.

[0074] Specifically, the processor, communication interface, and memory can all communicate with each other via a communication bus. The processor may be a central processing unit (CPU), DSP, microcontroller, or digital signal processor, and may also include a GPU, an embedded neural network processing unit (NPU), and an image signal processor (ISP). The processor may also include a specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. Furthermore, the processor may have the function of operating one or more software programs, which can be stored in a storage medium such as memory. The aforementioned memory / storage medium may include: non-volatile memory, such as a non-removable disk, USB flash drive, portable hard drive, optical disc, etc., as well as read-only memory (ROM), random access memory (RAM), etc.

[0075] Even though the present invention does not limit the specific form of the electronic device, for the purpose of illustrative purposes, it is used as an example. Figure 3 As shown, the present invention provides a structural schematic diagram of an embodiment of an electronic device. Specifically, the electronic device 900 includes a processor 910 and a memory 930. The processor 910 and the memory 930 can communicate with each other through an internal connection path to transmit control and / or data signals. The memory 930 is used to store computer programs, and the processor 910 is used to call and run the computer programs from the memory 930. The processor 910 and the memory 930 can be combined into a single processing device, but more commonly they are independent components. The processor 910 executes the program code stored in the memory 930 to achieve the aforementioned functions. In specific implementations, the memory 930 can also be integrated into the processor 910, or it can be independent of the processor 910.

[0076] In addition, to further enhance the functionality of the electronic device 900, it may also include one or more of the following: an input unit 960, a display unit 970, an audio circuit 980, a camera 990, and a sensor 901. The audio circuit may also include a speaker 982, a microphone 984, etc. The display unit 970 may include a display screen.

[0077] Furthermore, the aforementioned electronic device 900 may also include a power supply 950 for providing electrical energy to various devices or circuits in the electronic device 900.

[0078] It should be understood that Figure 3 The electronic device 900 shown is capable of implementing the various processes of the method provided in the foregoing embodiments. The operation and / or function of each component in the electronic device 900 can respectively implement the corresponding processes in the above method embodiments. For details, please refer to the foregoing descriptions of the embodiments of methods, devices, etc.; to avoid repetition, detailed descriptions are appropriately omitted here.

[0079] It should be understood that Figure 3 The processor 910 in the illustrated electronic device 900 can be a system-on-a-chip (SoC). The processor 910 may include a central processing unit (CPU) and may further include other types of processors, such as a graphics processing unit (GPU), which will be described in detail below.

[0080] In summary, the various processors or processing units inside the processor 910 can work together to implement the previous method flow, and the corresponding software programs of each processor or processing unit can be stored in the memory 930.

[0081] (2) A computer data storage medium storing a computer program or the above-described device, which, when executed, causes a computer to perform the steps / functions of the foregoing embodiments or equivalent embodiments.

[0082] In several embodiments provided by this invention, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer data storage medium. Based on this understanding, certain technical solutions of this invention, or the parts that contribute to the prior art, or parts of such technical solutions, can be embodied in the form of software products as described below.

[0083] It should be noted in particular that the storage medium may refer to a server or a similar computer device, specifically, that is, the aforementioned computer program or the aforementioned device is stored in the storage device of the server or similar computer device.

[0084] (3) A computer program product (which may include the above-mentioned device), which, when running on a terminal device, enables the terminal device to execute the control adaptation method for running mobile games on a smart TV as described in the foregoing embodiments or equivalent embodiments.

[0085] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above implementation methods can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the above-mentioned computer program products may include, but are not limited to, APPs, program packages, computing power optimization libraries, etc.

[0086] In this embodiment of the invention, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.

[0087] Those skilled in the art will recognize that the modules, units, and method steps described in the embodiments disclosed in this specification can be implemented using electronic hardware, computer software, and a combination of electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.

[0088] Furthermore, the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. In particular, for embodiments such as apparatus and devices, since they are basically similar to the method embodiments, the relevant parts can be referred to the description of the method embodiments. The apparatus, devices, and other embodiments described above are merely illustrative, and the modules, units, etc., described as separate components may or may not be physically separate, that is, they may be located in one place or distributed in multiple places, such as nodes in a system network. Specifically, some or all of the modules and units can be selected according to actual needs to achieve the purpose of the above-described embodiment solutions. Those skilled in the art can understand and implement this without creative effort.

[0089] The above description of the structure, features, and effects of the present invention is based on the embodiments shown in the figures. However, the above are only preferred embodiments of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched by those skilled in the art to form a variety of equivalent solutions without departing from or changing the design concept and technical effects of the present invention. Therefore, the present invention is not limited to the scope of implementation shown in the figures. Any changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments, that do not exceed the spirit covered by the specification and figures, should be within the protection scope of the present invention.< / uidragscrollview> < / boxcollider>

Claims

1. A control adaptation method for running a mobile phone game on a smart TV, characterized in that, The method comprises the following steps: S1, pre-analyzing the transplanted game program and obtaining all the click object elements and corresponding element information, including: obtaining all the click objects and their information in the mobile game program through the core API provided by the game engine and saving them; S2, detecting the click object elements based on the game running logic, and defining the current interface according to the detection result; wherein the detection of the click object elements includes: finding the objects that can return the received objects as all candidate click objects through the ray function provided by the game engine, the candidate click objects including: the click object elements that can be clicked and viewed; S3, filtering the detection result to obtain the target click object of the current interface; S4, combining the target click object with the control instruction issued by the television remote controller to determine the focus moving operation logic and obtain the target click object to be controlled; S5, after monitoring the trigger instruction issued by the television remote controller for the target click object to be controlled, determining and executing the function logic corresponding to the target click object to be controlled based on the element information; The control adaptation method further comprises: performing screening and classification operation on the target click object, determining the type of the click object elements contained in the current page, and classifying the screened object elements; S5 specifically comprises: monitoring the corresponding operation of the user on the remote control key according to the type of the target click object to be controlled, if it is determined that the type is an interface switching control, after receiving the trigger instruction issued by the confirmation key of the television remote controller, the game enters a new interface and the interface data before switching is cleaned up, and steps S2-S5 are executed again in this case.

2. The control adaptation method for running a mobile phone game on a smart TV according to claim 1, wherein, The definition of the current interface according to the detection result includes: naming the interface associated with the candidate click object and defining it as the current interface of the game program running.

3. The control adaptation method for running a mobile phone game on a smart TV according to claim 1, wherein, The target click object of the current interface includes: traversing the coordinate values of the candidate click objects; determining whether the candidate click object is located within the preset screen range according to the coordinate values; determining the candidate click object located within the screen range as the target click object and storing it in units of interfaces.

4. The control adaptation method for running a mobile phone game on a smart TV according to claim 1, wherein, The determination of the focus moving operation logic and the target click object to be controlled includes: setting the first object where the focus is initially located in the current interface using the target click object; listening to the moving focus instruction triggered by the user through the direction key of the remote controller; determining the second object where the focus moves in the preset area corresponding to the direction of the moving focus instruction as the target click object to be controlled.

5. An electronic device, comprising: The electronic device comprises one or more processors, memories and one or more computer programs, wherein the one or more computer programs are stored in the memories, the one or more computer programs comprise instructions, when the instructions are executed by the electronic device, the electronic device executes the control adaptation method for running mobile games on smart televisions according to any one of claims 1-4. ​ 6. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by a processor to implement the control adaptation method for running a mobile phone game on a smart television according to any one of claims 1-4.

7. A computer program product comprising a computer program, characterized in that, The computer program is executed by a processor to implement the control adaptation method for running a mobile phone game on a smart television according to any one of claims 1-4.

Citation Information

Patent Citations

  • Method and apparatus for controlling game based on touch screen mode

    CN104991734A

  • Game control method, smart television and storage medium

    CN112511874A