18
|
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 |
{
|
19
|
36 |
{"mousel", "mousel"},
|
|
37 |
{"mousem", "mousem"},
|
|
38 |
{"mouser", "mouser"},
|
18
|
39 |
{"backspace", "backspace"},
|
|
40 |
{"tab", "tab"},
|
|
41 |
{"clear", "clear"},
|
|
42 |
{"return", "return"},
|
|
43 |
{"pause", "pause"},
|
|
44 |
{"escape", "escape"},
|
|
45 |
{"space", "space"},
|
|
46 |
{"!", "!"},
|
|
47 |
{"\"", "\""},
|
|
48 |
{"#", "#"},
|
|
49 |
{"$", "$"},
|
|
50 |
{"&", "&"},
|
|
51 |
{"'", "'"},
|
|
52 |
{"(", "("},
|
|
53 |
{")", ")"},
|
|
54 |
{"*", "*"},
|
|
55 |
{"+", "+"},
|
|
56 |
{",", ","},
|
|
57 |
{"-", "-"},
|
|
58 |
{".", "."},
|
|
59 |
{"/", "/"},
|
|
60 |
{"0", "0"},
|
|
61 |
{"1", "1"},
|
|
62 |
{"2", "2"},
|
|
63 |
{"3", "3"},
|
|
64 |
{"4", "4"},
|
|
65 |
{"5", "5"},
|
|
66 |
{"6", "6"},
|
|
67 |
{"7", "7"},
|
|
68 |
{"8", "8"},
|
|
69 |
{"9", "9"},
|
|
70 |
{":", ":"},
|
|
71 |
{";", ";"},
|
|
72 |
{"<", "<"},
|
|
73 |
{"=", "="},
|
|
74 |
{">", ">"},
|
|
75 |
{"?", "?"},
|
|
76 |
{"@", "@"},
|
|
77 |
{"[", "["},
|
|
78 |
{"\\", "\\"},
|
|
79 |
{"]", "]"},
|
|
80 |
{"^", "^"},
|
|
81 |
{"_", "_"},
|
|
82 |
{"`", "`"},
|
|
83 |
{"a", "a"},
|
|
84 |
{"b", "b"},
|
|
85 |
{"c", "c"},
|
|
86 |
{"d", "d"},
|
|
87 |
{"e", "e"},
|
|
88 |
{"f", "f"},
|
|
89 |
{"g", "g"},
|
|
90 |
{"h", "h"},
|
|
91 |
{"i", "i"},
|
|
92 |
{"j", "j"},
|
|
93 |
{"k", "k"},
|
|
94 |
{"l", "l"},
|
|
95 |
{"m", "m"},
|
|
96 |
{"n", "n"},
|
|
97 |
{"o", "o"},
|
|
98 |
{"p", "p"},
|
|
99 |
{"q", "q"},
|
|
100 |
{"r", "r"},
|
|
101 |
{"s", "s"},
|
|
102 |
{"t", "t"},
|
|
103 |
{"u", "u"},
|
|
104 |
{"v", "v"},
|
|
105 |
{"w", "w"},
|
|
106 |
{"x", "x"},
|
|
107 |
{"y", "y"},
|
|
108 |
{"z", "z"},
|
|
109 |
{"delete", "delete"},
|
|
110 |
{"[0]", "[0]"},
|
|
111 |
{"[1]", "[1]"},
|
|
112 |
{"[2]", "[2]"},
|
|
113 |
{"[3]", "[3]"},
|
|
114 |
{"[4]", "[4]"},
|
|
115 |
{"[5]", "[5]"},
|
|
116 |
{"[6]", "[6]"},
|
|
117 |
{"[7]", "[7]"},
|
|
118 |
{"[8]", "[8]"},
|
|
119 |
{"[9]", "[9]"},
|
|
120 |
{"[.]", "[.]"},
|
|
121 |
{"[/]", "[/]"},
|
|
122 |
{"[*]", "[*]"},
|
|
123 |
{"[-]", "[-]"},
|
|
124 |
{"[+]", "[+]"},
|
|
125 |
{"enter", "enter"},
|
|
126 |
{"equals", "equals"},
|
|
127 |
{"up", "up"},
|
|
128 |
{"down", "down"},
|
|
129 |
{"right", "right"},
|
|
130 |
{"left", "left"},
|
|
131 |
{"insert", "insert"},
|
|
132 |
{"home", "home"},
|
|
133 |
{"end", "end"},
|
|
134 |
{"page up", "page up"},
|
|
135 |
{"page down", "page down"},
|
|
136 |
{"f1", "f1"},
|
|
137 |
{"f2", "f2"},
|
|
138 |
{"f3", "f3"},
|
|
139 |
{"f4", "f4"},
|
|
140 |
{"f5", "f5"},
|
|
141 |
{"f6", "f6"},
|
|
142 |
{"f7", "f7"},
|
|
143 |
{"f8", "f8"},
|
|
144 |
{"f9", "f9"},
|
|
145 |
{"f10", "f10"},
|
|
146 |
{"f11", "f11"},
|
|
147 |
{"f12", "f12"},
|
|
148 |
{"f13", "f13"},
|
|
149 |
{"f14", "f14"},
|
|
150 |
{"f15", "f15"},
|
|
151 |
{"numlock", "numlock"},
|
19
|
152 |
{"caps_lock", "caps_lock"},
|
|
153 |
{"scroll_lock", "scroll_lock"},
|
|
154 |
{"right_shift", "right_shift"},
|
|
155 |
{"left_shift", "left_shift"},
|
|
156 |
{"right_ctrl", "right_ctrl"},
|
|
157 |
{"left_ctrl", "left_ctrl"},
|
|
158 |
{"right_alt", "right_alt"},
|
|
159 |
{"left_alt", "left_alt"},
|
|
160 |
{"right_meta", "right_meta"},
|
|
161 |
{"left_meta", "left_meta"},
|
18
|
162 |
{"", ""}
|
|
163 |
};
|