QTfrontend/sdlkeys.h
author unc0rr
Wed, 25 Jul 2012 16:24:30 +0400
changeset 7433 c7fff3e61d49
parent 6952 7f70f37bbf08
child 9080 9b42757d7e71
permissions -rw-r--r--
- Implement AI land marks which only used to tracks visited areas on the map for now. Significantly reduces wasting of cpu time by AI checking same place several times (10x or even more in rare cases) - More branching in walk algorythm which allows for better coverage of reachable places. Sometimes makes AI perform ridiculous jumping just to make a tiny step. - Small fixes/adjustments
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     1
/*
1066
1f1b3686a2b0 Update copyright headers a bit
unc0rr
parents: 184
diff changeset
     2
 * Hedgewars, a free turn based strategy game
6952
7f70f37bbf08 license header year range adjustments
sheepluva
parents: 6700
diff changeset
     3
 * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     4
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     8
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    12
 * GNU General Public License for more details.
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    13
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    14
 * You should have received a copy of the GNU General Public License
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    15
 * along with this program; if not, write to the Free Software
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    17
 */
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    18
6616
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 4976
diff changeset
    19
char sdlkeys[1024][2][128] =
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 4976
diff changeset
    20
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    21
    {"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    22
    {"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    23
    {"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    24
    {"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    25
    {"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    26
    {"backspace", QT_TRANSLATE_NOOP("binds (keys)", "Backspace")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    27
    {"tab", QT_TRANSLATE_NOOP("binds (keys)", "Tab")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    28
    {"clear", QT_TRANSLATE_NOOP("binds (keys)", "Clear")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    29
    {"return", QT_TRANSLATE_NOOP("binds (keys)", "Return")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    30
    {"pause", QT_TRANSLATE_NOOP("binds (keys)", "Pause")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    31
    {"escape", QT_TRANSLATE_NOOP("binds (keys)", "Escape")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    32
    {"space", QT_TRANSLATE_NOOP("binds (keys)", "Space")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    33
    {"!", "!"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    34
    {"\"", "\""},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    35
    {"#", "#"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    36
    {"$", "$"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    37
    {"&", "&"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    38
    {"'", "'"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    39
    {"(", "("},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    40
    {")", ")"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    41
    {"*", "*"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    42
    {"+", "+"},
3974
91ac041ecb20 Rope optimisation. Remove a space in sdl keys that seems like a bug - issue #70
nemo
parents: 3236
diff changeset
    43
    {",", ","},
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    44
    {"-", "-"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    45
    {".", "."},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    46
    {"/", "/"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    47
    {"0", "0"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    48
    {"1", "1"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    49
    {"2", "2"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    50
    {"3", "3"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    51
    {"4", "4"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    52
    {"5", "5"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    53
    {"6", "6"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    54
    {"7", "7"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    55
    {"8", "8"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    56
    {"9", "9"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    57
    {":", ":"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    58
    {";", ";"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    59
    {"<", "<"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    60
    {"=", "="},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    61
    {">", ">"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    62
    {"?", "?"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    63
    {"@", "@"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    64
    {"[", "["},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    65
    {"\\", "\\"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    66
    {"]", "]"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    67
    {"^", "^"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    68
    {"_", "_"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    69
    {"`", "`"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    70
    {"a", "A"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    71
    {"b", "B"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    72
    {"c", "C"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    73
    {"d", "D"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    74
    {"e", "E"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    75
    {"f", "F"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    76
    {"g", "G"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    77
    {"h", "H"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    78
    {"i", "I"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    79
    {"j", "J"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    80
    {"k", "K"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    81
    {"l", "L"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    82
    {"m", "M"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    83
    {"n", "N"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    84
    {"o", "O"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    85
    {"p", "P"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    86
    {"q", "Q"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    87
    {"r", "R"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    88
    {"s", "S"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    89
    {"t", "T"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    90
    {"u", "U"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    91
    {"v", "V"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    92
    {"w", "W"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    93
    {"x", "X"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    94
    {"y", "Y"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    95
    {"z", "Z"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    96
    {"delete", QT_TRANSLATE_NOOP("binds (keys)", "Delete")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    97
    {"[0]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 0")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    98
    {"[1]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 1")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
    99
    {"[2]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 2")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   100
    {"[3]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 3")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   101
    {"[4]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 4")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   102
    {"[5]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 5")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   103
    {"[6]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 6")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   104
    {"[7]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 7")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   105
    {"[8]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 8")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   106
    {"[9]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 9")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   107
    {"[.]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad .")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   108
    {"[/]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad /")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   109
    {"[*]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad *")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   110
    {"[-]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad -")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   111
    {"[+]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad +")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   112
    {"enter", QT_TRANSLATE_NOOP("binds (keys)", "Enter")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   113
    {"equals", QT_TRANSLATE_NOOP("binds (keys)", "Equals")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   114
    {"up", QT_TRANSLATE_NOOP("binds (keys)", "Up")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   115
    {"down", QT_TRANSLATE_NOOP("binds (keys)", "Down")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   116
    {"right", QT_TRANSLATE_NOOP("binds (keys)", "Right")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   117
    {"left", QT_TRANSLATE_NOOP("binds (keys)", "Left")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   118
    {"insert", QT_TRANSLATE_NOOP("binds (keys)", "Insert")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   119
    {"home", QT_TRANSLATE_NOOP("binds (keys)", "Home")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   120
    {"end", QT_TRANSLATE_NOOP("binds (keys)", "End")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   121
    {"page up", QT_TRANSLATE_NOOP("binds (keys)", "Page up")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   122
    {"page down", QT_TRANSLATE_NOOP("binds (keys)", "Page down")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   123
    {"f1", "F1"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   124
    {"f2", "F2"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   125
    {"f3", "F3"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   126
    {"f4", "F4"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   127
    {"f5", "F5"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   128
    {"f6", "F6"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   129
    {"f7", "F7"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   130
    {"f8", "F8"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   131
    {"f9", "F9"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   132
    {"f10", "F10"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   133
    {"f11", "F11"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   134
    {"f12", "F12"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   135
    {"f13", "F13"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   136
    {"f14", "F14"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   137
    {"f15", "F15"},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   138
    {"numlock", QT_TRANSLATE_NOOP("binds (keys)", "Num lock")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   139
    {"caps_lock", QT_TRANSLATE_NOOP("binds (keys)", "Caps lock")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   140
    {"scroll_lock", QT_TRANSLATE_NOOP("binds (keys)", "Scroll lock")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   141
    {"right_shift", QT_TRANSLATE_NOOP("binds (keys)", "Right shift")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   142
    {"left_shift", QT_TRANSLATE_NOOP("binds (keys)", "Left shift")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   143
    {"right_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Right ctrl")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   144
    {"left_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Left ctrl")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   145
    {"right_alt", QT_TRANSLATE_NOOP("binds (keys)", "Right alt")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   146
    {"left_alt", QT_TRANSLATE_NOOP("binds (keys)", "Left alt")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   147
    {"right_meta", QT_TRANSLATE_NOOP("binds (keys)", "Right meta")},
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   148
    {"left_meta", QT_TRANSLATE_NOOP("binds (keys)", "Left meta")}
6616
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 4976
diff changeset
   149
};
2428
6800f8aa0184 Huge Smaxx patch with some fixes by me:
unc0rr
parents: 2379
diff changeset
   150
6800f8aa0184 Huge Smaxx patch with some fixes by me:
unc0rr
parents: 2379
diff changeset
   151
// button name definitions for Microsoft's XBox360 controller
6800f8aa0184 Huge Smaxx patch with some fixes by me:
unc0rr
parents: 2379
diff changeset
   152
// don't modify button order!
6616
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 4976
diff changeset
   153
char xb360buttons[][128] =
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 4976
diff changeset
   154
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   155
    QT_TRANSLATE_NOOP("binds (keys)", "A button"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   156
    QT_TRANSLATE_NOOP("binds (keys)", "B button"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   157
    QT_TRANSLATE_NOOP("binds (keys)", "X button"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   158
    QT_TRANSLATE_NOOP("binds (keys)", "Y button"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   159
    QT_TRANSLATE_NOOP("binds (keys)", "LB button"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   160
    QT_TRANSLATE_NOOP("binds (keys)", "RB button"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   161
    QT_TRANSLATE_NOOP("binds (keys)", "Back button"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   162
    QT_TRANSLATE_NOOP("binds (keys)", "Start button"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   163
    QT_TRANSLATE_NOOP("binds (keys)", "Left stick"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   164
    QT_TRANSLATE_NOOP("binds (keys)", "Right stick")
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   165
};
2428
6800f8aa0184 Huge Smaxx patch with some fixes by me:
unc0rr
parents: 2379
diff changeset
   166
6800f8aa0184 Huge Smaxx patch with some fixes by me:
unc0rr
parents: 2379
diff changeset
   167
// axis name definitions for Microsoft's XBox360 controller
6800f8aa0184 Huge Smaxx patch with some fixes by me:
unc0rr
parents: 2379
diff changeset
   168
// don't modify axis order!
6616
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 4976
diff changeset
   169
char xbox360axes[][128] =
f77bb02b669f astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents: 4976
diff changeset
   170
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   171
    QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Right)"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   172
    QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Left)"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   173
    QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Down)"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   174
    QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Up)"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   175
    QT_TRANSLATE_NOOP("binds (keys)", "Left trigger"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   176
    QT_TRANSLATE_NOOP("binds (keys)", "Right trigger"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   177
    QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Down)"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   178
    QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Up)"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   179
    QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Right)"),
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2428
diff changeset
   180
    QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Left)"),
2428
6800f8aa0184 Huge Smaxx patch with some fixes by me:
unc0rr
parents: 2379
diff changeset
   181
};
6800f8aa0184 Huge Smaxx patch with some fixes by me:
unc0rr
parents: 2379
diff changeset
   182
char xb360dpad[128] = QT_TRANSLATE_NOOP("binds (keys)", "DPad");