|
Virtual refers to something that is supposed to exist in the mind rather than the real world. Only programmers skilled in writing applications in the DOS combination language can point out why the basic key codes for Windows keyboard processing are virtual Instead of real
For early programmers, the actual key code was generated by the actual keyboard hardware. These key codes are called "scan codes" in Windows files. On IBM compatible models, the scan code 16 is the Q key, 17 is the W key, 18 is E, 19 is R, 20 is T, 21 is Y, and so on. At this time you will find that the scan code is based on the actual layout of the keyboard. Windows developers thought these codes were too device-dependent, so they tried to define so-called virtual key codes to handle the keyboard in a device-independent way. Some of these virtual key codes cannot be generated on IBM-compatible models, but may be found on keyboards made by other manufacturers, or on future keyboards. |
|