Mercurial > sdl-ios-xcode
annotate src/video/cocoa/SDL_cocoakeys.h @ 2120:2c835d58faad
make indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 14 Jun 2007 13:21:29 +0000 |
parents | f419000e7596 |
children | 4baee598306d |
rev | line source |
---|---|
1959
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
1 /* |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
2 SDL - Simple DirectMedia Layer |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
3 Copyright (C) 1997-2006 Sam Lantinga |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
4 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
5 This library is free software; you can redistribute it and/or |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
6 modify it under the terms of the GNU Lesser General Public |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
7 License as published by the Free Software Foundation; either |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
8 version 2.1 of the License, or (at your option) any later version. |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
9 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
10 This library is distributed in the hope that it will be useful, |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
13 Lesser General Public License for more details. |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
14 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
16 License along with this library; if not, write to the Free Software |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
18 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
19 Sam Lantinga |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
20 slouken@libsdl.org |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
21 */ |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
22 #include "SDL_config.h" |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
23 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
24 /* These are the Macintosh key scancode constants -- from Inside Macintosh */ |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
25 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
26 #define KEY_ESCAPE 0x35 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
27 #define KEY_F1 0x7A |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
28 #define KEY_F2 0x78 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
29 #define KEY_F3 0x63 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
30 #define KEY_F4 0x76 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
31 #define KEY_F5 0x60 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
32 #define KEY_F6 0x61 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
33 #define KEY_F7 0x62 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
34 #define KEY_F8 0x64 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
35 #define KEY_F9 0x65 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
36 #define KEY_F10 0x6D |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
37 #define KEY_F11 0x67 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
38 #define KEY_F12 0x6F |
2090
f419000e7596
Merged r2975:2976 from branches/SDL-1.2: Mac OS X F13-15 key support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1959
diff
changeset
|
39 #define KEY_F13 0x69 |
f419000e7596
Merged r2975:2976 from branches/SDL-1.2: Mac OS X F13-15 key support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1959
diff
changeset
|
40 #define KEY_F14 0x6B |
f419000e7596
Merged r2975:2976 from branches/SDL-1.2: Mac OS X F13-15 key support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1959
diff
changeset
|
41 #define KEY_F15 0x71 |
f419000e7596
Merged r2975:2976 from branches/SDL-1.2: Mac OS X F13-15 key support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1959
diff
changeset
|
42 /* |
1959
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
43 #define KEY_PRINT 0x69 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
44 #define KEY_SCROLLOCK 0x6B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
45 #define KEY_PAUSE 0x71 |
2090
f419000e7596
Merged r2975:2976 from branches/SDL-1.2: Mac OS X F13-15 key support.
Ryan C. Gordon <icculus@icculus.org>
parents:
1959
diff
changeset
|
46 */ |
1959
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
47 #define KEY_POWER 0x7F |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
48 #define KEY_BACKQUOTE 0x32 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
49 #define KEY_1 0x12 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
50 #define KEY_2 0x13 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
51 #define KEY_3 0x14 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
52 #define KEY_4 0x15 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
53 #define KEY_5 0x17 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
54 #define KEY_6 0x16 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
55 #define KEY_7 0x1A |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
56 #define KEY_8 0x1C |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
57 #define KEY_9 0x19 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
58 #define KEY_0 0x1D |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
59 #define KEY_MINUS 0x1B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
60 #define KEY_EQUALS 0x18 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
61 #define KEY_BACKSPACE 0x33 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
62 #define KEY_INSERT 0x72 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
63 #define KEY_HOME 0x73 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
64 #define KEY_PAGEUP 0x74 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
65 #define KEY_NUMLOCK 0x47 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
66 #define KEY_KP_EQUALS 0x51 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
67 #define KEY_KP_DIVIDE 0x4B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
68 #define KEY_KP_MULTIPLY 0x43 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
69 #define KEY_TAB 0x30 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
70 #define KEY_q 0x0C |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
71 #define KEY_w 0x0D |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
72 #define KEY_e 0x0E |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
73 #define KEY_r 0x0F |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
74 #define KEY_t 0x11 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
75 #define KEY_y 0x10 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
76 #define KEY_u 0x20 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
77 #define KEY_i 0x22 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
78 #define KEY_o 0x1F |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
79 #define KEY_p 0x23 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
80 #define KEY_LEFTBRACKET 0x21 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
81 #define KEY_RIGHTBRACKET 0x1E |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
82 #define KEY_BACKSLASH 0x2A |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
83 #define KEY_DELETE 0x75 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
84 #define KEY_END 0x77 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
85 #define KEY_PAGEDOWN 0x79 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
86 #define KEY_KP7 0x59 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
87 #define KEY_KP8 0x5B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
88 #define KEY_KP9 0x5C |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
89 #define KEY_KP_MINUS 0x4E |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
90 #define KEY_CAPSLOCK 0x39 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
91 #define KEY_a 0x00 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
92 #define KEY_s 0x01 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
93 #define KEY_d 0x02 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
94 #define KEY_f 0x03 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
95 #define KEY_g 0x05 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
96 #define KEY_h 0x04 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
97 #define KEY_j 0x26 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
98 #define KEY_k 0x28 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
99 #define KEY_l 0x25 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
100 #define KEY_SEMICOLON 0x29 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
101 #define KEY_QUOTE 0x27 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
102 #define KEY_RETURN 0x24 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
103 #define KEY_KP4 0x56 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
104 #define KEY_KP5 0x57 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
105 #define KEY_KP6 0x58 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
106 #define KEY_KP_PLUS 0x45 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
107 #define KEY_LSHIFT 0x38 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
108 #define KEY_z 0x06 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
109 #define KEY_x 0x07 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
110 #define KEY_c 0x08 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
111 #define KEY_v 0x09 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
112 #define KEY_b 0x0B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
113 #define KEY_n 0x2D |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
114 #define KEY_m 0x2E |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
115 #define KEY_COMMA 0x2B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
116 #define KEY_PERIOD 0x2F |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
117 #define KEY_SLASH 0x2C |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
118 #if 1 /* Panther now defines right side keys */ |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
119 #define KEY_RSHIFT 0x3C |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
120 #endif |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
121 #define KEY_UP 0x7E |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
122 #define KEY_KP1 0x53 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
123 #define KEY_KP2 0x54 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
124 #define KEY_KP3 0x55 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
125 #define KEY_KP_ENTER 0x4C |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
126 #define KEY_LCTRL 0x3B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
127 #define KEY_LALT 0x3A |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
128 #define KEY_LMETA 0x37 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
129 #define KEY_SPACE 0x31 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
130 #if 1 /* Panther now defines right side keys */ |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
131 #define KEY_RMETA 0x36 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
132 #define KEY_RALT 0x3D |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
133 #define KEY_RCTRL 0x3E |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
134 #endif |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
135 #define KEY_LEFT 0x7B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
136 #define KEY_DOWN 0x7D |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
137 #define KEY_RIGHT 0x7C |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
138 #define KEY_KP0 0x52 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
139 #define KEY_KP_PERIOD 0x41 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
140 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
141 /* Wierd, these keys are on my iBook under Mac OS X */ |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
142 #define KEY_IBOOK_ENTER 0x34 |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
143 #define KEY_IBOOK_LEFT 0x3B |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
144 #define KEY_IBOOK_RIGHT 0x3C |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
145 #define KEY_IBOOK_DOWN 0x3D |
25d6537feea4
Implemented Cocoa key event handling.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
146 #define KEY_IBOOK_UP 0x3E |