VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/xkbDflts.h@ 69348

Last change on this file since 69348 was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 18.5 KB
Line 
1/* $Xorg: xkbDflts.h,v 1.3 2000/08/17 19:53:47 cpqbld Exp $ */
2/* $XFree86: xc/programs/Xserver/xkb/xkbDflts.h,v 1.2 2001/10/28 03:34:20 tsi Exp $ */
3/* This file generated automatically by xkbcomp */
4/* DO NOT EDIT */
5#ifdef HAVE_DIX_CONFIG_H
6#include <dix-config.h>
7#endif
8
9#ifndef DEFAULT_H
10#define DEFAULT_H 1
11
12#ifndef XKB_IN_SERVER
13#define GET_ATOM(d,s) XInternAtom(d,s,0)
14#define DPYTYPE Display *
15#else
16#define GET_ATOM(d,s) MakeAtom(s,strlen(s),1)
17#define DPYTYPE char *
18#endif
19#define NUM_KEYS 1
20
21#define vmod_NumLock 0
22#define vmod_Alt 1
23#define vmod_LevelThree 2
24#define vmod_AltGr 3
25#define vmod_ScrollLock 4
26
27#define vmod_NumLockMask (1<<0)
28#define vmod_AltMask (1<<1)
29#define vmod_LevelThreeMask (1<<2)
30#define vmod_AltGrMask (1<<3)
31#define vmod_ScrollLockMask (1<<4)
32
33/* types name is "default" */
34static Atom lnames_ONE_LEVEL[1];
35
36static XkbKTMapEntryRec map_TWO_LEVEL[1]= {
37 { 1, 1, { ShiftMask, ShiftMask, 0 } }
38};
39static Atom lnames_TWO_LEVEL[2];
40
41static XkbKTMapEntryRec map_ALPHABETIC[2]= {
42 { 1, 1, { ShiftMask, ShiftMask, 0 } },
43 { 1, 0, { LockMask, LockMask, 0 } }
44};
45static XkbModsRec preserve_ALPHABETIC[2]= {
46 { 0, 0, 0 },
47 { LockMask, LockMask, 0 }
48};
49static Atom lnames_ALPHABETIC[2];
50
51static XkbKTMapEntryRec map_KEYPAD[2]= {
52 { 1, 1, { ShiftMask, ShiftMask, 0 } },
53 { 0, 1, { 0, 0, vmod_NumLockMask } }
54};
55static Atom lnames_KEYPAD[2];
56
57static XkbKTMapEntryRec map_PC_BREAK[1]= {
58 { 1, 1, { ControlMask, ControlMask, 0 } }
59};
60static Atom lnames_PC_BREAK[2];
61
62static XkbKTMapEntryRec map_PC_SYSRQ[1]= {
63 { 0, 1, { 0, 0, vmod_AltMask } }
64};
65static Atom lnames_PC_SYSRQ[2];
66
67static XkbKTMapEntryRec map_CTRL_ALT[1]= {
68 { 0, 1, { ControlMask, ControlMask, vmod_AltMask } }
69};
70static Atom lnames_CTRL_ALT[2];
71
72static XkbKTMapEntryRec map_THREE_LEVEL[3]= {
73 { 1, 1, { ShiftMask, ShiftMask, 0 } },
74 { 0, 2, { 0, 0, vmod_LevelThreeMask } },
75 { 0, 2, { ShiftMask, ShiftMask, vmod_LevelThreeMask } }
76};
77static Atom lnames_THREE_LEVEL[3];
78
79static XkbKTMapEntryRec map_SHIFT_ALT[1]= {
80 { 0, 1, { ShiftMask, ShiftMask, vmod_AltMask } }
81};
82static Atom lnames_SHIFT_ALT[2];
83
84static XkbKeyTypeRec dflt_types[]= {
85 {
86 { 0, 0, 0 },
87 1,
88 0, NULL, NULL,
89 None, lnames_ONE_LEVEL
90 },
91 {
92 { ShiftMask, ShiftMask, 0 },
93 2,
94 1, map_TWO_LEVEL, NULL,
95 None, lnames_TWO_LEVEL
96 },
97 {
98 { ShiftMask|LockMask, ShiftMask|LockMask, 0 },
99 2,
100 2, map_ALPHABETIC, preserve_ALPHABETIC,
101 None, lnames_ALPHABETIC
102 },
103 {
104 { ShiftMask, ShiftMask, vmod_NumLockMask },
105 2,
106 2, map_KEYPAD, NULL,
107 None, lnames_KEYPAD
108 },
109 {
110 { ControlMask, ControlMask, 0 },
111 2,
112 1, map_PC_BREAK, NULL,
113 None, lnames_PC_BREAK
114 },
115 {
116 { 0, 0, vmod_AltMask },
117 2,
118 1, map_PC_SYSRQ, NULL,
119 None, lnames_PC_SYSRQ
120 },
121 {
122 { ControlMask, ControlMask, vmod_AltMask },
123 2,
124 1, map_CTRL_ALT, NULL,
125 None, lnames_CTRL_ALT
126 },
127 {
128 { ShiftMask, ShiftMask, vmod_LevelThreeMask },
129 3,
130 3, map_THREE_LEVEL, NULL,
131 None, lnames_THREE_LEVEL
132 },
133 {
134 { ShiftMask, ShiftMask, vmod_AltMask },
135 2,
136 1, map_SHIFT_ALT, NULL,
137 None, lnames_SHIFT_ALT
138 }
139};
140#define num_dflt_types (sizeof(dflt_types)/sizeof(XkbKeyTypeRec))
141
142
143static void
144initTypeNames(DPYTYPE dpy)
145{
146 dflt_types[0].name= GET_ATOM(dpy,"ONE_LEVEL");
147 lnames_ONE_LEVEL[0]= GET_ATOM(dpy,"Any");
148 dflt_types[1].name= GET_ATOM(dpy,"TWO_LEVEL");
149 lnames_TWO_LEVEL[0]= GET_ATOM(dpy,"Base");
150 lnames_TWO_LEVEL[1]= GET_ATOM(dpy,"Shift");
151 dflt_types[2].name= GET_ATOM(dpy,"ALPHABETIC");
152 lnames_ALPHABETIC[0]= GET_ATOM(dpy,"Base");
153 lnames_ALPHABETIC[1]= GET_ATOM(dpy,"Caps");
154 dflt_types[3].name= GET_ATOM(dpy,"KEYPAD");
155 lnames_KEYPAD[0]= GET_ATOM(dpy,"Base");
156 lnames_KEYPAD[1]= GET_ATOM(dpy,"Number");
157 dflt_types[4].name= GET_ATOM(dpy,"PC_BREAK");
158 lnames_PC_BREAK[0]= GET_ATOM(dpy,"Base");
159 lnames_PC_BREAK[1]= GET_ATOM(dpy,"Control");
160 dflt_types[5].name= GET_ATOM(dpy,"PC_SYSRQ");
161 lnames_PC_SYSRQ[0]= GET_ATOM(dpy,"Base");
162 lnames_PC_SYSRQ[1]= GET_ATOM(dpy,"Alt");
163 dflt_types[6].name= GET_ATOM(dpy,"CTRL+ALT");
164 lnames_CTRL_ALT[0]= GET_ATOM(dpy,"Base");
165 lnames_CTRL_ALT[1]= GET_ATOM(dpy,"Ctrl+Alt");
166 dflt_types[7].name= GET_ATOM(dpy,"THREE_LEVEL");
167 lnames_THREE_LEVEL[0]= GET_ATOM(dpy,"Base");
168 lnames_THREE_LEVEL[1]= GET_ATOM(dpy,"Shift");
169 lnames_THREE_LEVEL[2]= GET_ATOM(dpy,"Level3");
170 dflt_types[8].name= GET_ATOM(dpy,"SHIFT+ALT");
171 lnames_SHIFT_ALT[0]= GET_ATOM(dpy,"Base");
172 lnames_SHIFT_ALT[1]= GET_ATOM(dpy,"Shift+Alt");
173}
174/* compat name is "default" */
175static XkbSymInterpretRec dfltSI[69]= {
176 { XK_ISO_Level2_Latch, 0x0000,
177 XkbSI_LevelOneOnly|XkbSI_Exactly, ShiftMask,
178 255,
179 { XkbSA_LatchMods, { 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
180 { XK_Eisu_Shift, 0x0000,
181 XkbSI_Exactly, LockMask,
182 255,
183 { XkbSA_NoAction, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
184 { XK_Eisu_toggle, 0x0000,
185 XkbSI_Exactly, LockMask,
186 255,
187 { XkbSA_NoAction, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
188 { XK_Kana_Shift, 0x0000,
189 XkbSI_Exactly, LockMask,
190 255,
191 { XkbSA_NoAction, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
192 { XK_Kana_Lock, 0x0000,
193 XkbSI_Exactly, LockMask,
194 255,
195 { XkbSA_NoAction, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
196 { XK_Shift_Lock, 0x0000,
197 XkbSI_AnyOf, ShiftMask|LockMask,
198 255,
199 { XkbSA_LockMods, { 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
200 { XK_Num_Lock, 0x0000,
201 XkbSI_AnyOf, 0xff,
202 0,
203 { XkbSA_LockMods, { 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00 } } },
204 { XK_Alt_L, 0x0000,
205 XkbSI_AnyOf, 0xff,
206 1,
207 { XkbSA_SetMods, { 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
208 { XK_Alt_R, 0x0000,
209 XkbSI_AnyOf, 0xff,
210 1,
211 { XkbSA_SetMods, { 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
212 { XK_Scroll_Lock, 0x0000,
213 XkbSI_AnyOf, 0xff,
214 4,
215 { XkbSA_LockMods, { 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
216 { XK_ISO_Lock, 0x0000,
217 XkbSI_AnyOf, 0xff,
218 255,
219 { XkbSA_ISOLock, { 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
220 { XK_ISO_Level3_Shift, 0x0000,
221 XkbSI_LevelOneOnly|XkbSI_AnyOf, 0xff,
222 2,
223 { XkbSA_SetMods, { 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00 } } },
224 { XK_ISO_Level3_Latch, 0x0000,
225 XkbSI_LevelOneOnly|XkbSI_AnyOf, 0xff,
226 2,
227 { XkbSA_LatchMods, { 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00 } } },
228 { XK_Mode_switch, 0x0000,
229 XkbSI_LevelOneOnly|XkbSI_AnyOfOrNone, 0xff,
230 3,
231 { XkbSA_SetGroup, { 0x05, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
232 { XK_KP_1, 0x0001,
233 XkbSI_AnyOfOrNone, 0xff,
234 255,
235 { XkbSA_MovePtr, { 0x00, 0xff, 0xff, 0x00, 0x01, 0x00, 0x00 } } },
236 { XK_KP_End, 0x0001,
237 XkbSI_AnyOfOrNone, 0xff,
238 255,
239 { XkbSA_MovePtr, { 0x00, 0xff, 0xff, 0x00, 0x01, 0x00, 0x00 } } },
240 { XK_KP_2, 0x0001,
241 XkbSI_AnyOfOrNone, 0xff,
242 255,
243 { XkbSA_MovePtr, { 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00 } } },
244 { XK_KP_Down, 0x0001,
245 XkbSI_AnyOfOrNone, 0xff,
246 255,
247 { XkbSA_MovePtr, { 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00 } } },
248 { XK_KP_3, 0x0001,
249 XkbSI_AnyOfOrNone, 0xff,
250 255,
251 { XkbSA_MovePtr, { 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00 } } },
252 { XK_KP_Next, 0x0001,
253 XkbSI_AnyOfOrNone, 0xff,
254 255,
255 { XkbSA_MovePtr, { 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00 } } },
256 { XK_KP_4, 0x0001,
257 XkbSI_AnyOfOrNone, 0xff,
258 255,
259 { XkbSA_MovePtr, { 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 } } },
260 { XK_KP_Left, 0x0001,
261 XkbSI_AnyOfOrNone, 0xff,
262 255,
263 { XkbSA_MovePtr, { 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 } } },
264 { XK_KP_6, 0x0001,
265 XkbSI_AnyOfOrNone, 0xff,
266 255,
267 { XkbSA_MovePtr, { 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
268 { XK_KP_Right, 0x0001,
269 XkbSI_AnyOfOrNone, 0xff,
270 255,
271 { XkbSA_MovePtr, { 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
272 { XK_KP_7, 0x0001,
273 XkbSI_AnyOfOrNone, 0xff,
274 255,
275 { XkbSA_MovePtr, { 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00 } } },
276 { XK_KP_Home, 0x0001,
277 XkbSI_AnyOfOrNone, 0xff,
278 255,
279 { XkbSA_MovePtr, { 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00 } } },
280 { XK_KP_8, 0x0001,
281 XkbSI_AnyOfOrNone, 0xff,
282 255,
283 { XkbSA_MovePtr, { 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00 } } },
284 { XK_KP_Up, 0x0001,
285 XkbSI_AnyOfOrNone, 0xff,
286 255,
287 { XkbSA_MovePtr, { 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00 } } },
288 { XK_KP_9, 0x0001,
289 XkbSI_AnyOfOrNone, 0xff,
290 255,
291 { XkbSA_MovePtr, { 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00 } } },
292 { XK_KP_Prior, 0x0001,
293 XkbSI_AnyOfOrNone, 0xff,
294 255,
295 { XkbSA_MovePtr, { 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00 } } },
296 { XK_KP_5, 0x0001,
297 XkbSI_AnyOfOrNone, 0xff,
298 255,
299 { XkbSA_PtrBtn, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
300 { XK_KP_Begin, 0x0001,
301 XkbSI_AnyOfOrNone, 0xff,
302 255,
303 { XkbSA_PtrBtn, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
304 { XK_KP_F1, 0x0001,
305 XkbSI_AnyOfOrNone, 0xff,
306 255,
307 { XkbSA_SetPtrDflt, { 0x04, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
308 { XK_KP_Divide, 0x0001,
309 XkbSI_AnyOfOrNone, 0xff,
310 255,
311 { XkbSA_SetPtrDflt, { 0x04, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
312 { XK_KP_F2, 0x0001,
313 XkbSI_AnyOfOrNone, 0xff,
314 255,
315 { XkbSA_SetPtrDflt, { 0x04, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00 } } },
316 { XK_KP_Multiply, 0x0001,
317 XkbSI_AnyOfOrNone, 0xff,
318 255,
319 { XkbSA_SetPtrDflt, { 0x04, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00 } } },
320 { XK_KP_F3, 0x0001,
321 XkbSI_AnyOfOrNone, 0xff,
322 255,
323 { XkbSA_SetPtrDflt, { 0x04, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00 } } },
324 { XK_KP_Subtract, 0x0001,
325 XkbSI_AnyOfOrNone, 0xff,
326 255,
327 { XkbSA_SetPtrDflt, { 0x04, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00 } } },
328 { XK_KP_Separator, 0x0001,
329 XkbSI_AnyOfOrNone, 0xff,
330 255,
331 { XkbSA_PtrBtn, { 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
332 { XK_KP_Add, 0x0001,
333 XkbSI_AnyOfOrNone, 0xff,
334 255,
335 { XkbSA_PtrBtn, { 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
336 { XK_KP_0, 0x0001,
337 XkbSI_AnyOfOrNone, 0xff,
338 255,
339 { XkbSA_LockPtrBtn, { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
340 { XK_KP_Insert, 0x0001,
341 XkbSI_AnyOfOrNone, 0xff,
342 255,
343 { XkbSA_LockPtrBtn, { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
344 { XK_KP_Decimal, 0x0001,
345 XkbSI_AnyOfOrNone, 0xff,
346 255,
347 { XkbSA_LockPtrBtn, { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
348 { XK_KP_Delete, 0x0001,
349 XkbSI_AnyOfOrNone, 0xff,
350 255,
351 { XkbSA_LockPtrBtn, { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
352 { XK_Pointer_Button_Dflt, 0x0000,
353 XkbSI_AnyOfOrNone, 0xff,
354 255,
355 { XkbSA_PtrBtn, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
356 { XK_Pointer_Button1, 0x0000,
357 XkbSI_AnyOfOrNone, 0xff,
358 255,
359 { XkbSA_PtrBtn, { 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
360 { XK_Pointer_Button2, 0x0000,
361 XkbSI_AnyOfOrNone, 0xff,
362 255,
363 { XkbSA_PtrBtn, { 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00 } } },
364 { XK_Pointer_Button3, 0x0000,
365 XkbSI_AnyOfOrNone, 0xff,
366 255,
367 { XkbSA_PtrBtn, { 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00 } } },
368 { XK_Pointer_DblClick_Dflt, 0x0000,
369 XkbSI_AnyOfOrNone, 0xff,
370 255,
371 { XkbSA_PtrBtn, { 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
372 { XK_Pointer_DblClick1, 0x0000,
373 XkbSI_AnyOfOrNone, 0xff,
374 255,
375 { XkbSA_PtrBtn, { 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
376 { XK_Pointer_DblClick2, 0x0000,
377 XkbSI_AnyOfOrNone, 0xff,
378 255,
379 { XkbSA_PtrBtn, { 0x00, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00 } } },
380 { XK_Pointer_DblClick3, 0x0000,
381 XkbSI_AnyOfOrNone, 0xff,
382 255,
383 { XkbSA_PtrBtn, { 0x00, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00 } } },
384 { XK_Pointer_Drag_Dflt, 0x0000,
385 XkbSI_AnyOfOrNone, 0xff,
386 255,
387 { XkbSA_LockPtrBtn, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
388 { XK_Pointer_Drag1, 0x0000,
389 XkbSI_AnyOfOrNone, 0xff,
390 255,
391 { XkbSA_LockPtrBtn, { 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
392 { XK_Pointer_Drag2, 0x0000,
393 XkbSI_AnyOfOrNone, 0xff,
394 255,
395 { XkbSA_LockPtrBtn, { 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00 } } },
396 { XK_Pointer_Drag3, 0x0000,
397 XkbSI_AnyOfOrNone, 0xff,
398 255,
399 { XkbSA_LockPtrBtn, { 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00 } } },
400 { XK_Pointer_EnableKeys, 0x0000,
401 XkbSI_AnyOfOrNone, 0xff,
402 255,
403 { XkbSA_LockControls, { 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00 } } },
404 { XK_Pointer_Accelerate, 0x0000,
405 XkbSI_AnyOfOrNone, 0xff,
406 255,
407 { XkbSA_LockControls, { 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00 } } },
408 { XK_Pointer_DfltBtnNext, 0x0000,
409 XkbSI_AnyOfOrNone, 0xff,
410 255,
411 { XkbSA_SetPtrDflt, { 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 } } },
412 { XK_Pointer_DfltBtnPrev, 0x0000,
413 XkbSI_AnyOfOrNone, 0xff,
414 255,
415 { XkbSA_SetPtrDflt, { 0x00, 0x01, 0xff, 0x00, 0x00, 0x00, 0x00 } } },
416 { XK_AccessX_Enable, 0x0000,
417 XkbSI_AnyOfOrNone, 0xff,
418 255,
419 { XkbSA_LockControls, { 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00 } } },
420 { XK_Terminate_Server, 0x0000,
421 XkbSI_AnyOfOrNone, 0xff,
422 255,
423 { XkbSA_Terminate, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
424 { XK_ISO_Group_Latch, 0x0000,
425 XkbSI_LevelOneOnly|XkbSI_AnyOfOrNone, 0xff,
426 3,
427 { XkbSA_LatchGroup, { 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
428 { XK_ISO_Next_Group, 0x0000,
429 XkbSI_LevelOneOnly|XkbSI_AnyOfOrNone, 0xff,
430 3,
431 { XkbSA_LockGroup, { 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
432 { XK_ISO_Prev_Group, 0x0000,
433 XkbSI_LevelOneOnly|XkbSI_AnyOfOrNone, 0xff,
434 3,
435 { XkbSA_LockGroup, { 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
436 { XK_ISO_First_Group, 0x0000,
437 XkbSI_AnyOfOrNone, 0xff,
438 255,
439 { XkbSA_LockGroup, { 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
440 { XK_ISO_Last_Group, 0x0000,
441 XkbSI_AnyOfOrNone, 0xff,
442 255,
443 { XkbSA_LockGroup, { 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 } } },
444 { NoSymbol, 0x0000,
445 XkbSI_Exactly, LockMask,
446 255,
447 { XkbSA_LockMods, { 0x00, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00 } } },
448 { NoSymbol, 0x0000,
449 XkbSI_AnyOf, 0xff,
450 255,
451 { XkbSA_SetMods, { 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } } }
452};
453#define num_dfltSI (sizeof(dfltSI)/sizeof(XkbSymInterpretRec))
454
455static XkbCompatMapRec compatMap= {
456 dfltSI,
457 { /* group compatibility */
458 { 0, 0, 0 },
459 { 0, 0, vmod_AltGrMask },
460 { 0, 0, vmod_AltGrMask },
461 { 0, 0, vmod_AltGrMask }
462 },
463 num_dfltSI, num_dfltSI
464};
465
466static XkbIndicatorRec indicators= {
467 0x0,
468 {
469 { 0x80, 0, 0x00, XkbIM_UseEffective, { LockMask, LockMask, 0 }, 0 },
470 { 0x80, 0, 0x00, XkbIM_UseEffective, { 0, 0, vmod_NumLockMask }, 0 },
471 { 0x80, 0, 0x00, XkbIM_UseLocked, { ShiftMask, ShiftMask, 0 }, 0 },
472 { 0x80, 0, 0x00, 0, { 0, 0, 0 }, XkbMouseKeysMask },
473 { 0x80, 0, 0x00, XkbIM_UseLocked, { 0, 0, vmod_ScrollLockMask }, 0 },
474 { 0x80, XkbIM_UseEffective, 0xfe, 0, { 0, 0, 0 }, 0 },
475 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
476 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
477 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
478 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
479 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
480 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
481 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
482 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
483 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
484 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
485 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
486 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
487 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
488 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
489 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
490 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
491 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
492 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
493 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
494 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
495 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
496 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
497 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
498 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
499 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 },
500 { 0x00, 0, 0x00, 0, { 0, 0, 0 }, 0 }
501 }
502};
503static void
504initIndicatorNames(DPYTYPE dpy,XkbDescPtr xkb)
505{
506 xkb->names->indicators[ 0]= GET_ATOM(dpy,"Caps Lock");
507 xkb->names->indicators[ 1]= GET_ATOM(dpy,"Num Lock");
508 xkb->names->indicators[ 2]= GET_ATOM(dpy,"Shift Lock");
509 xkb->names->indicators[ 3]= GET_ATOM(dpy,"Mouse Keys");
510 xkb->names->indicators[ 4]= GET_ATOM(dpy,"Scroll Lock");
511 xkb->names->indicators[ 5]= GET_ATOM(dpy,"Group 2");
512}
513#endif /* DEFAULT_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette