1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2005-2011 Andrey Korotaev <unC0Rr@gmail.com> |
3 * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com> |
4 * |
4 * |
5 * This program is free software; you can redistribute it and/or modify |
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 |
6 * it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation; version 2 of the License |
7 * the Free Software Foundation; version 2 of the License |
8 * |
8 * |
14 * You should have received a copy of the GNU General Public License |
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 |
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 |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
19 char sdlkeys[1024][2][128] = { |
19 char sdlkeys[1024][2][128] = |
|
20 { |
20 {"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")}, |
21 {"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")}, |
21 {"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")}, |
22 {"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")}, |
22 {"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")}, |
23 {"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")}, |
23 {"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")}, |
24 {"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")}, |
24 {"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")}, |
25 {"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")}, |
143 {"left_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Left ctrl")}, |
144 {"left_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Left ctrl")}, |
144 {"right_alt", QT_TRANSLATE_NOOP("binds (keys)", "Right alt")}, |
145 {"right_alt", QT_TRANSLATE_NOOP("binds (keys)", "Right alt")}, |
145 {"left_alt", QT_TRANSLATE_NOOP("binds (keys)", "Left alt")}, |
146 {"left_alt", QT_TRANSLATE_NOOP("binds (keys)", "Left alt")}, |
146 {"right_meta", QT_TRANSLATE_NOOP("binds (keys)", "Right meta")}, |
147 {"right_meta", QT_TRANSLATE_NOOP("binds (keys)", "Right meta")}, |
147 {"left_meta", QT_TRANSLATE_NOOP("binds (keys)", "Left meta")} |
148 {"left_meta", QT_TRANSLATE_NOOP("binds (keys)", "Left meta")} |
148 }; |
149 }; |
149 |
150 |
150 // button name definitions for Microsoft's XBox360 controller |
151 // button name definitions for Microsoft's XBox360 controller |
151 // don't modify button order! |
152 // don't modify button order! |
152 char xb360buttons[][128] = { |
153 char xb360buttons[][128] = |
|
154 { |
153 QT_TRANSLATE_NOOP("binds (keys)", "A button"), |
155 QT_TRANSLATE_NOOP("binds (keys)", "A button"), |
154 QT_TRANSLATE_NOOP("binds (keys)", "B button"), |
156 QT_TRANSLATE_NOOP("binds (keys)", "B button"), |
155 QT_TRANSLATE_NOOP("binds (keys)", "X button"), |
157 QT_TRANSLATE_NOOP("binds (keys)", "X button"), |
156 QT_TRANSLATE_NOOP("binds (keys)", "Y button"), |
158 QT_TRANSLATE_NOOP("binds (keys)", "Y button"), |
157 QT_TRANSLATE_NOOP("binds (keys)", "LB button"), |
159 QT_TRANSLATE_NOOP("binds (keys)", "LB button"), |
162 QT_TRANSLATE_NOOP("binds (keys)", "Right stick") |
164 QT_TRANSLATE_NOOP("binds (keys)", "Right stick") |
163 }; |
165 }; |
164 |
166 |
165 // axis name definitions for Microsoft's XBox360 controller |
167 // axis name definitions for Microsoft's XBox360 controller |
166 // don't modify axis order! |
168 // don't modify axis order! |
167 char xbox360axes[][128] = { |
169 char xbox360axes[][128] = |
|
170 { |
168 QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Right)"), |
171 QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Right)"), |
169 QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Left)"), |
172 QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Left)"), |
170 QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Down)"), |
173 QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Down)"), |
171 QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Up)"), |
174 QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Up)"), |
172 QT_TRANSLATE_NOOP("binds (keys)", "Left trigger"), |
175 QT_TRANSLATE_NOOP("binds (keys)", "Left trigger"), |