
Virtual Key Codes Table
The following table shows the symbolic constant names, hexadecimal values, and keyboard equivalents for the
Note: To use these codes in the VKMapping section, the hexadecimal values need to be converted to decimals.
Symbolic Constant Name | Decimal Value | Hexadecimal | Touch Screen or Keyboard Equivalent | |
Value | ||||
|
|
| ||
|
|
|
| |
|
|
|
| |
VK_LBUTTON | 1 | 01 | Touch screen | |
|
|
|
| |
VK_CANCEL | 3 | 03 | ||
|
|
|
| |
Undefined | ||||
|
|
|
| |
VK_BACK | 8 | 08 | BACKSPACE key | |
|
|
|
| |
VK_TAB | 9 | 09 | TAB key | |
|
|
|
| |
Undefined | ||||
|
|
|
| |
VK_CLEAR | 12 | 0C | CLEAR key | |
|
|
|
| |
VK_RETURN | 13 | 0D | ENTER key | |
|
|
|
| |
Undefined | ||||
|
|
|
| |
VK_SHIFT | 16 | 10 | SHIFT key | |
|
|
|
| |
VK_CONTROL | 17 | 11 | CTRL key | |
|
|
|
| |
VK_MENU | 18 | 12 | ALT key | |
|
|
|
| |
VK_CAPITAL | 20 | 14 | CAPS LOCK key | |
|
|
|
| |
Reserved for Kanji systems | ||||
|
|
|
| |
26 | 1A | Undefined | ||
|
|
|
| |
VK_CLEAR | 12 | 0C | CLEAR key | |
|
|
|
| |
VK_RETURN | 13 | 0D | ENTER key | |
|
|
|
| |
Undefined | ||||
|
|
|
| |
VK_SHIFT | 16 | 10 | SHIFT key | |
|
|
|
| |
VK_CONTROL | 17 | 11 | CTRL key | |
|
|
|
| |
VK_MENU | 18 | 12 | ALT key | |
|
|
|
| |
VK_CAPITAL | 20 | 14 | CAPS LOCK key | |
|
|
|
| |
Reserved for Kanji systems | ||||
|
|
|
| |
26 | 1A | Undefined | ||
|
|
|
| |
VK_ESCAPE | 27 | 1B | ESC key | |
|
|
|
| |
Reserved for Kanji systems | ||||
|
|
|
| |
VK_SPACE | 32 | 20 | SPACEBAR key | |
|
|
|
| |
VK_PRIOR | 33 | 21 | PAGE UP key | |
|
|
|
|
10 - 8