-
Notifications
You must be signed in to change notification settings - Fork 0
/
code_string.go
137 lines (132 loc) · 4.23 KB
/
code_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Code generated by "stringer -type=Code"; DO NOT EDIT
package kbd
import "fmt"
const _Code_name = "EscapeKey1Key2Key3Key4Key5Key6Key7Key8Key9Key0MinusPlusBackspaceTabKeyQKeyWKeyEKeyRKeyTKeyYKeyUKeyIKeyOKeyPOpenBracketCloseBracketReturnLeftControlKeyAKeySKeyDKeyFKeyGKeyHKeyJKeyKKeyLColonQuoteTildeLeftShiftBackslashKeyZKeyXKeyCKeyVKeyBKeyNKeyMCommaPeriodSlashRightShiftNumpadMultiplyLeftAltSpaceCapsLockF1F2F3F4F5F6F7F8F9F10NumLockScrollNumpad7Numpad8Numpad9NumpadSubstractNumpad4Numpad5Numpad6NumpadAddNumpad1Numpad2Numpad3Numpad0NumpadDecimalAltSysRqF11F12F13F14F15F16F17F18F19F20F21F22F23F24NumpadReturnRightControlNumpadDividePrintScreenRightAltCtrlBreakHomeUpPageUpLeftRightEndDownPageDownInsertDeleteLeftWinRightWinAppsPowerSleepWake"
var _Code_map = map[Code]string{
1: _Code_name[0:6],
2: _Code_name[6:10],
3: _Code_name[10:14],
4: _Code_name[14:18],
5: _Code_name[18:22],
6: _Code_name[22:26],
7: _Code_name[26:30],
8: _Code_name[30:34],
9: _Code_name[34:38],
10: _Code_name[38:42],
11: _Code_name[42:46],
12: _Code_name[46:51],
13: _Code_name[51:55],
14: _Code_name[55:64],
15: _Code_name[64:67],
16: _Code_name[67:71],
17: _Code_name[71:75],
18: _Code_name[75:79],
19: _Code_name[79:83],
20: _Code_name[83:87],
21: _Code_name[87:91],
22: _Code_name[91:95],
23: _Code_name[95:99],
24: _Code_name[99:103],
25: _Code_name[103:107],
26: _Code_name[107:118],
27: _Code_name[118:130],
28: _Code_name[130:136],
29: _Code_name[136:147],
30: _Code_name[147:151],
31: _Code_name[151:155],
32: _Code_name[155:159],
33: _Code_name[159:163],
34: _Code_name[163:167],
35: _Code_name[167:171],
36: _Code_name[171:175],
37: _Code_name[175:179],
38: _Code_name[179:183],
39: _Code_name[183:188],
40: _Code_name[188:193],
41: _Code_name[193:198],
42: _Code_name[198:207],
43: _Code_name[207:216],
44: _Code_name[216:220],
45: _Code_name[220:224],
46: _Code_name[224:228],
47: _Code_name[228:232],
48: _Code_name[232:236],
49: _Code_name[236:240],
50: _Code_name[240:244],
51: _Code_name[244:249],
52: _Code_name[249:255],
53: _Code_name[255:260],
54: _Code_name[260:270],
55: _Code_name[270:284],
56: _Code_name[284:291],
57: _Code_name[291:296],
58: _Code_name[296:304],
59: _Code_name[304:306],
60: _Code_name[306:308],
61: _Code_name[308:310],
62: _Code_name[310:312],
63: _Code_name[312:314],
64: _Code_name[314:316],
65: _Code_name[316:318],
66: _Code_name[318:320],
67: _Code_name[320:322],
68: _Code_name[322:325],
69: _Code_name[325:332],
70: _Code_name[332:338],
71: _Code_name[338:345],
72: _Code_name[345:352],
73: _Code_name[352:359],
74: _Code_name[359:374],
75: _Code_name[374:381],
76: _Code_name[381:388],
77: _Code_name[388:395],
78: _Code_name[395:404],
79: _Code_name[404:411],
80: _Code_name[411:418],
81: _Code_name[418:425],
82: _Code_name[425:432],
83: _Code_name[432:445],
84: _Code_name[445:453],
87: _Code_name[453:456],
88: _Code_name[456:459],
100: _Code_name[459:462],
101: _Code_name[462:465],
102: _Code_name[465:468],
103: _Code_name[468:471],
104: _Code_name[471:474],
105: _Code_name[474:477],
106: _Code_name[477:480],
107: _Code_name[480:483],
108: _Code_name[483:486],
109: _Code_name[486:489],
110: _Code_name[489:492],
118: _Code_name[492:495],
57372: _Code_name[495:507],
57373: _Code_name[507:519],
57397: _Code_name[519:531],
57399: _Code_name[531:542],
57400: _Code_name[542:550],
57414: _Code_name[550:559],
57415: _Code_name[559:563],
57416: _Code_name[563:565],
57417: _Code_name[565:571],
57419: _Code_name[571:575],
57421: _Code_name[575:580],
57423: _Code_name[580:583],
57424: _Code_name[583:587],
57425: _Code_name[587:595],
57426: _Code_name[595:601],
57427: _Code_name[601:607],
57435: _Code_name[607:614],
57436: _Code_name[614:622],
57437: _Code_name[622:626],
57438: _Code_name[626:631],
57439: _Code_name[631:636],
57443: _Code_name[636:640],
}
func (i Code) String() string {
if str, ok := _Code_map[i]; ok {
return str
}
return fmt.Sprintf("Code(%d)", i)
}