diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_sdl/Ecore_Sdl_Keys.h | 266 |
1 files changed, 266 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_sdl/Ecore_Sdl_Keys.h b/libraries/ecore/src/lib/ecore_sdl/Ecore_Sdl_Keys.h new file mode 100644 index 0000000..4d0b60b --- /dev/null +++ b/libraries/ecore/src/lib/ecore_sdl/Ecore_Sdl_Keys.h | |||
@@ -0,0 +1,266 @@ | |||
1 | #ifndef ECORE_SDL_KEYS_H__ | ||
2 | # define ECORE_SDL_KEYS_H__ | ||
3 | |||
4 | struct _ecore_sdl_keys_s | ||
5 | { | ||
6 | int code; | ||
7 | const char* name; | ||
8 | const char* compose; | ||
9 | }; | ||
10 | |||
11 | static const struct _ecore_sdl_keys_s keystable[] = | ||
12 | { | ||
13 | { SDLK_UNKNOWN, "0x00", "" }, | ||
14 | #ifndef BUILD_ECORE_EVAS_SDL_130 | ||
15 | { SDLK_FIRST, "First", "First" }, | ||
16 | #endif | ||
17 | { SDLK_BACKSPACE, "BackSpace", "\010" }, | ||
18 | { SDLK_TAB, "Tab", "\011" }, | ||
19 | { SDLK_CLEAR, "Clear", "Clear" }, | ||
20 | { SDLK_RETURN, "Return", "\015" }, | ||
21 | { SDLK_PAUSE, "Pause", "Pause" }, | ||
22 | { SDLK_ESCAPE, "Escape", "\033" }, | ||
23 | { SDLK_SPACE, "space", " " }, | ||
24 | { SDLK_EXCLAIM, "exclam", "!" }, | ||
25 | { SDLK_QUOTEDBL, "quotedbl", "\"" }, | ||
26 | { SDLK_HASH, "numbersign", "#" }, | ||
27 | { SDLK_DOLLAR, "dollar", "$" }, | ||
28 | { SDLK_AMPERSAND, "ampersand", "&" }, | ||
29 | { SDLK_QUOTE, "apostrophe", "'" }, | ||
30 | { SDLK_LEFTPAREN, "parenleft", "(" }, | ||
31 | { SDLK_RIGHTPAREN, "parenright", ")" }, | ||
32 | { SDLK_ASTERISK, "asterisk", "*" }, | ||
33 | { SDLK_PLUS, "plus", "+" }, | ||
34 | { SDLK_COMMA, "comma", "," }, | ||
35 | { SDLK_MINUS, "minus", "-" }, | ||
36 | { SDLK_PERIOD, "period", "." }, | ||
37 | { SDLK_SLASH, "slash", "/" }, | ||
38 | { SDLK_0, "0", "0" }, | ||
39 | { SDLK_1, "1", "1" }, | ||
40 | { SDLK_2, "2", "2" }, | ||
41 | { SDLK_3, "3", "3" }, | ||
42 | { SDLK_4, "4", "4" }, | ||
43 | { SDLK_5, "5", "5" }, | ||
44 | { SDLK_6, "6", "6" }, | ||
45 | { SDLK_7, "7", "7" }, | ||
46 | { SDLK_8, "8", "8" }, | ||
47 | { SDLK_9, "9", "9" }, | ||
48 | { SDLK_COLON, "colon", ":" }, | ||
49 | { SDLK_SEMICOLON, "semicolon", ";" }, | ||
50 | { SDLK_LESS, "less", "<" }, | ||
51 | { SDLK_EQUALS, "equal", "=" }, | ||
52 | { SDLK_GREATER, "greater", ">" }, | ||
53 | { SDLK_QUESTION, "question", "?" }, | ||
54 | { SDLK_AT, "at", "@" }, | ||
55 | |||
56 | /* Skip uppercase letters */ | ||
57 | { SDLK_LEFTBRACKET, "bracketleft", "[" }, | ||
58 | { SDLK_BACKSLASH, "backslash", "\\" }, | ||
59 | { SDLK_RIGHTBRACKET, "bracketright", "]" }, | ||
60 | { SDLK_CARET, "asciicircumm", "^" }, | ||
61 | { SDLK_UNDERSCORE, "underscore", "_" }, | ||
62 | { SDLK_BACKQUOTE, "asciitilde", "`" }, | ||
63 | { SDLK_a, "a", "a" }, | ||
64 | { SDLK_b, "b", "b" }, | ||
65 | { SDLK_c, "c", "c" }, | ||
66 | { SDLK_d, "d", "d" }, | ||
67 | { SDLK_e, "e", "e" }, | ||
68 | { SDLK_f, "f", "f" }, | ||
69 | { SDLK_g, "g", "g" }, | ||
70 | { SDLK_h, "h", "h" }, | ||
71 | { SDLK_i, "i", "i" }, | ||
72 | { SDLK_j, "j", "j" }, | ||
73 | { SDLK_k, "k", "k" }, | ||
74 | { SDLK_l, "l", "l" }, | ||
75 | { SDLK_m, "m", "m" }, | ||
76 | { SDLK_n, "n", "n" }, | ||
77 | { SDLK_o, "o", "o" }, | ||
78 | { SDLK_p, "p", "p" }, | ||
79 | { SDLK_q, "q", "q" }, | ||
80 | { SDLK_r, "r", "r" }, | ||
81 | { SDLK_s, "s", "s" }, | ||
82 | { SDLK_t, "t", "t" }, | ||
83 | { SDLK_u, "u", "u" }, | ||
84 | { SDLK_v, "v", "v" }, | ||
85 | { SDLK_w, "w", "w" }, | ||
86 | { SDLK_x, "x", "x" }, | ||
87 | { SDLK_y, "y", "y" }, | ||
88 | { SDLK_z, "z", "z" }, | ||
89 | { SDLK_DELETE, "Delete", "\177" }, | ||
90 | /* End of ASCII mapped keysyms */ | ||
91 | |||
92 | #ifndef BUILD_ECORE_EVAS_SDL_130 | ||
93 | /* International keyboard syms */ | ||
94 | { SDLK_WORLD_0, "w0", "" }, /* 0xA0 */ | ||
95 | { SDLK_WORLD_1, "w1", "" }, | ||
96 | { SDLK_WORLD_2, "w2", "" }, | ||
97 | { SDLK_WORLD_3, "w3", "" }, | ||
98 | { SDLK_WORLD_4, "w4", "" }, | ||
99 | { SDLK_WORLD_5, "w5", "" }, | ||
100 | { SDLK_WORLD_6, "w6", "" }, | ||
101 | { SDLK_WORLD_7, "w7", "" }, | ||
102 | { SDLK_WORLD_8, "w8", "" }, | ||
103 | { SDLK_WORLD_9, "w9", "" }, | ||
104 | { SDLK_WORLD_10, "w10", "" }, | ||
105 | { SDLK_WORLD_11, "w11", "" }, | ||
106 | { SDLK_WORLD_12, "w12", "" }, | ||
107 | { SDLK_WORLD_13, "w13", "" }, | ||
108 | { SDLK_WORLD_14, "w14", "" }, | ||
109 | { SDLK_WORLD_15, "w15", "" }, | ||
110 | { SDLK_WORLD_16, "w16", "" }, | ||
111 | { SDLK_WORLD_17, "w17", "" }, | ||
112 | { SDLK_WORLD_18, "w18", "" }, | ||
113 | { SDLK_WORLD_19, "w19", "" }, | ||
114 | { SDLK_WORLD_20, "w20", "" }, | ||
115 | { SDLK_WORLD_21, "w21", "" }, | ||
116 | { SDLK_WORLD_22, "w22", "" }, | ||
117 | { SDLK_WORLD_23, "w23", "" }, | ||
118 | { SDLK_WORLD_24, "w24", "" }, | ||
119 | { SDLK_WORLD_25, "w25", "" }, | ||
120 | { SDLK_WORLD_26, "w26", "" }, | ||
121 | { SDLK_WORLD_27, "w27", "" }, | ||
122 | { SDLK_WORLD_28, "w28", "" }, | ||
123 | { SDLK_WORLD_29, "w29", "" }, | ||
124 | { SDLK_WORLD_30, "w30", "" }, | ||
125 | { SDLK_WORLD_31, "w31", "" }, | ||
126 | { SDLK_WORLD_32, "w32", "" }, | ||
127 | { SDLK_WORLD_33, "w33", "" }, | ||
128 | { SDLK_WORLD_34, "w34", "" }, | ||
129 | { SDLK_WORLD_35, "w35", "" }, | ||
130 | { SDLK_WORLD_36, "w36", "" }, | ||
131 | { SDLK_WORLD_37, "w37", "" }, | ||
132 | { SDLK_WORLD_38, "w38", "" }, | ||
133 | { SDLK_WORLD_39, "w39", "" }, | ||
134 | { SDLK_WORLD_40, "w40", "" }, | ||
135 | { SDLK_WORLD_41, "w41", "" }, | ||
136 | { SDLK_WORLD_42, "w42", "" }, | ||
137 | { SDLK_WORLD_43, "w43", "" }, | ||
138 | { SDLK_WORLD_44, "w44", "" }, | ||
139 | { SDLK_WORLD_45, "w45", "" }, | ||
140 | { SDLK_WORLD_46, "w46", "" }, | ||
141 | { SDLK_WORLD_47, "w47", "" }, | ||
142 | { SDLK_WORLD_48, "w48", "" }, | ||
143 | { SDLK_WORLD_49, "w49", "" }, | ||
144 | { SDLK_WORLD_50, "w50", "" }, | ||
145 | { SDLK_WORLD_51, "w51", "" }, | ||
146 | { SDLK_WORLD_52, "w52", "" }, | ||
147 | { SDLK_WORLD_53, "w53", "" }, | ||
148 | { SDLK_WORLD_54, "w54", "" }, | ||
149 | { SDLK_WORLD_55, "w55", "" }, | ||
150 | { SDLK_WORLD_56, "w56", "" }, | ||
151 | { SDLK_WORLD_57, "w57", "" }, | ||
152 | { SDLK_WORLD_58, "w58", "" }, | ||
153 | { SDLK_WORLD_59, "w59", "" }, | ||
154 | { SDLK_WORLD_60, "w60", "" }, | ||
155 | { SDLK_WORLD_61, "w61", "" }, | ||
156 | { SDLK_WORLD_62, "w62", "" }, | ||
157 | { SDLK_WORLD_63, "w63", "" }, | ||
158 | { SDLK_WORLD_64, "w64", "" }, | ||
159 | { SDLK_WORLD_65, "w65", "" }, | ||
160 | { SDLK_WORLD_66, "w66", "" }, | ||
161 | { SDLK_WORLD_67, "w67", "" }, | ||
162 | { SDLK_WORLD_68, "w68", "" }, | ||
163 | { SDLK_WORLD_69, "w69", "" }, | ||
164 | { SDLK_WORLD_70, "w70", "" }, | ||
165 | { SDLK_WORLD_71, "w71", "" }, | ||
166 | { SDLK_WORLD_72, "w72", "" }, | ||
167 | { SDLK_WORLD_73, "w73", "" }, | ||
168 | { SDLK_WORLD_74, "w74", "" }, | ||
169 | { SDLK_WORLD_75, "w75", "" }, | ||
170 | { SDLK_WORLD_76, "w76", "" }, | ||
171 | { SDLK_WORLD_77, "w77", "" }, | ||
172 | { SDLK_WORLD_78, "w78", "" }, | ||
173 | { SDLK_WORLD_79, "w79", "" }, | ||
174 | { SDLK_WORLD_80, "w80", "" }, | ||
175 | { SDLK_WORLD_81, "w81", "" }, | ||
176 | { SDLK_WORLD_82, "w82", "" }, | ||
177 | { SDLK_WORLD_83, "w83", "" }, | ||
178 | { SDLK_WORLD_84, "w84", "" }, | ||
179 | { SDLK_WORLD_85, "w85", "" }, | ||
180 | { SDLK_WORLD_86, "w86", "" }, | ||
181 | { SDLK_WORLD_87, "w87", "" }, | ||
182 | { SDLK_WORLD_88, "w88", "" }, | ||
183 | { SDLK_WORLD_89, "w89", "" }, | ||
184 | { SDLK_WORLD_90, "w90", "" }, | ||
185 | { SDLK_WORLD_91, "w91", "" }, | ||
186 | { SDLK_WORLD_92, "w92", "" }, | ||
187 | { SDLK_WORLD_93, "w93", "" }, | ||
188 | { SDLK_WORLD_94, "w94", "" }, | ||
189 | { SDLK_WORLD_95, "w95", "" }, | ||
190 | #endif | ||
191 | /* Numeric keypad */ | ||
192 | { SDLK_KP0, "KP0", "0" }, | ||
193 | { SDLK_KP1, "KP1", "1" }, | ||
194 | { SDLK_KP2, "KP2", "2" }, | ||
195 | { SDLK_KP3, "KP3", "3" }, | ||
196 | { SDLK_KP4, "KP4", "4" }, | ||
197 | { SDLK_KP5, "KP5", "5" }, | ||
198 | { SDLK_KP6, "KP6", "6" }, | ||
199 | { SDLK_KP7, "KP7", "7" }, | ||
200 | { SDLK_KP8, "KP8", "8" }, | ||
201 | { SDLK_KP9, "KP9", "9" }, | ||
202 | { SDLK_KP_PERIOD, "period", "." }, | ||
203 | { SDLK_KP_DIVIDE, "KP_Divide", "/" }, | ||
204 | { SDLK_KP_MULTIPLY, "KP_Multiply", "*" }, | ||
205 | { SDLK_KP_MINUS, "KP_Minus", "-" }, | ||
206 | { SDLK_KP_PLUS, "KP_Plus", "+" }, | ||
207 | { SDLK_KP_ENTER, "KP_Enter", "\015" }, | ||
208 | { SDLK_KP_EQUALS, "KP_Equals", "=" }, | ||
209 | |||
210 | /* Arrows + Home/End pad */ | ||
211 | { SDLK_UP, "Up", "Up" }, | ||
212 | { SDLK_DOWN, "Down", "Down" }, | ||
213 | { SDLK_RIGHT, "Right", "Right" }, | ||
214 | { SDLK_LEFT, "Left", "Left" }, | ||
215 | { SDLK_INSERT, "Insert", "Insert" }, | ||
216 | { SDLK_HOME, "Home", "Home" }, | ||
217 | { SDLK_END, "End", "End" }, | ||
218 | { SDLK_PAGEUP, "Page_Up", "Page_Up" }, | ||
219 | { SDLK_PAGEDOWN, "Page_Down", "Page_Down" }, | ||
220 | |||
221 | /* Function keys */ | ||
222 | { SDLK_F1, "F1", "F1" }, | ||
223 | { SDLK_F2, "F2", "F2" }, | ||
224 | { SDLK_F3, "F3", "F3" }, | ||
225 | { SDLK_F4, "F4", "F4" }, | ||
226 | { SDLK_F5, "F5", "F5" }, | ||
227 | { SDLK_F6, "F6", "F6" }, | ||
228 | { SDLK_F7, "F7", "F7" }, | ||
229 | { SDLK_F8, "F8", "F8" }, | ||
230 | { SDLK_F9, "F9", "F9" }, | ||
231 | { SDLK_F10, "F10", "F10" }, | ||
232 | { SDLK_F11, "F11", "F11" }, | ||
233 | { SDLK_F12, "F12", "F12" }, | ||
234 | { SDLK_F13, "F13", "F13" }, | ||
235 | { SDLK_F14, "F14", "F14" }, | ||
236 | { SDLK_F15, "F15", "F15" }, | ||
237 | |||
238 | /* Key state modifier keys */ | ||
239 | { SDLK_NUMLOCK, "Num_Lock", "Num_Lock" }, | ||
240 | { SDLK_CAPSLOCK, "Caps_Lock", "Caps_Lock" }, | ||
241 | { SDLK_SCROLLOCK, "Scroll_Lock", "Scroll_Lock" }, | ||
242 | { SDLK_RSHIFT, "Shift_R", "Shift_R" }, | ||
243 | { SDLK_LSHIFT, "Shift_L", "Shift_L" }, | ||
244 | { SDLK_RCTRL, "Control_R", "Control_R" }, | ||
245 | { SDLK_LCTRL, "Control_L", "Control_L" }, | ||
246 | { SDLK_RALT, "Alt_R", "Alt_R" }, | ||
247 | { SDLK_LALT, "Alt_L", "Alt_L" }, | ||
248 | { SDLK_RMETA, "Meta_R", "Meta_R" }, | ||
249 | { SDLK_LMETA, "Meta_L", "Meta_L" }, | ||
250 | { SDLK_LSUPER, "Super_L", "Super_L" }, /* Left "Windows" key */ | ||
251 | { SDLK_RSUPER, "Super_R", "Super_R" }, /* Right "Windows" key */ | ||
252 | { SDLK_MODE, "Mode", "Mode" }, /* "Alt Gr" key */ | ||
253 | { SDLK_COMPOSE, "Compose", "Compose" }, /* Multi-key compose key */ | ||
254 | |||
255 | /* Miscellaneous function keys */ | ||
256 | { SDLK_HELP, "Help", "Help" }, | ||
257 | { SDLK_PRINT, "Print", "Print" }, | ||
258 | { SDLK_SYSREQ, "SysReq", "SysReq" }, | ||
259 | { SDLK_BREAK, "Break", "Break" }, | ||
260 | { SDLK_MENU, "Menu", "Menu" }, | ||
261 | { SDLK_POWER, "Power", "Power" }, /* Power Macintosh power key */ | ||
262 | { SDLK_EURO, "Euro", "\200" }, /* Some european keyboards */ | ||
263 | { SDLK_UNDO, "Undo", "Undo" } /* Atari keyboard has Undo */ | ||
264 | }; | ||
265 | |||
266 | #endif /* ECORE_SDL_KEYS_H__ */ | ||