2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2009 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 /* These are the Macintosh key scancode constants -- from Inside Macintosh */
25 #define MK_ESCAPE 0x35
39 #define MK_SCROLLOCK 0x6B
42 #define MK_BACKQUOTE 0x32
54 #define MK_EQUALS 0x18
55 #define MK_BACKSPACE 0x33
56 #define MK_INSERT 0x72
58 #define MK_PAGEUP 0x74
59 #define MK_NUMLOCK 0x47
60 #define MK_KP_EQUALS 0x51
61 #define MK_KP_DIVIDE 0x4B
62 #define MK_KP_MULTIPLY 0x43
74 #define MK_LEFTBRACKET 0x21
75 #define MK_RIGHTBRACKET 0x1E
76 #define MK_BACKSLASH 0x2A
77 #define MK_DELETE 0x75
79 #define MK_PAGEDOWN 0x79
83 #define MK_KP_MINUS 0x4E
84 #define MK_CAPSLOCK 0x39
94 #define MK_SEMICOLON 0x29
96 #define MK_RETURN 0x24
100 #define MK_KP_PLUS 0x45
101 #define MK_LSHIFT 0x38
109 #define MK_COMMA 0x2B
110 #define MK_PERIOD 0x2F
111 #define MK_SLASH 0x2C
112 #if 0 /* These are the same as the left versions - use left by default */
113 #define MK_RSHIFT 0x38
119 #define MK_KP_ENTER 0x4C
120 #define MK_LCTRL 0x3B
122 #define MK_LMETA 0x37
123 #define MK_SPACE 0x31
124 #if 0 /* These are the same as the left versions - use left by default */
125 #define MK_RMETA 0x37
127 #define MK_RCTRL 0x3B
131 #define MK_RIGHT 0x7C
133 #define MK_KP_PERIOD 0x41
135 /* Wierd, these keys are on my iBook under Mac OS X */
136 #define MK_IBOOK_ENTER 0x34
137 #define MK_IBOOK_LEFT 0x3B
138 #define MK_IBOOK_RIGHT 0x3C
139 #define MK_IBOOK_DOWN 0x3D
140 #define MK_IBOOK_UP 0x3E