1 module armos.utils.keytype; 2 3 /++ 4 cf. http://www.glfw.org/docs/latest/group__keys.html 5 +/ 6 enum KeyType { 7 Unknown = -1, 8 Space = 32, 9 Apostrophe = 39 /* ' */, 10 Comma = 44 /* ,*/, 11 Minus = 45 /* - */, 12 Period = 46 /* . */, 13 Slash = 47 /* / */, 14 Num0 = 48, 15 Num1 = 49, 16 Num2 = 50, 17 Num3 = 51, 18 Num4 = 52, 19 Num5 = 53, 20 Num6 = 54, 21 Num7 = 55, 22 Num8 = 56, 23 Num9 = 57, 24 Semicolon = 59 /* ; */, 25 Equal = 61 /* = */, 26 A = 65, 27 B = 66, 28 C = 67, 29 D = 68, 30 E = 69, 31 F = 70, 32 G = 71, 33 H = 72, 34 I = 73, 35 J = 74, 36 K = 75, 37 L = 76, 38 M = 77, 39 N = 78, 40 O = 79, 41 P = 80, 42 Q = 81, 43 R = 82, 44 S = 83, 45 T = 84, 46 U = 85, 47 V = 86, 48 W = 87, 49 X = 88, 50 Y = 89, 51 Z = 90, 52 LeftBracket = 91 /* [ */, 53 Backslash = 92 /* \ */, 54 RightBracket = 93 /* ] */, 55 GraveAccent = 96 /* ` */, 56 World1 = 161 /* non-US #1 */, 57 World2 = 162 /* non-US #2 */, 58 Escape = 256, 59 Enter = 257, 60 Tab = 258, 61 Backspace = 259, 62 Insert = 260, 63 Delete = 261, 64 Right = 262, 65 Left = 263, 66 Down = 264, 67 Up = 265, 68 PageUp = 266, 69 PageDown = 267, 70 Home = 268, 71 End = 269, 72 CapsLock = 280, 73 ScrollLock = 281, 74 NumLock = 282, 75 PrintScreen = 283, 76 Pause = 284, 77 F1 = 290, 78 F2 = 291, 79 F3 = 292, 80 F4 = 293, 81 F5 = 294, 82 F6 = 295, 83 F7 = 296, 84 F8 = 297, 85 F9 = 298, 86 F10 = 299, 87 F11 = 300, 88 F12 = 301, 89 F13 = 302, 90 F14 = 303, 91 F15 = 304, 92 F16 = 305, 93 F17 = 306, 94 F18 = 307, 95 F19 = 308, 96 F20 = 309, 97 F21 = 310, 98 F22 = 311, 99 F23 = 312, 100 F24 = 313, 101 F25 = 314, 102 Kp0 = 320, 103 Kp1 = 321, 104 Kp2 = 322, 105 Kp3 = 323, 106 Kp4 = 324, 107 Kp5 = 325, 108 Kp6 = 326, 109 Kp7 = 327, 110 Kp8 = 328, 111 Kp9 = 329, 112 KpDecimal = 330, 113 KpDivide = 331, 114 KpMultiply = 332, 115 KpSubtract = 333, 116 KpAdd = 334, 117 KpEnter = 335, 118 KpEqual = 336, 119 LeftShift = 340, 120 LeftControl = 341, 121 LeftAlt = 342, 122 LeftSuper = 343, 123 RightShift = 344, 124 RightControl = 345, 125 RightAlt = 346, 126 RightSuper = 347, 127 Menu = 348, 128 Last = 348, 129 }//enum KeyType