Expert Software Company : News

miercuri, 12 mai 2010

Keyboard Input Virtual-Key Codes

Virtual-Key Codes constants for Windows API Keyboard Input functions.

* 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_XBUTTON1 0x05 && NOT contiguous with L & RBUTTON
#DEFINE VK_XBUTTON2 0x06 && NOT contiguous with L & RBUTTON

* 0x07 : unassigned

#DEFINE VK_BACK 0x08
#DEFINE VK_TAB 0x09

* 0x0A - 0x0B : reserved

#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_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 - VK_9 are the same as ASCII '0' - '9' (0x30 - 0x39)
* 0x40 : unassigned
* VK_A - VK_Z are the same as ASCII 'A' - 'Z' (0x41 - 0x5A)

#DEFINE VK_LWIN 0x5B
#DEFINE VK_RWIN 0x5C
#DEFINE VK_APPS 0x5D

* 0x5E : reserved

#DEFINE VK_SLEEP 0x5F

#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

* 0x88 - 0x8F : unassigned

#DEFINE VK_NUMLOCK 0x90
#DEFINE VK_SCROLL 0x91
*
#DEFINE VK_LSHIFT 0xA0
#DEFINE VK_RSHIFT 0xA1

Niciun comentariu:

Trimiteți un comentariu