Disclosure of Invention
The present invention provides a game control method, a docking station and a game control system, so as to solve the above-mentioned drawbacks of the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a game control method, comprising the steps of: receiving manipulation information from an input device from a first port; receiving video information from the mobile device from the second port; obtaining game interface touch position information corresponding to the control information according to the mapping relation, and sending the game interface touch position information to the mobile equipment from the second port; and transmitting the video information from the third port to a display device.
Preferably, the game control method further includes the steps of: receiving audio information from a mobile device from the second port; and transmitting the audio information from the third port to the display device; wherein the display device comprises a speaker.
Preferably, the game control method further includes the steps of: receiving power from the fourth port; and providing power to the mobile device from the second port.
Preferably, the game control method further comprises the step of format converting the video information before transmitting the video information from the third port to the display device.
Preferably, the control information includes a plurality of bytes, one byte is used for representing the key value of the function key, and the rest bytes are used for representing the key values of the letter key, the direction key and/or the number key.
A docking station, comprising: a first port for connecting an input device; a second port for connecting a mobile device; a third port for connecting a display device; a memory; a processor; and a computer program stored in the memory and executable on the processor, the docking station executing the game control method as described above when the processor executes the computer program.
In the docking station as described above, preferably, the second port includes a power terminal and a data terminal capable of bidirectionally transmitting information.
In the docking station described above, preferably, the second port is a USB type c port.
In the above docking station, preferably, the docking station further comprises a format converter connected between the third port and the second port.
In the above docking station, preferably, the docking station further includes: a fourth port for connecting a power supply device; and a power converter connected between the fourth port and the second port.
A game control system, comprising: a mobile device capable of running a game; an input device for manipulating the game; a display device for displaying game content; and the docking station is respectively connected with the mobile device, the input device and the display device, and the docking station is any one of the docking stations.
In the game control system, preferably, the input device includes a keyboard, and the mobile device includes a smart phone, a tablet computer, or a handheld game machine.
Compared with the prior art, the invention has at least the following beneficial effects:
the invention uses special docking station as medium to connect the input device, the mobile device and the display device, so that the external input device can be used for controlling the game of the mobile device while the external display device is used for displaying the game, thereby simultaneously solving the problems of small display interface and inconvenient control of the hand game.
Detailed Description
The invention aims to solve the problems that mobile terminals such as mobile phones and the like cannot be externally connected with display equipment and input equipment at the same time, and the problems of small mobile interface and inconvenient operation caused by the problem. The invention is further illustrated with reference to the following figures and examples.
The first embodiment: game control method
The present game control method is performed by the docking station 20. The application environment is shown in fig. 2, namely: the mobile device 10 is connected with a docking station 20, the docking station 20 is further connected with a display device 30 and an input device 40 respectively, the mobile device 10 transmits video information (game pictures) to the display device 30 through the docking station 20, the video information is displayed on the display device 30 in a mapping mode, the input device 40 operates the mobile device 10 through the docking station 20 for playing games, and the docking station 20 can also supply power to the mobile device 10. The mobile device 10 herein may be any mobile device 10 capable of running a game, including but not limited to a smart phone, a tablet computer, a handheld game console, etc., and the input device 40 herein includes a keyboard and preferably also a mouse.
As shown in fig. 3, the game control method includes the following steps, wherein the step numbers are only used for distinguishing the steps, and do not represent the sequence relationship:
step S1, receiving the manipulation information from the input device 40 from the first port;
the manipulation information is generated by the input device 40 and by pressing different keys of the keyboard, different manipulation information may be generated. The control information is preferably composed of a plurality of bytes, wherein one byte is used for representing the key value of the function key, and the other bytes are used for representing the key values of the letter key, the direction key and/or the number key.
As an embodiment, the operation information is composed of eight bytes, as shown in fig. 4. Byte 0 is used to represent the key value of the function key, the function key includes but is not limited to one or more of the left shift key, the right shift key, the F1-F12 key, the left Alt key, the right Alt key, the left Ctrl key, and the right Ctrl key, different byte values represent different function keys, and which function key is pressed can be known by the value of byte 0. Byte 1 is a null byte. The bytes 2 to 7, six bytes are used for representing letter keys, direction keys and/or key values of numeric keys, and the direction keys comprise four arrow keys, namely an upper arrow key, a lower arrow key, a left arrow key and a right arrow key. In this way, seven keys can be pressed simultaneously at the most to manipulate the game. The eight bytes are arranged in sequence to form the control information.
Step S2, receiving video information, i.e., game screen, from the mobile device 10 from the second port.
Step S3, receiving audio information from the mobile device 10, i.e. the in-game speech, from the second port. Step S3 is an unnecessary step and the mobile device 10 may be used to play the voice of the game.
Step S4, receiving power from the power supply device from the fourth port. Step S4 is also an unnecessary step.
Step S5, obtaining game interface touch position information corresponding to the control information according to the mapping relationship, and sending the game interface touch position information from the second port to the mobile device 10.
The mapping relationship here refers to a corresponding relationship between the control information and the game interface touch position information. Examples are as follows:
suppose that: the game interface has A, B, C, D four touch positions, the position information is respectively represented as [ x1, y1 ], [ x2, y2 ], [ x3, y3 ], [ x4, y4 ],
defining: the touch position A is controlled by an Alt key + A key, the touch position B is controlled by an Alt key + B key, the touch position C is controlled by an Alt key + C key, the touch position D is controlled by an Alt key + D key,
suppose that: the manipulation information generated when the Alt key + a key is pressed is 00000 … … 0001, the manipulation information generated when the Alt key + B key is pressed is 00000 … … 0010, the manipulation information generated when the Alt key + C key is pressed is 00000 … … 0011, the manipulation information generated when the Alt key + D key is pressed is 00000 … … 0100,
the mapping is as follows:
【x1,y1】------00000……0001
【x2,y2】------00000……0010
【x3,y3】------00000……0011
【x4,y4】------00000……0100
the mapping is pre-stored in the memory of the docking station 20 and each time a new game is available, the mapping for the new game is stored in the memory of the docking station 20.
According to the mapping relationship, the touch position information of the game interface corresponding to the control information can be found out, and the touch position information is sent to the mobile device 10 from the second port, so that the mobile device 10 is controlled to execute the game operation when the touch position is touched.
Step S6, sending the video information from the third port to the display device 30, so as to map the game picture on the display device 30, and implement large screen display, as shown in fig. 5.
And step S7, sending the audio information from the third port to the display device 30, and playing the voice in the game through the speaker of the display device 30. This step S7 is also not a necessary step.
Step S8, providing power to the mobile device 10 from the second port. Therefore, the charging of the mobile device 10 is not required to be suspended, and the problem that the mobile device 10 cannot be charged after the external display device 30 and the input device 40 are connected with each other due to the fact that the mobile device 10 is provided with only one port is solved. This step S8 is also not a necessary step.
Further, when the third port is a specific port, the game control method further includes a step of converting a format of the video information before transmitting the video information from the third port to the display device 30. For example, in one embodiment, the third port is an HDMI (High Definition Multimedia Interface) port and the second port is a TYPE-C port, and video information in dp (display port) format is converted into video information in HDMI format before being transmitted from the third port to the display device 30.
Second embodiment: docking station
Fig. 6 schematically shows a block circuit diagram of the docking station 20, and fig. 7 schematically shows a game control system formed with the docking station.
Referring to fig. 6 and 7, the docking station 20 includes: a first port 24 for connection to an input device 40; a second port 21 for connecting the mobile device 10; a third port 26 for connection to a display device 30; a memory 22; a processor 23; and a computer program stored in the memory 22 and capable of being executed by the processor 23, wherein when the processor 23 executes the computer program, the docking station 20 executes the game control method of the first embodiment.
The present docking station 20 may connect the mobile device 10, the display device 30 and the input device 40 as a medium for all three of the mobile device 10, the display device 30 and the input device 40. By using the docking station 20 as a medium, the external input devices 40 can be used to control the mobile device 10 to play games, and the game pictures are displayed on the display device 30 in an enlarged manner, so that the problems of small display interface and inconvenient control of the mobile device 10 such as a smart phone and a tablet computer are effectively solved.
Further, the second port 21 includes a power terminal and a data terminal capable of bidirectionally transmitting information, so that the mobile device 10 can be powered through the power terminal, the docking station 20 can transmit touch position information to the mobile device 10 through the data terminal, and the mobile device 10 can transmit video information to the docking station 20. The second port 21 that may be used includes, but is not limited to, a USB type c port.
Further, the docking station 20 further comprises a format converter 25 connected between the third port 26 and the second port 21. In a preferred embodiment, the second port 21 is a USB type c port, the third port 26 is an HDMI port, and the format converter 25 converts the DP format information received by the second port 21 into HDMI format information for transmission to the third port 26.
Further, the docking station 20 further includes: a fourth port 28 for connection to a power supply device; and a power converter 27 connected between said fourth port 28 and said second port 21. In this way, the power supply device is connected through the fourth port 28, and the power converter 27 converts the power output from the power supply device and transmits the converted power to the mobile device 10 through the second port 21. The problem that the game cannot be continued after the power of the mobile device 10 is exhausted in the game process can be solved.
The third embodiment: game control system
As shown in fig. 7, the present game control system includes: a mobile device 10 capable of running a game, an input device 40 for manipulating the game, a display device 30 for displaying game content, a docking station 20. The mobile device 10 is connected to the second port 21 of the docking station 20, the input device 40 is connected to the first port 24 of the docking station 20, and the display device 30 is connected to the third port 26 of the docking station 20. The corresponding key is operated on the input device 40, converted into the control information to be input into the docking station 20, converted into the game interface touch position information through the docking station 20, and sent to the mobile device 10 through the second port 21, so as to control the mobile device 10 to play the game. Meanwhile, the mobile device 10 transmits video information to the docking station 20 through the second port 21, and transmits the video information to the display device 30 from the third port 26 after being converted by the format converter 25 in the docking station 20, so that the game picture is displayed on the display device 30.
The power supply device can be connected to the fourth port 28 of the docking station 20, and the power converter 27 in the docking station 20 converts the power output from the power supply device and supplies power to the mobile device 10 through the second port 21.
Optional mobile devices 10 include, but are not limited to, smart phones, tablet computers, or handheld game consoles, among others. Optional input devices 40 include, but are not limited to, a keyboard, a mouse. The docking station 20 may be any of the docking stations described in the above embodiments.
According to the embodiment, the mobile device game is controlled by using the special docking station as a medium, so that the game content is displayed on the large-screen display device, and the mobile device game is controlled by using the external input devices such as a keyboard and a mouse. Therefore, the problems that the display interface of the existing hand game is small and the game cannot be controlled by using the keyboard are effectively solved, and particularly, the problems that the display interface of the existing hand game is small and the control of the existing hand game is inconvenient due to the fact that the mobile devices such as the existing smart phone cannot be externally connected with the input devices such as the display device and the keyboard mouse at the same time are solved.
The present invention has been described in detail with reference to the specific embodiments, and the detailed description is only for the purpose of helping those skilled in the art understand the present invention, and is not to be construed as limiting the scope of the present invention. Various modifications, equivalent changes, etc. made by those skilled in the art under the spirit of the present invention shall be included in the protection scope of the present invention.