键盘vk值列表
/*
* virtual keys, standard set
*/
#define vk_lbutton 0x01
#define vk_rbutton 0x02
#define vk_cancel 0x03
#define vk_mbutton 0x04 /* not contiguous with l & rbutton */
#define vk_back 0x08
#define vk_tab 0x09
#define vk_clear 0x0c
#define vk_return 0x0d
#define vk_shift 0x10
#define vk_control 0x11
#define vk_menu 0x12
#define vk_pause 0x13
#define vk_capital 0x14
#define vk_kana 0x15
#define vk_hangeul 0x15 /* old name – should be here for compatibility */
#define vk_hangul 0x15
#define vk_junja 0x17
#define vk_final 0x18
#define vk_hanja 0x19
#define vk_kanji 0x19
#define vk_escape 0x1b
#define vk_convert 0x1c
#define vk_nonconvert 0x1d
#define vk_accept 0x1e
#define vk_modechange 0x1f
#define vk_space 0x20
#define vk_prior 0x21
#define vk_next 0x22
#define vk_end 0x23
#define vk_home 0x24
#define vk_left 0x25
#define vk_up 0x26
#define vk_right 0x27
#define vk_down 0x28
#define vk_select 0x29
#define vk_print 0x2a
#define vk_execute 0x2b
#define vk_snapshot 0x2c
#define vk_insert 0x2d
#define vk_delete 0x2e
#define vk_help 0x2f
/* vk_0 thru vk_9 are the same as ascii ´0´ thru ´9´ (0x30 – 0x39) */
/* vk_a thru vk_z are the same as ascii ´a´ thru ´z´ (0x41 – 0x5a) */
#define vk_lwin 0x5b
#define vk_rwin 0x5c
#define vk_apps 0x5d
#define vk_numpad0 0x60
#define vk_numpad1 0x61
#define vk_numpad2 0x62
#define vk_numpad3 0x63
#define vk_numpad4 0x64
#define vk_numpad5 0x65
#define vk_numpad6 0x66
#define vk_numpad7 0x67
#define vk_numpad8 0x68
#define vk_numpad9 0x69
#define vk_multiply 0x6a
#define vk_add 0x6b
#define vk_separator 0x6c
#define vk_subtract 0x6d
#define vk_decimal 0x6e
#define vk_divide 0x6f
#define vk_f1 0x70
#define vk_f2 0x71
#define vk_f3 0x72
#define vk_f4 0x73
#define vk_f5 0x74
#define vk_f6 0x75
#define vk_f7 0x76
#define vk_f8 0x77
#define vk_f9 0x78
#define vk_f10 0x79
#define vk_f11 0x7a
#define vk_f12 0x7b
#define vk_f13 0x7c
#define vk_f14 0x7d
#define vk_f15 0x7e
#define vk_f16 0x7f
#define vk_f17 0x80
#define vk_f18 0x81
#define vk_f19 0x82
#define vk_f20 0x83
#define vk_f21 0x84
#define vk_f22 0x85
#define vk_f23 0x86
#define vk_f24 0x87
#define vk_numlock 0x90
#define vk_scroll 0x91
/*
* vk_l* & vk_r* – left and right alt, ctrl and shift virtual keys.
* used only as parameters to getasynckeystate() and getkeystate().
* no other api or message will distinguish left and right keys in this way.
*/
#define vk_lshift 0xa0
#define vk_rshift 0xa1
#define vk_lcontrol 0xa2
#define vk_rcontrol 0xa3
#define vk_lmenu 0xa4
#define vk_rmenu 0xa5
#if(winver >= 0x0400)
#define vk_processkey 0xe5
#endif /* winver >= 0x0400 */
#define vk_attn 0xf6
#define vk_crsel 0xf7
#define vk_exsel 0xf8
#define vk_ereof 0xf9
#define vk_play 0xfa
#define vk_zoom 0xfb
#define vk_noname 0xfc
#define vk_pa1 0xfd
#define vk_oem_clear 0xfe