FIELD OF THE TECHNOLOGY

This application relates to the field of Internet technologies, and in particular, to a virtual scene recognition and interaction key position matching method for an application and a computing device.

BACKGROUND OF THE DISCLOSURE

With the development of game technologies, game developers develop a lot of games running on a mobile phone, for example, a mobile game for the Android operating system and a mobile game for the iOS operating system. Because a game player usually operates a mobile game through a touchscreen, the mobile game is usually designed to support only a touch operation and does not support mouse and keyboard operations. However, on one hand, due to a limited size of a screen of a mobile phone, it is difficult to have a relatively good visual experience and visual effect on the mobile phone. On the other hand, on the mobile phone, it is difficult to perform a lot of relatively complex operations on the mobile game by touching the screen. Therefore, to achieve better visual experience, a better visual effect, and to perform a more complex operation on the mobile game, sometimes, a game player expects to play a mobile game on a personal computer (PC) of the game player, and operate the mobile game by using a mouse and a keyboard.

In this case, the mobile game supporting a touch operation needs to be converted into a computer game supporting mouse and keyboard operations. Currently, a PC simulator on the market implements such a conversion function by using a mouse and a keyboard simulating a touch operation. In the PC simulator, a game player needs to set a game operation key before a game or during a game, and then can operate a mobile game by using the game operation key. However, because the mobile game tends to be more complex, and the operation manner also becomes more complex, the game player may need to set a large quantity of game operation keys manually. Because a manner of manually setting the game operation key lacks intelligence, such a key setting and game operation manner in the PC simulator can no longer meet requirements for game operation experience when the game player plays the mobile game.

SUMMARY

Embodiments of this application provide a virtual scene recognition and interaction key position matching method and apparatus for an application, a computer storage medium, and a computing device.

According to the embodiments of this application, the virtual scene recognition and interaction key position matching method for an application is performed at a computing device capable of constructing or running a virtual operating system and includes:

starting an application in the virtual operating system;

performing rendering process on a to-be-presented virtual scene of the application, to obtain rendering data used for rendering the virtual scene;

in accordance with a determination that the rendering data comprises a preset map picture, invoking a corresponding key position configuration file and performing matching process between the preset map picture and a corresponding physical key of the computing device according to the key position configuration file; and

presenting the virtual scene and key configuration information corresponding to the virtual scene on a display screen of the computing device, the key configuration information being associated with the matched physical key.

According to the embodiments of this application, the virtual scene recognition and interaction key position matching apparatus for an application is performed at a computing device capable of constructing or running a virtual operating system and includes:

a starting module, configured to start an application in the virtual operating system;

a rendering detection module, configured to perform rendering processing on a to-be-presented virtual scene of the application, to obtain rendering data used for rendering the virtual scene;

a map picture recognition module, configured to recognize whether the rendering data obtained by the rendering detection module includes a preset map picture;

a key position setting module, configured to, when the rendering data comprises a preset map picture, invoke a corresponding key position configuration file and perform matching process between the preset map picture and a corresponding physical key of the computing device according to the key position configuration file; and

a display module, configured to present the virtual scene and key configuration information corresponding to the virtual scene on a display screen of the computing device, the key configuration information being associated with the matched physical key.

According to the embodiments of this application, a non-transitory computer-readable storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor, to perform the following operations:

starting an application in the virtual operating system;

performing rendering process on a to-be-presented virtual scene of the application, to obtain rendering data used for rendering the virtual scene;

in accordance with a determination that the rendering data comprises a preset map picture, invoking a corresponding key position configuration file and performing matching process between the preset map picture and a corresponding physical key of the computing device according to the key position configuration file; and

presenting the virtual scene and key configuration information corresponding to the virtual scene on a display screen of the computing device, the key configuration information being associated with the matched physical key.

According to the embodiments of this application, the computing device is capable of constructing or running a virtual operating system and includes: a processor and a memory, the memory storing computer-readable instructions, and the computer-readable instructions being executed by the processor to perform the following operations:

starting an application in the virtual operating system;

performing rendering process on a to-be-presented virtual scene of the application, to obtain rendering data used for rendering the virtual scene;

in accordance with a determination that the rendering data comprises a preset map picture, invoking a corresponding key position configuration file and performing matching process between the preset map picture and a corresponding physical key of the computing device according to the key position configuration file; and

presenting the virtual scene and key configuration information corresponding to the virtual scene on a display screen of the computing device, the key configuration information being associated with the matched physical key.

In the embodiments of this application, an application is started in a virtual operating system, rendering processing is performed on a to-be-presented virtual scene of the application, to obtain rendering data used for rendering the virtual scene, a preset map picture in the rendering data is recognized, a corresponding key position configuration file is invoked when it is recognized that the rendering data includes a preset map picture, to complete matching processing between the map picture and a corresponding physical key of the computing device, and the virtual scene and key configuration information corresponding to the virtual scene are presented on a screen of the computing device. According to the embodiments of this application, a game scene can be quickly and efficiently recognized based on recognition of a map picture in a mobile game application, and game operation keys are automatically and properly distributed in the recognized game scene dynamically in real time, so that the game operation keys are intelligently set. A game player can conveniently use a mouse and a keyboard to experience the game without setting a large quantity of game operation keys, so that the game player can have relatively good game operation experience.

Therefore, the key setting manner based on game scene recognition is relatively intelligent and has a better effect.

