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 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
22 #include "SDL_config.h"
24 /* These are the Macintosh key scancode constants -- from Inside Macintosh */
26 #define QZ_ESCAPE 0x35
44 #define QZ_SCROLLOCK 0x6B
48 #define QZ_BACKQUOTE 0x32
60 #define QZ_EQUALS 0x18
61 #define QZ_BACKSPACE 0x33
62 #define QZ_INSERT 0x72
64 #define QZ_PAGEUP 0x74
65 #define QZ_NUMLOCK 0x47
66 #define QZ_KP_EQUALS 0x51
67 #define QZ_KP_DIVIDE 0x4B
68 #define QZ_KP_MULTIPLY 0x43
80 #define QZ_LEFTBRACKET 0x21
81 #define QZ_RIGHTBRACKET 0x1E
82 #define QZ_BACKSLASH 0x2A
83 #define QZ_DELETE 0x75
85 #define QZ_PAGEDOWN 0x79
89 #define QZ_KP_MINUS 0x4E
90 #define QZ_CAPSLOCK 0x39
100 #define QZ_SEMICOLON 0x29
101 #define QZ_QUOTE 0x27
102 #define QZ_RETURN 0x24
106 #define QZ_KP_PLUS 0x45
107 #define QZ_LSHIFT 0x38
115 #define QZ_COMMA 0x2B
116 #define QZ_PERIOD 0x2F
117 #define QZ_SLASH 0x2C
118 #if 1 /* Panther now defines right side keys */
119 #define QZ_RSHIFT 0x3C
125 #define QZ_KP_ENTER 0x4C
126 #define QZ_LCTRL 0x3B
128 #define QZ_LMETA 0x37
129 #define QZ_SPACE 0x31
130 #if 1 /* Panther now defines right side keys */
131 #define QZ_RMETA 0x36
133 #define QZ_RCTRL 0x3E
137 #define QZ_RIGHT 0x7C
139 #define QZ_KP_PERIOD 0x41
141 /* Wierd, these keys are on my iBook under Mac OS X */
142 #define QZ_IBOOK_ENTER 0x34
143 #define QZ_IBOOK_LEFT 0x3B
144 #define QZ_IBOOK_RIGHT 0x3C
145 #define QZ_IBOOK_DOWN 0x3D
146 #define QZ_IBOOK_UP 0x3E