Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
VirtualButton.Keyboard.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Paradox.Input
4 {
5  /// <summary>
6  /// Describes a virtual button (a key from a keyboard, a mouse button, an axis of a joystick...etc.).
7  /// </summary>
8  public partial class VirtualButton
9  {
10  /// <summary>
11  /// Keyboard virtual button.
12  /// </summary>
13  public class Keyboard : VirtualButton
14  {
15  /// <summary>
16  /// The 'none' key.
17  /// </summary>
18  public static readonly VirtualButton None = new Keyboard("none", VirtualButtonType.Keyboard, (int)Keys.None);
19 
20  /// <summary>
21  /// The 'cancel' key.
22  /// </summary>
23  public static readonly VirtualButton Cancel = new Keyboard("cancel", VirtualButtonType.Keyboard, (int)Keys.Cancel);
24 
25  /// <summary>
26  /// The 'back' key.
27  /// </summary>
28  public static readonly VirtualButton Back = new Keyboard("back", VirtualButtonType.Keyboard, (int)Keys.Back);
29 
30  /// <summary>
31  /// The 'tab' key.
32  /// </summary>
33  public static readonly VirtualButton Tab = new Keyboard("tab", VirtualButtonType.Keyboard, (int)Keys.Tab);
34 
35  /// <summary>
36  /// The 'linefeed' key.
37  /// </summary>
38  public static readonly VirtualButton LineFeed = new Keyboard("linefeed", VirtualButtonType.Keyboard, (int)Keys.LineFeed);
39 
40  /// <summary>
41  /// The 'clear' key.
42  /// </summary>
43  public static readonly VirtualButton Clear = new Keyboard("clear", VirtualButtonType.Keyboard, (int)Keys.Clear);
44 
45  /// <summary>
46  /// The 'enter' key.
47  /// </summary>
48  public static readonly VirtualButton Enter = new Keyboard("enter", VirtualButtonType.Keyboard, (int)Keys.Enter);
49 
50  /// <summary>
51  /// The 'return' key.
52  /// </summary>
53  public static readonly VirtualButton Return = new Keyboard("return", VirtualButtonType.Keyboard, (int)Keys.Return);
54 
55  /// <summary>
56  /// The 'pause' key.
57  /// </summary>
58  public static readonly VirtualButton Pause = new Keyboard("pause", VirtualButtonType.Keyboard, (int)Keys.Pause);
59 
60  /// <summary>
61  /// The 'capital' key.
62  /// </summary>
63  public static readonly VirtualButton Capital = new Keyboard("capital", VirtualButtonType.Keyboard, (int)Keys.Capital);
64 
65  /// <summary>
66  /// The 'capslock' key.
67  /// </summary>
68  public static readonly VirtualButton CapsLock = new Keyboard("capslock", VirtualButtonType.Keyboard, (int)Keys.CapsLock);
69 
70  /// <summary>
71  /// The 'hangulmode' key.
72  /// </summary>
73  public static readonly VirtualButton HangulMode = new Keyboard("hangulmode", VirtualButtonType.Keyboard, (int)Keys.HangulMode);
74 
75  /// <summary>
76  /// The 'kanamode' key.
77  /// </summary>
78  public static readonly VirtualButton KanaMode = new Keyboard("kanamode", VirtualButtonType.Keyboard, (int)Keys.KanaMode);
79 
80  /// <summary>
81  /// The 'junjamode' key.
82  /// </summary>
83  public static readonly VirtualButton JunjaMode = new Keyboard("junjamode", VirtualButtonType.Keyboard, (int)Keys.JunjaMode);
84 
85  /// <summary>
86  /// The 'finalmode' key.
87  /// </summary>
88  public static readonly VirtualButton FinalMode = new Keyboard("finalmode", VirtualButtonType.Keyboard, (int)Keys.FinalMode);
89 
90  /// <summary>
91  /// The 'hanjamode' key.
92  /// </summary>
93  public static readonly VirtualButton HanjaMode = new Keyboard("hanjamode", VirtualButtonType.Keyboard, (int)Keys.HanjaMode);
94 
95  /// <summary>
96  /// The 'kanjimode' key.
97  /// </summary>
98  public static readonly VirtualButton KanjiMode = new Keyboard("kanjimode", VirtualButtonType.Keyboard, (int)Keys.KanjiMode);
99 
100  /// <summary>
101  /// The 'escape' key.
102  /// </summary>
103  public static readonly VirtualButton Escape = new Keyboard("escape", VirtualButtonType.Keyboard, (int)Keys.Escape);
104 
105  /// <summary>
106  /// The 'imeconvert' key.
107  /// </summary>
108  public static readonly VirtualButton ImeConvert = new Keyboard("imeconvert", VirtualButtonType.Keyboard, (int)Keys.ImeConvert);
109 
110  /// <summary>
111  /// The 'imenonconvert' key.
112  /// </summary>
113  public static readonly VirtualButton ImeNonConvert = new Keyboard("imenonconvert", VirtualButtonType.Keyboard, (int)Keys.ImeNonConvert);
114 
115  /// <summary>
116  /// The 'imeaccept' key.
117  /// </summary>
118  public static readonly VirtualButton ImeAccept = new Keyboard("imeaccept", VirtualButtonType.Keyboard, (int)Keys.ImeAccept);
119 
120  /// <summary>
121  /// The 'imemodechange' key.
122  /// </summary>
123  public static readonly VirtualButton ImeModeChange = new Keyboard("imemodechange", VirtualButtonType.Keyboard, (int)Keys.ImeModeChange);
124 
125  /// <summary>
126  /// The 'space' key.
127  /// </summary>
128  public static readonly VirtualButton Space = new Keyboard("space", VirtualButtonType.Keyboard, (int)Keys.Space);
129 
130  /// <summary>
131  /// The 'pageup' key.
132  /// </summary>
133  public static readonly VirtualButton PageUp = new Keyboard("pageup", VirtualButtonType.Keyboard, (int)Keys.PageUp);
134 
135  /// <summary>
136  /// The 'prior' key.
137  /// </summary>
138  public static readonly VirtualButton Prior = new Keyboard("prior", VirtualButtonType.Keyboard, (int)Keys.Prior);
139 
140  /// <summary>
141  /// The 'next' key.
142  /// </summary>
143  public static readonly VirtualButton Next = new Keyboard("next", VirtualButtonType.Keyboard, (int)Keys.Next);
144 
145  /// <summary>
146  /// The 'pagedown' key.
147  /// </summary>
148  public static readonly VirtualButton PageDown = new Keyboard("pagedown", VirtualButtonType.Keyboard, (int)Keys.PageDown);
149 
150  /// <summary>
151  /// The 'end' key.
152  /// </summary>
153  public static readonly VirtualButton End = new Keyboard("end", VirtualButtonType.Keyboard, (int)Keys.End);
154 
155  /// <summary>
156  /// The 'home' key.
157  /// </summary>
158  public static readonly VirtualButton Home = new Keyboard("home", VirtualButtonType.Keyboard, (int)Keys.Home);
159 
160  /// <summary>
161  /// The 'left' key.
162  /// </summary>
163  public static readonly VirtualButton Left = new Keyboard("left", VirtualButtonType.Keyboard, (int)Keys.Left);
164 
165  /// <summary>
166  /// The 'up' key.
167  /// </summary>
168  public static readonly VirtualButton Up = new Keyboard("up", VirtualButtonType.Keyboard, (int)Keys.Up);
169 
170  /// <summary>
171  /// The 'right' key.
172  /// </summary>
173  public static readonly VirtualButton Right = new Keyboard("right", VirtualButtonType.Keyboard, (int)Keys.Right);
174 
175  /// <summary>
176  /// The 'down' key.
177  /// </summary>
178  public static readonly VirtualButton Down = new Keyboard("down", VirtualButtonType.Keyboard, (int)Keys.Down);
179 
180  /// <summary>
181  /// The 'select' key.
182  /// </summary>
183  public static readonly VirtualButton Select = new Keyboard("select", VirtualButtonType.Keyboard, (int)Keys.Select);
184 
185  /// <summary>
186  /// The 'print' key.
187  /// </summary>
188  public static readonly VirtualButton Print = new Keyboard("print", VirtualButtonType.Keyboard, (int)Keys.Print);
189 
190  /// <summary>
191  /// The 'execute' key.
192  /// </summary>
193  public static readonly VirtualButton Execute = new Keyboard("execute", VirtualButtonType.Keyboard, (int)Keys.Execute);
194 
195  /// <summary>
196  /// The 'printscreen' key.
197  /// </summary>
198  public static readonly VirtualButton PrintScreen = new Keyboard("printscreen", VirtualButtonType.Keyboard, (int)Keys.PrintScreen);
199 
200  /// <summary>
201  /// The 'snapshot' key.
202  /// </summary>
203  public static readonly VirtualButton Snapshot = new Keyboard("snapshot", VirtualButtonType.Keyboard, (int)Keys.Snapshot);
204 
205  /// <summary>
206  /// The 'insert' key.
207  /// </summary>
208  public static readonly VirtualButton Insert = new Keyboard("insert", VirtualButtonType.Keyboard, (int)Keys.Insert);
209 
210  /// <summary>
211  /// The 'delete' key.
212  /// </summary>
213  public static readonly VirtualButton Delete = new Keyboard("delete", VirtualButtonType.Keyboard, (int)Keys.Delete);
214 
215  /// <summary>
216  /// The 'help' key.
217  /// </summary>
218  public static readonly VirtualButton Help = new Keyboard("help", VirtualButtonType.Keyboard, (int)Keys.Help);
219 
220  /// <summary>
221  /// The 'd0' key.
222  /// </summary>
223  public static readonly VirtualButton D0 = new Keyboard("d0", VirtualButtonType.Keyboard, (int)Keys.D0);
224 
225  /// <summary>
226  /// The 'd1' key.
227  /// </summary>
228  public static readonly VirtualButton D1 = new Keyboard("d1", VirtualButtonType.Keyboard, (int)Keys.D1);
229 
230  /// <summary>
231  /// The 'd2' key.
232  /// </summary>
233  public static readonly VirtualButton D2 = new Keyboard("d2", VirtualButtonType.Keyboard, (int)Keys.D2);
234 
235  /// <summary>
236  /// The 'd3' key.
237  /// </summary>
238  public static readonly VirtualButton D3 = new Keyboard("d3", VirtualButtonType.Keyboard, (int)Keys.D3);
239 
240  /// <summary>
241  /// The 'd4' key.
242  /// </summary>
243  public static readonly VirtualButton D4 = new Keyboard("d4", VirtualButtonType.Keyboard, (int)Keys.D4);
244 
245  /// <summary>
246  /// The 'd5' key.
247  /// </summary>
248  public static readonly VirtualButton D5 = new Keyboard("d5", VirtualButtonType.Keyboard, (int)Keys.D5);
249 
250  /// <summary>
251  /// The 'd6' key.
252  /// </summary>
253  public static readonly VirtualButton D6 = new Keyboard("d6", VirtualButtonType.Keyboard, (int)Keys.D6);
254 
255  /// <summary>
256  /// The 'd7' key.
257  /// </summary>
258  public static readonly VirtualButton D7 = new Keyboard("d7", VirtualButtonType.Keyboard, (int)Keys.D7);
259 
260  /// <summary>
261  /// The 'd8' key.
262  /// </summary>
263  public static readonly VirtualButton D8 = new Keyboard("d8", VirtualButtonType.Keyboard, (int)Keys.D8);
264 
265  /// <summary>
266  /// The 'd9' key.
267  /// </summary>
268  public static readonly VirtualButton D9 = new Keyboard("d9", VirtualButtonType.Keyboard, (int)Keys.D9);
269 
270  /// <summary>
271  /// The 'a' key.
272  /// </summary>
273  public static readonly VirtualButton A = new Keyboard("a", VirtualButtonType.Keyboard, (int)Keys.A);
274 
275  /// <summary>
276  /// The 'b' key.
277  /// </summary>
278  public static readonly VirtualButton B = new Keyboard("b", VirtualButtonType.Keyboard, (int)Keys.B);
279 
280  /// <summary>
281  /// The 'c' key.
282  /// </summary>
283  public static readonly VirtualButton C = new Keyboard("c", VirtualButtonType.Keyboard, (int)Keys.C);
284 
285  /// <summary>
286  /// The 'd' key.
287  /// </summary>
288  public static readonly VirtualButton D = new Keyboard("d", VirtualButtonType.Keyboard, (int)Keys.D);
289 
290  /// <summary>
291  /// The 'e' key.
292  /// </summary>
293  public static readonly VirtualButton E = new Keyboard("e", VirtualButtonType.Keyboard, (int)Keys.E);
294 
295  /// <summary>
296  /// The 'f' key.
297  /// </summary>
298  public static readonly VirtualButton F = new Keyboard("f", VirtualButtonType.Keyboard, (int)Keys.F);
299 
300  /// <summary>
301  /// The 'g' key.
302  /// </summary>
303  public static readonly VirtualButton G = new Keyboard("g", VirtualButtonType.Keyboard, (int)Keys.G);
304 
305  /// <summary>
306  /// The 'h' key.
307  /// </summary>
308  public static readonly VirtualButton H = new Keyboard("h", VirtualButtonType.Keyboard, (int)Keys.H);
309 
310  /// <summary>
311  /// The 'i' key.
312  /// </summary>
313  public static readonly VirtualButton I = new Keyboard("i", VirtualButtonType.Keyboard, (int)Keys.I);
314 
315  /// <summary>
316  /// The 'j' key.
317  /// </summary>
318  public static readonly VirtualButton J = new Keyboard("j", VirtualButtonType.Keyboard, (int)Keys.J);
319 
320  /// <summary>
321  /// The 'k' key.
322  /// </summary>
323  public static readonly VirtualButton K = new Keyboard("k", VirtualButtonType.Keyboard, (int)Keys.K);
324 
325  /// <summary>
326  /// The 'l' key.
327  /// </summary>
328  public static readonly VirtualButton L = new Keyboard("l", VirtualButtonType.Keyboard, (int)Keys.L);
329 
330  /// <summary>
331  /// The 'm' key.
332  /// </summary>
333  public static readonly VirtualButton M = new Keyboard("m", VirtualButtonType.Keyboard, (int)Keys.M);
334 
335  /// <summary>
336  /// The 'n' key.
337  /// </summary>
338  public static readonly VirtualButton N = new Keyboard("n", VirtualButtonType.Keyboard, (int)Keys.N);
339 
340  /// <summary>
341  /// The 'o' key.
342  /// </summary>
343  public static readonly VirtualButton O = new Keyboard("o", VirtualButtonType.Keyboard, (int)Keys.O);
344 
345  /// <summary>
346  /// The 'p' key.
347  /// </summary>
348  public static readonly VirtualButton P = new Keyboard("p", VirtualButtonType.Keyboard, (int)Keys.P);
349 
350  /// <summary>
351  /// The 'q' key.
352  /// </summary>
353  public static readonly VirtualButton Q = new Keyboard("q", VirtualButtonType.Keyboard, (int)Keys.Q);
354 
355  /// <summary>
356  /// The 'r' key.
357  /// </summary>
358  public static readonly VirtualButton R = new Keyboard("r", VirtualButtonType.Keyboard, (int)Keys.R);
359 
360  /// <summary>
361  /// The 's' key.
362  /// </summary>
363  public static readonly VirtualButton S = new Keyboard("s", VirtualButtonType.Keyboard, (int)Keys.S);
364 
365  /// <summary>
366  /// The 't' key.
367  /// </summary>
368  public static readonly VirtualButton T = new Keyboard("t", VirtualButtonType.Keyboard, (int)Keys.T);
369 
370  /// <summary>
371  /// The 'u' key.
372  /// </summary>
373  public static readonly VirtualButton U = new Keyboard("u", VirtualButtonType.Keyboard, (int)Keys.U);
374 
375  /// <summary>
376  /// The 'v' key.
377  /// </summary>
378  public static readonly VirtualButton V = new Keyboard("v", VirtualButtonType.Keyboard, (int)Keys.V);
379 
380  /// <summary>
381  /// The 'w' key.
382  /// </summary>
383  public static readonly VirtualButton W = new Keyboard("w", VirtualButtonType.Keyboard, (int)Keys.W);
384 
385  /// <summary>
386  /// The 'x' key.
387  /// </summary>
388  public static readonly VirtualButton X = new Keyboard("x", VirtualButtonType.Keyboard, (int)Keys.X);
389 
390  /// <summary>
391  /// The 'y' key.
392  /// </summary>
393  public static readonly VirtualButton Y = new Keyboard("y", VirtualButtonType.Keyboard, (int)Keys.Y);
394 
395  /// <summary>
396  /// The 'z' key.
397  /// </summary>
398  public static readonly VirtualButton Z = new Keyboard("z", VirtualButtonType.Keyboard, (int)Keys.Z);
399 
400  /// <summary>
401  /// The 'leftwin' key.
402  /// </summary>
403  public static readonly VirtualButton LeftWin = new Keyboard("leftwin", VirtualButtonType.Keyboard, (int)Keys.LeftWin);
404 
405  /// <summary>
406  /// The 'rightwin' key.
407  /// </summary>
408  public static readonly VirtualButton RightWin = new Keyboard("rightwin", VirtualButtonType.Keyboard, (int)Keys.RightWin);
409 
410  /// <summary>
411  /// The 'apps' key.
412  /// </summary>
413  public static readonly VirtualButton Apps = new Keyboard("apps", VirtualButtonType.Keyboard, (int)Keys.Apps);
414 
415  /// <summary>
416  /// The 'sleep' key.
417  /// </summary>
418  public static readonly VirtualButton Sleep = new Keyboard("sleep", VirtualButtonType.Keyboard, (int)Keys.Sleep);
419 
420  /// <summary>
421  /// The 'numpad0' key.
422  /// </summary>
423  public static readonly VirtualButton NumPad0 = new Keyboard("numpad0", VirtualButtonType.Keyboard, (int)Keys.NumPad0);
424 
425  /// <summary>
426  /// The 'numpad1' key.
427  /// </summary>
428  public static readonly VirtualButton NumPad1 = new Keyboard("numpad1", VirtualButtonType.Keyboard, (int)Keys.NumPad1);
429 
430  /// <summary>
431  /// The 'numpad2' key.
432  /// </summary>
433  public static readonly VirtualButton NumPad2 = new Keyboard("numpad2", VirtualButtonType.Keyboard, (int)Keys.NumPad2);
434 
435  /// <summary>
436  /// The 'numpad3' key.
437  /// </summary>
438  public static readonly VirtualButton NumPad3 = new Keyboard("numpad3", VirtualButtonType.Keyboard, (int)Keys.NumPad3);
439 
440  /// <summary>
441  /// The 'numpad4' key.
442  /// </summary>
443  public static readonly VirtualButton NumPad4 = new Keyboard("numpad4", VirtualButtonType.Keyboard, (int)Keys.NumPad4);
444 
445  /// <summary>
446  /// The 'numpad5' key.
447  /// </summary>
448  public static readonly VirtualButton NumPad5 = new Keyboard("numpad5", VirtualButtonType.Keyboard, (int)Keys.NumPad5);
449 
450  /// <summary>
451  /// The 'numpad6' key.
452  /// </summary>
453  public static readonly VirtualButton NumPad6 = new Keyboard("numpad6", VirtualButtonType.Keyboard, (int)Keys.NumPad6);
454 
455  /// <summary>
456  /// The 'numpad7' key.
457  /// </summary>
458  public static readonly VirtualButton NumPad7 = new Keyboard("numpad7", VirtualButtonType.Keyboard, (int)Keys.NumPad7);
459 
460  /// <summary>
461  /// The 'numpad8' key.
462  /// </summary>
463  public static readonly VirtualButton NumPad8 = new Keyboard("numpad8", VirtualButtonType.Keyboard, (int)Keys.NumPad8);
464 
465  /// <summary>
466  /// The 'numpad9' key.
467  /// </summary>
468  public static readonly VirtualButton NumPad9 = new Keyboard("numpad9", VirtualButtonType.Keyboard, (int)Keys.NumPad9);
469 
470  /// <summary>
471  /// The 'multiply' key.
472  /// </summary>
473  public static readonly VirtualButton Multiply = new Keyboard("multiply", VirtualButtonType.Keyboard, (int)Keys.Multiply);
474 
475  /// <summary>
476  /// The 'add' key.
477  /// </summary>
478  public static readonly VirtualButton Add = new Keyboard("add", VirtualButtonType.Keyboard, (int)Keys.Add);
479 
480  /// <summary>
481  /// The 'separator' key.
482  /// </summary>
483  public static readonly VirtualButton Separator = new Keyboard("separator", VirtualButtonType.Keyboard, (int)Keys.Separator);
484 
485  /// <summary>
486  /// The 'subtract' key.
487  /// </summary>
488  public static readonly VirtualButton Subtract = new Keyboard("subtract", VirtualButtonType.Keyboard, (int)Keys.Subtract);
489 
490  /// <summary>
491  /// The 'decimal' key.
492  /// </summary>
493  public static readonly VirtualButton Decimal = new Keyboard("decimal", VirtualButtonType.Keyboard, (int)Keys.Decimal);
494 
495  /// <summary>
496  /// The 'divide' key.
497  /// </summary>
498  public static readonly VirtualButton Divide = new Keyboard("divide", VirtualButtonType.Keyboard, (int)Keys.Divide);
499 
500  /// <summary>
501  /// The 'f1' key.
502  /// </summary>
503  public static readonly VirtualButton F1 = new Keyboard("f1", VirtualButtonType.Keyboard, (int)Keys.F1);
504 
505  /// <summary>
506  /// The 'f2' key.
507  /// </summary>
508  public static readonly VirtualButton F2 = new Keyboard("f2", VirtualButtonType.Keyboard, (int)Keys.F2);
509 
510  /// <summary>
511  /// The 'f3' key.
512  /// </summary>
513  public static readonly VirtualButton F3 = new Keyboard("f3", VirtualButtonType.Keyboard, (int)Keys.F3);
514 
515  /// <summary>
516  /// The 'f4' key.
517  /// </summary>
518  public static readonly VirtualButton F4 = new Keyboard("f4", VirtualButtonType.Keyboard, (int)Keys.F4);
519 
520  /// <summary>
521  /// The 'f5' key.
522  /// </summary>
523  public static readonly VirtualButton F5 = new Keyboard("f5", VirtualButtonType.Keyboard, (int)Keys.F5);
524 
525  /// <summary>
526  /// The 'f6' key.
527  /// </summary>
528  public static readonly VirtualButton F6 = new Keyboard("f6", VirtualButtonType.Keyboard, (int)Keys.F6);
529 
530  /// <summary>
531  /// The 'f7' key.
532  /// </summary>
533  public static readonly VirtualButton F7 = new Keyboard("f7", VirtualButtonType.Keyboard, (int)Keys.F7);
534 
535  /// <summary>
536  /// The 'f8' key.
537  /// </summary>
538  public static readonly VirtualButton F8 = new Keyboard("f8", VirtualButtonType.Keyboard, (int)Keys.F8);
539 
540  /// <summary>
541  /// The 'f9' key.
542  /// </summary>
543  public static readonly VirtualButton F9 = new Keyboard("f9", VirtualButtonType.Keyboard, (int)Keys.F9);
544 
545  /// <summary>
546  /// The 'f10' key.
547  /// </summary>
548  public static readonly VirtualButton F10 = new Keyboard("f10", VirtualButtonType.Keyboard, (int)Keys.F10);
549 
550  /// <summary>
551  /// The 'f11' key.
552  /// </summary>
553  public static readonly VirtualButton F11 = new Keyboard("f11", VirtualButtonType.Keyboard, (int)Keys.F11);
554 
555  /// <summary>
556  /// The 'f12' key.
557  /// </summary>
558  public static readonly VirtualButton F12 = new Keyboard("f12", VirtualButtonType.Keyboard, (int)Keys.F12);
559 
560  /// <summary>
561  /// The 'f13' key.
562  /// </summary>
563  public static readonly VirtualButton F13 = new Keyboard("f13", VirtualButtonType.Keyboard, (int)Keys.F13);
564 
565  /// <summary>
566  /// The 'f14' key.
567  /// </summary>
568  public static readonly VirtualButton F14 = new Keyboard("f14", VirtualButtonType.Keyboard, (int)Keys.F14);
569 
570  /// <summary>
571  /// The 'f15' key.
572  /// </summary>
573  public static readonly VirtualButton F15 = new Keyboard("f15", VirtualButtonType.Keyboard, (int)Keys.F15);
574 
575  /// <summary>
576  /// The 'f16' key.
577  /// </summary>
578  public static readonly VirtualButton F16 = new Keyboard("f16", VirtualButtonType.Keyboard, (int)Keys.F16);
579 
580  /// <summary>
581  /// The 'f17' key.
582  /// </summary>
583  public static readonly VirtualButton F17 = new Keyboard("f17", VirtualButtonType.Keyboard, (int)Keys.F17);
584 
585  /// <summary>
586  /// The 'f18' key.
587  /// </summary>
588  public static readonly VirtualButton F18 = new Keyboard("f18", VirtualButtonType.Keyboard, (int)Keys.F18);
589 
590  /// <summary>
591  /// The 'f19' key.
592  /// </summary>
593  public static readonly VirtualButton F19 = new Keyboard("f19", VirtualButtonType.Keyboard, (int)Keys.F19);
594 
595  /// <summary>
596  /// The 'f20' key.
597  /// </summary>
598  public static readonly VirtualButton F20 = new Keyboard("f20", VirtualButtonType.Keyboard, (int)Keys.F20);
599 
600  /// <summary>
601  /// The 'f21' key.
602  /// </summary>
603  public static readonly VirtualButton F21 = new Keyboard("f21", VirtualButtonType.Keyboard, (int)Keys.F21);
604 
605  /// <summary>
606  /// The 'f22' key.
607  /// </summary>
608  public static readonly VirtualButton F22 = new Keyboard("f22", VirtualButtonType.Keyboard, (int)Keys.F22);
609 
610  /// <summary>
611  /// The 'f23' key.
612  /// </summary>
613  public static readonly VirtualButton F23 = new Keyboard("f23", VirtualButtonType.Keyboard, (int)Keys.F23);
614 
615  /// <summary>
616  /// The 'f24' key.
617  /// </summary>
618  public static readonly VirtualButton F24 = new Keyboard("f24", VirtualButtonType.Keyboard, (int)Keys.F24);
619 
620  /// <summary>
621  /// The 'numlock' key.
622  /// </summary>
623  public static readonly VirtualButton NumLock = new Keyboard("numlock", VirtualButtonType.Keyboard, (int)Keys.NumLock);
624 
625  /// <summary>
626  /// The 'scroll' key.
627  /// </summary>
628  public static readonly VirtualButton Scroll = new Keyboard("scroll", VirtualButtonType.Keyboard, (int)Keys.Scroll);
629 
630  /// <summary>
631  /// The 'leftshift' key.
632  /// </summary>
633  public static readonly VirtualButton LeftShift = new Keyboard("leftshift", VirtualButtonType.Keyboard, (int)Keys.LeftShift);
634 
635  /// <summary>
636  /// The 'rightshift' key.
637  /// </summary>
638  public static readonly VirtualButton RightShift = new Keyboard("rightshift", VirtualButtonType.Keyboard, (int)Keys.RightShift);
639 
640  /// <summary>
641  /// The 'leftctrl' key.
642  /// </summary>
643  public static readonly VirtualButton LeftCtrl = new Keyboard("leftctrl", VirtualButtonType.Keyboard, (int)Keys.LeftCtrl);
644 
645  /// <summary>
646  /// The 'rightctrl' key.
647  /// </summary>
648  public static readonly VirtualButton RightCtrl = new Keyboard("rightctrl", VirtualButtonType.Keyboard, (int)Keys.RightCtrl);
649 
650  /// <summary>
651  /// The 'leftalt' key.
652  /// </summary>
653  public static readonly VirtualButton LeftAlt = new Keyboard("leftalt", VirtualButtonType.Keyboard, (int)Keys.LeftAlt);
654 
655  /// <summary>
656  /// The 'rightalt' key.
657  /// </summary>
658  public static readonly VirtualButton RightAlt = new Keyboard("rightalt", VirtualButtonType.Keyboard, (int)Keys.RightAlt);
659 
660  /// <summary>
661  /// The 'browserback' key.
662  /// </summary>
663  public static readonly VirtualButton BrowserBack = new Keyboard("browserback", VirtualButtonType.Keyboard, (int)Keys.BrowserBack);
664 
665  /// <summary>
666  /// The 'browserforward' key.
667  /// </summary>
668  public static readonly VirtualButton BrowserForward = new Keyboard("browserforward", VirtualButtonType.Keyboard, (int)Keys.BrowserForward);
669 
670  /// <summary>
671  /// The 'browserrefresh' key.
672  /// </summary>
673  public static readonly VirtualButton BrowserRefresh = new Keyboard("browserrefresh", VirtualButtonType.Keyboard, (int)Keys.BrowserRefresh);
674 
675  /// <summary>
676  /// The 'browserstop' key.
677  /// </summary>
678  public static readonly VirtualButton BrowserStop = new Keyboard("browserstop", VirtualButtonType.Keyboard, (int)Keys.BrowserStop);
679 
680  /// <summary>
681  /// The 'browsersearch' key.
682  /// </summary>
683  public static readonly VirtualButton BrowserSearch = new Keyboard("browsersearch", VirtualButtonType.Keyboard, (int)Keys.BrowserSearch);
684 
685  /// <summary>
686  /// The 'browserfavorites' key.
687  /// </summary>
688  public static readonly VirtualButton BrowserFavorites = new Keyboard("browserfavorites", VirtualButtonType.Keyboard, (int)Keys.BrowserFavorites);
689 
690  /// <summary>
691  /// The 'browserhome' key.
692  /// </summary>
693  public static readonly VirtualButton BrowserHome = new Keyboard("browserhome", VirtualButtonType.Keyboard, (int)Keys.BrowserHome);
694 
695  /// <summary>
696  /// The 'volumemute' key.
697  /// </summary>
698  public static readonly VirtualButton VolumeMute = new Keyboard("volumemute", VirtualButtonType.Keyboard, (int)Keys.VolumeMute);
699 
700  /// <summary>
701  /// The 'volumedown' key.
702  /// </summary>
703  public static readonly VirtualButton VolumeDown = new Keyboard("volumedown", VirtualButtonType.Keyboard, (int)Keys.VolumeDown);
704 
705  /// <summary>
706  /// The 'volumeup' key.
707  /// </summary>
708  public static readonly VirtualButton VolumeUp = new Keyboard("volumeup", VirtualButtonType.Keyboard, (int)Keys.VolumeUp);
709 
710  /// <summary>
711  /// The 'medianexttrack' key.
712  /// </summary>
713  public static readonly VirtualButton MediaNextTrack = new Keyboard("medianexttrack", VirtualButtonType.Keyboard, (int)Keys.MediaNextTrack);
714 
715  /// <summary>
716  /// The 'mediaprevioustrack' key.
717  /// </summary>
718  public static readonly VirtualButton MediaPreviousTrack = new Keyboard("mediaprevioustrack", VirtualButtonType.Keyboard, (int)Keys.MediaPreviousTrack);
719 
720  /// <summary>
721  /// The 'mediastop' key.
722  /// </summary>
723  public static readonly VirtualButton MediaStop = new Keyboard("mediastop", VirtualButtonType.Keyboard, (int)Keys.MediaStop);
724 
725  /// <summary>
726  /// The 'mediaplaypause' key.
727  /// </summary>
728  public static readonly VirtualButton MediaPlayPause = new Keyboard("mediaplaypause", VirtualButtonType.Keyboard, (int)Keys.MediaPlayPause);
729 
730  /// <summary>
731  /// The 'launchmail' key.
732  /// </summary>
733  public static readonly VirtualButton LaunchMail = new Keyboard("launchmail", VirtualButtonType.Keyboard, (int)Keys.LaunchMail);
734 
735  /// <summary>
736  /// The 'selectmedia' key.
737  /// </summary>
738  public static readonly VirtualButton SelectMedia = new Keyboard("selectmedia", VirtualButtonType.Keyboard, (int)Keys.SelectMedia);
739 
740  /// <summary>
741  /// The 'launchapplication1' key.
742  /// </summary>
743  public static readonly VirtualButton LaunchApplication1 = new Keyboard("launchapplication1", VirtualButtonType.Keyboard, (int)Keys.LaunchApplication1);
744 
745  /// <summary>
746  /// The 'launchapplication2' key.
747  /// </summary>
748  public static readonly VirtualButton LaunchApplication2 = new Keyboard("launchapplication2", VirtualButtonType.Keyboard, (int)Keys.LaunchApplication2);
749 
750  /// <summary>
751  /// The 'oem1' key.
752  /// </summary>
753  public static readonly VirtualButton Oem1 = new Keyboard("oem1", VirtualButtonType.Keyboard, (int)Keys.Oem1);
754 
755  /// <summary>
756  /// The 'oemsemicolon' key.
757  /// </summary>
758  public static readonly VirtualButton OemSemicolon = new Keyboard("oemsemicolon", VirtualButtonType.Keyboard, (int)Keys.OemSemicolon);
759 
760  /// <summary>
761  /// The 'oemplus' key.
762  /// </summary>
763  public static readonly VirtualButton OemPlus = new Keyboard("oemplus", VirtualButtonType.Keyboard, (int)Keys.OemPlus);
764 
765  /// <summary>
766  /// The 'oemcomma' key.
767  /// </summary>
768  public static readonly VirtualButton OemComma = new Keyboard("oemcomma", VirtualButtonType.Keyboard, (int)Keys.OemComma);
769 
770  /// <summary>
771  /// The 'oemminus' key.
772  /// </summary>
773  public static readonly VirtualButton OemMinus = new Keyboard("oemminus", VirtualButtonType.Keyboard, (int)Keys.OemMinus);
774 
775  /// <summary>
776  /// The 'oemperiod' key.
777  /// </summary>
778  public static readonly VirtualButton OemPeriod = new Keyboard("oemperiod", VirtualButtonType.Keyboard, (int)Keys.OemPeriod);
779 
780  /// <summary>
781  /// The 'oem2' key.
782  /// </summary>
783  public static readonly VirtualButton Oem2 = new Keyboard("oem2", VirtualButtonType.Keyboard, (int)Keys.Oem2);
784 
785  /// <summary>
786  /// The 'oemquestion' key.
787  /// </summary>
788  public static readonly VirtualButton OemQuestion = new Keyboard("oemquestion", VirtualButtonType.Keyboard, (int)Keys.OemQuestion);
789 
790  /// <summary>
791  /// The 'oem3' key.
792  /// </summary>
793  public static readonly VirtualButton Oem3 = new Keyboard("oem3", VirtualButtonType.Keyboard, (int)Keys.Oem3);
794 
795  /// <summary>
796  /// The 'oemtilde' key.
797  /// </summary>
798  public static readonly VirtualButton OemTilde = new Keyboard("oemtilde", VirtualButtonType.Keyboard, (int)Keys.OemTilde);
799 
800  /// <summary>
801  /// The 'oem4' key.
802  /// </summary>
803  public static readonly VirtualButton Oem4 = new Keyboard("oem4", VirtualButtonType.Keyboard, (int)Keys.Oem4);
804 
805  /// <summary>
806  /// The 'oemopenbrackets' key.
807  /// </summary>
808  public static readonly VirtualButton OemOpenBrackets = new Keyboard("oemopenbrackets", VirtualButtonType.Keyboard, (int)Keys.OemOpenBrackets);
809 
810  /// <summary>
811  /// The 'oem5' key.
812  /// </summary>
813  public static readonly VirtualButton Oem5 = new Keyboard("oem5", VirtualButtonType.Keyboard, (int)Keys.Oem5);
814 
815  /// <summary>
816  /// The 'oempipe' key.
817  /// </summary>
818  public static readonly VirtualButton OemPipe = new Keyboard("oempipe", VirtualButtonType.Keyboard, (int)Keys.OemPipe);
819 
820  /// <summary>
821  /// The 'oem6' key.
822  /// </summary>
823  public static readonly VirtualButton Oem6 = new Keyboard("oem6", VirtualButtonType.Keyboard, (int)Keys.Oem6);
824 
825  /// <summary>
826  /// The 'oemclosebrackets' key.
827  /// </summary>
828  public static readonly VirtualButton OemCloseBrackets = new Keyboard("oemclosebrackets", VirtualButtonType.Keyboard, (int)Keys.OemCloseBrackets);
829 
830  /// <summary>
831  /// The 'oem7' key.
832  /// </summary>
833  public static readonly VirtualButton Oem7 = new Keyboard("oem7", VirtualButtonType.Keyboard, (int)Keys.Oem7);
834 
835  /// <summary>
836  /// The 'oemquotes' key.
837  /// </summary>
838  public static readonly VirtualButton OemQuotes = new Keyboard("oemquotes", VirtualButtonType.Keyboard, (int)Keys.OemQuotes);
839 
840  /// <summary>
841  /// The 'oem8' key.
842  /// </summary>
843  public static readonly VirtualButton Oem8 = new Keyboard("oem8", VirtualButtonType.Keyboard, (int)Keys.Oem8);
844 
845  /// <summary>
846  /// The 'oem102' key.
847  /// </summary>
848  public static readonly VirtualButton Oem102 = new Keyboard("oem102", VirtualButtonType.Keyboard, (int)Keys.Oem102);
849 
850  /// <summary>
851  /// The 'oembackslash' key.
852  /// </summary>
853  public static readonly VirtualButton OemBackslash = new Keyboard("oembackslash", VirtualButtonType.Keyboard, (int)Keys.OemBackslash);
854 
855  /// <summary>
856  /// The 'attn' key.
857  /// </summary>
858  public static readonly VirtualButton Attn = new Keyboard("attn", VirtualButtonType.Keyboard, (int)Keys.Attn);
859 
860  /// <summary>
861  /// The 'crsel' key.
862  /// </summary>
863  public static readonly VirtualButton CrSel = new Keyboard("crsel", VirtualButtonType.Keyboard, (int)Keys.CrSel);
864 
865  /// <summary>
866  /// The 'exsel' key.
867  /// </summary>
868  public static readonly VirtualButton ExSel = new Keyboard("exsel", VirtualButtonType.Keyboard, (int)Keys.ExSel);
869 
870  /// <summary>
871  /// The 'eraseeof' key.
872  /// </summary>
873  public static readonly VirtualButton EraseEof = new Keyboard("eraseeof", VirtualButtonType.Keyboard, (int)Keys.EraseEof);
874 
875  /// <summary>
876  /// The 'play' key.
877  /// </summary>
878  public static readonly VirtualButton Play = new Keyboard("play", VirtualButtonType.Keyboard, (int)Keys.Play);
879 
880  /// <summary>
881  /// The 'zoom' key.
882  /// </summary>
883  public static readonly VirtualButton Zoom = new Keyboard("zoom", VirtualButtonType.Keyboard, (int)Keys.Zoom);
884 
885  /// <summary>
886  /// The 'noname' key.
887  /// </summary>
888  public static readonly VirtualButton NoName = new Keyboard("noname", VirtualButtonType.Keyboard, (int)Keys.NoName);
889 
890  /// <summary>
891  /// The 'pa1' key.
892  /// </summary>
893  public static readonly VirtualButton Pa1 = new Keyboard("pa1", VirtualButtonType.Keyboard, (int)Keys.Pa1);
894 
895  /// <summary>
896  /// The 'oemclear' key.
897  /// </summary>
898  public static readonly VirtualButton OemClear = new Keyboard("oemclear", VirtualButtonType.Keyboard, (int)Keys.OemClear);
899 
900 
901  private Keyboard(string name, VirtualButtonType type, int id, bool isPositiveAndNegative = false)
902  : base(name, type, id, isPositiveAndNegative)
903  {
904  }
905 
906  public override float GetValue(InputManagerBase manager)
907  {
908  var index = Id & TypeIdMask;
909  return manager.IsKeyDown((Keys)index) ? 1.0f : 0.0f;
910  }
911  }
912  }
913 }
Keys
Enumeration for keys.
Definition: Keys.cs:8
Describes a virtual button (a key from a keyboard, a mouse button, an axis of a joystick...etc.).
override float GetValue(InputManagerBase manager)
Gets the value associated with this virtual button from an input manager.
Interface for input management system, including keyboard, mouse, gamepads and touch.
VirtualButtonType
Type of a VirtualButton.