Method and system for implementation of virtual input equipment in driving layer

The invention discloses a method and a system for implementation of virtual input equipment in a driving layer. The method includes: calling a system application programming interface to set up virtual input equipment, and mounting the virtual input equipment on the driving layer; recording a function address of system input equipment into an equipment expansion structural part of the virtual input equipment to enable the driving layer to automatically obtain the function address of the system input equipment; acquiring an input data structural element sent by an application layer to the virtual input equipment; and allowing the driving layer to use the obtained input data structural part to control behaviors of the virtual input equipment according to the equipment expansion structure part recorded in the virtual input equipment. By means of the method and the system for implementation of the virtual input equipment in the driving layer, the virtual input equipment can be controlled when messages of the virtual input equipment are shielded by software.