瀏覽代碼

mrpigeon: can now play using spacebar.

legacy
Sam Hocevar sam 11 年之前
父節點
當前提交
aeb1b68377
共有 1 個文件被更改,包括 72 次插入72 次删除
  1. +72
    -72
      src/input/input.h

+ 72
- 72
src/input/input.h 查看文件

@@ -42,79 +42,79 @@ struct Key
enum Value
{
/* ASCII mapped keys */
Unknown = 0,
First = 0,
Backspace = 8,
Tab = 9,
Clear = 12,
Return = 13,
Pause = 19,
Escape = 27,
Space = 32,
Exclaim = 33,
DoubleQuote = 34,
Hash = 35,
Dollar = 36,
Ampersand = 38,
Quote = 39,
LeftParen = 40,
RightParen = 41,
Asterisk = 42,
Plus = 43,
Comma = 44,
Minus = 45,
Period = 46,
Slash = 47,
K0 = 48,
K1 = 49,
K2 = 50,
K3 = 51,
K4 = 52,
K5 = 53,
K6 = 54,
K7 = 55,
K8 = 56,
K9 = 57,
Colon = 58,
Semicolon = 59,
Less = 60,
Equals = 61,
Greater = 62,
Question = 63,
At = 64,
Unknown = 0,
First = 0,
Backspace = 8,
Tab = (int)'\t',
Clear = 12,
Return = 13,
Pause = 19,
Escape = 27,
Space = (int)' ',
Exclaim = (int)'!',
DoubleQuote = (int)'"',
Hash = (int)'#',
Dollar = (int)'$',
Ampersand = (int)'&',
Quote = (int)'\'',
LeftParen = (int)'(',
RightParen = (int)')',
Asterisk = (int)'*',
Plus = (int)'+',
Comma = (int)',',
Minus = (int)'-',
Period = (int)'.',
Slash = (int)'/',
K0 = (int)'0',
K1 = (int)'1',
K2 = (int)'2',
K3 = (int)'3',
K4 = (int)'4',
K5 = (int)'5',
K6 = (int)'6',
K7 = (int)'7',
K8 = (int)'8',
K9 = (int)'9',
Colon = (int)':',
Semicolon = (int)';',
Less = (int)'<',
Equals = (int)'=',
Greater = (int)'>',
Question = (int)'?',
At = (int)'@',
/* XXX: SDL decides to skip uppercase characters */
LeftBracket = 91,
BackSlash = 92,
RightBracket = 93,
Caret = 94,
Underscore = 95,
Backquote = 96,
A = 97,
B = 98,
C = 99,
D = 100,
E = 101,
F = 102,
G = 103,
H = 104,
I = 105,
J = 106,
K = 107,
L = 108,
M = 109,
N = 110,
O = 111,
P = 112,
Q = 113,
R = 114,
S = 115,
T = 116,
U = 117,
V = 118,
W = 119,
X = 120,
Y = 121,
Z = 122,
LeftBracket = (int)'[',
BackSlash = (int)'\\',
RightBracket = (int)']',
Caret = (int)'^',
Underscore = (int)'_',
Backquote = (int)'`',
A = (int)'a',
B = (int)'b',
C = (int)'c',
D = (int)'d',
E = (int)'e',
F = (int)'f',
G = (int)'g',
H = (int)'h',
I = (int)'i',
J = (int)'j',
K = (int)'k',
L = (int)'l',
M = (int)'m',
N = (int)'n',
O = (int)'o',
P = (int)'p',
Q = (int)'q',
R = (int)'r',
S = (int)'s',
T = (int)'t',
U = (int)'u',
V = (int)'v',
W = (int)'w',
X = (int)'x',
Y = (int)'y',
Z = (int)'z',
Delete = 127,

/* International keyboard syms */


Loading…
取消
儲存