WingMan – Blame information for rev 31

Subversion Repositories:
Rev:
Rev Author Line No. Line
10 office 1 using System.Collections.Generic;
5 office 2  
14 office 3 namespace WingMan.Utilities
5 office 4 {
8 office 5 public static class KeyConversion
5 office 6 {
10 office 7 public static readonly Dictionary<string, byte> StringToKeys = new Dictionary<string, byte>
5 office 8 {
10 office 9 {"None", 0},
10 {"LButton", 1},
11 {"RButton", 2},
12 {"Cancel", 3},
13 {"MButton", 4},
14 {"XButton1", 5},
15 {"XButton2", 6},
16 {"Back", 8},
17 {"Tab", 9},
18 {"LineFeed", 10},
19 {"Clear", 12},
20 {"Enter", 13},
21 {"ShiftKey", 16},
22 {"ControlKey", 17},
23 {"Menu", 18},
24 {"Pause", 19},
25 {"CapsLock", 20},
26 {"HangulMode", 21},
27 {"JunjaMode", 23},
28 {"FinalMode", 24},
29 {"KanjiMode", 25},
30 {"Escape", 27},
31 {"IMEConvert", 28},
32 {"IMENonconvert", 29},
33 {"IMEAccept", 30},
34 {"IMEModeChange", 31},
35 {"Space", 32},
36 {"PageUp", 33},
37 {"PageDown", 34},
38 {"End", 35},
39 {"Home", 36},
40 {"Left", 37},
41 {"Up", 38},
42 {"Right", 39},
43 {"Down", 40},
44 {"Select", 41},
45 {"Print", 42},
46 {"Execute", 43},
47 {"PrintScreen", 44},
48 {"Insert", 45},
49 {"Delete", 46},
50 {"Help", 47},
51 {"D0", 48},
52 {"D1", 49},
53 {"D2", 50},
54 {"D3", 51},
55 {"D4", 52},
56 {"D5", 53},
57 {"D6", 54},
58 {"D7", 55},
59 {"D8", 56},
60 {"D9", 57},
61 {"A", 65},
62 {"B", 66},
63 {"C", 67},
64 {"D", 68},
65 {"E", 69},
66 {"F", 70},
67 {"G", 71},
68 {"H", 72},
69 {"I", 73},
70 {"J", 74},
71 {"K", 75},
72 {"L", 76},
73 {"M", 77},
74 {"N", 78},
75 {"O", 79},
76 {"P", 80},
77 {"Q", 81},
78 {"R", 82},
79 {"S", 83},
80 {"T", 84},
81 {"U", 85},
82 {"V", 86},
83 {"W", 87},
84 {"X", 88},
85 {"Y", 89},
86 {"Z", 90},
87 {"LWin", 91},
88 {"RWin", 92},
89 {"Apps", 93},
90 {"Sleep", 95},
91 {"NumPad0", 96},
92 {"NumPad1", 97},
93 {"NumPad2", 98},
94 {"NumPad3", 99},
95 {"NumPad4", 100},
96 {"NumPad5", 101},
97 {"NumPad6", 102},
98 {"NumPad7", 103},
99 {"NumPad8", 104},
100 {"NumPad9", 105},
101 {"Multiply", 106},
102 {"Add", 107},
103 {"Separator", 108},
104 {"Subtract", 109},
105 {"Decimal", 110},
106 {"Divide", 111},
107 {"F1", 112},
108 {"F2", 113},
109 {"F3", 114},
110 {"F4", 115},
111 {"F5", 116},
112 {"F6", 117},
113 {"F7", 118},
114 {"F8", 119},
115 {"F9", 120},
116 {"F10", 121},
117 {"F11", 122},
118 {"F12", 123},
119 {"F13", 124},
120 {"F14", 125},
121 {"F15", 126},
122 {"F16", 127},
123 {"F17", 128},
124 {"F18", 129},
125 {"F19", 130},
126 {"F20", 131},
127 {"F21", 132},
128 {"F22", 133},
129 {"F23", 134},
130 {"F24", 135},
131 {"NumLock", 144},
132 {"Scroll", 145},
133 {"LShiftKey", 160},
134 {"RShiftKey", 161},
135 {"LControlKey", 162},
136 {"RControlKey", 163},
137 {"LMenu", 164},
138 {"RMenu", 165},
139 {"BrowserBack", 166},
140 {"BrowserForward", 167},
141 {"BrowserRefresh", 168},
142 {"BrowserStop", 169},
143 {"BrowserSearch", 170},
144 {"BrowserFavorites", 171},
145 {"BrowserHome", 172},
146 {"VolumeMute", 173},
147 {"VolumeDown", 174},
148 {"VolumeUp", 175},
149 {"MediaNextTrack", 176},
150 {"MediaPreviousTrack", 177},
151 {"MediaStop", 178},
152 {"MediaPlayPause", 179},
153 {"LaunchMail", 180},
154 {"SelectMedia", 181},
155 {"LaunchApplication1", 182},
156 {"LaunchApplication2", 183},
157 {"Oem1", 186},
158 {"Oemplus", 187},
159 {"Oemcomma", 188},
160 {"OemMinus", 189},
161 {"OemPeriod", 190},
162 {"Oem2", 191},
163 {"Oem3", 192},
164 {"Oem4", 219},
165 {"Oem5", 220},
166 {"Oem6", 221},
167 {"Oem7", 222},
168 {"Oem8", 223},
169 {"Oem102", 226},
170 {"ProcessKey", 229},
171 {"Packet", 231},
172 {"Attn", 246},
173 {"Crsel", 247},
174 {"Exsel", 248},
175 {"EraseEof", 249},
176 {"Play", 250},
177 {"Zoom", 251},
178 {"NoName", 252},
179 {"Pa1", 253},
180 {"OemClear", 254}
181 };
5 office 182  
10 office 183 public static readonly Dictionary<byte, string> KeysToString = new Dictionary<byte, string>
184 {
185 {0, "None"},
186 {1, "LButton"},
187 {2, "RButton"},
188 {3, "Cancel"},
189 {4, "MButton"},
190 {5, "XButton1"},
191 {6, "XButton2"},
192 {8, "Back"},
193 {9, "Tab"},
194 {10, "LineFeed"},
195 {12, "Clear"},
196 {13, "Enter"},
197 {16, "ShiftKey"},
198 {17, "ControlKey"},
199 {18, "Menu"},
200 {19, "Pause"},
201 {20, "CapsLock"},
202 {21, "HanguelMode"},
203 {23, "JunjaMode"},
204 {24, "FinalMode"},
205 {25, "KanjiMode"},
206 {27, "Escape"},
207 {28, "IMEConvert"},
208 {29, "IMENonconvert"},
209 {30, "IMEAccept"},
210 {31, "IMEModeChange"},
211 {32, "Space"},
212 {33, "PageUp"},
213 {34, "PageDown"},
214 {35, "End"},
215 {36, "Home"},
216 {37, "Left"},
217 {38, "Up"},
218 {39, "Right"},
219 {40, "Down"},
220 {41, "Select"},
221 {42, "Print"},
222 {43, "Execute"},
223 {44, "PrintScreen"},
224 {45, "Insert"},
225 {46, "Delete"},
226 {47, "Help"},
227 {48, "D0"},
228 {49, "D1"},
229 {50, "D2"},
230 {51, "D3"},
231 {52, "D4"},
232 {53, "D5"},
233 {54, "D6"},
234 {55, "D7"},
235 {56, "D8"},
236 {57, "D9"},
237 {65, "A"},
238 {66, "B"},
239 {67, "C"},
240 {68, "D"},
241 {69, "E"},
242 {70, "F"},
243 {71, "G"},
244 {72, "H"},
245 {73, "I"},
246 {74, "J"},
247 {75, "K"},
248 {76, "L"},
249 {77, "M"},
250 {78, "N"},
251 {79, "O"},
252 {80, "P"},
253 {81, "Q"},
254 {82, "R"},
255 {83, "S"},
256 {84, "T"},
257 {85, "U"},
258 {86, "V"},
259 {87, "W"},
260 {88, "X"},
261 {89, "Y"},
262 {90, "Z"},
263 {91, "LWin"},
264 {92, "RWin"},
265 {93, "Apps"},
266 {95, "Sleep"},
267 {96, "NumPad0"},
268 {97, "NumPad1"},
269 {98, "NumPad2"},
270 {99, "NumPad3"},
271 {100, "NumPad4"},
272 {101, "NumPad5"},
273 {102, "NumPad6"},
274 {103, "NumPad7"},
275 {104, "NumPad8"},
276 {105, "NumPad9"},
277 {106, "Multiply"},
278 {107, "Add"},
279 {108, "Separator"},
280 {109, "Subtract"},
281 {110, "Decimal"},
282 {111, "Divide"},
283 {112, "F1"},
284 {113, "F2"},
285 {114, "F3"},
286 {115, "F4"},
287 {116, "F5"},
288 {117, "F6"},
289 {118, "F7"},
290 {119, "F8"},
291 {120, "F9"},
292 {121, "F10"},
293 {122, "F11"},
294 {123, "F12"},
295 {124, "F13"},
296 {125, "F14"},
297 {126, "F15"},
298 {127, "F16"},
299 {128, "F17"},
300 {129, "F18"},
301 {130, "F19"},
302 {131, "F20"},
303 {132, "F21"},
304 {133, "F22"},
305 {134, "F23"},
306 {135, "F24"},
307 {144, "NumLock"},
308 {145, "Scroll"},
309 {160, "LShiftKey"},
310 {161, "RShiftKey"},
311 {162, "LControlKey"},
312 {163, "RControlKey"},
313 {164, "LMenu"},
314 {165, "RMenu"},
315 {166, "BrowserBack"},
316 {167, "BrowserForward"},
317 {168, "BrowserRefresh"},
318 {169, "BrowserStop"},
319 {170, "BrowserSearch"},
320 {171, "BrowserFavorites"},
321 {172, "BrowserHome"},
322 {173, "VolumeMute"},
323 {174, "VolumeDown"},
324 {175, "VolumeUp"},
325 {176, "MediaNextTrack"},
326 {177, "MediaPreviousTrack"},
327 {178, "MediaStop"},
328 {179, "MediaPlayPause"},
329 {180, "LaunchMail"},
330 {181, "SelectMedia"},
331 {182, "LaunchApplication1"},
332 {183, "LaunchApplication2"},
333 {186, "Oem1"},
334 {187, "Oemplus"},
335 {188, "Oemcomma"},
336 {189, "OemMinus"},
337 {190, "OemPeriod"},
338 {191, "Oem2"},
339 {192, "Oem3"},
340 {219, "Oem4"},
341 {220, "Oem5"},
342 {221, "Oem6"},
343 {222, "Oem7"},
344 {223, "Oem8"},
345 {226, "Oem102"},
346 {229, "ProcessKey"},
347 {231, "Packet"},
348 {246, "Attn"},
349 {247, "Crsel"},
350 {248, "Exsel"},
351 {249, "EraseEof"},
352 {250, "Play"},
353 {251, "Zoom"},
354 {252, "NoName"},
355 {253, "Pa1"},
356 {254, "OemClear"}
357 };
5 office 358 }
359 }