(Turbo Pascal - boy I miss that - though FreePascal.org picked up that "syntax" and took it multiplatform (Linux, win32, MacX) and more
)
But yeah - most of us have at one time - made a little exe in DBPro or something that displays the codes as you hit them - see the input functions - I have a source list I put in my code - I made it myself before I saw others had their own - so - steal this if you want - or someone else's
:
//---------------------------------------------------------------------
// Keyboard Scan Codes
//---------------------------------------------------------------------
#define cnScanCode_A 30
#define cnScanCode_B 48
#define cnScanCode_C 46
#define cnScanCode_D 32
#define cnScanCode_E 18
#define cnScanCode_F 33
#define cnScanCode_G 34
#define cnScanCode_H 35
#define cnScanCode_I 23
#define cnScanCode_J 36
#define cnScanCode_K 37
#define cnScanCode_L 38
#define cnScanCode_M 50
#define cnScanCode_N 49
#define cnScanCode_O 24
#define cnScanCode_P 25
#define cnScanCode_Q 16
#define cnScanCode_R 19
#define cnScanCode_S 31
#define cnScanCode_T 20
#define cnScanCode_U 22
#define cnScanCode_V 47
#define cnScanCode_W 17
#define cnScanCode_X 45
#define cnScanCode_Y 21
#define cnScanCode_Z 44
#define cnScanCode_F1 59
#define cnScanCode_F2 60
#define cnScanCode_F3 61
#define cnScanCode_F4 62
#define cnScanCode_F5 63
#define cnScanCode_F6 64
#define cnScanCode_F7 65
#define cnScanCode_F8 66
#define cnScanCode_F9 67
#define cnScanCode_F10 68
#define cnScanCode_LeftSingleQuote 41
#define cnScanCode_1 2
#define cnScanCode_2 3
#define cnScanCode_3 4
#define cnScanCode_4 5
#define cnScanCode_5 6
#define cnScanCode_6 7
#define cnScanCode_7 8
#define cnScanCode_8 9
#define cnScanCode_9 10
#define cnScanCode_0 11
#define cnScanCode_Minus 12
#define cnScanCode_Equal 13
#define cnScanCode_BackSpace 14
#define cnScanCode_Tab 15
#define cnScanCode_LeftBracket 26
#define cnScanCode_RightBracket 27
#define cnScanCode_BackSlash 43
#define cnScanCode_Enter 28
#define cnScanCode_Caps 58
#define cnScanCode_LShift 42
#define cnScanCode_RShift 54
#define cnScanCode_SemiColon 39
#define cnScanCode_SingleQuote 40
#define cnScanCode_Comma 51
#define cnScanCode_Period 52
#define cnScanCode_ForwardSlash 53
#define cncanCode_LWinKey 219
#define cnScanCode_LAlt 56
#define cnScanCode_RAlt 184
#define cnScanCode_RWinKey 220
#define cnScanCode_WinMenu 221
#define cnScanCode_LCntl 29
#define cnScanCode_RCntl 157
#define cnScanCode_PrintScreen 183
#define cnScanCode_ScollLock 70
#define cnScanCode_Pause 197
//#define cnScanCode_Break 197 Same Key
#define cnScanCode_Ins 210
#define cnScanCode_Del 211
#define cnScanCode_Home 199
#define cnScanCode_End 207
#define cnScanCode_PgUp 201
#define cnScanCode_PgDn 209
#define cnScanCode_UpArrow 200
#define cnScanCode_DownArrow 208
#define cnScanCode_LeftArrow 203
#define cnScanCode_RightArrow 205
#define cnScanCode_NumLock 69
#define cnScanCode_NumForwardSlash 181
#define cnScanCode_NumStar 55
#define cnScanCode_NumMinus 74
#define cnScanCode_NumPlus 78
#define cnScanCode_NumEnter 156
#define cnScanCode_NumPeriod 83
#define cnScanCode_Num1 79
#define cnScanCode_Num2 80
#define cnScanCode_Num3 81
#define cnScanCode_Num4 75
#define cnScanCode_Num5 76
#define cnScanCode_Num6 77
#define cnScanCode_Num7 71
#define cnScanCode_Num8 72
#define cnScanCode_Num9 73
#define cnScanCode_Num0 82
#define cnScanCode_SpaceBar 57