author | Wuzzy <Wuzzy2@mail.ru> |
Sun, 15 Sep 2019 15:12:48 +0200 | |
changeset 15400 | 06524f2e9a74 |
parent 14867 | 8bba7492558d |
permissions | -rw-r--r-- |
184 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
11046 | 3 |
* Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com> |
184 | 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 |
|
10108
c68cf030eded
update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents:
9998
diff
changeset
|
16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
184 | 17 |
*/ |
18 |
||
13515
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
19 |
#ifndef SDLKEYS_H |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
20 |
#define SDLKEYS_H |
2428 | 21 |
|
13515
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
22 |
extern char sdlkeys[1024][2][128]; |
14867
8bba7492558d
Frontend: Refactor detection of keyboard keys in sdlkeys[]
Wuzzy <Wuzzy2@mail.ru>
parents:
14532
diff
changeset
|
23 |
extern bool sdlkeys_iskeyboard[1024]; |
13515
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
24 |
extern char xb360buttons[10][128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
25 |
extern char xbox360axes[10][128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
26 |
extern char xb360dpad[128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
27 |
extern char controlleraxis[128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
28 |
extern char controllerbutton[128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
29 |
extern char controllerhat[128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
30 |
extern char controllerup[128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
31 |
extern char controllerdown[128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
32 |
extern char controllerleft[128]; |
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
33 |
extern char controllerright[128]; |
14532
e1ae6d8e84b0
Allow to leave a control unused (no key binding)
Wuzzy <Wuzzy2@mail.ru>
parents:
13515
diff
changeset
|
34 |
extern char unboundcontrol[128]; |
2428 | 35 |
|
13515
c5365f05d4de
Refactor storage of joystick SDL key names
Wuzzy <Wuzzy2@mail.ru>
parents:
13175
diff
changeset
|
36 |
#endif |