QTfrontend/sdlkeys.h
changeset 2948 3f21a9dc93d0
parent 2428 6800f8aa0184
child 3236 4ab3917d7d44
equal deleted inserted replaced
2947:803b277e4894 2948:3f21a9dc93d0
    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 	{"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")},
    20     {"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")},
    21 	{"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")},
    21     {"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")},
    22 	{"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")},
    22     {"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")},
    23 	{"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")},
    23     {"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")},
    24 	{"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")},
    24     {"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")},
    25 	{"backspace", QT_TRANSLATE_NOOP("binds (keys)", "Backspace")},
    25     {"backspace", QT_TRANSLATE_NOOP("binds (keys)", "Backspace")},
    26 	{"tab", QT_TRANSLATE_NOOP("binds (keys)", "Tab")},
    26     {"tab", QT_TRANSLATE_NOOP("binds (keys)", "Tab")},
    27 	{"clear", QT_TRANSLATE_NOOP("binds (keys)", "Clear")},
    27     {"clear", QT_TRANSLATE_NOOP("binds (keys)", "Clear")},
    28 	{"return", QT_TRANSLATE_NOOP("binds (keys)", "Return")},
    28     {"return", QT_TRANSLATE_NOOP("binds (keys)", "Return")},
    29 	{"pause", QT_TRANSLATE_NOOP("binds (keys)", "Pause")},
    29     {"pause", QT_TRANSLATE_NOOP("binds (keys)", "Pause")},
    30 	{"escape", QT_TRANSLATE_NOOP("binds (keys)", "Escape")},
    30     {"escape", QT_TRANSLATE_NOOP("binds (keys)", "Escape")},
    31 	{"space", QT_TRANSLATE_NOOP("binds (keys)", "Space")},
    31     {"space", QT_TRANSLATE_NOOP("binds (keys)", "Space")},
    32 	{"!", "!"},
    32     {"!", "!"},
    33 	{"\"", "\""},
    33     {"\"", "\""},
    34 	{"#", "#"},
    34     {"#", "#"},
    35 	{"$", "$"},
    35     {"$", "$"},
    36 	{"&", "&"},
    36     {"&", "&"},
    37 	{"'", "'"},
    37     {"'", "'"},
    38 	{"(", "("},
    38     {"(", "("},
    39 	{")", ")"},
    39     {")", ")"},
    40 	{"*", "*"},
    40     {"*", "*"},
    41 	{"+", "+"},
    41     {"+", "+"},
    42 	{", ", ", "},
    42     {", ", ", "},
    43 	{"-", "-"},
    43     {"-", "-"},
    44 	{".", "."},
    44     {".", "."},
    45 	{"/", "/"},
    45     {"/", "/"},
    46 	{"0", "0"},
    46     {"0", "0"},
    47 	{"1", "1"},
    47     {"1", "1"},
    48 	{"2", "2"},
    48     {"2", "2"},
    49 	{"3", "3"},
    49     {"3", "3"},
    50 	{"4", "4"},
    50     {"4", "4"},
    51 	{"5", "5"},
    51     {"5", "5"},
    52 	{"6", "6"},
    52     {"6", "6"},
    53 	{"7", "7"},
    53     {"7", "7"},
    54 	{"8", "8"},
    54     {"8", "8"},
    55 	{"9", "9"},
    55     {"9", "9"},
    56 	{":", ":"},
    56     {":", ":"},
    57 	{";", ";"},
    57     {";", ";"},
    58 	{"<", "<"},
    58     {"<", "<"},
    59 	{"=", "="},
    59     {"=", "="},
    60 	{">", ">"},
    60     {">", ">"},
    61 	{"?", "?"},
    61     {"?", "?"},
    62 	{"@", "@"},
    62     {"@", "@"},
    63 	{"[", "["},
    63     {"[", "["},
    64 	{"\\", "\\"},
    64     {"\\", "\\"},
    65 	{"]", "]"},
    65     {"]", "]"},
    66 	{"^", "^"},
    66     {"^", "^"},
    67 	{"_", "_"},
    67     {"_", "_"},
    68 	{"`", "`"},
    68     {"`", "`"},
    69 	{"a", "A"},
    69     {"a", "A"},
    70 	{"b", "B"},
    70     {"b", "B"},
    71 	{"c", "C"},
    71     {"c", "C"},
    72 	{"d", "D"},
    72     {"d", "D"},
    73 	{"e", "E"},
    73     {"e", "E"},
    74 	{"f", "F"},
    74     {"f", "F"},
    75 	{"g", "G"},
    75     {"g", "G"},
    76 	{"h", "H"},
    76     {"h", "H"},
    77 	{"i", "I"},
    77     {"i", "I"},
    78 	{"j", "J"},
    78     {"j", "J"},
    79 	{"k", "K"},
    79     {"k", "K"},
    80 	{"l", "L"},
    80     {"l", "L"},
    81 	{"m", "M"},
    81     {"m", "M"},
    82 	{"n", "N"},
    82     {"n", "N"},
    83 	{"o", "O"},
    83     {"o", "O"},
    84 	{"p", "P"},
    84     {"p", "P"},
    85 	{"q", "Q"},
    85     {"q", "Q"},
    86 	{"r", "R"},
    86     {"r", "R"},
    87 	{"s", "S"},
    87     {"s", "S"},
    88 	{"t", "T"},
    88     {"t", "T"},
    89 	{"u", "U"},
    89     {"u", "U"},
    90 	{"v", "V"},
    90     {"v", "V"},
    91 	{"w", "W"},
    91     {"w", "W"},
    92 	{"x", "X"},
    92     {"x", "X"},
    93 	{"y", "Y"},
    93     {"y", "Y"},
    94 	{"z", "Z"},
    94     {"z", "Z"},
    95 	{"delete", QT_TRANSLATE_NOOP("binds (keys)", "Delete")},
    95     {"delete", QT_TRANSLATE_NOOP("binds (keys)", "Delete")},
    96 	{"[0]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 0")},
    96     {"[0]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 0")},
    97 	{"[1]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 1")},
    97     {"[1]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 1")},
    98 	{"[2]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 2")},
    98     {"[2]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 2")},
    99 	{"[3]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 3")},
    99     {"[3]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 3")},
   100 	{"[4]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 4")},
   100     {"[4]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 4")},
   101 	{"[5]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 5")},
   101     {"[5]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 5")},
   102 	{"[6]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 6")},
   102     {"[6]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 6")},
   103 	{"[7]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 7")},
   103     {"[7]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 7")},
   104 	{"[8]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 8")},
   104     {"[8]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 8")},
   105 	{"[9]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 9")},
   105     {"[9]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 9")},
   106 	{"[.]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad .")},
   106     {"[.]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad .")},
   107 	{"[/]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad /")},
   107     {"[/]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad /")},
   108 	{"[*]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad *")},
   108     {"[*]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad *")},
   109 	{"[-]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad -")},
   109     {"[-]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad -")},
   110 	{"[+]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad +")},
   110     {"[+]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad +")},
   111 	{"enter", QT_TRANSLATE_NOOP("binds (keys)", "Enter")},
   111     {"enter", QT_TRANSLATE_NOOP("binds (keys)", "Enter")},
   112 	{"equals", QT_TRANSLATE_NOOP("binds (keys)", "Equals")},
   112     {"equals", QT_TRANSLATE_NOOP("binds (keys)", "Equals")},
   113 	{"up", QT_TRANSLATE_NOOP("binds (keys)", "Up")},
   113     {"up", QT_TRANSLATE_NOOP("binds (keys)", "Up")},
   114 	{"down", QT_TRANSLATE_NOOP("binds (keys)", "Down")},
   114     {"down", QT_TRANSLATE_NOOP("binds (keys)", "Down")},
   115 	{"right", QT_TRANSLATE_NOOP("binds (keys)", "Right")},
   115     {"right", QT_TRANSLATE_NOOP("binds (keys)", "Right")},
   116 	{"left", QT_TRANSLATE_NOOP("binds (keys)", "Left")},
   116     {"left", QT_TRANSLATE_NOOP("binds (keys)", "Left")},
   117 	{"insert", QT_TRANSLATE_NOOP("binds (keys)", "Insert")},
   117     {"insert", QT_TRANSLATE_NOOP("binds (keys)", "Insert")},
   118 	{"home", QT_TRANSLATE_NOOP("binds (keys)", "Home")},
   118     {"home", QT_TRANSLATE_NOOP("binds (keys)", "Home")},
   119 	{"end", QT_TRANSLATE_NOOP("binds (keys)", "End")},
   119     {"end", QT_TRANSLATE_NOOP("binds (keys)", "End")},
   120 	{"page up", QT_TRANSLATE_NOOP("binds (keys)", "Page up")},
   120     {"page up", QT_TRANSLATE_NOOP("binds (keys)", "Page up")},
   121 	{"page down", QT_TRANSLATE_NOOP("binds (keys)", "Page down")},
   121     {"page down", QT_TRANSLATE_NOOP("binds (keys)", "Page down")},
   122 	{"f1", "F1"},
   122     {"f1", "F1"},
   123 	{"f2", "F2"},
   123     {"f2", "F2"},
   124 	{"f3", "F3"},
   124     {"f3", "F3"},
   125 	{"f4", "F4"},
   125     {"f4", "F4"},
   126 	{"f5", "F5"},
   126     {"f5", "F5"},
   127 	{"f6", "F6"},
   127     {"f6", "F6"},
   128 	{"f7", "F7"},
   128     {"f7", "F7"},
   129 	{"f8", "F8"},
   129     {"f8", "F8"},
   130 	{"f9", "F9"},
   130     {"f9", "F9"},
   131 	{"f10", "F10"},
   131     {"f10", "F10"},
   132 	{"f11", "F11"},
   132     {"f11", "F11"},
   133 	{"f12", "F12"},
   133     {"f12", "F12"},
   134 	{"f13", "F13"},
   134     {"f13", "F13"},
   135 	{"f14", "F14"},
   135     {"f14", "F14"},
   136 	{"f15", "F15"},
   136     {"f15", "F15"},
   137 	{"numlock", QT_TRANSLATE_NOOP("binds (keys)", "Num lock")},
   137     {"numlock", QT_TRANSLATE_NOOP("binds (keys)", "Num lock")},
   138 	{"caps_lock", QT_TRANSLATE_NOOP("binds (keys)", "Caps lock")},
   138     {"caps_lock", QT_TRANSLATE_NOOP("binds (keys)", "Caps lock")},
   139 	{"scroll_lock", QT_TRANSLATE_NOOP("binds (keys)", "Scroll lock")},
   139     {"scroll_lock", QT_TRANSLATE_NOOP("binds (keys)", "Scroll lock")},
   140 	{"right_shift", QT_TRANSLATE_NOOP("binds (keys)", "Right shift")},
   140     {"right_shift", QT_TRANSLATE_NOOP("binds (keys)", "Right shift")},
   141 	{"left_shift", QT_TRANSLATE_NOOP("binds (keys)", "Left shift")},
   141     {"left_shift", QT_TRANSLATE_NOOP("binds (keys)", "Left shift")},
   142 	{"right_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Right ctrl")},
   142     {"right_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Right ctrl")},
   143 	{"left_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Left ctrl")},
   143     {"left_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Left ctrl")},
   144 	{"right_alt", QT_TRANSLATE_NOOP("binds (keys)", "Right alt")},
   144     {"right_alt", QT_TRANSLATE_NOOP("binds (keys)", "Right alt")},
   145 	{"left_alt", QT_TRANSLATE_NOOP("binds (keys)", "Left alt")},
   145     {"left_alt", QT_TRANSLATE_NOOP("binds (keys)", "Left alt")},
   146 	{"right_meta", QT_TRANSLATE_NOOP("binds (keys)", "Right meta")},
   146     {"right_meta", QT_TRANSLATE_NOOP("binds (keys)", "Right meta")},
   147 	{"left_meta", QT_TRANSLATE_NOOP("binds (keys)", "Left meta")}
   147     {"left_meta", QT_TRANSLATE_NOOP("binds (keys)", "Left meta")}
   148 	};
   148     };
   149 
   149 
   150 // button name definitions for Microsoft's XBox360 controller
   150 // button name definitions for Microsoft's XBox360 controller
   151 // don't modify button order!
   151 // don't modify button order!
   152 char xb360buttons[][128] = {
   152 char xb360buttons[][128] = {
   153 	QT_TRANSLATE_NOOP("binds (keys)", "A button"),
   153     QT_TRANSLATE_NOOP("binds (keys)", "A button"),
   154 	QT_TRANSLATE_NOOP("binds (keys)", "B button"),
   154     QT_TRANSLATE_NOOP("binds (keys)", "B button"),
   155 	QT_TRANSLATE_NOOP("binds (keys)", "X button"),
   155     QT_TRANSLATE_NOOP("binds (keys)", "X button"),
   156 	QT_TRANSLATE_NOOP("binds (keys)", "Y button"),
   156     QT_TRANSLATE_NOOP("binds (keys)", "Y button"),
   157 	QT_TRANSLATE_NOOP("binds (keys)", "LB button"),
   157     QT_TRANSLATE_NOOP("binds (keys)", "LB button"),
   158 	QT_TRANSLATE_NOOP("binds (keys)", "RB button"),
   158     QT_TRANSLATE_NOOP("binds (keys)", "RB button"),
   159 	QT_TRANSLATE_NOOP("binds (keys)", "Back button"),
   159     QT_TRANSLATE_NOOP("binds (keys)", "Back button"),
   160 	QT_TRANSLATE_NOOP("binds (keys)", "Start button"),
   160     QT_TRANSLATE_NOOP("binds (keys)", "Start button"),
   161 	QT_TRANSLATE_NOOP("binds (keys)", "Left stick"),
   161     QT_TRANSLATE_NOOP("binds (keys)", "Left stick"),
   162 	QT_TRANSLATE_NOOP("binds (keys)", "Right stick")
   162     QT_TRANSLATE_NOOP("binds (keys)", "Right stick")
   163 };
   163 };
   164 
   164 
   165 // axis name definitions for Microsoft's XBox360 controller
   165 // axis name definitions for Microsoft's XBox360 controller
   166 // don't modify axis order!
   166 // don't modify axis order!
   167 char xbox360axes[][128] = {
   167 char xbox360axes[][128] = {
   168 	QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Right)"),
   168     QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Right)"),
   169 	QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Left)"),
   169     QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Left)"),
   170 	QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Down)"),
   170     QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Down)"),
   171 	QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Up)"),
   171     QT_TRANSLATE_NOOP("binds (keys)", "Left stick (Up)"),
   172 	QT_TRANSLATE_NOOP("binds (keys)", "Left trigger"),
   172     QT_TRANSLATE_NOOP("binds (keys)", "Left trigger"),
   173 	QT_TRANSLATE_NOOP("binds (keys)", "Right trigger"),
   173     QT_TRANSLATE_NOOP("binds (keys)", "Right trigger"),
   174 	QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Down)"),
   174     QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Down)"),
   175 	QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Up)"),
   175     QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Up)"),
   176 	QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Right)"),
   176     QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Right)"),
   177 	QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Left)"),
   177     QT_TRANSLATE_NOOP("binds (keys)", "Right stick (Left)"),
   178 };
   178 };
   179 char xb360dpad[128] = QT_TRANSLATE_NOOP("binds (keys)", "DPad");
   179 char xb360dpad[128] = QT_TRANSLATE_NOOP("binds (keys)", "DPad");