2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997, 1998, 1999, 2000, 2001 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 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 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 slouken@devolution.com
28 /* These are the Macintosh key scancode constants -- from Inside Macintosh */
30 #define MK_ESCAPE 0x35
44 #define MK_SCROLLOCK 0x6B
47 #define MK_BACKQUOTE 0x32
59 #define MK_EQUALS 0x18
60 #define MK_BACKSPACE 0x33
61 #define MK_INSERT 0x72
63 #define MK_PAGEUP 0x74
64 #define MK_NUMLOCK 0x47
65 #define MK_KP_EQUALS 0x51
66 #define MK_KP_DIVIDE 0x4B
67 #define MK_KP_MULTIPLY 0x43
79 #define MK_LEFTBRACKET 0x21
80 #define MK_RIGHTBRACKET 0x1E
81 #define MK_BACKSLASH 0x2A
82 #define MK_DELETE 0x75
84 #define MK_PAGEDOWN 0x79
88 #define MK_KP_MINUS 0x4E
89 #define MK_CAPSLOCK 0x39
99 #define MK_SEMICOLON 0x29
100 #define MK_QUOTE 0x27
101 #define MK_RETURN 0x24
105 #define MK_KP_PLUS 0x45
106 #define MK_LSHIFT 0x38
114 #define MK_COMMA 0x2B
115 #define MK_PERIOD 0x2F
116 #define MK_SLASH 0x2C
117 #if 0 /* These are the same as the left versions - use left by default */
118 #define MK_RSHIFT 0x38
124 #define MK_KP_ENTER 0x4C
125 #define MK_LCTRL 0x3B
127 #define MK_LMETA 0x37
128 #define MK_SPACE 0x31
129 #if 0 /* These are the same as the left versions - use left by default */
130 #define MK_RMETA 0x37
132 #define MK_RCTRL 0x3B
136 #define MK_RIGHT 0x7C
138 #define MK_KP_PERIOD 0x41
140 /* Wierd, these keys are on my iBook under MacOS X */
141 #define MK_IBOOK_ENTER 0x34
142 #define MK_IBOOK_LEFT 0x3B
143 #define MK_IBOOK_RIGHT 0x3C
144 #define MK_IBOOK_DOWN 0x3D
145 #define MK_IBOOK_UP 0x3E