summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa_keys.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_cocoa/ecore_cocoa_keys.h')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_keys.h317
1 files changed, 317 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_keys.h b/src/lib/ecore_cocoa/ecore_cocoa_keys.h
new file mode 100644
index 0000000..4eda272
--- /dev/null
+++ b/src/lib/ecore_cocoa/ecore_cocoa_keys.h
@@ -0,0 +1,317 @@
1#ifndef ECORE_COCOA_KEYS_H__
2#define ECORE_COCOA_KEYS_H__
3
4/* Prevent innocent devs to include this directly. */
5#ifndef _ECORE_COCOA_KEYS_MANUAL_GUARD_
6# error This header must be be included directly!
7#endif
8
9
10struct _ecore_cocoa_keys_s
11{
12 int code;
13 const char *name;
14 const char *compose;
15};
16
17static const struct _ecore_cocoa_keys_s keystable[] =
18{
19
20{ 0, "0x00", "" },
21{ 0, "First", "" },
22{ 3, "Return", "\015" },
23{ 8, "Delete", "\010" },
24{ 9, "Tab", "\011" },
25{ 12, "Clear", "" },
26{ 13, "Return", "\015" },
27{ 19, "Pause", "" },
28{ 25, "BackTab", ""},
29{ 27, "Escape", "" },
30{ 32, "space", " " },
31{ 33, "exclam", "!" },
32{ 34, "quotedbl", "\"" },
33{ 35, "numbersign", "#" },
34{ 36, "dollar", "$" },
35{ 37, "percent", "%" },
36{ 38, "ampersand", "&" },
37{ 39, "apostrophe", "'" },
38{ 40, "parenleft", "(" },
39{ 41, "parenright", ")" },
40{ 42, "asterisk", "*" },
41{ 43, "plus", "+" },
42{ 44, "comma", "," },
43{ 45, "minus", "-" },
44{ 46, "period", "." },
45{ 47, "slash", "/" },
46{ 48, "0", "0" },
47{ 49, "1", "1" },
48{ 50, "2", "2" },
49{ 51, "3", "3" },
50{ 52, "4", "4" },
51{ 53, "5", "5" },
52{ 54, "6", "6" },
53{ 55, "7", "7" },
54{ 56, "8", "8" },
55{ 57, "9", "9" },
56{ 58, "colon", ":" },
57{ 59, "semicolon", ";" },
58{ 60, "less", "<" },
59{ 61, "equal", "=" },
60{ 62, "greater", ">" },
61{ 63, "question", "?" },
62{ 64, "at", "@" },
63{ 65, "A", "A" },
64{ 66, "B", "B" },
65{ 67, "C", "C" },
66{ 68, "D", "D" },
67{ 69, "E", "E" },
68{ 70, "F", "F" },
69{ 71, "G", "G" },
70{ 72, "H", "H" },
71{ 73, "I", "I" },
72{ 74, "J", "J" },
73{ 75, "K", "K" },
74{ 76, "L", "L" },
75{ 77, "M", "M" },
76{ 78, "N", "N" },
77{ 79, "O", "O" },
78{ 80, "P", "P" },
79{ 81, "Q", "Q" },
80{ 82, "R", "R" },
81{ 83, "S", "S" },
82{ 84, "T", "T" },
83{ 85, "U", "U" },
84{ 86, "V", "V" },
85{ 87, "W", "W" },
86{ 88, "X", "X" },
87{ 89, "Y", "Y" },
88{ 90, "Z", "Z" },
89{ 91, "bracketleft", "[" },
90{ 92, "backslash", "\\" },
91{ 93, "bracketright", "]" },
92{ 94, "asciicircumm", "^" },
93{ 95, "underscore", "_" },
94{ 96, "backquote", "`" },
95{ 97, "a", "a" },
96{ 98, "b", "b" },
97{ 99, "c", "c" },
98{ 100, "d", "d" },
99{ 101, "e", "e" },
100{ 102, "f", "f" },
101{ 103, "g", "g" },
102{ 104, "h", "h" },
103{ 105, "i", "i" },
104{ 106, "j", "j" },
105{ 107, "k", "k" },
106{ 108, "l", "l" },
107{ 109, "m", "m" },
108{ 110, "n", "n" },
109{ 111, "o", "o" },
110{ 112, "p", "p" },
111{ 113, "q", "q" },
112{ 114, "r", "r" },
113{ 115, "s", "s" },
114{ 116, "t", "t" },
115{ 117, "u", "u" },
116{ 118, "v", "v" },
117{ 119, "w", "w" },
118{ 120, "x", "x" },
119{ 121, "y", "y" },
120{ 122, "z", "z" },
121{ 123, "braceleft", "{" },
122{ 124, "pipe", "|" },
123{ 125, "braceright", "}" },
124{ 127, "BackSpace", "\177" },
125{ 126, "asciitilde", "~" },
126
127{ 160, "w0", "" },
128{ 161, "w1", "" },
129{ 162, "w2", "" },
130{ 163, "w3", "" },
131{ 164, "w4", "" },
132{ 165, "w5", "" },
133{ 166, "w6", "" },
134{ 167, "w7", "§" },
135{ 168, "w8", "" },
136{ 169, "w9", "" },
137{ 170, "w10", "" },
138{ 171, "w11", "" },
139{ 172, "w12", "" },
140{ 173, "w13", "" },
141{ 174, "w14", "" },
142{ 175, "w15", "" },
143{ 176, "w16", "°" },
144{ 177, "w17", "" },
145{ 178, "w18", "" },
146{ 179, "w19", "" },
147{ 180, "w20", "" },
148{ 181, "w21", "" },
149{ 182, "w22", "" },
150{ 183, "w23", "" },
151{ 184, "w24", "" },
152{ 185, "w25", "" },
153{ 186, "w26", "" },
154{ 187, "w27", "" },
155{ 188, "w28", "" },
156{ 189, "w29", "" },
157{ 190, "w30", "" },
158{ 191, "w31", "" },
159{ 192, "w32", "" },
160{ 193, "w33", "" },
161{ 194, "w34", "" },
162{ 195, "w35", "" },
163{ 196, "w36", "" },
164{ 197, "w37", "" },
165{ 198, "w38", "" },
166{ 199, "w39", "" },
167{ 200, "w40", "" },
168{ 201, "w41", "" },
169{ 202, "w42", "" },
170{ 203, "w43", "" },
171{ 204, "w44", "" },
172{ 205, "w45", "" },
173{ 206, "w46", "" },
174{ 207, "w47", "" },
175{ 208, "w48", "" },
176{ 209, "w49", "" },
177{ 210, "w50", "" },
178{ 211, "w51", "" },
179{ 212, "w52", "" },
180{ 213, "w53", "" },
181{ 214, "w54", "" },
182{ 215, "w55", "" },
183{ 216, "w56", "" },
184{ 217, "w57", "" },
185{ 218, "w58", "" },
186{ 219, "w59", "" },
187{ 220, "w60", "" },
188{ 221, "w61", "" },
189{ 222, "w62", "" },
190{ 223, "w63", "" },
191{ 224, "w64", "à" },
192{ 225, "w65", "" },
193{ 226, "w66", "â" },
194{ 227, "w67", "ã" },
195{ 228, "w68", "ä" },
196{ 229, "w69", "" },
197{ 230, "w70", "" },
198{ 231, "w71", "ç" },
199{ 232, "w72", "è" },
200{ 233, "w73", "é" },
201{ 234, "w74", "ê" },
202{ 235, "w75", "ë" },
203{ 236, "w76", "ì" },
204{ 237, "w77", "" },
205{ 238, "w78", "î" },
206{ 239, "w79", "ï" },
207{ 240, "w80", "" },
208{ 241, "w81", "" },
209{ 242, "w82", "ò" },
210{ 243, "w83", "" },
211{ 244, "w84", "ô" },
212{ 245, "w85", "õ" },
213{ 246, "w86", "ö"},
214{ 247, "w87", "" },
215{ 248, "w88", "" },
216{ 249, "w89", "ù" },
217{ 250, "w90", "" },
218{ 251, "w91", "û" },
219{ 252, "w92", "ü" },
220{ 253, "w93", "" },
221{ 254, "w94", "" },
222{ 255, "w95", "ÿ" },
223
224{ 256, "KP0", "0" },
225{ 257, "KP1", "1" },
226{ 258, "KP2", "2" },
227{ 259, "KP3", "3" },
228{ 260, "KP4", "4" },
229{ 261, "KP5", "5" },
230{ 262, "KP6", "6" },
231{ 263, "KP7", "7" },
232{ 264, "KP8", "8" },
233{ 265, "KP9", "9" },
234{ 266, "period", "." },
235{ 267, "KP_Divide", "/" },
236{ 268, "KP_Multiply", "*" },
237{ 269, "KP_Minus", "-" },
238{ 270, "KP_Plus", "+" },
239{ 271, "KP_Enter", "\015" },
240{ 272, "KP_Equals", "=" },
241
242{ NSUpArrowFunctionKey, "Up", "" },
243{ NSDownArrowFunctionKey, "Down", "" },
244{ NSRightArrowFunctionKey, "Right", "" },
245{ NSLeftArrowFunctionKey, "Left", "" },
246{ NSInsertFunctionKey, "Insert", "" },
247{ NSHomeFunctionKey, "Home", "" },
248{ NSEndFunctionKey, "End", "" },
249{ NSPageUpFunctionKey, "Prior", "" },
250{ NSPageDownFunctionKey, "Next", "" },
251{ NSDeleteFunctionKey, "Delete", "\010"},
252
253{ NSF1FunctionKey, "F1", "" },
254{ NSF2FunctionKey, "F2", "" },
255{ NSF3FunctionKey, "F3", "" },
256{ NSF4FunctionKey, "F4", "" },
257{ NSF5FunctionKey, "F5", "" },
258{ NSF6FunctionKey, "F6", "" },
259{ NSF7FunctionKey, "F7", "" },
260{ NSF8FunctionKey, "F8", "" },
261{ NSF9FunctionKey, "F9", "" },
262{ NSF10FunctionKey, "F10", "" },
263{ NSF11FunctionKey, "F11", "" },
264{ NSF12FunctionKey, "F12", "" },
265{ NSF13FunctionKey, "F13", "" },
266{ NSF14FunctionKey, "F14", "" },
267{ NSF15FunctionKey, "F15", "" },
268{ NSF16FunctionKey, "F16", "" },
269{ NSF17FunctionKey, "F17", "" },
270{ NSF18FunctionKey, "F18", "" },
271{ NSF19FunctionKey, "F19", "" },
272{ NSF20FunctionKey, "F20", "" },
273{ NSF21FunctionKey, "F21", "" },
274{ NSF22FunctionKey, "F22", "" },
275{ NSF23FunctionKey, "F23", "" },
276{ NSF24FunctionKey, "F24", "" },
277{ NSF25FunctionKey, "F25", "" },
278{ NSF26FunctionKey, "F26", "" },
279{ NSF27FunctionKey, "F27", "" },
280{ NSF28FunctionKey, "F28", "" },
281{ NSF29FunctionKey, "F29", "" },
282{ NSF30FunctionKey, "F30", "" },
283{ NSF31FunctionKey, "F31", "" },
284{ NSF32FunctionKey, "F32", "" },
285{ NSF33FunctionKey, "F33", "" },
286{ NSF34FunctionKey, "F34", "" },
287{ NSF35FunctionKey, "F35", "" },
288
289{ NSClearLineFunctionKey, "Num_Lock", "" },
290{ 301, "Caps_Lock", "" },
291{ NSScrollLockFunctionKey, "Scroll_Lock", "" },
292{ 303, "Shift_R", "Shift_R" },
293{ 304, "Shift_L", "Shift_L" },
294{ 305, "Control_R", "" },
295{ 306, "Control_L", "" },
296{ 307, "Alt_R", "" },
297{ 308, "Alt_L", "" },
298{ 309, "Meta_R", "" },
299{ 310, "Meta_L", "" },
300{ 311, "Super_L", "" },
301{ 312, "Super_R", "" },
302
303{ NSModeSwitchFunctionKey, "Mode", "" },
304{ 314, "Compose", "" },
305
306{ NSHelpFunctionKey, "Help", "" },
307{ NSPrintFunctionKey, "Print", "" },
308{ NSSysReqFunctionKey, "SysReq", "" },
309{ NSBreakFunctionKey, "Break", "" },
310{ NSMenuFunctionKey, "Menu", "" },
311{ 320, "Power", "" },
312{ 321, "Euro", "" },
313{ NSUndoFunctionKey, "Undo", "" }
314
315};
316
317#endif /* ECORE_COCOA_KEYS_H__ */