WingMan – Blame information for rev 10

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