|
1 /* |
|
2 * Hedgewars, a worms-like game |
|
3 * Copyright (c) 2005 Andrey Korotaev <unC0Rr@gmail.com> |
|
4 * |
|
5 * Distributed under the terms of the BSD-modified licence: |
|
6 * |
|
7 * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
8 * of this software and associated documentation files (the "Software"), to deal |
|
9 * with the Software without restriction, including without limitation the |
|
10 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
|
11 * sell copies of the Software, and to permit persons to whom the Software is |
|
12 * furnished to do so, subject to the following conditions: |
|
13 * |
|
14 * 1. Redistributions of source code must retain the above copyright notice, |
|
15 * this list of conditions and the following disclaimer. |
|
16 * 2. Redistributions in binary form must reproduce the above copyright notice, |
|
17 * this list of conditions and the following disclaimer in the documentation |
|
18 * and/or other materials provided with the distribution. |
|
19 * 3. The name of the author may not be used to endorse or promote products |
|
20 * derived from this software without specific prior written permission. |
|
21 * |
|
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
|
23 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
24 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
|
25 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
27 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
|
28 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
|
29 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
|
30 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
|
31 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
32 */ |
|
33 |
|
34 char keys[][2][16] = |
|
35 { |
|
36 {"backspace", "backspace"}, |
|
37 {"tab", "tab"}, |
|
38 {"clear", "clear"}, |
|
39 {"return", "return"}, |
|
40 {"pause", "pause"}, |
|
41 {"escape", "escape"}, |
|
42 {"space", "space"}, |
|
43 {"!", "!"}, |
|
44 {"\"", "\""}, |
|
45 {"#", "#"}, |
|
46 {"$", "$"}, |
|
47 {"&", "&"}, |
|
48 {"'", "'"}, |
|
49 {"(", "("}, |
|
50 {")", ")"}, |
|
51 {"*", "*"}, |
|
52 {"+", "+"}, |
|
53 {",", ","}, |
|
54 {"-", "-"}, |
|
55 {".", "."}, |
|
56 {"/", "/"}, |
|
57 {"0", "0"}, |
|
58 {"1", "1"}, |
|
59 {"2", "2"}, |
|
60 {"3", "3"}, |
|
61 {"4", "4"}, |
|
62 {"5", "5"}, |
|
63 {"6", "6"}, |
|
64 {"7", "7"}, |
|
65 {"8", "8"}, |
|
66 {"9", "9"}, |
|
67 {":", ":"}, |
|
68 {";", ";"}, |
|
69 {"<", "<"}, |
|
70 {"=", "="}, |
|
71 {">", ">"}, |
|
72 {"?", "?"}, |
|
73 {"@", "@"}, |
|
74 {"[", "["}, |
|
75 {"\\", "\\"}, |
|
76 {"]", "]"}, |
|
77 {"^", "^"}, |
|
78 {"_", "_"}, |
|
79 {"`", "`"}, |
|
80 {"a", "a"}, |
|
81 {"b", "b"}, |
|
82 {"c", "c"}, |
|
83 {"d", "d"}, |
|
84 {"e", "e"}, |
|
85 {"f", "f"}, |
|
86 {"g", "g"}, |
|
87 {"h", "h"}, |
|
88 {"i", "i"}, |
|
89 {"j", "j"}, |
|
90 {"k", "k"}, |
|
91 {"l", "l"}, |
|
92 {"m", "m"}, |
|
93 {"n", "n"}, |
|
94 {"o", "o"}, |
|
95 {"p", "p"}, |
|
96 {"q", "q"}, |
|
97 {"r", "r"}, |
|
98 {"s", "s"}, |
|
99 {"t", "t"}, |
|
100 {"u", "u"}, |
|
101 {"v", "v"}, |
|
102 {"w", "w"}, |
|
103 {"x", "x"}, |
|
104 {"y", "y"}, |
|
105 {"z", "z"}, |
|
106 {"delete", "delete"}, |
|
107 {"world 0", "world 0"}, |
|
108 {"world 1", "world 1"}, |
|
109 {"world 2", "world 2"}, |
|
110 {"world 3", "world 3"}, |
|
111 {"world 4", "world 4"}, |
|
112 {"world 5", "world 5"}, |
|
113 {"world 6", "world 6"}, |
|
114 {"world 7", "world 7"}, |
|
115 {"world 8", "world 8"}, |
|
116 {"world 9", "world 9"}, |
|
117 {"world 10", "world 10"}, |
|
118 {"world 11", "world 11"}, |
|
119 {"world 12", "world 12"}, |
|
120 {"world 13", "world 13"}, |
|
121 {"world 14", "world 14"}, |
|
122 {"world 15", "world 15"}, |
|
123 {"world 16", "world 16"}, |
|
124 {"world 17", "world 17"}, |
|
125 {"world 18", "world 18"}, |
|
126 {"world 19", "world 19"}, |
|
127 {"world 20", "world 20"}, |
|
128 {"world 21", "world 21"}, |
|
129 {"world 22", "world 22"}, |
|
130 {"world 23", "world 23"}, |
|
131 {"world 24", "world 24"}, |
|
132 {"world 25", "world 25"}, |
|
133 {"world 26", "world 26"}, |
|
134 {"world 27", "world 27"}, |
|
135 {"world 28", "world 28"}, |
|
136 {"world 29", "world 29"}, |
|
137 {"world 30", "world 30"}, |
|
138 {"world 31", "world 31"}, |
|
139 {"world 32", "world 32"}, |
|
140 {"world 33", "world 33"}, |
|
141 {"world 34", "world 34"}, |
|
142 {"world 35", "world 35"}, |
|
143 {"world 36", "world 36"}, |
|
144 {"world 37", "world 37"}, |
|
145 {"world 38", "world 38"}, |
|
146 {"world 39", "world 39"}, |
|
147 {"world 40", "world 40"}, |
|
148 {"world 41", "world 41"}, |
|
149 {"world 42", "world 42"}, |
|
150 {"world 43", "world 43"}, |
|
151 {"world 44", "world 44"}, |
|
152 {"world 45", "world 45"}, |
|
153 {"world 46", "world 46"}, |
|
154 {"world 47", "world 47"}, |
|
155 {"world 48", "world 48"}, |
|
156 {"world 49", "world 49"}, |
|
157 {"world 50", "world 50"}, |
|
158 {"world 51", "world 51"}, |
|
159 {"world 52", "world 52"}, |
|
160 {"world 53", "world 53"}, |
|
161 {"world 54", "world 54"}, |
|
162 {"world 55", "world 55"}, |
|
163 {"world 56", "world 56"}, |
|
164 {"world 57", "world 57"}, |
|
165 {"world 58", "world 58"}, |
|
166 {"world 59", "world 59"}, |
|
167 {"world 60", "world 60"}, |
|
168 {"world 61", "world 61"}, |
|
169 {"world 62", "world 62"}, |
|
170 {"world 63", "world 63"}, |
|
171 {"world 64", "world 64"}, |
|
172 {"world 65", "world 65"}, |
|
173 {"world 66", "world 66"}, |
|
174 {"world 67", "world 67"}, |
|
175 {"world 68", "world 68"}, |
|
176 {"world 69", "world 69"}, |
|
177 {"world 70", "world 70"}, |
|
178 {"world 71", "world 71"}, |
|
179 {"world 72", "world 72"}, |
|
180 {"world 73", "world 73"}, |
|
181 {"world 74", "world 74"}, |
|
182 {"world 75", "world 75"}, |
|
183 {"world 76", "world 76"}, |
|
184 {"world 77", "world 77"}, |
|
185 {"world 78", "world 78"}, |
|
186 {"world 79", "world 79"}, |
|
187 {"world 80", "world 80"}, |
|
188 {"world 81", "world 81"}, |
|
189 {"world 82", "world 82"}, |
|
190 {"world 83", "world 83"}, |
|
191 {"world 84", "world 84"}, |
|
192 {"world 85", "world 85"}, |
|
193 {"world 86", "world 86"}, |
|
194 {"world 87", "world 87"}, |
|
195 {"world 88", "world 88"}, |
|
196 {"world 89", "world 89"}, |
|
197 {"world 90", "world 90"}, |
|
198 {"world 91", "world 91"}, |
|
199 {"world 92", "world 92"}, |
|
200 {"world 93", "world 93"}, |
|
201 {"world 94", "world 94"}, |
|
202 {"world 95", "world 95"}, |
|
203 {"[0]", "[0]"}, |
|
204 {"[1]", "[1]"}, |
|
205 {"[2]", "[2]"}, |
|
206 {"[3]", "[3]"}, |
|
207 {"[4]", "[4]"}, |
|
208 {"[5]", "[5]"}, |
|
209 {"[6]", "[6]"}, |
|
210 {"[7]", "[7]"}, |
|
211 {"[8]", "[8]"}, |
|
212 {"[9]", "[9]"}, |
|
213 {"[.]", "[.]"}, |
|
214 {"[/]", "[/]"}, |
|
215 {"[*]", "[*]"}, |
|
216 {"[-]", "[-]"}, |
|
217 {"[+]", "[+]"}, |
|
218 {"enter", "enter"}, |
|
219 {"equals", "equals"}, |
|
220 {"up", "up"}, |
|
221 {"down", "down"}, |
|
222 {"right", "right"}, |
|
223 {"left", "left"}, |
|
224 {"insert", "insert"}, |
|
225 {"home", "home"}, |
|
226 {"end", "end"}, |
|
227 {"page up", "page up"}, |
|
228 {"page down", "page down"}, |
|
229 {"f1", "f1"}, |
|
230 {"f2", "f2"}, |
|
231 {"f3", "f3"}, |
|
232 {"f4", "f4"}, |
|
233 {"f5", "f5"}, |
|
234 {"f6", "f6"}, |
|
235 {"f7", "f7"}, |
|
236 {"f8", "f8"}, |
|
237 {"f9", "f9"}, |
|
238 {"f10", "f10"}, |
|
239 {"f11", "f11"}, |
|
240 {"f12", "f12"}, |
|
241 {"f13", "f13"}, |
|
242 {"f14", "f14"}, |
|
243 {"f15", "f15"}, |
|
244 {"numlock", "numlock"}, |
|
245 {"caps lock", "caps lock"}, |
|
246 {"scroll lock", "scroll lock"}, |
|
247 {"right shift", "right shift"}, |
|
248 {"left shift", "left shift"}, |
|
249 {"right ctrl", "right ctrl"}, |
|
250 {"left ctrl", "left ctrl"}, |
|
251 {"right alt", "right alt"}, |
|
252 {"left alt", "left alt"}, |
|
253 {"right meta", "right meta"}, |
|
254 {"left meta", "left meta"}, |
|
255 {"", ""} |
|
256 }; |