QTfrontend/sdlkeys.h
changeset 2428 6800f8aa0184
parent 2379 d62b1f224982
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2427:241e3bb6a146 2428:6800f8aa0184
    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[][2][16] =
    19 char sdlkeys[1024][2][128] = {
    20 {
    20 	{"mousel", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Left button")},
    21 	{"mousel",	"mousel"},
    21 	{"mousem", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Middle button")},
    22 	{"mousem",	"mousem"},
    22 	{"mouser", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Right button")},
    23 	{"mouser",	"mouser"},
    23 	{"wheelup", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel up")},
    24 	{"wheelup",	"wheelup"},
    24 	{"wheeldown", QT_TRANSLATE_NOOP("binds (keys)", "Mouse: Wheel down")},
    25 	{"wheeldown",	"wheeldown"},
    25 	{"backspace", QT_TRANSLATE_NOOP("binds (keys)", "Backspace")},
    26 	{"backspace",	"backspace"},
    26 	{"tab", QT_TRANSLATE_NOOP("binds (keys)", "Tab")},
    27 	{"tab",	"tab"},
    27 	{"clear", QT_TRANSLATE_NOOP("binds (keys)", "Clear")},
    28 	{"clear",	"clear"},
    28 	{"return", QT_TRANSLATE_NOOP("binds (keys)", "Return")},
    29 	{"return",	"return"},
    29 	{"pause", QT_TRANSLATE_NOOP("binds (keys)", "Pause")},
    30 	{"pause",	"pause"},
    30 	{"escape", QT_TRANSLATE_NOOP("binds (keys)", "Escape")},
    31 	{"escape",	"escape"},
    31 	{"space", QT_TRANSLATE_NOOP("binds (keys)", "Space")},
    32 	{"space",	"space"},
    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 	{"/",	"/"},
    46 	{"0", "0"},
    47 	{"0",	"0"},
    47 	{"1", "1"},
    48 	{"1",	"1"},
    48 	{"2", "2"},
    49 	{"2",	"2"},
    49 	{"3", "3"},
    50 	{"3",	"3"},
    50 	{"4", "4"},
    51 	{"4",	"4"},
    51 	{"5", "5"},
    52 	{"5",	"5"},
    52 	{"6", "6"},
    53 	{"6",	"6"},
    53 	{"7", "7"},
    54 	{"7",	"7"},
    54 	{"8", "8"},
    55 	{"8",	"8"},
    55 	{"9", "9"},
    56 	{"9",	"9"},
    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 	{"`",	"`"},
    69 	{"a", "A"},
    70 	{"a",	"a"},
    70 	{"b", "B"},
    71 	{"b",	"b"},
    71 	{"c", "C"},
    72 	{"c",	"c"},
    72 	{"d", "D"},
    73 	{"d",	"d"},
    73 	{"e", "E"},
    74 	{"e",	"e"},
    74 	{"f", "F"},
    75 	{"f",	"f"},
    75 	{"g", "G"},
    76 	{"g",	"g"},
    76 	{"h", "H"},
    77 	{"h",	"h"},
    77 	{"i", "I"},
    78 	{"i",	"i"},
    78 	{"j", "J"},
    79 	{"j",	"j"},
    79 	{"k", "K"},
    80 	{"k",	"k"},
    80 	{"l", "L"},
    81 	{"l",	"l"},
    81 	{"m", "M"},
    82 	{"m",	"m"},
    82 	{"n", "N"},
    83 	{"n",	"n"},
    83 	{"o", "O"},
    84 	{"o",	"o"},
    84 	{"p", "P"},
    85 	{"p",	"p"},
    85 	{"q", "Q"},
    86 	{"q",	"q"},
    86 	{"r", "R"},
    87 	{"r",	"r"},
    87 	{"s", "S"},
    88 	{"s",	"s"},
    88 	{"t", "T"},
    89 	{"t",	"t"},
    89 	{"u", "U"},
    90 	{"u",	"u"},
    90 	{"v", "V"},
    91 	{"v",	"v"},
    91 	{"w", "W"},
    92 	{"w",	"w"},
    92 	{"x", "X"},
    93 	{"x",	"x"},
    93 	{"y", "Y"},
    94 	{"y",	"y"},
    94 	{"z", "Z"},
    95 	{"z",	"z"},
    95 	{"delete", QT_TRANSLATE_NOOP("binds (keys)", "Delete")},
    96 	{"delete",	"delete"},
    96 	{"[0]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 0")},
    97 	{"[0]",	"[0]"},
    97 	{"[1]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 1")},
    98 	{"[1]",	"[1]"},
    98 	{"[2]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 2")},
    99 	{"[2]",	"[2]"},
    99 	{"[3]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 3")},
   100 	{"[3]",	"[3]"},
   100 	{"[4]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 4")},
   101 	{"[4]",	"[4]"},
   101 	{"[5]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 5")},
   102 	{"[5]",	"[5]"},
   102 	{"[6]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 6")},
   103 	{"[6]",	"[6]"},
   103 	{"[7]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 7")},
   104 	{"[7]",	"[7]"},
   104 	{"[8]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 8")},
   105 	{"[8]",	"[8]"},
   105 	{"[9]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad 9")},
   106 	{"[9]",	"[9]"},
   106 	{"[.]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad .")},
   107 	{"[.]",	"[.]"},
   107 	{"[/]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad /")},
   108 	{"[/]",	"[/]"},
   108 	{"[*]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad *")},
   109 	{"[*]",	"[*]"},
   109 	{"[-]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad -")},
   110 	{"[-]",	"[-]"},
   110 	{"[+]", QT_TRANSLATE_NOOP("binds (keys)", "Numpad +")},
   111 	{"[+]",	"[+]"},
   111 	{"enter", QT_TRANSLATE_NOOP("binds (keys)", "Enter")},
   112 	{"enter",	"enter"},
   112 	{"equals", QT_TRANSLATE_NOOP("binds (keys)", "Equals")},
   113 	{"equals",	"equals"},
   113 	{"up", QT_TRANSLATE_NOOP("binds (keys)", "Up")},
   114 	{"up",	"up"},
   114 	{"down", QT_TRANSLATE_NOOP("binds (keys)", "Down")},
   115 	{"down",	"down"},
   115 	{"right", QT_TRANSLATE_NOOP("binds (keys)", "Right")},
   116 	{"right",	"right"},
   116 	{"left", QT_TRANSLATE_NOOP("binds (keys)", "Left")},
   117 	{"left",	"left"},
   117 	{"insert", QT_TRANSLATE_NOOP("binds (keys)", "Insert")},
   118 	{"insert",	"insert"},
   118 	{"home", QT_TRANSLATE_NOOP("binds (keys)", "Home")},
   119 	{"home",	"home"},
   119 	{"end", QT_TRANSLATE_NOOP("binds (keys)", "End")},
   120 	{"end",	"end"},
   120 	{"page up", QT_TRANSLATE_NOOP("binds (keys)", "Page up")},
   121 	{"page up",	"page up"},
   121 	{"page down", QT_TRANSLATE_NOOP("binds (keys)", "Page down")},
   122 	{"page down",	"page down"},
   122 	{"f1", "F1"},
   123 	{"f1",	"f1"},
   123 	{"f2", "F2"},
   124 	{"f2",	"f2"},
   124 	{"f3", "F3"},
   125 	{"f3",	"f3"},
   125 	{"f4", "F4"},
   126 	{"f4",	"f4"},
   126 	{"f5", "F5"},
   127 	{"f5",	"f5"},
   127 	{"f6", "F6"},
   128 	{"f6",	"f6"},
   128 	{"f7", "F7"},
   129 	{"f7",	"f7"},
   129 	{"f8", "F8"},
   130 	{"f8",	"f8"},
   130 	{"f9", "F9"},
   131 	{"f9",	"f9"},
   131 	{"f10", "F10"},
   132 	{"f10",	"f10"},
   132 	{"f11", "F11"},
   133 	{"f11",	"f11"},
   133 	{"f12", "F12"},
   134 	{"f12",	"f12"},
   134 	{"f13", "F13"},
   135 	{"f13",	"f13"},
   135 	{"f14", "F14"},
   136 	{"f14",	"f14"},
   136 	{"f15", "F15"},
   137 	{"f15",	"f15"},
   137 	{"numlock", QT_TRANSLATE_NOOP("binds (keys)", "Num lock")},
   138 	{"numlock",	"numlock"},
   138 	{"caps_lock", QT_TRANSLATE_NOOP("binds (keys)", "Caps lock")},
   139 	{"caps_lock",	"caps_lock"},
   139 	{"scroll_lock", QT_TRANSLATE_NOOP("binds (keys)", "Scroll lock")},
   140 	{"scroll_lock",	"scroll_lock"},
   140 	{"right_shift", QT_TRANSLATE_NOOP("binds (keys)", "Right shift")},
   141 	{"right_shift",	"right_shift"},
   141 	{"left_shift", QT_TRANSLATE_NOOP("binds (keys)", "Left shift")},
   142 	{"left_shift",	"left_shift"},
   142 	{"right_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Right ctrl")},
   143 	{"right_ctrl",	"right_ctrl"},
   143 	{"left_ctrl", QT_TRANSLATE_NOOP("binds (keys)", "Left ctrl")},
   144 	{"left_ctrl",	"left_ctrl"},
   144 	{"right_alt", QT_TRANSLATE_NOOP("binds (keys)", "Right alt")},
   145 	{"right_alt",	"right_alt"},
   145 	{"left_alt", QT_TRANSLATE_NOOP("binds (keys)", "Left alt")},
   146 	{"left_alt",	"left_alt"},
   146 	{"right_meta", QT_TRANSLATE_NOOP("binds (keys)", "Right meta")},
   147 	{"right_meta",	"right_meta"},
   147 	{"left_meta", QT_TRANSLATE_NOOP("binds (keys)", "Left meta")}
   148 	{"left_meta",	"left_meta"},
   148 	};
   149 	{"", ""}
   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")
   150 };
   163 };
       
   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");