| |

VerySource

 Forgot password?
 Register
Search
View: 588|Reply: 1

Virtual key

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-10 14:40:02
| Show all posts |Read mode
How to understand virtual keys
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-11 20:09:02
| Show all posts
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.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list