VirtualBox

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

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