QTfrontend/sdlkeys.h
author unc0rr
Wed, 28 Dec 2005 22:18:11 +0000
changeset 32 78bff13b11c0
parent 21 dff476dcaaa3
child 183 57c2ef19f719
permissions -rw-r--r--
With this patch the game doesn't crash when gaming by net
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     1
/*
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     2
 * Hedgewars, a worms-like game
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     3
 * Copyright (c) 2005 Andrey Korotaev <unC0Rr@gmail.com>
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     4
 *
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     5
 * Distributed under the terms of the BSD-modified licence:
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     6
 *
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     7
 * Permission is hereby granted, free of charge, to any person obtaining a copy
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     8
 * of this software and associated documentation files (the "Software"), to deal
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
     9
 * with the Software without restriction, including without limitation the
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    10
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    11
 * sell copies of the Software, and to permit persons to whom the Software is
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    12
 * furnished to do so, subject to the following conditions:
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    13
 *
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    14
 * 1. Redistributions of source code must retain the above copyright notice,
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    15
 *    this list of conditions and the following disclaimer.
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    16
 * 2. Redistributions in binary form must reproduce the above copyright notice,
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    17
 *    this list of conditions and the following disclaimer in the documentation
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    18
 *    and/or other materials provided with the distribution.
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    19
 * 3. The name of the author may not be used to endorse or promote products
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    20
 *    derived from this software without specific prior written permission.
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    21
 *
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    22
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    23
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    24
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    25
 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    26
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    27
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    28
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    29
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    30
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    31
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    32
 */
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    33
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    34
char sdlkeys[][2][16] = 
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    35
{
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    36
	{"mousel",	"mousel"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    37
	{"mousem",	"mousem"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    38
	{"mouser",	"mouser"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    39
	{"backspace",	"backspace"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    40
	{"tab",	"tab"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    41
	{"clear",	"clear"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    42
	{"return",	"return"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    43
	{"pause",	"pause"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    44
	{"escape",	"escape"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    45
	{"space",	"space"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    46
	{"!",	"!"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    47
	{"\"",	"\""},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    48
	{"#",	"#"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    49
	{"$",	"$"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    50
	{"&",	"&"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    51
	{"'",	"'"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    52
	{"(",	"("},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    53
	{")",	")"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    54
	{"*",	"*"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    55
	{"+",	"+"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    56
	{",",	","},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    57
	{"-",	"-"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    58
	{".",	"."},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    59
	{"/",	"/"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    60
	{"0",	"0"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    61
	{"1",	"1"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    62
	{"2",	"2"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    63
	{"3",	"3"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    64
	{"4",	"4"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    65
	{"5",	"5"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    66
	{"6",	"6"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    67
	{"7",	"7"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    68
	{"8",	"8"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    69
	{"9",	"9"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    70
	{":",	":"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    71
	{";",	";"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    72
	{"<",	"<"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    73
	{"=",	"="},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    74
	{">",	">"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    75
	{"?",	"?"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    76
	{"@",	"@"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    77
	{"[",	"["},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    78
	{"\\",	"\\"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    79
	{"]",	"]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    80
	{"^",	"^"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    81
	{"_",	"_"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    82
	{"`",	"`"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    83
	{"a",	"a"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    84
	{"b",	"b"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    85
	{"c",	"c"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    86
	{"d",	"d"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    87
	{"e",	"e"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    88
	{"f",	"f"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    89
	{"g",	"g"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    90
	{"h",	"h"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    91
	{"i",	"i"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    92
	{"j",	"j"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    93
	{"k",	"k"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    94
	{"l",	"l"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    95
	{"m",	"m"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    96
	{"n",	"n"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    97
	{"o",	"o"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    98
	{"p",	"p"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
    99
	{"q",	"q"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   100
	{"r",	"r"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   101
	{"s",	"s"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   102
	{"t",	"t"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   103
	{"u",	"u"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   104
	{"v",	"v"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   105
	{"w",	"w"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   106
	{"x",	"x"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   107
	{"y",	"y"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   108
	{"z",	"z"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   109
	{"delete",	"delete"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   110
	{"[0]",	"[0]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   111
	{"[1]",	"[1]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   112
	{"[2]",	"[2]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   113
	{"[3]",	"[3]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   114
	{"[4]",	"[4]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   115
	{"[5]",	"[5]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   116
	{"[6]",	"[6]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   117
	{"[7]",	"[7]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   118
	{"[8]",	"[8]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   119
	{"[9]",	"[9]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   120
	{"[.]",	"[.]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   121
	{"[/]",	"[/]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   122
	{"[*]",	"[*]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   123
	{"[-]",	"[-]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   124
	{"[+]",	"[+]"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   125
	{"enter",	"enter"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   126
	{"equals",	"equals"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   127
	{"up",	"up"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   128
	{"down",	"down"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   129
	{"right",	"right"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   130
	{"left",	"left"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   131
	{"insert",	"insert"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   132
	{"home",	"home"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   133
	{"end",	"end"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   134
	{"page up",	"page up"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   135
	{"page down",	"page down"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   136
	{"f1",	"f1"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   137
	{"f2",	"f2"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   138
	{"f3",	"f3"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   139
	{"f4",	"f4"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   140
	{"f5",	"f5"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   141
	{"f6",	"f6"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   142
	{"f7",	"f7"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   143
	{"f8",	"f8"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   144
	{"f9",	"f9"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   145
	{"f10",	"f10"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   146
	{"f11",	"f11"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   147
	{"f12",	"f12"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   148
	{"f13",	"f13"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   149
	{"f14",	"f14"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   150
	{"f15",	"f15"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   151
	{"numlock",	"numlock"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   152
	{"caps_lock",	"caps_lock"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   153
	{"scroll_lock",	"scroll_lock"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   154
	{"right_shift",	"right_shift"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   155
	{"left_shift",	"left_shift"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   156
	{"right_ctrl",	"right_ctrl"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   157
	{"left_ctrl",	"left_ctrl"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   158
	{"right_alt",	"right_alt"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   159
	{"left_alt",	"left_alt"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   160
	{"right_meta",	"right_meta"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   161
	{"left_meta",	"left_meta"},
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   162
	{"", ""}
dff476dcaaa3 - Many improvements to frontend
unc0rr
parents:
diff changeset
   163
};