1 /* $Id: cocoa_keys.h 17248 2009-08-21 20:21:05Z rubidium $ */
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
10 /** @file cocoa_keys.h Mappings of Cocoa keys. */
15 /* From SDL_QuartzKeys.h
16 * These are the Macintosh key scancode constants -- from Inside Macintosh */
18 #define QZ_ESCAPE 0x35
32 #define QZ_SCROLLOCK 0x6B
35 #define QZ_BACKQUOTE 0x0A
36 #define QZ_BACKQUOTE2 0x32
48 #define QZ_EQUALS 0x18
49 #define QZ_BACKSPACE 0x33
50 #define QZ_INSERT 0x72
52 #define QZ_PAGEUP 0x74
53 #define QZ_NUMLOCK 0x47
54 #define QZ_KP_EQUALS 0x51
55 #define QZ_KP_DIVIDE 0x4B
56 #define QZ_KP_MULTIPLY 0x43
68 #define QZ_LEFTBRACKET 0x21
69 #define QZ_RIGHTBRACKET 0x1E
70 #define QZ_BACKSLASH 0x2A
71 #define QZ_DELETE 0x75
73 #define QZ_PAGEDOWN 0x79
77 #define QZ_KP_MINUS 0x4E
78 #define QZ_CAPSLOCK 0x39
88 #define QZ_SEMICOLON 0x29
90 #define QZ_RETURN 0x24
94 #define QZ_KP_PLUS 0x45
95 #define QZ_LSHIFT 0x38
103 #define QZ_COMMA 0x2B
104 #define QZ_PERIOD 0x2F
105 #define QZ_SLASH 0x2C
106 #if 1 /* Panther now defines right side keys */
107 #define QZ_RSHIFT 0x3C
113 #define QZ_KP_ENTER 0x4C
114 #define QZ_LCTRL 0x3B
116 #define QZ_LMETA 0x37
117 #define QZ_SPACE 0x31
118 #if 1 /* Panther now defines right side keys */
119 #define QZ_RMETA 0x36
121 #define QZ_RCTRL 0x3E
125 #define QZ_RIGHT 0x7C
127 #define QZ_KP_PERIOD 0x41
129 /* Wierd, these keys are on my iBook under MacOS X */
130 #define QZ_IBOOK_ENTER 0x34
131 #define QZ_IBOOK_LEFT 0x3B
132 #define QZ_IBOOK_RIGHT 0x3C
133 #define QZ_IBOOK_DOWN 0x3D
134 #define QZ_IBOOK_UP 0x3E