Game control method, device and equipment of vehicle machine end, and storage medium
By receiving and parsing game interface data from the vehicle's infotainment system via a mobile terminal and generating control data, the problem of inaccurate control caused by inconsistent screen sizes has been solved, enabling precise control and convenient operation of games on the vehicle's infotainment system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NINGBO GEELY AUTOMOBILE RES & DEV CO LTD
- Filing Date
- 2022-11-15
- Publication Date
- 2026-05-01
AI Technical Summary
In existing technologies, the inconsistent screen sizes between mobile terminals and in-vehicle systems lead to frequent adaptation difficulties and are prone to accidental screen touches and inaccurate control when controlling games.
The system receives and displays game interface data from the vehicle's infotainment system via a mobile terminal, obtains user control data and sends it to the vehicle's infotainment system for parsing, controls the display changes of the game interface on the vehicle's infotainment system, sets touch hot zones to limit the control area, and generates operation type, target object action type, and coordinate mapping value data.
It achieves automatic adaptation of the screen size between mobile terminals and in-vehicle systems, improving the accuracy of game control, avoiding accidental screen touches, and making the operation process more convenient and precise.
Smart Images

Figure CN115920373B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a game control method, device, equipment and storage medium for vehicle-mounted systems. Background Technology
[0002] With the development of the automotive industry and the emergence of smart cockpits, the computing power of car infotainment systems is constantly increasing, and applications such as car games are beginning to appear, bringing rich entertainment functions to car infotainment systems and thus becoming increasingly popular among users.
[0003] Existing technology controls games on a vehicle-mounted infotainment system via a mobile terminal. The method includes: controlling the mobile terminal to run a game control application and display a game control interface, which includes multiple virtual control buttons; receiving a game control request from the vehicle-mounted infotainment system via a communication connection, the game control request including identification information of the game application currently running on the system; configuring the function of each of the multiple virtual control buttons according to the game control request, so that the multiple virtual control buttons match the game application; and sending game control commands to the vehicle-mounted infotainment system using the configured virtual control buttons, so that the vehicle-mounted infotainment system controls the game based on the game control commands.
[0004] However, mobile terminals and in-vehicle screens come in a wide variety of types and sizes, requiring frequent adaptation, and the methods described above are prone to causing accidental screen touches. Summary of the Invention
[0005] This application provides a game control method, device, equipment, and storage medium for vehicle-mounted systems to solve the problem of inaccurate game control on vehicle-mounted systems.
[0006] Firstly, this application provides a method for controlling games on a vehicle-mounted infotainment system, including:
[0007] Receive and display game interface data projected from the vehicle's infotainment system;
[0008] Acquire user control data on the game interface input on the mobile terminal;
[0009] The control data is sent to the vehicle's infotainment system, where it is parsed and used to control the display changes of the game interface.
[0010] Secondly, this application provides a game control method for an in-vehicle infotainment system, including:
[0011] Send the game interface data displayed on the vehicle's infotainment system to the mobile terminal's display screen;
[0012] Receive control data for the game interface sent by the mobile terminal;
[0013] The control data is parsed to obtain the parsing result, and the display changes of the game interface on the vehicle terminal are controlled based on the parsing result.
[0014] Thirdly, this application provides a game control device for an in-vehicle infotainment system, comprising:
[0015] The receiving module is used to receive and display the game interface data projected from the vehicle-mounted terminal;
[0016] The acquisition module is used to acquire the control data of the user on the mobile terminal regarding the game interface;
[0017] The sending module is used to send the control data to the vehicle terminal, and the control data is used by the vehicle terminal to parse and control the display changes of the game interface on the vehicle terminal.
[0018] Fourthly, this application provides a game control device for an in-vehicle infotainment system, comprising:
[0019] The sending module is used to send the game interface data displayed on the vehicle terminal to the display interface of the mobile terminal.
[0020] A receiving module is used to receive control data on the game interface sent by the mobile terminal;
[0021] The parsing module is used to parse the control data and obtain the parsing result;
[0022] The processing module is used to control the display changes of the game interface on the vehicle-mounted system based on the parsing results.
[0023] Fifthly, this application provides a game control device for an in-vehicle infotainment system, comprising:
[0024] Processor, memory, communication interface;
[0025] The memory is used to store the executable instructions of the processor;
[0026] The processor is configured to execute the in-vehicle game control method described in the first aspect by executing the executable instructions.
[0027] Sixthly, this application provides a game control device for an in-vehicle infotainment system, comprising:
[0028] Processor, memory, communication interface;
[0029] The memory is used to store the executable instructions of the processor;
[0030] The processor is configured to execute the in-vehicle game control method described in the second aspect above by executing the executable instructions.
[0031] In a seventh aspect, this application provides a readable storage medium, comprising:
[0032] It stores a computer program, which, when executed by a processor, implements the game control method for the vehicle-mounted system described in the first aspect above.
[0033] Eighthly, this application provides a readable storage medium, comprising:
[0034] It stores a computer program, which, when executed by a processor, implements the game control method for the vehicle-mounted system described in the first aspect above.
[0035] The game control method, device, equipment, and storage medium provided in this application for vehicle-mounted systems allow for operation and control of the game interface on the vehicle-mounted system via a mobile terminal. During the operation and control of the game interface on the vehicle-mounted system, the mobile terminal generates control data for the game interface and sends it to the vehicle-mounted system. After parsing, the vehicle-mounted system uses this data to control the display changes of the game interface. This achieves automatic adaptation between the screen sizes of the mobile terminal and the vehicle-mounted system, resulting in more precise game control on the vehicle-mounted system. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0037] Figure 1 A flowchart illustrating a game control method for an in-vehicle infotainment system provided in an embodiment of this application;
[0038] Figure 2 A flowchart illustrating another in-vehicle game control method provided in an embodiment of this application;
[0039] Figure 3 A flowchart illustrating another in-vehicle game control method provided in an embodiment of this application;
[0040] Figure 4 A schematic diagram illustrating the principle of mobile terminal controlling games on the in-vehicle infotainment system;
[0041] Figure 5 This is a flowchart illustrating how to determine control data corresponding to different touch actions based on the location of the touch hot zone of a mobile terminal, as provided in an embodiment of this application.
[0042] Figure 6This is a flowchart illustrating how the coordinate mapping values corresponding to different touch actions are determined based on the location of the touch hot zone of a mobile terminal, as provided in an embodiment of this application.
[0043] Figure 7 This is a graph showing the current coordinate distribution of the touch point when it is located within the touch hot zone.
[0044] Figure 8 This is a graph showing the current coordinate distribution of the touch point when it is located outside the touch hot zone.
[0045] Figure 9 This is a flowchart illustrating how the vehicle-mounted system parses control data to obtain parsing results, as provided in this embodiment of the application.
[0046] Figure 10 A schematic diagram of the structure of a game control device for an in-vehicle infotainment system provided in an embodiment of this application;
[0047] Figure 11 A schematic diagram of another in-vehicle game control device provided in an embodiment of this application;
[0048] Figure 12 This application provides a schematic diagram of the structure of a game control device for an in-vehicle infotainment system.
[0049] Figure 13 This is a schematic diagram of another in-vehicle game control device provided in an embodiment of this application.
[0050] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0051] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0052] Existing technology controls games on a vehicle-mounted infotainment system via a mobile terminal. The method includes: controlling the mobile terminal to run a game control application and display a game control interface, which includes multiple virtual control buttons; receiving a game control request from the vehicle-mounted infotainment system via a communication connection, the game control request including identification information of the game application currently running on the system; configuring the function of each of the multiple virtual control buttons according to the game control request, so that the multiple virtual control buttons match the game application; and sending game control commands to the vehicle-mounted infotainment system using the configured virtual control buttons, so that the vehicle-mounted infotainment system controls the game based on the game control commands.
[0053] The in-vehicle infotainment system game control method, device, equipment, and storage medium provided in this application firstly send game interface data to a mobile terminal. The mobile terminal obtains the control data of the user inputting on the mobile terminal regarding the game interface and sends it to the in-vehicle infotainment system. Then, the in-vehicle infotainment system parses the received control data of the mobile terminal's game interface into specific operations and the coordinate position of the target object, thereby achieving automatic adaptation of the screen size between the mobile terminal and the in-vehicle infotainment system and improving the accuracy of game control on the in-vehicle infotainment system.
[0054] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0055] Figure 1 This is a flowchart illustrating a game control method for an in-vehicle infotainment system provided in the first embodiment of this application.
[0056] like Figure 1 As shown, the game control method for the vehicle-mounted system provided in this embodiment is executed by a mobile terminal. Generally, it can be implemented through software, hardware, or a combination of both. It may include the following steps:
[0057] Step S101: Receive and display the game interface data projected from the vehicle's infotainment system.
[0058] Specifically, the game control method for the vehicle-mounted infotainment system provided in this embodiment is a method for controlling the game interface of the vehicle-mounted infotainment system via a mobile terminal. The mobile terminal includes smart mobile devices such as smartphones and tablets. After establishing a communication connection between the mobile terminal and the vehicle-mounted infotainment system, the mobile terminal can receive game interface data from the vehicle-mounted infotainment system and display the game interface on the mobile terminal's screen. This allows the user to control the game based on the game interface displayed on the mobile terminal's screen, thus enabling further control of the game on the vehicle-mounted infotainment system via the mobile terminal.
[0059] Step S102: Obtain the user's control data on the game interface input on the mobile terminal.
[0060] Specifically, when a user controls the game based on the game interface displayed on the mobile terminal screen, control data for the game interface is generated. The mobile terminal can obtain the control data for the game interface input by the user on the mobile terminal to realize the control of the game on the vehicle's infotainment system.
[0061] Step S103: Send the control data to the vehicle terminal. The control data is used by the vehicle terminal to parse and control the display changes of the game interface on the vehicle terminal.
[0062] Specifically, the mobile terminal can send the control data of the user inputting on the game interface in step S102 to the vehicle terminal through the communication connection between the mobile terminal and the vehicle terminal, so that the vehicle terminal can operate and control the game interface on the vehicle terminal according to the control data sent by the mobile terminal.
[0063] Among them, the control data of the mobile terminal can be sent in various data formats, such as 8-bit UTF-8 (Unicode Transformation Format) encoding converted into byte data streams and sent to the vehicle terminal.
[0064] The in-vehicle game control method provided in this embodiment receives and displays game interface data projected from the in-vehicle infotainment system via a mobile terminal. It further acquires user input on the mobile terminal regarding game interface controls and sends this data to the in-vehicle infotainment system for game operation control. In this in-vehicle game control process, using a mobile terminal to control the game interface makes the control method more convenient. Furthermore, the control data obtained during the process can include all operation control information from the mobile terminal regarding the game interface, making the mobile terminal's control of the in-vehicle game more accurate.
[0065] Figure 2 This is a flowchart illustrating another in-vehicle game control method provided in the second embodiment of this application.
[0066] like Figure 2 As shown in this embodiment, another in-vehicle game control method is implemented using the in-vehicle infotainment system. This can generally be achieved through software, hardware, or a combination of both. It may include the following steps:
[0067] Step S201: Send the game interface data displayed on the vehicle terminal to the display interface of the mobile terminal.
[0068] Specifically, as described in step S101, after establishing a communication connection between the vehicle-mounted system and the mobile terminal, the vehicle-mounted system can send and project the game interface data onto the display interface of the mobile terminal, allowing the user to control the game based on the game interface displayed on the mobile terminal screen, and further control the game on the vehicle-mounted system through the mobile terminal.
[0069] Step S202: Receive the control data for the game interface sent by the mobile terminal.
[0070] Specifically, in step S103, after the mobile terminal sends the control data of the game interface to the vehicle terminal, the vehicle terminal can receive the control data of the game interface sent by the mobile terminal, so that the vehicle terminal can operate and control the game interface of the vehicle terminal according to the control data of the game interface sent by the mobile terminal.
[0071] Step S203: Analyze the control data to obtain the analysis results, and control the display changes of the game interface on the vehicle terminal based on the analysis results.
[0072] Specifically, the control data for the game interface received by the vehicle-mounted system in step S202, sent by the mobile terminal, is data related to the mobile terminal's control over the game interface displayed on the vehicle-mounted system. It cannot be directly used to control the game interface on the vehicle-mounted system. Therefore, the control data received in step S202 needs to be parsed to obtain parsed control data that can be used to operate and control the game interface on the vehicle-mounted system.
[0073] Specifically, the vehicle's infotainment system can respond based on the analyzed control data, i.e., the analysis results, and control the display of the game interface on the vehicle's infotainment system to change.
[0074] The in-vehicle game control method provided in this embodiment first sends and projects the game interface data displayed on the in-vehicle terminal onto the display interface of the mobile terminal. After the mobile terminal sends the user's input control data for the game interface to the in-vehicle terminal, the in-vehicle terminal parses the control data and generates control data parsing results for controlling the in-vehicle game interface. The control data parsing process is simple and easy to implement, making the in-vehicle game control method provided in this embodiment more practical and enabling automatic adaptation between various mobile terminals and in-vehicle screens of various sizes.
[0075] Figure 3 This is a flowchart illustrating another in-vehicle game control method provided in the third embodiment of this application. Figure 1 and Figure 2Based on the illustrated embodiment, this embodiment adds a description of the process of establishing a connection between the mobile terminal and the vehicle terminal, setting the touch hot zone of the mobile terminal, and obtaining control data based on the position of the touch hot zone.
[0076] like Figure 3 As shown, another in-vehicle game control method provided in this embodiment may include the following steps:
[0077] Step S301: The mobile terminal establishes a connection with the vehicle's infotainment system.
[0078] Specifically, the mobile terminal can establish a connection based on the communication protocol with the vehicle's infotainment system.
[0079] First, the mobile terminal sends a connection request to the vehicle's infotainment system. Specifically, the mobile terminal can use, for example, an application to send the connection request. This connection request can be sent via, for example, the Hypertext Transfer Protocol Secure (HTTPS). HTTPS sends the connection request to the enterprise's server, requesting the address of the enterprise's server corresponding to the vehicle's infotainment system. Each server address corresponds to an IP address and port number of the vehicle's infotainment system. The automotive cloud platform can then obtain the IP addresses and port numbers of all vehicle's infotainment systems via a network interface and upload these information to the enterprise's server. The cloud platform, or cloud-based platform, refers to the integration of cloud computing and hardware engineering capabilities for operation and use. It combines the simplicity and flexibility of public clouds with the security, control, and powerful performance of local infrastructure, making it an ideal digital platform that allows enterprise users to flexibly adjust and deploy according to their actual business needs.
[0080] Secondly, after receiving a connection request from a mobile terminal, the enterprise server can send its server address to the mobile terminal. The mobile terminal then obtains the IP address and port number ("port") of the vehicle's infotainment system corresponding to the server address. Specifically, after obtaining the IP address and port number, the mobile terminal can establish a connection with the vehicle's infotainment system using methods such as automatic socket connection. An example connection method is: `socket.connect(toHost: "IP", onPort: "port")`.
[0081] Step S302: The vehicle-mounted terminal sends the game interface data displayed on the vehicle-mounted terminal to the display interface of the mobile terminal.
[0082] Specifically, as described in step S201, the vehicle-mounted system can send and project the game interface data onto the display interface of the mobile terminal.
[0083] Step S303: The mobile terminal receives and displays the game interface data projected from the vehicle's infotainment system.
[0084] Specifically, as described in step S101, the mobile terminal can receive and display the game interface data projected from the vehicle's infotainment system.
[0085] Step S304: Set the touch hot zone of the mobile terminal. The touch hot zone is the set area in the game interface for controlling the target object.
[0086] Specifically, in order to identify valid touch actions by users on the mobile terminal screen and prevent erroneous operation control of in-vehicle games caused by accidental touches, a set area range for controlling the target object, i.e., the touch hot zone, can be set on the display screen of the mobile terminal.
[0087] Multiple touch hotspots can be set on the display screen of the mobile terminal to limit the actions of different target objects in the game interface. For example, two touch hotspots can be set on the mobile terminal screen. Touch hotspot 1 can be used to control the target object to run, and touch hotspot 2 can be used to control the target object to jump and perform other operations.
[0088] When a user touches the touch-sensitive area, the mobile terminal can control the game on the in-vehicle system based on the user's touch action. For example, when the user touches touch-sensitive area 1, the action of controlling the target object is running. When the user touches the touch-sensitive area and moves the touch point within it, the touch-sensitive area receives the target object's action type as movement. The direction and distance of the target object's movement can be controlled by changes in the coordinates of the user's touch point.
[0089] Specifically, when a user touches outside the designated touch area, the mobile terminal will not control the game on the in-vehicle infotainment system. This effectively prevents erroneous control of the game caused by accidental touches.
[0090] Step S305: Determine the control data corresponding to different touch actions based on the location of the touch hot zone of the mobile terminal.
[0091] Specifically, control data for the game interface can be generated based on the user's touch actions on the game interface and the touch hotspots of the mobile terminal. This control data may include:
[0092] Operation type data, target object action type data, and coordinate mapping value data. The coordinate mapping value is used to represent the coordinate mapping relationship between the touch point coordinates on the mobile terminal display interface and the corresponding point coordinates on the vehicle terminal display interface.
[0093] The operation type data refers to the operation type of the mobile terminal game interface corresponding to the user's touch action. The operation type can include operation types such as click and move.
[0094] Among them, the target object action type data refers to the action type data of the target object corresponding to the touch hot area touched by the user. The action type of the target object can include action types such as running and jumping.
[0095] The coordinate mapping value represents the coordinate mapping relationship between the coordinates of a touch point on the mobile terminal's display interface and the corresponding point coordinates on the vehicle's display interface. The coordinate mapping value data refers to a collection of multiple coordinate mapping values generated during the movement of the touch point.
[0096] Step S306: The mobile terminal obtains the control data of the user on the game interface input on the mobile terminal.
[0097] Specifically, as described in step S102, the mobile terminal can obtain the control data of the user on the game interface input on the mobile terminal.
[0098] Step S307: The mobile terminal sends the control data to the vehicle's infotainment system.
[0099] Specifically, as described in step S103, the mobile terminal can send control data to the vehicle's infotainment system.
[0100] Step S308: The vehicle-mounted system receives control data for the game interface sent by the mobile terminal.
[0101] Specifically, as described in step S202, the vehicle-mounted system can receive control data for the game interface sent by the mobile terminal.
[0102] Step S309: The vehicle terminal parses the control data, obtains the parsing results, and controls the display changes of the game interface on the vehicle terminal based on the parsing results.
[0103] Specifically, as described in step S203, the vehicle-mounted system can parse the control data, obtain the parsing results, and control the display changes of the game interface based on the parsing results. Figure 4 This is a schematic diagram illustrating the principle of mobile terminal controlling games on the in-vehicle infotainment system.
[0104] The in-vehicle game control method provided in this embodiment, based on the in-vehicle game control methods of the two embodiments described above, sets up a touch hot zone of the mobile terminal in the game interface. The touch hot zone sets the area range for controlling the target object in the game, avoiding accidental screen touches. Furthermore, the setting of multiple touch hot zones makes the mobile terminal's control of the in-vehicle game interface more flexible and precise.
[0105] Figure 5 This is a flowchart illustrating how the control data corresponding to different touch actions is determined based on the location of the touch hot zone of a mobile terminal, according to the fourth embodiment of this application. Figure 3 Based on the illustrated embodiment, this embodiment elaborates on the process of determining the control data corresponding to different touch actions according to the position of the touch hot zone of the mobile terminal.
[0106] like Figure 5 As shown in the figure, the method provided in this embodiment for determining the control data corresponding to different touch actions based on the location of the touch hot zone of the mobile terminal may include the following steps:
[0107] Step S501: Determine the operation type data corresponding to different touch actions based on the location of the touch hot zone of the mobile terminal;
[0108] As described in step S305, the operation type data refers to the operation type of the mobile terminal game interface corresponding to the user's touch action, and the operation type may include operation types such as click, move, and leave.
[0109] Specifically, the specific touch action can be corresponded to the operation type variable MotionType. For example, when the user starts touching the touch hot area, MotionType=1; when the user's touch point moves within the touch hot area, MotionType=2; when the user's finger leaves the touch hot area, MotionType=3; and when the user starts touching an area outside the touch hot area or does not touch the mobile device screen, MotionType=0.
[0110] Specifically, regarding the case where the operation type variable MotionType = 0 and the user initially touches outside the touch area, it's important to note that if the user continues to move the touch point after initially touching an area outside the touch area, and if the touch point moves into the touch area, the operation type variable MotionType will still be 0. In this case, the user's touch action is considered an invalid touch event. That is, only when the user's initial touch point is within the control area can the operation event type variable MotionType be assigned a value of 1, 2, or 3; in this case, the user's touch action event is considered a valid touch event.
[0111] Step S502: Determine the action type data of the target object in the game interface corresponding to different touch actions based on the location of the touch hot zone of the mobile terminal;
[0112] Specifically, as described in step S305, the target object action type data refers to the action type of the target object corresponding to the touch hotspot touched by the user. The action type of the target object can include actions such as running and jumping. As described in step S304, multiple touch hotspots can be set on the display screen of the mobile terminal to limit different actions of the target object in the game interface. For example, two touch hotspots can be set on the mobile terminal screen, where touch hotspot 1 can be used to control the target object to run, and touch hotspot 2 can be used to control the target object to jump, etc.
[0113] Specifically, the target object's action type can be set by the variable ControlType to correspond to the specific action type of the target object. For example, when the target object's action type ControlType = A, the corresponding action type of the target object is running; when the target object's action type variable ControlType = B, the corresponding action type of the target object is jumping.
[0114] Specifically, the operation type data generated in step S501 can be combined with the action type of the target object to control the operation of the target object. For example, when the user clicks or moves within the touch area 1, the target object runs according to the direction and distance of the touch point movement. For example, when the user clicks within the touch area 2, the target object jumps. In detail, different combinations of operation type data and target object action type data can be used to enable the target object to perform complex movements.
[0115] Step S503: Determine the coordinate mapping value data corresponding to different touch actions based on the location of the touch hot zone of the mobile terminal.
[0116] Specifically, when a user makes a touch action on a mobile terminal, the coordinates of the touch point cannot be directly used to control the game interface on the vehicle's infotainment system. Therefore, the coordinate mapping value corresponding to the coordinates of the touch point can be calculated based on the coordinates of the touch point on the screen, and then used to control the game interface on the vehicle's infotainment system.
[0117] This allows obtaining the center coordinates of the control area, its radius, and the current coordinates of the touch point. For example, the center coordinates of a control area on a mobile terminal are (x0, y0), the radius of the control area is R, and the current coordinates of the user's touch point are (x1, y1). Specifically, the coordinate mapping values mapx and mapy corresponding to the current coordinates of the touch point can be calculated using the center coordinates, radius, and current coordinates of the control area. Here, mapx is the coordinate mapping value along the x-axis, and mapy is the coordinate mapping value along the y-axis.
[0118] Specifically, when the touch point moves outside the touch hot zone, the coordinate mapping values mapx and mapy corresponding to the current coordinates of the touch point are calculated differently than when the touch point is always within the touch hot zone. This is to limit the effective control range and make the mobile terminal control the vehicle terminal more precise.
[0119] The control event-related data of the mobile terminal may include: operation type data, target object action type data, and coordinate mapping value data. The data structure of the control event-related data of the mobile terminal may be: (motionType:, controlType:, mapx:, mapy:).
[0120] This embodiment provides a process for determining control data corresponding to different touch actions based on the location of the touch hotspot of the mobile terminal. This process converts different touch actions of the user on the mobile terminal's game interface into corresponding control data, facilitating transmission from the mobile terminal to the in-vehicle infotainment system for controlling the game interface. Furthermore, the generation of control data takes into account the limitations of the control hotspot on the control area, improving the accuracy of game control on the in-vehicle infotainment system.
[0121] Figure 6 This is a flowchart illustrating the process of determining coordinate mapping values for different touch actions based on the location of the touch hot zone of a mobile terminal, as provided in the fifth embodiment of this application. Figure 5 Based on the illustrated embodiment, this embodiment elaborates on the process of determining the coordinate mapping value data corresponding to different touch actions according to the position of the touch hot zone of the mobile terminal.
[0122] like Figure 6 As shown, the method provided in this embodiment for determining the coordinate mapping values corresponding to different touch actions based on the location of the touch hot zone of the mobile terminal may include the following steps:
[0123] Step S601: When the touch point of the touch action is within the touch hot zone, generate the coordinate mapping value of the game interface when the touch point is within the touch hot zone;
[0124] Specifically, as described in step S503, the coordinate mapping values mapx and mapy corresponding to the current coordinates of the touch point can be divided into: the coordinate mapping value mapx in the x-axis direction and the coordinate mapping value mapy in the y-axis direction. Therefore, the coordinate mapping values mapx in the x-axis direction and mapy in the y-axis direction can be calculated separately. Since the user's touch is an invalid touch event when the initial touch point of the user's touch action is outside the touch hot zone, in this embodiment, the calculation is performed for valid touch events, that is, when the initial touch point of the user's touch action is within the touch hot zone.
[0125] When the user's current touch point is within the touch hotspot, the center coordinates (x0, y0) of the touch hotspot and the radius R of the touch hotspot can be extracted to calculate the coordinate mapping value mapx of the touch point in the x-axis direction, as shown in the following formula:
[0126]
[0127] Where x1 is the current x-axis coordinate of the touch point.
[0128] The coordinate mapping value (mapy) of the touch point along the y-axis can be calculated using the following formula:
[0129]
[0130] Where y1 is the current y-axis coordinate of the touch point.
[0131] Figure 7 This is a coordinate distribution diagram of the touch point when it is located within the touch hot zone. Point A is the center point of the touch hot zone, and point B is the current position of the touch point.
[0132] Step S602: When the touch point of the touch action is outside the touch hot zone, generate the coordinate mapping value of the game interface when the touch point is outside the touch hot zone.
[0133] Specifically, when the current coordinates of the touch point are outside the touch hot zone, such as... Figure 8 As shown, Figure 8 This is a diagram showing the coordinate distribution of the touch point when it is located outside the touch hot zone. Point A is the center point of the touch hot zone, point B is the current position of the touch point, and point E is the intersection of the line AB connecting the center point A and the current position B of the touch hot zone with the boundary of the touch hot zone. The coordinates of point E are (x2, y2).
[0134] Specifically, when the user's touch point moves outside the touch hot zone, firstly, the maximum value of the x-axis coordinate mapping value mapx of the touch point can be calculated according to formula (1) in step S601, for example: Where x2 is the x-coordinate of the intersection point E of the connecting line AB and the boundary of the touch hot area; according to the principle of similar triangles, we can obtain: Where AB is the distance between the center point A of the touch hot zone and the current position B of the touch point. Calculate the coordinate mapping value of the mobile terminal in the x-axis direction.
[0135] The coordinate mapping value mapx of the touch point along the x-axis is given by the following formula:
[0136]
[0137] Similarly, the coordinate mapping value mapy of the touch point along the y-axis can be obtained as shown in the following formula:
[0138]
[0139] The process provided in this embodiment for determining the coordinate mapping values corresponding to different touch actions based on the location of the touch hot zone of the mobile terminal takes into account both cases where the user's touch point is located inside and outside the touch hot zone, making the generated coordinate mapping values more accurate and further improving the accuracy of game control on the vehicle terminal.
[0140] Figure 9 This is a schematic diagram illustrating the process of parsing control data and obtaining the parsing results on the vehicle-mounted system, as provided in the sixth embodiment of this application. Figure 2 Based on the illustrated embodiment, this embodiment elaborates on the process of parsing the control data on the vehicle terminal and obtaining the parsing results.
[0141] like Figure 9 As shown, the vehicle-mounted terminal provided in this embodiment parses the control data to obtain the parsing result, which may include the following steps:
[0142] Step S901: Parse the operation type data of the control data to obtain the operation type of the game interface on the vehicle terminal;
[0143] As described in step S305, the control data of the game interface may include: operation type data, target object action type data, and coordinate mapping value data. Specifically, the vehicle-mounted terminal to be controlled can parse the operation type, target object action, and corresponding coordinates of the target object on the vehicle-mounted terminal display interface from the aforementioned control data of the game interface.
[0144] The operation type of the vehicle-mounted display interface is the same as that of the mobile terminal. Therefore, the operation type of the vehicle-mounted display interface can be directly extracted from the variable MotionType described in step S501.
[0145] Step S902: Parse the target object action type data of the control data to obtain the action type of the target object on the vehicle terminal;
[0146] Specifically, the target object action on the vehicle-mounted display interface is the same as the target object action on the mobile terminal. Therefore, the target object action on the vehicle-mounted display interface can be directly extracted from the variable ControlType, which describes the action type of the target object in step S501.
[0147] Step S903: Analyze the coordinate mapping values involved in the control data to obtain the coordinates of the corresponding points on the vehicle terminal display interface.
[0148] The in-vehicle infotainment screen also has a response hotspot corresponding to the mobile terminal's control hotspot, used to respond to the mobile terminal's control of the in-vehicle infotainment system.
[0149] Specifically, firstly, the radius T of the vehicle-mounted terminal's response hotspot and the center coordinates (centerPointx, centerPointy) of the response hotspot are extracted. Secondly, based on the coordinate mapping values mapx and mapy of the mobile terminal confirmed in the fifth embodiment, the vector values vectorx and vectory in the x-direction and y-direction of the vehicle-mounted terminal are calculated, where vectorx = T * mapx and vectory = T * mapy. Finally, based on the center coordinates (centerPointx, centerPointy) of the vehicle-mounted terminal's response hotspot, the vector value vectorx in the x-direction, and the vector value vectory in the y-direction, the corresponding point coordinates (positionx, positiony) on the vehicle-mounted terminal's display interface are calculated, where positionx = centerPointx + vectorx and positiony = centerPointy + vectory. These corresponding point coordinates on the vehicle-mounted terminal's display interface are distributed within the response hotspot of the vehicle-mounted terminal screen.
[0150] In the process of calculating the vector value vectorx in the x direction and the vector value vectory in the y direction of the vehicle terminal, the values of the coordinate mapping values mapx and mapy of the mobile terminal user's touch point are related to the position of the mobile terminal user's touch point.
[0151] Specifically, after parsing the coordinates of the corresponding point on the display interface of the vehicle terminal, the vehicle terminal can combine the operation type of the display interface of the vehicle terminal parsed in step S901 and the target object action of the display interface of the vehicle terminal parsed in step S802 to respond to the mobile terminal's control of the vehicle terminal, that is, control the display of the game interface of the vehicle terminal according to the above parsing results.
[0152] This embodiment describes the process by which the vehicle-mounted infotainment system parses control data to obtain the results. After receiving control data from the mobile terminal, the system parses it to obtain the operation type used to control the game interface, the target object's action, and the coordinates of the corresponding point on the infotainment screen. This parsing process is simple and convenient, and can be used on various sizes of vehicle-mounted screens, achieving automatic adaptation between the mobile terminal and the vehicle-mounted screen size, resulting in more accurate game control on the vehicle-mounted system.
[0153] Figure 10 This is a schematic diagram of the structure of a game control device for an in-vehicle system provided in the seventh embodiment of this application.
[0154] like Figure 10 As shown, the in-vehicle game control device 100 provided in this embodiment may include: a receiving module 101, an acquiring module 102, and a sending module 103.
[0155] The receiving module 101 is used to receive and display the game interface data projected from the vehicle's infotainment system.
[0156] The acquisition module 102 is used to acquire the control data of the user on the game interface input on the mobile terminal;
[0157] The sending module 103 is used to send control data to the vehicle terminal. The control data is parsed by the vehicle terminal to control the display changes of the game interface on the vehicle terminal.
[0158] The apparatus provided in this embodiment can be used to execute the above-described method embodiments. Figure 1 as well as Figures 3 to 6 The technical solution is similar in principle and effect, and will not be described again in this embodiment.
[0159] Figure 11 This is a schematic diagram of another in-vehicle game control device provided in the eighth embodiment of this application.
[0160] like Figure 11 As shown, another vehicle-mounted game control device 110 provided in this embodiment may include: a sending module 111, a receiving module 112, a parsing module 113, and a processing module 114.
[0161] The sending module 111 is used to send the game interface data displayed on the vehicle terminal to the display interface of the mobile terminal;
[0162] The receiving module 112 is used to receive control data of the game interface sent by the mobile terminal;
[0163] The parsing module 113 is used to parse the control data and obtain the parsing results;
[0164] The processing module 114 is used to control the display changes of the game interface on the vehicle-mounted system based on the parsing results.
[0165] The apparatus provided in this embodiment can be used to execute the above-described method embodiments. Figure 2 as well as Figure 9 The technical solution is similar in principle and effect, and will not be described again in this embodiment.
[0166] Figure 12This is a schematic diagram of the structure of a game control device for a vehicle-mounted system provided in the ninth embodiment of this application.
[0167] like Figure 12 As shown, the in-vehicle game control device 120 provided in this embodiment may include: a processor 121, a memory 122, and a communication interface 123;
[0168] The memory 122 is used to store the executable instructions of the processor 121;
[0169] The processor 121 is configured to execute the above method embodiments by executing executable instructions. Figure 1 as well as Figures 3 to 6 The game control method on the car's infotainment system.
[0170] Figure 13 This is a schematic diagram of another in-vehicle game control device provided in the tenth embodiment of this application.
[0171] like Figure 13 As shown, another vehicle-mounted game control device 130 provided in this embodiment may include: a processor 131, a memory 132, and a communication interface 133.
[0172] The memory 132 is used to store the executable instructions of the processor 131;
[0173] The processor 131 is configured to execute the above method embodiments by executing executable instructions. Figure 2 as well as Figure 9 The game control method on the car's infotainment system.
[0174] This application also provides a readable storage medium on which a computer program is stored, which, when executed by a processor, performs the above-described method embodiments. Figures 3 to 6 The game control method for any one of the in-vehicle systems.
[0175] This application also provides a readable storage medium on which a computer program is stored, which, when executed by a processor, performs the above-described method embodiments. Figure 2 as well as Figure 9 The game control method for any one of the in-vehicle systems.
[0176] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0177] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A game control method for in-vehicle systems, applied to mobile terminals, characterized in that, include: Receive and display game interface data projected from the vehicle's infotainment system; The mobile terminal is configured with a touch hot zone, which is a designated area in the game interface for controlling the actions of the target object in the game interface. Based on the position of the touch hot zone of the mobile terminal, the user's control data on the game interface input on the mobile terminal is obtained; the control data includes coordinate mapping values, which are calculated based on the center coordinates, radius, and current coordinates of the touch point of the touch hot zone. When the user's current touch point is located within the touch hot zone, the coordinate mapping value is calculated as follows: When the user's current touch point is outside the touch hot zone, the coordinate mapping value is calculated as follows: mapx is the coordinate mapping value of the touch point in the x-axis direction, mapy is the coordinate mapping value of the touch point in the y-axis direction, x1 is the current x-axis coordinate of the touch point, y1 is the current y-axis coordinate of the touch point, R is the radius of the touch hot area, and (x0, y0) is the center coordinate of the touch hot area. The control data is sent to the vehicle-mounted terminal. This control data is used by the vehicle-mounted terminal to determine the coordinates of a corresponding point on its display interface based on the coordinate mapping value, the center coordinates and radius of the response hotspot of the game interface, and to control the display changes of the response hotspot based on these coordinates. The response hotspot is an area on the vehicle-mounted terminal screen that corresponds to the touch hotspot of the mobile terminal, used to respond to the mobile terminal's control of the vehicle-mounted terminal. The coordinates of the corresponding point on the display interface of the vehicle-mounted terminal are distributed within the response hotspot of the vehicle-mounted terminal screen. The vehicle-mounted terminal determines the coordinates of the corresponding point on the display interface of the vehicle-mounted terminal based on the coordinate mapping value, the center coordinates and radius of the response hotspot of the game interface of the vehicle-mounted terminal, including: The vehicle terminal extracts the radius T of the vehicle terminal response heat zone and the center coordinates (centerPointx, centerPointy) of the vehicle terminal response heat zone. The vehicle-mounted terminal calculates the vector value vectorx in the x-direction and the vector value vectory in the y-direction based on the coordinate mapping values (mapx, mapy) from the mobile terminal, where vectorx = T. mapx, vectory=T mapy; The vehicle-mounted terminal calculates the coordinates (positionx, positiony) of the corresponding point on the display interface of the vehicle-mounted terminal based on the center coordinates (centerPointx, centerPointy) of the response hot zone, the vector value vectorx in the x direction of the vehicle-mounted terminal, and the vector value vectory in the y direction of the vehicle-mounted terminal, where positionx = centerPointx + vectorx and positiony = centerPointy + vectory.
2. The method according to claim 1, characterized in that, The control data also includes: Operation type data, target object action type data.
3. The method according to claim 2, characterized in that, Based on the location of the touch hot zone of the mobile terminal, the user's control data on the game interface input on the mobile terminal is obtained, including: Based on the location of the touch hot zone of the mobile terminal, control data corresponding to different touch actions are determined.
4. The method according to claim 3, characterized in that, The step of determining the control data corresponding to different touch actions based on the location of the touch hot zone of the mobile terminal includes: Based on the location of the touch hot zone of the mobile terminal, determine the operation type data corresponding to different touch actions; Based on the location of the touch hot zone of the mobile terminal, determine the action type data of the target object in the game interface corresponding to different touch actions; Based on the location of the touch hot zone of the mobile terminal, the coordinate mapping value data corresponding to different touch actions is determined.
5. The method according to claim 4, characterized in that, The step of determining the coordinate mapping value data corresponding to different touch actions based on the position of the touch hot zone of the mobile terminal includes: When the touch point of the touch action is located within the touch hot zone, the coordinate mapping value of the game interface when the touch point is located within the touch hot zone is generated; When the touch point of the touch action is outside the touch hot zone, a coordinate mapping value of the game interface is generated when the touch point is outside the touch hot zone.
6. A game control method for an in-vehicle infotainment system, applied to an in-vehicle infotainment system, characterized in that, include: Send the game interface data displayed on the vehicle's infotainment system to the mobile terminal's display screen; The system receives control data for the game interface sent by the mobile terminal. The control data includes coordinate mapping values, which are calculated based on the center coordinates and radius of the touch hot zone of the mobile terminal and the current coordinates of the touch point. The touch hot zone is a set area in the game interface of the mobile terminal for controlling the actions of the target control object in the game interface. When the user's current touch point is located within the touch hot zone, the coordinate mapping value is calculated as follows: When the user's current touch point is outside the touch hot zone, the coordinate mapping value is calculated as follows: mapx is the coordinate mapping value of the touch point in the x-axis direction, mapy is the coordinate mapping value of the touch point in the y-axis direction, x1 is the current x-axis coordinate of the touch point, y1 is the current y-axis coordinate of the touch point, R is the radius of the touch hot area, and (x0, y0) is the center coordinate of the touch hot area. Based on the coordinate mapping value, the center coordinates and radius of the response hotspot of the in-vehicle game interface, the display change of the response hotspot of the in-vehicle terminal is controlled. The in-vehicle terminal screen is provided with a response hotspot corresponding to the touch hotspot of the mobile terminal, which is used to respond to the control of the mobile terminal on the in-vehicle terminal. The step of controlling the display change of the response hotspot on the vehicle-mounted system based on the coordinate mapping value, the center coordinates and radius of the response hotspot on the vehicle-mounted game interface, includes: Extract the radius T of the vehicle-mounted terminal response hot zone and the center coordinates (centerPointx, centerPointy) of the vehicle-mounted terminal response hot zone. Based on the coordinate mapping values (mapx, mapy) from the mobile terminal, calculate the vector value vectorx in the x-direction and the vector value vectory in the y-direction from the vehicle-mounted terminal, where vectorx = T. mapx, vectory=T mapy; The coordinates of the corresponding point on the vehicle's display interface (positionx, positiony) are calculated based on the center coordinates (centerPointx, centerPointy) of the vehicle's response hot zone, the vector value vectorx in the x-direction of the vehicle's display interface, and the vector value vectory in the y-direction of the vehicle's display interface. Here, positionx = centerPointx + vectorx, and positiony = centerPointy + vectory. The coordinates of the corresponding point on the display interface of the vehicle's display interface are distributed within the response hot zone of the vehicle's display screen. The display of the response hotspot on the vehicle-mounted terminal is controlled to change based on the corresponding point coordinates (positionx, positiony) on the display interface.
7. The method according to claim 6, characterized in that, The manipulation data further includes: operation type data and target object action type data; the method further includes: The operation type data of the control data is parsed to obtain the operation type of the game interface on the vehicle terminal; The target object action type data of the control data is parsed to obtain the action type of the target object on the vehicle terminal.
8. A game control device for in-vehicle systems, applied to mobile terminals, characterized in that, include: The receiving module is used to receive and display the game interface data projected from the vehicle-mounted terminal. The processing module is used to set the touch hot zone of the mobile terminal, wherein the touch hot zone is a set area in the game interface for controlling the actions of the target control object in the game interface. The acquisition module is used to acquire the user's control data on the game interface input on the mobile terminal based on the position of the touch hot area of the mobile terminal; the control data includes coordinate mapping values, which are calculated based on the center coordinates, radius and current coordinates of the touch hot area; When the user's current touch point is located within the touch hot zone, the coordinate mapping value is calculated as follows: When the user's current touch point is outside the touch hot zone, the coordinate mapping value is calculated as follows: mapx is the coordinate mapping value of the touch point in the x-axis direction, mapy is the coordinate mapping value of the touch point in the y-axis direction, x1 is the current x-axis coordinate of the touch point, y1 is the current y-axis coordinate of the touch point, R is the radius of the touch hot area, and (x0, y0) is the center coordinate of the touch hot area. A sending module is used to send the control data to the vehicle-mounted terminal. The control data is used by the vehicle-mounted terminal to determine the coordinates of a corresponding point on the display interface of the vehicle-mounted terminal based on the coordinate mapping value, the center coordinates and radius of the response hotspot of the game interface of the vehicle-mounted terminal, and to control the display changes of the response hotspot based on the corresponding point coordinates. The response hotspot is an area set in the screen of the vehicle-mounted terminal that corresponds to the touch hotspot of the mobile terminal and is used to respond to the control of the vehicle-mounted terminal by the mobile terminal. The coordinates of the corresponding point on the display interface of the vehicle-mounted terminal are distributed in the response hotspot of the screen of the vehicle-mounted terminal. The vehicle-mounted terminal determines the coordinates of the corresponding point on the display interface of the vehicle-mounted terminal based on the coordinate mapping value, the center coordinates and radius of the response hotspot of the game interface of the vehicle-mounted terminal, including: The vehicle terminal extracts the radius T of the vehicle terminal response heat zone and the center coordinates (centerPointx, centerPointy) of the vehicle terminal response heat zone. The vehicle-mounted terminal calculates the vector value vectorx in the x-direction and the vector value vectory in the y-direction based on the coordinate mapping values (mapx, mapy) from the mobile terminal, where vectorx = T. mapx, vectory=T mapy; The vehicle-mounted terminal calculates the coordinates (positionx, positiony) of the corresponding point on the display interface of the vehicle-mounted terminal based on the center coordinates (centerPointx, centerPointy) of the response hot zone, the vector value vectorx in the x direction of the vehicle-mounted terminal, and the vector value vectory in the y direction of the vehicle-mounted terminal, where positionx = centerPointx + vectorx and positiony = centerPointy + vectory.
9. A game control device for in-vehicle systems, used in in-vehicle systems, characterized in that, include: The sending module is used to send the game interface data displayed on the vehicle terminal to the display interface of the mobile terminal; The receiving module is used to receive the control data of the game interface sent by the mobile terminal; the control data includes coordinate mapping values, which are calculated based on the center coordinates, radius and current coordinates of the touch hot area of the mobile terminal and the current coordinates of the touch point. The touch hot area is a set area in the game interface of the mobile terminal for controlling the actions of the target control object in the game interface. When the user's current touch point is located within the touch hot zone, the coordinate mapping value is calculated as follows: When the user's current touch point is outside the touch hot zone, the coordinate mapping value is calculated as follows: mapx is the coordinate mapping value of the touch point in the x-axis direction, mapy is the coordinate mapping value of the touch point in the y-axis direction, x1 is the current x-axis coordinate of the touch point, y1 is the current y-axis coordinate of the touch point, R is the radius of the touch hot area, and (x0, y0) is the center coordinate of the touch hot area. The processing module is used to control the display change of the response hotspot of the vehicle terminal according to the coordinate mapping value, the center coordinates and radius of the response hotspot of the vehicle terminal game interface, wherein the vehicle terminal screen is provided with a response hotspot corresponding to the touch hotspot of the mobile terminal, for responding to the control of the vehicle terminal by the mobile terminal; The processing module is specifically used for: Extract the radius T of the vehicle-mounted terminal response hot zone and the center coordinates (centerPointx, centerPointy) of the vehicle-mounted terminal response hot zone. Based on the coordinate mapping values (mapx, mapy) from the mobile terminal, calculate the vector value vectorx in the x-direction and the vector value vectory in the y-direction from the vehicle-mounted terminal, where vectorx = T. mapx, vectory=T mapy; The coordinates of the corresponding point on the vehicle's display interface (positionx, positiony) are calculated based on the center coordinates (centerPointx, centerPointy) of the vehicle's response hot zone, the vector value vectorx in the x-direction of the vehicle's display interface, and the vector value vectory in the y-direction of the vehicle's display interface. Here, positionx = centerPointx + vectorx, and positiony = centerPointy + vectory. The coordinates of the corresponding point on the display interface of the vehicle's display interface are distributed within the response hot zone of the vehicle's display screen. The display of the response hotspot on the vehicle-mounted terminal is controlled to change based on the corresponding point coordinates (positionx, positiony) on the display interface.
10. A game control device for in-vehicle systems, characterized in that, include: Processor, memory, communication interface; The memory is used to store the executable instructions of the processor; The processor is configured to execute the in-vehicle game control method according to any one of claims 1 to 5 by executing the executable instructions.
11. A game control device for in-vehicle systems, characterized in that, include: Processor, memory, communication interface; The memory is used to store the executable instructions of the processor; The processor is configured to execute the in-vehicle game control method according to any one of claims 6 to 7 by executing the executable instructions.
12. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the game control method of the vehicle terminal as described in any one of claims 1 to 5.
13. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the game control method for the vehicle-mounted system as described in any one of claims 6 to 7.
Citation Information
Patent Citations
Display method and system of game interface, electronic equipment and storage medium
CN110368689A
Game control method and device and storage medium
CN114534248A