184
|
1 |
/*
|
1066
|
2 |
* Hedgewars, a free turn based strategy game
|
184
|
3 |
* Copyright (c) 2005 Andrey Korotaev <unC0Rr@gmail.com>
|
|
4 |
*
|
|
5 |
* This program is free software; you can redistribute it and/or modify
|
|
6 |
* it under the terms of the GNU General Public License as published by
|
|
7 |
* the Free Software Foundation; version 2 of the License
|
|
8 |
*
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
* GNU General Public License for more details.
|
|
13 |
*
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
15 |
* along with this program; if not, write to the Free Software
|
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
17 |
*/
|
|
18 |
|
2428
|
19 |
char sdlkeys[1024][2][128] = {
|
|
20 |
{"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")},
|
|
21 |
{"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")},
|
|
22 |
{"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")},
|
|
23 |
{"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")},
|
|
24 |
{"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")},
|
|
25 |
{"backspace", QT_TRANSLATE_NOOP("binds (keys)", "Backspace")},
|
|
26 |
{"tab", QT_TRANSLATE_NOOP("binds (keys)", "Tab")},
|
|
27 |
{"clear", QT_TRANSLATE_NOOP("binds (keys)", "Clear")},
|
|
28 |
{"return", QT_TRANSLATE_NOOP("binds (keys)", "Return")},
|
|
29 |
{"pause", QT_TRANSLATE_NOOP("binds (keys)", "Pause")},
|
|
30 |
{"escape", QT_TRANSLATE_NOOP("binds (keys)", "Escape")},
|
|
31 |
{"space", QT_TRANSLATE_NOOP("binds (keys)", "Space")},
|
|
32 |
{"!", "!"},
|
|
33 |
{"\"", "\""},
|
|
34 |
{"#", "#"},
|
|
35 |
{"$", "$"},
|
|
36 |
{"&", "&"},
|
|
37 |
{"'", "'"},
|
|
38 |
{"(", "("},
|
|
39 |
{")", ")"},
|
|
40 |
{"*", "*"},
|
|
41 |
{"+", "+"},
|
|
42 |
{", ", ", "},
|
|
43 |
{"-", "-"},
|
|
44 |
{".", "."},
|
|
45 |
{"/", "/"},
|
|
46 |
{"0", "0"},
|
|
47 |
{"1", "1"},
|
|
48 |
{"2", "2"},
|
|
49 |
{"3", "3"},
|
|
50 |
{"4", "4"},
|
|
51 |
{"5", "5"},
|
|
52 |
{"6", "6"},
|
|
53 |
{"7", "7"},
|
|
54 |
{"8", "8"},
|
|
55 |
{"9", "9"},
|
|
56 |
{":", ":"},
|
|
57 |
{";", ";"},
|
|
58 |
{"<", "<"},
|
|
59 |
{"=", "="},
|
|
60 |
{">", ">"},
|
|
61 |
{"?", "?"},
|
|
62 |
{"@", "@"},
|
|
63 |
{"[", "["},
|
|
64 |
{"\\", "\\"},
|
|
65 |
{"]", "]"},
|
|
66 |
{"^", "^"},
|
|
67 |
{"_", "_"},
|
|
68 |
{"`", "`"},
|
|
69 |
{"a", "A"},
|
|
70 |
{"b", "B"},
|
|
71 |
{"c", "C"},
|
|
72 |
{"d", "D"},
|
|
73 |
{"e", "E"},
|
|
74 |
{"f", "F"},
|
|
75 |
{"g", "G"},
|
|
76 |
{"h", "H"},
|
|
77 |
{"i", "I"},
|
|
78 |
{"j", "J"},
|
|
79 |
{"k", "K"},
|
|
80 |
{"l", "L"},
|
|
81 |
{"m", "M"},
|
|
82 |
{"n", "N"},
|
|
83 |
{"o", "O"},
|
|
84 |
{"p", "P"},
|
|
85 |
{"q", "Q"},
|
|
86 |
{"r", "R"},
|
|
87 |
{"s", "S"},
|
|
88 |
{"t", "T"},
|
|
89 |
{"u", "U"},
|
|
90 |
{"v", "V"},
|
|
91 |
{"w", "W"},
|
|
92 |
{"x", "X"},
|
|
93 |
{"y", "Y"},
|
|
94 |
{"z", "Z"},
|
|
95 |
{"delete", QT_TRANSLATE_NOOP("binds (keys)", "Delete")},
|
|
96 |
{"[0]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 0")},
|
|
97 |
{"[1]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 1")},
|
|
98 |
{"[2]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 2")},
|
|
99 |
{"[3]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 3")},
|
|
100 |
{"[4]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 4")},
|
|
101 |
{"[5]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 5")},
|
|
102 |
{"[6]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 6")},
|
|
103 |
{"[7]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 7")},
|
|
104 |
{"[8]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 8")},
|
|
105 |
{"[9]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 9")},
|
|
106 |
{"[.]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad .")},
|
|
107 |
{"[/]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad /")},
|
|
108 |
{"[*]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad *")},
|
|
109 |
{"[-]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad -")},
|
|
110 |
{"[+]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad +")},
|
|
111 |
{"enter", QT_TRANSLATE_NOOP("binds (keys)", "Enter")},
|
|
112 |
{"equals", QT_TRANSLATE_NOOP("binds (keys)", "Equals")},
|
|
113 |
{"up", QT_TRANSLATE_NOOP("binds (keys)", "Up")},
|
|
114 |
{"down", QT_TRANSLATE_NOOP("binds (keys)", "Down")},
|
|
115 |
{"right", QT_TRANSLATE_NOOP("binds (keys)", "Right")},
|
|
116 |
{"left", QT_TRANSLATE_NOOP("binds (keys)", "Left")},
|
|
117 |
{"insert", QT_TRANSLATE_NOOP("binds (keys)", "Insert")},
|
|
118 |
{"home", QT_TRANSLATE_NOOP("binds (keys)", "Home")},
|
|
119 |
{"end", QT_TRANSLATE_NOOP("binds (keys)", "End")},
|
|
120 |
{"page up", QT_TRANSLATE_NOOP("binds (keys)", "Page up")},
|
|
121 |
{"page down", QT_TRANSLATE_NOOP("binds (keys)", "Page down")},
|
|
122 |
{"f1", "F1"},
|
|
123 |
{"f2", "F2"},
|
|
124 |
{"f3", "F3"},
|
|
125 |
{"f4", "F4"},
|
|
126 |
{"f5", "F5"},
|
|
127 |
{"f6", "F6"},
|
|
128 |
{"f7", "F7"},
|
|
129 |
{"f8", "F8"},
|
|
130 |
{"f9", "F9"},
|
|
131 |
{"f10", "F10"},
|
|
132 |
{"f11", "F11"},
|
|
133 |
{"f12", "F12"},
|
|
134 |
{"f13", "F13"},
|
|
135 |
{"f14", "F14"},
|
|
136 |
{"f15", "F15"},
|
|
137 |
{"numlock", QT_TRANSLATE_NOOP("binds (keys)", "Num lock")},
|
|
138 |
{"caps_lock", QT_TRANSLATE_NOOP("binds (keys)", "Caps lock")},
|
|
139 |
{"scroll_lock", QT_TRANSLATE_NOOP("binds (keys)", "Scroll lock")},
|
|
140 |
{"right_shift", QT_TRANSLATE_NOOP("binds (keys)", "Right shift")},
|
|
141 |
{"left_shift", QT_TRANSLATE_NOOP("binds (keys)", "Left shift")},
|
|
142 |
{"right_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Right ctrl")},
|
|
143 |
{"left_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Left ctrl")},
|
|
144 |
{"right_alt", QT_TRANSLATE_NOOP("binds (keys)", "Right alt")},
|
|
145 |
{"left_alt", QT_TRANSLATE_NOOP("binds (keys)", "Left alt")},
|
|
146 |
{"right_meta", QT_TRANSLATE_NOOP("binds (keys)", "Right meta")},
|
|
147 |
{"left_meta", QT_TRANSLATE_NOOP("binds (keys)", "Left meta")}
|
|
148 |
};
|
|
149 |
|
|
150 |
// button name definitions for Microsoft's XBox360 controller
|
|
151 |
// don't modify button order!
|
|
152 |
char xb360buttons[][128] = {
|
|
153 |
QT_TRANSLATE_NOOP("binds (keys)", "A button"),
|
|
154 |
QT_TRANSLATE_NOOP("binds (keys)", "B button"),
|
|
155 |
QT_TRANSLATE_NOOP("binds (keys)", "X button"),
|
|
156 |
QT_TRANSLATE_NOOP("binds (keys)", "Y button"),
|
|
157 |
QT_TRANSLATE_NOOP("binds (keys)", "LB button"),
|
|
158 |
QT_TRANSLATE_NOOP("binds (keys)", "RB button"),
|
|
159 |
QT_TRANSLATE_NOOP("binds (keys)", "Back button"),
|
|
160 |
QT_TRANSLATE_NOOP("binds (keys)", "Start button"),
|
|
161 |
QT_TRANSLATE_NOOP("binds (keys)", "Left stick"),
|
|
162 |
QT_TRANSLATE_NOOP("binds (keys)", "Right stick")
|
184
|
163 |
};
|
2428
|
164 |
|
|
165 |
// axis name definitions for Microsoft's XBox360 controller
|
|
166 |
// don't modify axis order!
|
|
167 |
char xbox360axes[][128] = {
|
|
168 |
QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Right)"),
|
|
169 |
QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Left)"),
|
|
170 |
QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Down)"),
|
|
171 |
QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Up)"),
|
|
172 |
QT_TRANSLATE_NOOP("binds (keys)", "Left trigger"),
|
|
173 |
QT_TRANSLATE_NOOP("binds (keys)", "Right trigger"),
|
|
174 |
QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Down)"),
|
|
175 |
QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Up)"),
|
|
176 |
QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Right)"),
|
|
177 |
QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Left)"),
|
|
178 |
};
|
|
179 |
char xb360dpad[128] = QT_TRANSLATE_NOOP("binds (keys)", "DPad");
|