1 <?xml version="1.0" encoding="utf-8" ?>
3 Copyright (C) 2009 Open Text Corporation. All Rights Reserved.
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
12 The above copyright notice and this permission notice shall be included in all
13 copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 Except as contained in this notice, the names of the authors or their
23 institutions shall not be used in advertising or otherwise to promote the
24 sale, use or other dealings in this Software without prior written
25 authorization from the authors.
27 <xcb header="xkb" extension-xname="XKEYBOARD" extension-name="xkb"
28 major-version="1" minor-version="0">
30 <import>xproto</import>
34 <item name="MaxLegalKeyCode"> <value>255</value> </item>
35 <item name="PerKeyBitArraySize">
38 <item name="KeyNameLength">
43 <enum name="EventType">
44 <item name="NewKeyboardNotify"> <bit>0</bit> </item>
45 <item name="MapNotify"> <bit>1</bit> </item>
46 <item name="StateNotify"> <bit>2</bit> </item>
47 <item name="ControlsNotify"> <bit>3</bit> </item>
48 <item name="IndicatorStateNotify"> <bit>4</bit> </item>
49 <item name="IndicatorMapNotify"> <bit>5</bit> </item>
50 <item name="NamesNotify"> <bit>6</bit> </item>
51 <item name="CompatMapNotify"> <bit>7</bit> </item>
52 <item name="BellNotify"> <bit>8</bit> </item>
53 <item name="ActionMessage"> <bit>9</bit> </item>
54 <item name="AccessXNotify"> <bit>10</bit> </item>
55 <item name="ExtensionDeviceNotify"> <bit>11</bit> </item>
58 <enum name="NKNDetail">
59 <item name="Keycodes"> <bit>0</bit> </item>
60 <item name="Geometry"> <bit>1</bit> </item>
61 <item name="DeviceID"> <bit>2</bit> </item>
64 <enum name="AXNDetail">
65 <item name="SKPress"> <bit>0</bit> </item>
66 <item name="SKAccept"> <bit>1</bit> </item>
67 <item name="SKReject"> <bit>2</bit> </item>
68 <item name="SKRelease"> <bit>3</bit> </item>
69 <item name="BKAccept"> <bit>4</bit> </item>
70 <item name="BKReject"> <bit>5</bit> </item>
71 <item name="AXKWarning"> <bit>6</bit> </item>
75 <item name="KeyTypes"> <bit>0</bit> </item>
76 <item name="KeySyms"> <bit>1</bit> </item>
77 <item name="ModifierMap"> <bit>2</bit> </item>
78 <item name="ExplicitComponents"> <bit>3</bit> </item>
79 <item name="KeyActions"> <bit>4</bit> </item>
80 <item name="KeyBehaviors"> <bit>5</bit> </item>
81 <item name="VirtualMods"> <bit>6</bit> </item>
82 <item name="VirtualModMap"> <bit>7</bit> </item>
85 <enum name="SetMapFlags">
86 <item name="ResizeTypes"> <bit>0</bit> </item>
87 <item name="RecomputeActions"> <bit>1</bit> </item>
90 <enum name="StatePart">
91 <item name="ModifierState"> <bit>0</bit> </item>
92 <item name="ModifierBase"> <bit>1</bit> </item>
93 <item name="ModifierLatch"> <bit>2</bit> </item>
94 <item name="ModifierLock"> <bit>3</bit> </item>
95 <item name="GroupState"> <bit>4</bit> </item>
96 <item name="GroupBase"> <bit>5</bit> </item>
97 <item name="GroupLatch"> <bit>6</bit> </item>
98 <item name="GroupLock"> <bit>7</bit> </item>
99 <item name="CompatState"> <bit>8</bit> </item>
100 <item name="GrabMods"> <bit>9</bit> </item>
101 <item name="CompatGrabMods"> <bit>10</bit> </item>
102 <item name="LookupMods"> <bit>11</bit> </item>
103 <item name="CompatLookupMods"> <bit>12</bit> </item>
104 <item name="PointerButtons"> <bit>13</bit> </item>
107 <enum name="BoolCtrl">
108 <item name="RepeatKeys"> <bit>0</bit> </item>
109 <item name="SlowKeys"> <bit>1</bit> </item>
110 <item name="BounceKeys"> <bit>2</bit> </item>
111 <item name="StickyKeys"> <bit>3</bit> </item>
112 <item name="MouseKeys"> <bit>4</bit> </item>
113 <item name="MouseKeysAccel"> <bit>5</bit> </item>
114 <item name="AccessXKeys"> <bit>6</bit> </item>
115 <item name="AccessXTimeoutMask"> <bit>7</bit> </item>
116 <item name="AccessXFeedbackMask"> <bit>8</bit> </item>
117 <item name="AudibleBellMask"> <bit>9</bit> </item>
118 <item name="Overlay1Mask"> <bit>10</bit> </item>
119 <item name="Overlay2Mask"> <bit>11</bit> </item>
120 <item name="IgnoreGroupLockMask"> <bit>12</bit> </item>
123 <!-- XXX: one zero less than XKB specification says,
124 uses the same values as libX11 -->
125 <enum name="Control" >
126 <item name="GroupsWrap"> <bit>27</bit> </item>
127 <item name="InternalMods"> <bit>28</bit> </item>
128 <item name="IgnoreLockMods"> <bit>29</bit> </item>
129 <item name="PerKeyRepeat"> <bit>30</bit> </item>
130 <item name="ControlsEnabled"> <bit>31</bit> </item>
133 <enum name="AXOption">
134 <item name="SKPressFB"> <bit>0</bit> </item>
135 <item name="SKAcceptFB"> <bit>1</bit> </item>
136 <item name="FeatureFB"> <bit>2</bit> </item>
137 <item name="SlowWarnFB"> <bit>3</bit> </item>
138 <item name="IndicatorFB"> <bit>4</bit> </item>
139 <item name="StickyKeysFB"> <bit>5</bit> </item>
140 <item name="TwoKeys"> <bit>6</bit> </item>
141 <item name="LatchToLock"> <bit>7</bit> </item>
142 <item name="SKReleaseFB"> <bit>8</bit> </item>
143 <item name="SKRejectFB"> <bit>9</bit> </item>
144 <item name="BKRejectFB"> <bit>10</bit> </item>
145 <item name="DumbBell"> <bit>11</bit> </item>
148 <typedef oldname="CARD16" newname="DeviceSpec" />
150 <enum name="LedClassResult">
151 <item name="KbdFeedbackClass"> <value>0</value> </item>
152 <item name="LedFeedbackClass"> <value>4</value> </item>
155 <enum name="LedClass">
156 <item name="KbdFeedbackClass"> <value>0</value> </item>
157 <item name="LedFeedbackClass"> <value>4</value> </item>
158 <item name="DfltXIClass"> <value>768</value> </item> <!--0x300-->
159 <item name="AllXIClasses"> <value>1280</value> </item> <!--0x500-->
161 <typedef oldname="CARD16" newname="LedClassSpec" />
163 <enum name="BellClassResult">
164 <item name="KbdFeedbackClass"> <value>0</value> </item>
165 <item name="BellFeedbackClass"> <value>5</value> </item>
168 <enum name="BellClass">
169 <item name="KbdFeedbackClass"> <value>0</value> </item>
170 <item name="BellFeedbackClass"> <value>5</value> </item>
171 <item name="DfltXIClass"> <value>768</value> </item> <!--0x300-->
173 <typedef oldname="CARD16" newname="BellClassSpec" />
176 <item name="UseCoreKbd"> <value>256</value> </item> <!-- 0x100 -->
177 <item name="UseCorePtr"> <value>512</value> </item> <!-- 0x200 -->
178 <item name="DfltXIClass"> <value>768</value> </item> <!-- 0x300 -->
179 <item name="DfltXIId"> <value>1024</value> </item> <!-- 0x400 -->
180 <item name="AllXIClass"> <value>1280</value> </item> <!-- 0x500 -->
181 <item name="AllXIId"> <value>1536</value> </item> <!-- 0x600 -->
182 <item name="XINone"> <value>65280</value> </item> <!--0xff00-->
184 <typedef oldname="CARD16" newname="IDSpec" />
187 <item name="1"> <value>0</value> </item>
188 <item name="2"> <value>1</value> </item>
189 <item name="3"> <value>2</value> </item>
190 <item name="4"> <value>3</value> </item>
194 <item name="Any"> <value>254</value> </item>
195 <item name="All"> <value>255</value> </item>
198 <enum name="SetOfGroup">
199 <item name="Group1"> <bit>0</bit> </item>
200 <item name="Group2"> <bit>1</bit> </item>
201 <item name="Group3"> <bit>2</bit> </item>
202 <item name="Group4"> <bit>3</bit> </item>
205 <enum name="SetOfGroups">
206 <item name="Any"> <bit>7</bit> </item>
209 <enum name="GroupsWrap">
210 <item name="WrapIntoRange"> <value>0</value> </item>
211 <item name="ClampIntoRange"> <bit>6</bit> </item>
212 <item name="RedirectIntoRange"> <bit>7</bit> </item>
215 <enum name="VModsHigh">
216 <item name="15"> <bit>7</bit> </item>
217 <item name="14"> <bit>6</bit> </item>
218 <item name="13"> <bit>5</bit> </item>
219 <item name="12"> <bit>4</bit> </item>
220 <item name="11"> <bit>3</bit> </item>
221 <item name="10"> <bit>2</bit> </item>
222 <item name="9"> <bit>1</bit> </item>
223 <item name="8"> <bit>0</bit> </item>
226 <enum name="VModsLow">
227 <item name="7"> <bit>7</bit> </item>
228 <item name="6"> <bit>6</bit> </item>
229 <item name="5"> <bit>5</bit> </item>
230 <item name="4"> <bit>4</bit> </item>
231 <item name="3"> <bit>3</bit> </item>
232 <item name="2"> <bit>2</bit> </item>
233 <item name="1"> <bit>1</bit> </item>
234 <item name="0"> <bit>0</bit> </item>
238 <item name="15"> <bit>15</bit> </item>
239 <item name="14"> <bit>14</bit> </item>
240 <item name="13"> <bit>13</bit> </item>
241 <item name="12"> <bit>12</bit> </item>
242 <item name="11"> <bit>11</bit> </item>
243 <item name="10"> <bit>10</bit> </item>
244 <item name="9"> <bit>9</bit> </item>
245 <item name="8"> <bit>8</bit> </item>
246 <item name="7"> <bit>7</bit> </item>
247 <item name="6"> <bit>6</bit> </item>
248 <item name="5"> <bit>5</bit> </item>
249 <item name="4"> <bit>4</bit> </item>
250 <item name="3"> <bit>3</bit> </item>
251 <item name="2"> <bit>2</bit> </item>
252 <item name="1"> <bit>1</bit> </item>
253 <item name="0"> <bit>0</bit> </item>
256 <enum name="Explicit">
257 <item name="VModMap"> <bit>7</bit> </item>
258 <item name="Behavior"> <bit>6</bit> </item>
259 <item name="AutoRepeat"> <bit>5</bit> </item>
260 <item name="Interpret"> <bit>4</bit> </item>
261 <item name="KeyType4"> <bit>3</bit> </item>
262 <item name="KeyType3"> <bit>2</bit> </item>
263 <item name="KeyType2"> <bit>1</bit> </item>
264 <item name="KeyType1"> <bit>0</bit> </item>
267 <enum name="SymInterpretMatch">
268 <item name="NoneOf"> <value>0</value> </item>
269 <item name="AnyOfOrNone"> <value>1</value> </item>
270 <item name="AnyOf"> <value>2</value> </item>
271 <item name="AllOf"> <value>3</value> </item>
272 <item name="Exactly"> <value>4</value> </item>
275 <enum name="SymInterpMatch">
276 <item name="LevelOneOnly"> <bit>7</bit> </item>
277 <item name="OpMask"> <value>127</value> </item> <!--0x7f-->
281 <item name="NoExplicit"> <bit>7</bit> </item>
282 <item name="NoAutomatic"> <bit>6</bit> </item>
283 <item name="LEDDrivesKB"> <bit>5</bit> </item>
286 <enum name="IMModsWhich">
287 <item name="UseCompat"> <bit>4</bit> </item>
288 <item name="UseEffective"> <bit>3</bit> </item>
289 <item name="UseLocked"> <bit>2</bit> </item>
290 <item name="UseLatched"> <bit>1</bit> </item>
291 <item name="UseBase"> <bit>0</bit> </item>
294 <enum name="IMGroupsWhich">
295 <item name="UseCompat"> <bit>4</bit> </item>
296 <item name="UseEffective"> <bit>3</bit> </item>
297 <item name="UseLocked"> <bit>2</bit> </item>
298 <item name="UseLatched"> <bit>1</bit> </item>
299 <item name="UseBase"> <bit>0</bit> </item>
302 <struct name="IndicatorMap">
303 <field name="flags" type="CARD8" enum="IMFlag" />
304 <field name="whichGroups" type="CARD8" enum="IMGroupsWhich" />
305 <field name="groups" type="CARD8" enum="SetOfGroup" />
306 <field name="whichMods" type="CARD8" enum="IMModsWhich" />
307 <field name="mods" type="CARD8" mask="ModMask" />
308 <field name="realMods" type="CARD8" mask="ModMask" />
309 <field name="vmods" type="CARD16" mask="VMod" />
310 <field name="ctrls" type="CARD32" mask="BoolCtrl" />
313 <enum name="CMDetail">
314 <item name="SymInterp"> <bit>0</bit> </item>
315 <item name="GroupCompat"> <bit>1</bit> </item>
318 <enum name="NameDetail">
319 <item name="Keycodes"> <bit>0</bit> </item>
320 <item name="Geometry"> <bit>1</bit> </item>
321 <item name="Symbols"> <bit>2</bit> </item>
322 <item name="PhysSymbols"> <bit>3</bit> </item>
323 <item name="Types"> <bit>4</bit> </item>
324 <item name="Compat"> <bit>5</bit> </item>
325 <item name="KeyTypeNames"> <bit>6</bit> </item>
326 <item name="KTLevelNames"> <bit>7</bit> </item>
327 <item name="IndicatorNames"> <bit>8</bit> </item>
328 <item name="KeyNames"> <bit>9</bit> </item>
329 <item name="KeyAliases"> <bit>10</bit> </item>
330 <item name="VirtualModNames"> <bit>11</bit> </item>
331 <item name="GroupNames"> <bit>12</bit> </item>
332 <item name="RGNames"> <bit>13</bit> </item>
335 <enum name="GBNDetail">
336 <item name="Types"> <bit>0</bit> </item>
337 <item name="CompatMap"> <bit>1</bit> </item>
338 <item name="ClientSymbols"> <bit>2</bit> </item>
339 <item name="ServerSymbols"> <bit>3</bit> </item>
340 <item name="IndicatorMaps"> <bit>4</bit> </item>
341 <item name="KeyNames"> <bit>5</bit> </item>
342 <item name="Geometry"> <bit>6</bit> </item>
343 <item name="OtherNames"> <bit>7</bit> </item>
346 <enum name="XIFeature">
347 <item name="Keyboards"> <bit>0</bit> </item>
348 <item name="ButtonActions"> <bit>1</bit> </item>
349 <item name="IndicatorNames"> <bit>2</bit> </item>
350 <item name="IndicatorMaps"> <bit>3</bit> </item>
351 <item name="IndicatorState"> <bit>4</bit> </item>
354 <enum name="PerClientFlag">
355 <item name="DetectableAutoRepeat"> <bit>0</bit> </item>
356 <item name="GrabsUseXKBState"> <bit>1</bit> </item>
357 <item name="AutoResetControls"> <bit>2</bit> </item>
358 <item name="LookupStateWhenGrabbed"> <bit>3</bit> </item>
359 <item name="SendEventUsesXKBState"> <bit>4</bit> </item>
362 <struct name="ModDef">
363 <field name="mask" type="CARD8" mask="ModMask" />
364 <field name="realMods" type="CARD8" mask="ModMask" />
365 <field name="vmods" type="CARD16" mask="VMod" />
368 <struct name="KeyName">
369 <list name="name" type="char">
374 <struct name="KeyAlias">
375 <list name="real" type="char">
378 <list name="alias" type="char">
383 <struct name="CountedString16">
384 <field name="length" type="CARD16" />
385 <list name="string" type="char">
386 <fieldref>length</fieldref>
388 <list type="void" name="alignment_pad">
392 <fieldref>length</fieldref>
400 <fieldref>length</fieldref>
407 <struct name="KTMapEntry">
408 <field name="active" type="BOOL" />
409 <field name="mods_mask" type="CARD8" mask="ModMask" />
410 <field name="level" type="CARD8" />
411 <field name="mods_mods" type="CARD8" mask="ModMask" />
412 <field name="mods_vmods" type="CARD16" mask="VMod" />
416 <struct name="KeyType">
417 <field name="mods_mask" type="CARD8" mask="ModMask" />
418 <field name="mods_mods" type="CARD8" mask="ModMask" />
419 <field name="mods_vmods" type="CARD16" mask="VMod" />
420 <field name="numLevels" type="CARD8" />
421 <field name="nMapEntries" type="CARD8" />
422 <field name="hasPreserve" type="BOOL" />
424 <list name="map" type="KTMapEntry">
425 <fieldref>nMapEntries</fieldref>
427 <list name="preserve" type="ModDef">
429 <fieldref>hasPreserve</fieldref>
430 <fieldref>nMapEntries</fieldref>
435 <struct name="KeySymMap">
436 <list name="kt_index" type="CARD8">
439 <field name="groupInfo" type="CARD8" />
440 <field name="width" type="CARD8" />
441 <field name="nSyms" type="CARD16" />
442 <list name="syms" type="KEYSYM">
443 <fieldref>nSyms</fieldref>
447 <!-- Key Behaviors -->
449 <struct name="CommonBehavior">
450 <field name="type" type="CARD8" />
451 <field name="data" type="CARD8" />
454 <struct name="DefaultBehavior">
455 <field name="type" type="CARD8" />
459 <typedef oldname="DefaultBehavior" newname="LockBehavior" />
461 <struct name="RadioGroupBehavior">
462 <field name="type" type="CARD8" />
463 <field name="group" type="CARD8" />
466 <struct name="OverlayBehavior">
467 <field name="type" type="CARD8" />
468 <field name="key" type="KEYCODE" />
471 <typedef oldname="LockBehavior" newname="PermamentLockBehavior" />
472 <typedef oldname="RadioGroupBehavior" newname="PermamentRadioGroupBehavior" />
473 <typedef oldname="OverlayBehavior" newname="PermamentOverlayBehavior" />
475 <union name="Behavior">
476 <field name="common" type="CommonBehavior" />
477 <field name="default" type="DefaultBehavior" />
478 <field name="lock" type="LockBehavior" />
479 <field name="radioGroup" type="RadioGroupBehavior" />
480 <field name="overlay1" type="OverlayBehavior" />
481 <field name="overlay2" type="OverlayBehavior" />
482 <field name="permamentLock" type="PermamentLockBehavior" />
483 <field name="permamentRadioGroup" type="PermamentRadioGroupBehavior" />
484 <field name="permamentOverlay1" type="PermamentOverlayBehavior" />
485 <field name="permamentOverlay2" type="PermamentOverlayBehavior" />
486 <field name="type" type="CARD8" />
489 <enum name="BehaviorType">
490 <item name="Default"> <value>0</value> </item> <!--0x00-->
491 <item name="Lock"> <value>1</value> </item> <!--0x01-->
492 <item name="RadioGroup"> <value>2</value> </item> <!--0x02-->
493 <item name="Overlay1"> <value>3</value> </item> <!--0x03-->
494 <item name="Overlay2"> <value>4</value> </item> <!--0x04-->
495 <item name="PermamentLock"> <value>129</value> </item> <!--0x81-->
496 <item name="PermamentRadioGroup"> <value>130</value> </item> <!--0x82-->
497 <item name="PermamentOverlay1"> <value>131</value> </item> <!--0x83-->
498 <item name="PermamentOverlay2"> <value>132</value> </item> <!--0x84-->
501 <struct name="SetBehavior">
502 <field name="keycode" type="KEYCODE" />
503 <field name="behavior" type="Behavior" />
507 <struct name="SetExplicit">
508 <field name="keycode" type="KEYCODE" />
509 <field name="explicit" type="CARD8" mask="Explicit" />
512 <struct name="KeyModMap">
513 <field name="keycode" type="KEYCODE" />
514 <field name="mods" type="CARD8" mask="ModMask" />
517 <struct name="KeyVModMap">
518 <field name="keycode" type="KEYCODE" />
520 <field name="vmods" type="CARD16" mask="VMod" />
523 <struct name="KTSetMapEntry">
524 <field name="level" type="CARD8" />
525 <field name="realMods" type="CARD8" mask="ModMask" />
526 <field name="virtualMods" type="CARD16" mask="VMod" />
529 <struct name="SetKeyType">
530 <field name="mask" type="CARD8" mask="ModMask" />
531 <field name="realMods" type="CARD8" mask="ModMask" />
532 <field name="virtualMods" type="CARD16" mask="VMod" />
533 <field name="numLevels" type="CARD8" />
534 <field name="nMapEntries" type="CARD8" />
535 <field name="preserve" type="BOOL" />
537 <list name="entries" type="KTSetMapEntry">
538 <fieldref>nMapEntries</fieldref>
540 <list name="preserve_entries" type="KTSetMapEntry">
542 <fieldref>preserve</fieldref>
543 <fieldref>nMapEntries</fieldref>
548 <typedef oldname="char" newname="STRING8" />
550 <!-- XXX: Property is broken
551 <struct name="Property">
552 <field name="nameLength" type="CARD16" />
553 <list name="name" type="STRING8">
554 <fieldref>nameLength</fieldref>
556 <field name="valueLength" type="CARD16" />
557 <list name="value" type="STRING8">
558 <fieldref>valueLength</fieldref>
562 <!-- XXX: This would be the correct Property structure as per spec.,
563 but it's broken atm. too. Add it anyway here, so we don't
564 loose that information.
565 <struct name="Property">
566 <field name="name" type="CountedString16" />
567 <field name="value" type="CountedString16" />
571 <struct name="Outline">
572 <field name="nPoints" type="CARD8" />
573 <field name="cornerRadius" type="CARD8" />
575 <list name="points" type="POINT">
576 <fieldref>nPoints</fieldref>
580 <struct name="Shape">
581 <field name="name" type="ATOM" />
582 <field name="nOutlines" type="CARD8" />
583 <field name="primaryNdx" type="CARD8" />
584 <field name="approxNdx" type="CARD8" />
586 <list name="outlines" type="Outline">
587 <fieldref>nOutlines</fieldref>
592 <list name="name" type="STRING8">
595 <field name="gap" type="INT16" />
596 <field name="shapeNdx" type="CARD8" />
597 <field name="colorNdx" type="CARD8" />
600 <struct name="OverlayKey">
601 <list name="over" type="STRING8">
604 <list name="under" type="STRING8">
609 <struct name="OverlayRow">
610 <field name="rowUnder" type="CARD8" />
611 <field name="nKeys" type="CARD8" />
613 <list name="keys" type="OverlayKey">
614 <fieldref>nKeys</fieldref>
618 <struct name="Overlay">
619 <field name="name" type="ATOM" />
620 <field name="nRows" type="CARD8" />
622 <list name="rows" type="OverlayRow">
623 <fieldref>nRows</fieldref>
628 <field name="top" type="INT16" />
629 <field name="left" type="INT16" />
630 <field name="nKeys" type="CARD8" />
631 <field name="vertical" type="BOOL" />
633 <list name="keys" type="Key">
634 <fieldref>nKeys</fieldref>
638 <enum name="DoodadType">
639 <item name="Outline"> <value>1</value> </item>
640 <item name="Solid"> <value>2</value> </item>
641 <item name="Text"> <value>3</value> </item>
642 <item name="Indicator"> <value>4</value> </item>
643 <item name="Logo"> <value>5</value> </item>
646 <!-- XXX: doodads are broken
647 <struct name="CommonDoodad">
648 <field name="name" type="ATOM" />
649 <field name="type" type="CARD8" enum="DoodadType" />
650 <field name="priority" type="CARD8" />
651 <field name="top" type="INT16" />
652 <field name="left" type="INT16" />
653 <field name="angle" type="INT16" />
657 <struct name="ShapeDoodad">
658 <field name="name" type="ATOM" />
659 <field name="type" type="CARD8" enum="DoodadType" />
660 <field name="priority" type="CARD8" />
661 <field name="top" type="INT16" />
662 <field name="left" type="INT16" />
663 <field name="angle" type="INT16" />
664 <field name="colorNdx" type="CARD8" />
665 <field name="shapeNdx" type="CARD8" />
669 <struct name="TextDoodad">
670 <field name="name" type="ATOM" />
671 <field name="type" type="CARD8" enum="DoodadType" />
672 <field name="priority" type="CARD8" />
673 <field name="top" type="INT16" />
674 <field name="left" type="INT16" />
675 <field name="angle" type="INT16" />
676 <field name="width" type="CARD16" />
677 <field name="height" type="CARD16" />
678 <field name="colorNdx" type="CARD8" />
680 <field name="text" type="CountedString16" />
681 <field name="font" type="CountedString16" />
684 <struct name="IndicatorDoodad">
685 <field name="name" type="ATOM" />
686 <field name="type" type="CARD8" enum="DoodadType" />
687 <field name="priority" type="CARD8" />
688 <field name="top" type="INT16" />
689 <field name="left" type="INT16" />
690 <field name="angle" type="INT16" />
691 <field name="shapeNdx" type="CARD8" />
692 <field name="onColorNdx" type="CARD8" />
693 <field name="offColorNdx" type="CARD8" />
697 <struct name="LogoDoodad">
698 <field name="name" type="ATOM" />
699 <field name="type" type="CARD8" enum="DoodadType" />
700 <field name="priority" type="CARD8" />
701 <field name="top" type="INT16" />
702 <field name="left" type="INT16" />
703 <field name="angle" type="INT16" />
704 <field name="colorNdx" type="CARD8" />
705 <field name="shapeNdx" type="CARD8" />
707 <field name="logoName" type="CountedString16" />
710 <union name="Doodad">
711 <field name="common" type="CommonDoodad" />
712 <field name="shape" type="ShapeDoodad" />
713 <field name="text" type="TextDoodad" />
714 <field name="indicator" type="IndicatorDoodad" />
715 <field name="logo" type="LogoDoodad" />
718 <struct name="Section">
719 <field name="name" type="ATOM" />
720 <field name="top" type="INT16" />
721 <field name="left" type="INT16" />
722 <field name="width" type="CARD16" />
723 <field name="height" type="CARD16" />
724 <field name="angle" type="INT16" />
725 <field name="priority" type="CARD8" />
726 <field name="nRows" type="CARD8" />
727 <field name="nDoodads" type="CARD8" />
728 <field name="nOverlays" type="CARD8" />
730 <list name="rows" type="Row">
731 <fieldref>nRows</fieldref>
733 <list name="doodads" type="Doodad">
734 <fieldref>nDoodads</fieldref>
736 <list name="overlays" type="Overlay">
737 <fieldref>nOverlays</fieldref>
742 <struct name="Listing">
743 <field name="flags" type="CARD16" />
744 <field name="length" type="CARD16" />
745 <list name="string" type="STRING8">
746 <fieldref>length</fieldref>
750 <struct name="DeviceLedInfo">
751 <field name="ledClass" type="LedClassSpec" enum="LedClass" />
752 <field name="ledID" type="IDSpec" altenum="ID" />
753 <field name="namesPresent" type="CARD32" />
754 <field name="mapsPresent" type="CARD32" />
755 <field name="physIndicators" type="CARD32" />
756 <field name="state" type="CARD32" />
757 <list name="names" type="ATOM">
759 <fieldref>namesPresent</fieldref>
762 <list name="maps" type="IndicatorMap">
764 <fieldref>mapsPresent</fieldref>
772 <item name="BadDevice"> <value>255</value> </item> <!--0xff-->
773 <item name="BadClass"> <value>254</value> </item> <!--0xfe-->
774 <item name="BadId"> <value>253</value> </item> <!--0xfd-->
777 <error name="Keyboard" number="0">
778 <field name="value" type="CARD32" />
779 <field name="minorOpcode" type="CARD16" />
780 <field name="majorOpcode" type="CARD8" />
787 <item name="ClearLocks"> <bit>0</bit> </item>
788 <item name="LatchToLock"> <bit>1</bit> </item>
789 <item name="UseModMapMods"> <bit>2</bit> </item>
790 <item name="GroupAbsolute"> <bit>2</bit> </item>
794 <item name="NoAction"> <value>0</value> </item>
795 <item name="SetMods"> <value>1</value> </item>
796 <item name="LatchMods"> <value>2</value> </item>
797 <item name="LockMods"> <value>3</value> </item>
798 <item name="SetGroup"> <value>4</value> </item>
799 <item name="LatchGroup"> <value>5</value> </item>
800 <item name="LockGroup"> <value>6</value> </item>
801 <item name="MovePtr"> <value>7</value> </item>
802 <item name="PtrBtn"> <value>8</value> </item>
803 <item name="LockPtrBtn"> <value>9</value> </item>
804 <item name="SetPtrDflt"> <value>10</value> </item>
805 <item name="ISOLock"> <value>11</value> </item>
806 <item name="Terminate"> <value>12</value> </item>
807 <item name="SwitchScreen"> <value>13</value> </item>
808 <item name="SetControls"> <value>14</value> </item>
809 <item name="LockControls"> <value>15</value> </item>
810 <item name="ActionMessage"> <value>16</value> </item>
811 <item name="RedirectKey"> <value>17</value> </item>
812 <item name="DeviceBtn"> <value>18</value> </item>
813 <item name="LockDeviceBtn"> <value>19</value> </item>
814 <item name="DeviceValuator"> <value>20</value> </item>
817 <struct name="SANoAction">
818 <field name="type" type="CARD8" enum="SAType" />
822 <struct name="SASetMods">
823 <field name="type" type="CARD8" enum="SAType" />
824 <field name="flags" type="CARD8" mask="SA" />
825 <field name="mask" type="CARD8" mask="ModMask" />
826 <field name="realMods" type="CARD8" mask="ModMask" />
827 <field name="vmodsHigh" type="CARD8" mask="VModsHigh" />
828 <field name="vmodsLow" type="CARD8" mask="VModsLow" />
832 <typedef oldname="SASetMods" newname="SALatchMods" />
834 <typedef oldname="SASetMods" newname="SALockMods" />
836 <struct name="SASetGroup">
837 <field name="type" type="CARD8" enum="SAType" />
838 <field name="flags" type="CARD8" mask="SA" />
839 <field name="group" type="INT8" />
843 <typedef oldname="SASetGroup" newname="SALatchGroup" />
845 <typedef oldname="SASetGroup" newname="SALockGroup" />
847 <enum name="SAMovePtrFlag">
848 <item name="NoAcceleration"> <bit>0</bit> </item>
849 <item name="MoveAbsoluteX"> <bit>1</bit> </item>
850 <item name="MoveAbsoluteY"> <bit>2</bit> </item>
853 <struct name="SAMovePtr">
854 <field name="type" type="CARD8" enum="SAType" />
855 <field name="flags" type="CARD8" mask="SAMovePtrFlag" />
856 <field name="xHigh" type="INT8" />
857 <field name="xLow" type="CARD8" />
858 <field name="yHigh" type="INT8" />
859 <field name="yLow" type="CARD8" />
863 <struct name="SAPtrBtn">
864 <field name="type" type="CARD8" enum="SAType" />
865 <field name="flags" type="CARD8" />
866 <field name="count" type="CARD8" />
867 <field name="button" type="CARD8" />
871 <struct name="SALockPtrBtn">
872 <field name="type" type="CARD8" enum="SAType" />
873 <field name="flags" type="CARD8" />
875 <field name="button" type="CARD8" />
879 <enum name="SASetPtrDfltFlag">
880 <!-- The spec says 0x02 but Xlib uses 0x04. -->
881 <item name="DfltBtnAbsolute"> <bit>2</bit> </item>
882 <item name="AffectDfltButton"> <bit>0</bit> </item>
885 <struct name="SASetPtrDflt">
886 <field name="type" type="CARD8" enum="SAType" />
887 <field name="flags" type="CARD8" mask="SASetPtrDfltFlag" />
888 <field name="affect" type="CARD8" mask="SASetPtrDfltFlag" />
889 <field name="value" type="INT8" />
893 <enum name="SAIsoLockFlag">
894 <item name="NoLock"> <bit>0</bit> </item>
895 <item name="NoUnlock"> <bit>1</bit> </item>
896 <item name="UseModMapMods"> <bit>2</bit> </item>
897 <item name="GroupAbsolute"> <bit>2</bit> </item>
898 <item name="ISODfltIsGroup"> <bit>3</bit> </item>
901 <enum name="SAIsoLockNoAffect">
902 <item name="Ctrls"> <bit>3</bit> </item>
903 <item name="Ptr"> <bit>4</bit> </item>
904 <item name="Group"> <bit>5</bit> </item>
905 <item name="Mods"> <bit>6</bit> </item>
908 <struct name="SAIsoLock">
909 <field name="type" type="CARD8" enum="SAType" />
910 <field name="flags" type="CARD8" mask="SAIsoLockFlag" />
911 <field name="mask" type="CARD8" mask="ModMask" />
912 <field name="realMods" type="CARD8" mask="ModMask" />
913 <field name="group" type="INT8" />
914 <field name="affect" type="CARD8" mask="SAIsoLockNoAffect" />
915 <field name="vmodsHigh" type="CARD8" mask="VModsHigh" />
916 <field name="vmodsLow" type="CARD8" mask="VModsLow" />
919 <struct name="SATerminate">
920 <field name="type" type="CARD8" enum="SAType" />
924 <enum name="SwitchScreenFlag">
925 <item name="Application"> <bit>0</bit> </item>
926 <item name="Absolute" > <bit>2</bit> </item>
929 <struct name="SASwitchScreen">
930 <field name="type" type="CARD8" enum="SAType" />
931 <field name="flags" type="CARD8" />
932 <field name="newScreen" type="INT8" />
936 <enum name="BoolCtrlsHigh">
937 <item name="AccessXFeedback"> <bit>0</bit> </item>
938 <item name="AudibleBell"> <bit>1</bit> </item>
939 <item name="Overlay1"> <bit>2</bit> </item>
940 <item name="Overlay2"> <bit>3</bit> </item>
941 <item name="IgnoreGroupLock"> <bit>4</bit> </item>
944 <enum name="BoolCtrlsLow">
945 <item name="RepeatKeys"> <bit>0</bit> </item>
946 <item name="SlowKeys"> <bit>1</bit> </item>
947 <item name="BounceKeys"> <bit>2</bit> </item>
948 <item name="StickyKeys"> <bit>3</bit> </item>
949 <item name="MouseKeys"> <bit>4</bit> </item>
950 <item name="MouseKeysAccel"> <bit>5</bit> </item>
951 <item name="AccessXKeys"> <bit>6</bit> </item>
952 <item name="AccessXTimeout"> <bit>7</bit> </item>
955 <struct name="SASetControls">
956 <field name="type" type="CARD8" enum="SAType" />
958 <field name="boolCtrlsHigh" type="CARD8" mask="BoolCtrlsHigh" />
959 <field name="boolCtrlsLow" type="CARD8" mask="BoolCtrlsLow" />
963 <typedef oldname="SASetControls" newname="SALockControls" />
965 <enum name="ActionMessageFlag">
966 <item name="OnPress"> <bit>0</bit> </item>
967 <item name="OnRelease"> <bit>1</bit> </item>
968 <item name="GenKeyEvent"> <bit>2</bit> </item>
971 <struct name="SAActionMessage">
972 <field name="type" type="CARD8" enum="SAType" />
973 <field name="flags" type="CARD8" mask="ActionMessageFlag" />
974 <list name="message" type="CARD8">
979 <struct name="SARedirectKey">
980 <field name="type" type="CARD8" enum="SAType" />
981 <field name="newkey" type="KEYCODE" />
982 <field name="mask" type="CARD8" mask="ModMask" />
983 <field name="realModifiers" type="CARD8" mask="ModMask" />
984 <field name="vmodsMaskHigh" type="CARD8" mask="VModsHigh"/>
985 <field name="vmodsMaskLow" type="CARD8" mask="VModsLow"/>
986 <field name="vmodsHigh" type="CARD8" mask="VModsHigh"/>
987 <field name="vmodsLow" type="CARD8" mask="VModsLow"/>
990 <struct name="SADeviceBtn">
991 <field name="type" type="CARD8" enum="SAType" />
992 <field name="flags" type="CARD8" />
993 <field name="count" type="CARD8" />
994 <field name="button" type="CARD8" />
995 <field name="device" type="CARD8" />
999 <enum name="LockDeviceFlags">
1000 <item name="NoLock"> <bit>0</bit> </item>
1001 <item name="NoUnlock"> <bit>1</bit> </item>
1004 <struct name="SALockDeviceBtn">
1005 <field name="type" type="CARD8" enum="SAType" />
1006 <field name="flags" type="CARD8" mask="LockDeviceFlags" />
1008 <field name="button" type="CARD8" />
1009 <field name="device" type="CARD8" />
1013 <enum name="SAValWhat">
1014 <item name="IgnoreVal"> <value>0</value> </item>
1015 <item name="SetValMin"> <value>1</value> </item>
1016 <item name="SetValCenter"> <value>2</value> </item>
1017 <item name="SetValMax"> <value>3</value> </item>
1018 <item name="SetValRelative"> <value>4</value> </item>
1019 <item name="SetValAbsolute"> <value>5</value> </item>
1022 <struct name="SADeviceValuator">
1023 <field name="type" type="CARD8" enum="SAType" />
1024 <field name="device" type="CARD8" />
1025 <field name="val1what" type="CARD8" enum="SAValWhat" />
1026 <field name="val1index" type="CARD8" />
1027 <field name="val1value" type="CARD8" />
1028 <field name="val2what" type="CARD8" enum="SAValWhat" />
1029 <field name="val2index" type="CARD8" />
1030 <field name="val2value" type="CARD8" />
1033 <struct name="SIAction">
1034 <field name="type" type="CARD8" enum="SAType" />
1035 <list name="data" type="CARD8">
1040 <struct name="SymInterpret">
1041 <field name="sym" type="KEYSYM" />
1042 <field name="mods" type="CARD8" mask="ModMask" />
1043 <!-- "match" may also have XkbSI_LevelOneOnly (0x80) or'd into it -->
1044 <field name="match" type="CARD8" altenum="SymInterpretMatch" />
1045 <field name="virtualMod" type="CARD8" mask="VModsLow" />
1046 <field name="flags" type="CARD8" />
1047 <field name="action" type="SIAction" />
1050 <union name="Action">
1051 <field name="noaction" type="SANoAction" />
1052 <field name="setmods" type="SASetMods" />
1053 <field name="latchmods" type="SALatchMods" />
1054 <field name="lockmods" type="SALockMods" />
1055 <field name="setgroup" type="SASetGroup" />
1056 <field name="latchgroup" type="SALatchGroup" />
1057 <field name="lockgroup" type="SALockGroup" />
1058 <field name="moveptr" type="SAMovePtr" />
1059 <field name="ptrbtn" type="SAPtrBtn" />
1060 <field name="lockptrbtn" type="SALockPtrBtn" />
1061 <field name="setptrdflt" type="SASetPtrDflt" />
1062 <field name="isolock" type="SAIsoLock" />
1063 <field name="terminate" type="SATerminate" />
1064 <field name="switchscreen" type="SASwitchScreen" />
1065 <field name="setcontrols" type="SASetControls" />
1066 <field name="lockcontrols" type="SALockControls" />
1067 <field name="message" type="SAActionMessage" />
1068 <field name="redirect" type="SARedirectKey" />
1069 <field name="devbtn" type="SADeviceBtn" />
1070 <field name="lockdevbtn" type="SALockDeviceBtn" />
1071 <field name="devval" type="SADeviceValuator" />
1072 <field name="type" type="CARD8" enum="SAType" />
1077 <request name="UseExtension" opcode="0">
1078 <field name="wantedMajor" type="CARD16" />
1079 <field name="wantedMinor" type="CARD16" />
1081 <field name="supported" type="BOOL" />
1082 <field name="serverMajor" type="CARD16" />
1083 <field name="serverMinor" type="CARD16" />
1088 <request name="SelectEvents" opcode="1">
1089 <field name="deviceSpec" type="DeviceSpec" />
1090 <field name="affectWhich" type="CARD16" mask="EventType" />
1091 <field name="clear" type="CARD16" mask="EventType" />
1092 <field name="selectAll" type="CARD16" mask="EventType" />
1093 <field name="affectMap" type="CARD16" mask="MapPart" />
1094 <field name="map" type="CARD16" mask="MapPart" />
1095 <switch name="details">
1097 <fieldref>affectWhich</fieldref>
1099 <unop op="~"><fieldref>clear</fieldref></unop>
1100 <unop op="~"><fieldref>selectAll</fieldref></unop>
1104 <enumref ref="EventType">NewKeyboardNotify</enumref>
1105 <field name="affectNewKeyboard" type="CARD16" mask="NKNDetail" />
1106 <field name="newKeyboardDetails" type="CARD16" mask="NKNDetail" />
1109 <enumref ref="EventType">StateNotify</enumref>
1110 <field name="affectState" type="CARD16" mask="StatePart" />
1111 <field name="stateDetails" type="CARD16" mask="StatePart" />
1114 <enumref ref="EventType">ControlsNotify</enumref>
1115 <field name="affectCtrls" type="CARD32" mask="Control" />
1116 <field name="ctrlDetails" type="CARD32" mask="Control" />
1119 <enumref ref="EventType">IndicatorStateNotify</enumref>
1120 <field name="affectIndicatorState" type="CARD32" />
1121 <field name="indicatorStateDetails" type="CARD32" />
1124 <enumref ref="EventType">IndicatorMapNotify</enumref>
1125 <field name="affectIndicatorMap" type="CARD32" />
1126 <field name="indicatorMapDetails" type="CARD32" />
1129 <enumref ref="EventType">NamesNotify</enumref>
1130 <field name="affectNames" type="CARD16" mask="NameDetail" />
1131 <field name="namesDetails" type="CARD16" mask="NameDetail" />
1134 <enumref ref="EventType">CompatMapNotify</enumref>
1135 <field name="affectCompat" type="CARD8" mask="CMDetail" />
1136 <field name="compatDetails" type="CARD8" mask="CMDetail" />
1139 <enumref ref="EventType">BellNotify</enumref>
1140 <field name="affectBell" type="CARD8" />
1141 <field name="bellDetails" type="CARD8" />
1144 <enumref ref="EventType">ActionMessage</enumref>
1145 <field name="affectMsgDetails" type="CARD8" />
1146 <field name="msgDetails" type="CARD8" />
1149 <enumref ref="EventType">AccessXNotify</enumref>
1150 <field name="affectAccessX" type="CARD16" mask="AXNDetail" />
1151 <field name="accessXDetails" type="CARD16" mask="AXNDetail" />
1154 <enumref ref="EventType">ExtensionDeviceNotify</enumref>
1155 <field name="affectExtDev" type="CARD16" mask="XIFeature" />
1156 <field name="extdevDetails" type="CARD16" mask="XIFeature" />
1161 <request name="Bell" opcode="3">
1162 <field name="deviceSpec" type="DeviceSpec" />
1163 <field name="bellClass" type="BellClassSpec" />
1164 <field name="bellID" type="IDSpec" />
1165 <field name="percent" type="INT8" />
1166 <field name="forceSound" type="BOOL" />
1167 <field name="eventOnly" type="BOOL" />
1169 <field name="pitch" type="INT16" />
1170 <field name="duration" type="INT16" />
1172 <field name="name" type="ATOM" />
1173 <field name="window" type="WINDOW" />
1176 <request name="GetState" opcode="4">
1177 <field name="deviceSpec" type="DeviceSpec" />
1180 <field name="deviceID" type="CARD8" />
1181 <field name="mods" type="CARD8" mask="ModMask" />
1182 <field name="baseMods" type="CARD8" mask="ModMask" />
1183 <field name="latchedMods" type="CARD8" mask="ModMask" />
1184 <field name="lockedMods" type="CARD8" mask="ModMask" />
1185 <field name="group" type="CARD8" enum="Group" />
1186 <field name="lockedGroup" type="CARD8" enum="Group" />
1187 <field name="baseGroup" type="INT16" />
1188 <field name="latchedGroup" type="INT16" />
1189 <field name="compatState" type="CARD8" mask="ModMask" />
1190 <field name="grabMods" type="CARD8" mask="ModMask" />
1191 <field name="compatGrabMods" type="CARD8" mask="ModMask" />
1192 <field name="lookupMods" type="CARD8" mask="ModMask" />
1193 <field name="compatLookupMods" type="CARD8" mask="ModMask" />
1195 <field name="ptrBtnState" type="CARD16" mask="KeyButMask" />
1200 <request name="LatchLockState" opcode="5">
1201 <field name="deviceSpec" type="DeviceSpec" />
1202 <field name="affectModLocks" type="CARD8" mask="ModMask" />
1203 <field name="modLocks" type="CARD8" mask="ModMask" />
1204 <field name="lockGroup" type="BOOL" />
1205 <field name="groupLock" type="CARD8" enum="Group" />
1206 <field name="affectModLatches" type="CARD8" mask="ModMask" />
1208 <field name="latchGroup" type="BOOL" />
1209 <field name="groupLatch" type="CARD16" />
1212 <request name="GetControls" opcode="6">
1213 <field name="deviceSpec" type="DeviceSpec" />
1216 <field name="deviceID" type="CARD8" />
1217 <field name="mouseKeysDfltBtn" type="CARD8" />
1218 <field name="numGroups" type="CARD8" />
1219 <field name="groupsWrap" type="CARD8" />
1220 <field name="internalModsMask" type="CARD8" mask="ModMask" />
1221 <field name="ignoreLockModsMask" type="CARD8" mask="ModMask" />
1222 <field name="internalModsRealMods" type="CARD8" mask="ModMask" />
1223 <field name="ignoreLockModsRealMods" type="CARD8" mask="ModMask" />
1225 <field name="internalModsVmods" type="CARD16" mask="VMod" />
1226 <field name="ignoreLockModsVmods" type="CARD16" mask="VMod" />
1227 <field name="repeatDelay" type="CARD16" />
1228 <field name="repeatInterval" type="CARD16" />
1229 <field name="slowKeysDelay" type="CARD16" />
1230 <field name="debounceDelay" type="CARD16" />
1231 <field name="mouseKeysDelay" type="CARD16" />
1232 <field name="mouseKeysInterval" type="CARD16" />
1233 <field name="mouseKeysTimeToMax" type="CARD16" />
1234 <field name="mouseKeysMaxSpeed" type="CARD16" />
1235 <field name="mouseKeysCurve" type="INT16" />
1236 <field name="accessXOption" type="CARD16" mask="AXOption" />
1237 <field name="accessXTimeout" type="CARD16" />
1238 <field name="accessXTimeoutOptionsMask" type="CARD16" mask="AXOption" />
1239 <field name="accessXTimeoutOptionsValues" type="CARD16" mask="AXOption" />
1241 <field name="accessXTimeoutMask" type="CARD32" mask="BoolCtrl" />
1242 <field name="accessXTimeoutValues" type="CARD32" mask="BoolCtrl" />
1243 <field name="enabledControls" type="CARD32" mask="BoolCtrl" />
1244 <list name="perKeyRepeat" type="CARD8">
1250 <request name="SetControls" opcode="7">
1251 <field name="deviceSpec" type="DeviceSpec" />
1252 <field name="affectInternalRealMods" type="CARD8" mask="ModMask" />
1253 <field name="internalRealMods" type="CARD8" mask="ModMask" />
1254 <field name="affectIgnoreLockRealMods" type="CARD8" mask="ModMask" />
1255 <field name="ignoreLockRealMods" type="CARD8" mask="ModMask" />
1256 <field name="affectInternalVirtualMods" type="CARD16" mask="VMod" />
1257 <field name="internalVirtualMods" type="CARD16" mask="VMod" />
1258 <field name="affectIgnoreLockVirtualMods" type="CARD16" mask="VMod" />
1259 <field name="ignoreLockVirtualMods" type="CARD16" mask="VMod" />
1260 <field name="mouseKeysDfltBtn" type="CARD8" />
1261 <field name="groupsWrap" type="CARD8" />
1262 <field name="accessXOptions" type="CARD16" mask="AXOption" />
1264 <field name="affectEnabledControls" type="CARD32" mask="BoolCtrl" />
1265 <field name="enabledControls" type="CARD32" mask="BoolCtrl" />
1266 <field name="changeControls" type="CARD32" mask="Control" />
1267 <field name="repeatDelay" type="CARD16" />
1268 <field name="repeatInterval" type="CARD16" />
1269 <field name="slowKeysDelay" type="CARD16" />
1270 <field name="debounceDelay" type="CARD16" />
1271 <field name="mouseKeysDelay" type="CARD16" />
1272 <field name="mouseKeysInterval" type="CARD16" />
1273 <field name="mouseKeysTimeToMax" type="CARD16" />
1274 <field name="mouseKeysMaxSpeed" type="CARD16" />
1275 <field name="mouseKeysCurve" type="INT16" />
1276 <field name="accessXTimeout" type="CARD16" />
1277 <field name="accessXTimeoutMask" type="CARD32" mask="BoolCtrl" />
1278 <field name="accessXTimeoutValues" type="CARD32" mask="BoolCtrl" />
1279 <field name="accessXTimeoutOptionsMask" type="CARD16" mask="AXOption" />
1280 <field name="accessXTimeoutOptionsValues" type="CARD16" mask="AXOption" />
1281 <list name="perKeyRepeat" type="CARD8">
1286 <request name="GetMap" opcode="8">
1287 <field name="deviceSpec" type="DeviceSpec" />
1288 <field name="full" type="CARD16" mask="MapPart" />
1289 <field name="partial" type="CARD16" mask="MapPart" />
1290 <field name="firstType" type="CARD8" />
1291 <field name="nTypes" type="CARD8" />
1292 <field name="firstKeySym" type="KEYCODE" />
1293 <field name="nKeySyms" type="CARD8" />
1294 <field name="firstKeyAction" type="KEYCODE" />
1295 <field name="nKeyActions" type="CARD8" />
1296 <field name="firstKeyBehavior" type="KEYCODE" />
1297 <field name="nKeyBehaviors" type="CARD8" />
1298 <field name="virtualMods" type="CARD16" mask="VMod" />
1299 <field name="firstKeyExplicit" type="KEYCODE" />
1300 <field name="nKeyExplicit" type="CARD8" />
1301 <field name="firstModMapKey" type="KEYCODE" />
1302 <field name="nModMapKeys" type="CARD8" />
1303 <field name="firstVModMapKey" type="KEYCODE" />
1304 <field name="nVModMapKeys" type="CARD8" />
1307 <field name="deviceID" type="CARD8" />
1309 <field name="minKeyCode" type="KEYCODE" />
1310 <field name="maxKeyCode" type="KEYCODE" />
1311 <field name="present" type="CARD16" mask="MapPart" />
1312 <field name="firstType" type="CARD8" />
1313 <field name="nTypes" type="CARD8" />
1314 <field name="totalTypes" type="CARD8" />
1315 <field name="firstKeySym" type="KEYCODE" />
1316 <field name="totalSyms" type="CARD16" />
1317 <field name="nKeySyms" type="CARD8" />
1318 <field name="firstKeyAction" type="KEYCODE" />
1319 <field name="totalActions" type="CARD16" />
1320 <field name="nKeyActions" type="CARD8" />
1321 <field name="firstKeyBehavior" type="KEYCODE" />
1322 <field name="nKeyBehaviors" type="CARD8" />
1323 <field name="totalKeyBehaviors" type="CARD8" />
1324 <field name="firstKeyExplicit" type="KEYCODE" />
1325 <field name="nKeyExplicit" type="CARD8" />
1326 <field name="totalKeyExplicit" type="CARD8" />
1327 <field name="firstModMapKey" type="KEYCODE" />
1328 <field name="nModMapKeys" type="CARD8" />
1329 <field name="totalModMapKeys" type="CARD8" />
1330 <field name="firstVModMapKey" type="KEYCODE" />
1331 <field name="nVModMapKeys" type="CARD8" />
1332 <field name="totalVModMapKeys" type="CARD8" />
1334 <field name="virtualMods" type="CARD16" mask="VMod" />
1336 <fieldref>present</fieldref>
1338 <enumref ref="MapPart">KeyTypes</enumref>
1339 <list name="types_rtrn" type="KeyType">
1340 <fieldref>nTypes</fieldref>
1344 <enumref ref="MapPart">KeySyms</enumref>
1345 <list name="syms_rtrn" type="KeySymMap">
1346 <fieldref>nKeySyms</fieldref>
1350 <enumref ref="MapPart">KeyActions</enumref>
1351 <list name="acts_rtrn_count" type="CARD8">
1352 <fieldref>nKeyActions</fieldref>
1354 <list type="CARD8" name="alignment_pad">
1358 <fieldref>nKeyActions</fieldref>
1365 <fieldref>nKeyActions</fieldref>
1368 <list name="acts_rtrn_acts" type="Action">
1369 <fieldref>totalActions</fieldref>
1373 <enumref ref="MapPart">KeyBehaviors</enumref>
1374 <list name="behaviors_rtrn" type="SetBehavior">
1375 <fieldref>totalKeyBehaviors</fieldref>
1379 <enumref ref="MapPart">VirtualMods</enumref>
1380 <list name="vmods_rtrn" type="CARD8" mask="ModMask">
1381 <popcount><fieldref>virtualMods</fieldref></popcount>
1383 <list type="CARD8" name="alignment_pad2">
1387 <popcount><fieldref>virtualMods</fieldref></popcount>
1394 <popcount><fieldref>virtualMods</fieldref></popcount>
1399 <enumref ref="MapPart">ExplicitComponents</enumref>
1400 <list name="explicit_rtrn" type="SetExplicit">
1401 <fieldref>totalKeyExplicit</fieldref>
1403 <list type="CARD16" name="alignment_pad3">
1407 <fieldref>totalKeyExplicit</fieldref>
1414 <fieldref>totalKeyExplicit</fieldref>
1419 <enumref ref="MapPart">ModifierMap</enumref>
1420 <list name="modmap_rtrn" type="KeyModMap">
1421 <fieldref>totalModMapKeys</fieldref>
1423 <list type="CARD16" name="alignment_pad4">
1427 <fieldref>totalModMapKeys</fieldref>
1434 <fieldref>totalModMapKeys</fieldref>
1439 <enumref ref="MapPart">VirtualModMap</enumref>
1440 <list name="vmodmap_rtrn" type="KeyVModMap">
1441 <fieldref>totalVModMapKeys</fieldref>
1448 <request name="SetMap" opcode="9">
1449 <field name="deviceSpec" type="DeviceSpec" />
1450 <field name="present" type="CARD16" mask="MapPart" />
1451 <field name="flags" type="CARD16" mask="SetMapFlags" />
1452 <field name="minKeyCode" type="KEYCODE" />
1453 <field name="maxKeyCode" type="KEYCODE" />
1454 <field name="firstType" type="CARD8" />
1455 <field name="nTypes" type="CARD8" />
1456 <field name="firstKeySym" type="KEYCODE" />
1457 <field name="nKeySyms" type="CARD8" />
1458 <field name="totalSyms" type="CARD16" />
1459 <field name="firstKeyAction" type="KEYCODE" />
1460 <field name="nKeyActions" type="CARD8" />
1461 <field name="totalActions" type="CARD16" />
1462 <field name="firstKeyBehavior" type="KEYCODE" />
1463 <field name="nKeyBehaviors" type="CARD8" />
1464 <field name="totalKeyBehaviors" type="CARD8" />
1465 <field name="firstKeyExplicit" type="KEYCODE" />
1466 <field name="nKeyExplicit" type="CARD8" />
1467 <field name="totalKeyExplicit" type="CARD8" />
1468 <field name="firstModMapKey" type="KEYCODE" />
1469 <field name="nModMapKeys" type="CARD8" />
1470 <field name="totalModMapKeys" type="CARD8" />
1471 <field name="firstVModMapKey" type="KEYCODE" />
1472 <field name="nVModMapKeys" type="CARD8" />
1473 <field name="totalVModMapKeys" type="CARD8" />
1474 <field name="virtualMods" type="CARD16" mask="VMod" />
1475 <switch name="values">
1476 <fieldref>present</fieldref>
1478 <enumref ref="MapPart">KeyTypes</enumref>
1479 <list name="types" type="SetKeyType">
1480 <fieldref>nTypes</fieldref>
1484 <enumref ref="MapPart">KeySyms</enumref>
1485 <list name="syms" type="KeySymMap">
1486 <fieldref>nKeySyms</fieldref>
1490 <enumref ref="MapPart">KeyActions</enumref>
1491 <list name="actionsCount" type="CARD8">
1492 <fieldref>nKeyActions</fieldref>
1494 <list name="actions" type="Action">
1495 <fieldref>totalActions</fieldref>
1499 <enumref ref="MapPart">KeyBehaviors</enumref>
1500 <list name="behaviors" type="SetBehavior">
1501 <fieldref>totalKeyBehaviors</fieldref>
1505 <enumref ref="MapPart">VirtualMods</enumref>
1506 <list name="vmods" type="CARD8">
1507 <popcount><fieldref>virtualMods</fieldref></popcount>
1511 <enumref ref="MapPart">ExplicitComponents</enumref>
1512 <list name="explicit" type="SetExplicit">
1513 <fieldref>totalKeyExplicit</fieldref>
1517 <enumref ref="MapPart">ModifierMap</enumref>
1518 <list name="modmap" type="KeyModMap">
1519 <fieldref>totalModMapKeys</fieldref>
1523 <enumref ref="MapPart">VirtualModMap</enumref>
1524 <list name="vmodmap" type="KeyVModMap">
1525 <fieldref>totalVModMapKeys</fieldref>
1531 <request name="GetCompatMap" opcode="10">
1532 <field name="deviceSpec" type="DeviceSpec" />
1533 <field name="groups" type="CARD8" mask="SetOfGroup" />
1534 <field name="getAllSI" type="BOOL" />
1535 <field name="firstSI" type="CARD16" />
1536 <field name="nSI" type="CARD16" />
1538 <field name="deviceID" type="CARD8" />
1539 <field name="groupsRtrn" type="CARD8" mask="SetOfGroup" />
1541 <field name="firstSIRtrn" type="CARD16" />
1542 <field name="nSIRtrn" type="CARD16" />
1543 <field name="nTotalSI" type="CARD16" />
1545 <list name="si_rtrn" type="SymInterpret">
1546 <fieldref>nSIRtrn</fieldref>
1548 <list name="group_rtrn" type="ModDef">
1550 <fieldref>groupsRtrn</fieldref>
1556 <request name="SetCompatMap" opcode="11">
1557 <field name="deviceSpec" type="DeviceSpec" />
1559 <field name="recomputeActions" type="BOOL" />
1560 <field name="truncateSI" type="BOOL" />
1561 <field name="groups" type="CARD8" mask="SetOfGroup" />
1562 <field name="firstSI" type="CARD16" />
1563 <field name="nSI" type="CARD16" />
1565 <list name="si" type="SymInterpret">
1566 <fieldref>nSI</fieldref>
1568 <list name="groupMaps" type="ModDef">
1570 <fieldref>groups</fieldref>
1575 <request name="GetIndicatorState" opcode="12">
1576 <field name="deviceSpec" type="DeviceSpec" />
1579 <field name="deviceID" type="CARD8" />
1580 <field name="state" type="CARD32" />
1585 <request name="GetIndicatorMap" opcode="13">
1586 <field name="deviceSpec" type="DeviceSpec" />
1588 <field name="which" type="CARD32" />
1590 <field name="deviceID" type="CARD8" />
1591 <field name="which" type="CARD32" />
1592 <field name="realIndicators" type="CARD32" />
1593 <field name="nIndicators" type="CARD8" />
1595 <list name="maps" type="IndicatorMap">
1596 <popcount><fieldref>which</fieldref></popcount>
1601 <request name="SetIndicatorMap" opcode="14">
1602 <field name="deviceSpec" type="DeviceSpec" />
1604 <field name="which" type="CARD32" />
1605 <list name="maps" type="IndicatorMap">
1607 <fieldref>which</fieldref>
1612 <request name="GetNamedIndicator" opcode="15">
1613 <field name="deviceSpec" type="DeviceSpec" />
1614 <field name="ledClass" type="LedClassSpec" enum="LedClass" />
1615 <field name="ledID" type="IDSpec" altenum="ID" />
1617 <field name="indicator" type="ATOM" />
1619 <field name="deviceID" type="CARD8" />
1620 <field name="indicator" type="ATOM" />
1621 <field name="found" type="BOOL" />
1622 <field name="on" type="BOOL" />
1623 <field name="realIndicator" type="BOOL" />
1624 <field name="ndx" type="CARD8" />
1625 <field name="map_flags" type="CARD8" mask="IMFlag" />
1626 <field name="map_whichGroups" type="CARD8" mask="IMGroupsWhich" />
1627 <field name="map_groups" type="CARD8" mask="SetOfGroups" />
1628 <field name="map_whichMods" type="CARD8" mask="IMModsWhich" />
1629 <field name="map_mods" type="CARD8" mask="ModMask" />
1630 <field name="map_realMods" type="CARD8" mask="ModMask" />
1631 <field name="map_vmod" type="CARD16" mask="VMod" />
1632 <field name="map_ctrls" type="CARD32" mask="BoolCtrl" />
1633 <field name="supported" type="BOOL" />
1638 <request name="SetNamedIndicator" opcode="16" >
1639 <field name="deviceSpec" type="DeviceSpec" />
1640 <field name="ledClass" type="LedClassSpec" enum="LedClass" />
1641 <field name="ledID" type="IDSpec" altenum="ID" />
1643 <field name="indicator" type="ATOM" />
1644 <field name="setState" type="BOOL" />
1645 <field name="on" type="BOOL" />
1646 <field name="setMap" type="BOOL" />
1647 <field name="createMap" type="BOOL" />
1649 <field name="map_flags" type="CARD8" mask="IMFlag" />
1650 <field name="map_whichGroups" type="CARD8" mask="IMGroupsWhich" />
1651 <field name="map_groups" type="CARD8" mask="SetOfGroups" />
1652 <field name="map_whichMods" type="CARD8" mask="IMModsWhich" />
1653 <field name="map_realMods" type="CARD8" mask="ModMask" />
1654 <field name="map_vmods" type="CARD16" mask="VMod" />
1655 <field name="map_ctrls" type="CARD32" mask="BoolCtrl" />
1658 <request name="GetNames" opcode="17">
1659 <field name="deviceSpec" type="DeviceSpec" />
1661 <field name="which" type="CARD32" mask="NameDetail" />
1663 <field name="deviceID" type="CARD8" />
1664 <field name="which" type="CARD32" mask="NameDetail" />
1665 <field name="minKeyCode" type="KEYCODE" />
1666 <field name="maxKeyCode" type="KEYCODE" />
1667 <field name="nTypes" type="CARD8" />
1668 <field name="groupNames" type="CARD8" mask="SetOfGroup" />
1669 <field name="virtualMods" type="CARD16" mask="VMod" />
1670 <field name="firstKey" type="KEYCODE" />
1671 <field name="nKeys" type="CARD8" />
1672 <field name="indicators" type="CARD32" />
1673 <field name="nRadioGroups" type="CARD8" />
1674 <field name="nKeyAliases" type="CARD8" />
1675 <field name="nKTLevels" type="CARD16" />
1677 <switch name="valueList">
1678 <fieldref>which</fieldref>
1680 <enumref ref="NameDetail">Keycodes</enumref>
1681 <field name="keycodesName" type="ATOM" />
1684 <enumref ref="NameDetail">Geometry</enumref>
1685 <field name="geometryName" type="ATOM" />
1688 <enumref ref="NameDetail">Symbols</enumref>
1689 <field name="symbolsName" type="ATOM" />
1692 <enumref ref="NameDetail">PhysSymbols</enumref>
1693 <field name="physSymbolsName" type="ATOM" />
1696 <enumref ref="NameDetail">Types</enumref>
1697 <field name="typesName" type="ATOM" />
1700 <enumref ref="NameDetail">Compat</enumref>
1701 <field name="compatName" type="ATOM" />
1704 <enumref ref="NameDetail">KeyTypeNames</enumref>
1705 <list name="typeNames" type="ATOM">
1706 <fieldref>nTypes</fieldref>
1710 <enumref ref="NameDetail">KTLevelNames</enumref>
1711 <list name="nLevelsPerType" type="CARD8">
1712 <!-- Xlib uses NTypes here -
1713 the spec says nKTLevels is correct, but
1714 it does not work in reality
1715 <fieldref>nKTLevels</fieldref> -->
1716 <fieldref>nTypes</fieldref>
1718 <list type="CARD8" name="alignment_pad">
1722 <fieldref>nTypes</fieldref>
1729 <fieldref>nTypes</fieldref>
1732 <list name="ktLevelNames" type="ATOM">
1733 <sumof ref="nLevelsPerType" />
1737 <enumref ref="NameDetail">IndicatorNames</enumref>
1738 <list name="indicatorNames" type="ATOM">
1740 <fieldref>indicators</fieldref>
1745 <enumref ref="NameDetail">VirtualModNames</enumref>
1746 <list name="virtualModNames" type="ATOM">
1748 <fieldref>virtualMods</fieldref>
1753 <enumref ref="NameDetail">GroupNames</enumref>
1754 <list name="groups" type="ATOM">
1756 <fieldref>groupNames</fieldref>
1761 <enumref ref="NameDetail">KeyNames</enumref>
1762 <list name="keyNames" type="KeyName">
1763 <fieldref>nKeys</fieldref>
1767 <enumref ref="NameDetail">KeyAliases</enumref>
1768 <list name="keyAliases" type="KeyAlias">
1769 <fieldref>nKeyAliases</fieldref>
1773 <enumref ref="NameDetail">RGNames</enumref>
1774 <list name="radioGroupNames" type="ATOM">
1775 <fieldref>nRadioGroups</fieldref>
1782 <request name="SetNames" opcode="18">
1783 <field name="deviceSpec" type="DeviceSpec" />
1784 <field name="virtualMods" type="CARD16" mask="VMod" />
1785 <field name="which" type="CARD32" mask="NameDetail" />
1786 <field name="firstType" type="CARD8" />
1787 <field name="nTypes" type="CARD8" />
1788 <field name="firstKTLevelt" type="CARD8" />
1789 <field name="nKTLevels" type="CARD8" />
1790 <field name="indicators" type="CARD32" />
1791 <field name="groupNames" type="CARD8" mask="SetOfGroup" />
1792 <field name="nRadioGroups" type="CARD8" />
1793 <field name="firstKey" type="KEYCODE" />
1794 <field name="nKeys" type="CARD8" />
1795 <field name="nKeyAliases" type="CARD8"/>
1797 <field name="totalKTLevelNames" type="CARD16" />
1798 <switch name="values">
1799 <fieldref>which</fieldref>
1801 <enumref ref="NameDetail">Keycodes</enumref>
1802 <field name="keycodesName" type="ATOM" />
1805 <enumref ref="NameDetail">Geometry</enumref>
1806 <field name="geometryName" type="ATOM" />
1809 <enumref ref="NameDetail">Symbols</enumref>
1810 <field name="symbolsName" type="ATOM" />
1813 <enumref ref="NameDetail">PhysSymbols</enumref>
1814 <field name="physSymbolsName" type="ATOM" />
1817 <enumref ref="NameDetail">Types</enumref>
1818 <field name="typesName" type="ATOM" />
1821 <enumref ref="NameDetail">Compat</enumref>
1822 <field name="compatName" type="ATOM" />
1825 <enumref ref="NameDetail">KeyTypeNames</enumref>
1826 <list name="typeNames" type="ATOM">
1827 <fieldref>nTypes</fieldref>
1831 <enumref ref="NameDetail">KTLevelNames</enumref>
1832 <list name="nLevelsPerType" type="CARD8">
1833 <fieldref>nKTLevels</fieldref>
1835 <list name="ktLevelNames" type="ATOM">
1836 <sumof ref="nLevelsPerType" />
1840 <enumref ref="NameDetail">IndicatorNames</enumref>
1841 <list name="indicatorNames" type="ATOM">
1843 <fieldref>indicators</fieldref>
1848 <enumref ref="NameDetail">VirtualModNames</enumref>
1849 <list name="virtualModNames" type="ATOM">
1851 <fieldref>virtualMods</fieldref>
1856 <enumref ref="NameDetail">GroupNames</enumref>
1857 <list name="groups" type="ATOM">
1859 <fieldref>groupNames</fieldref>
1864 <enumref ref="NameDetail">KeyNames</enumref>
1865 <list name="keyNames" type="KeyName">
1866 <fieldref>nKeys</fieldref>
1870 <enumref ref="NameDetail">KeyAliases</enumref>
1871 <list name="keyAliases" type="KeyAlias">
1872 <fieldref>nKeyAliases</fieldref>
1876 <enumref ref="NameDetail">RGNames</enumref>
1877 <list name="radioGroupNames" type="ATOM">
1878 <fieldref>nRadioGroups</fieldref>
1884 <!-- XXX: Property and doodads are broken, which renders GetGeometry useless
1885 <request name="GetGeometry" opcode="19">
1886 <field name="deviceSpec" type="DeviceSpec" />
1888 <field name="name" type="ATOM" />
1890 <field name="deviceID" type="CARD8" />
1891 <field name="name" type="ATOM" />
1892 <field name="found" type="BOOL" />
1894 <field name="widthMM" type="CARD16" />
1895 <field name="heightMM" type="CARD16" />
1896 <field name="nProperties" type="CARD16" />
1897 <field name="nColors" type="CARD16" />
1898 <field name="nShapes" type="CARD16" />
1899 <field name="nSections" type="CARD16" />
1900 <field name="nDoodads" type="CARD16" />
1901 <field name="nKeyAliases" type="CARD16" />
1902 <field name="baseColorNdx" type="CARD8" />
1903 <field name="labelColorNdx" type="CARD8" />
1904 <field name="labelFont" type="CountedString16" />
1905 <list name="properties" type="Property">
1906 <fieldref>nProperties</fieldref>
1908 <list name="colors" type="CountedString16">
1909 <fieldref>nColors</fieldref>
1911 <list name="shapes" type="Shape">
1912 <fieldref>nShapes</fieldref>
1914 <list name="sections" type="Section">
1915 <fieldref>nSections</fieldref>
1917 <list name="doodads" type="Doodad">
1918 <fieldref>nDoodads</fieldref>
1920 <list name="keyAliases" type="KeyAlias">
1921 <fieldref>nKeyAliases</fieldref>
1927 <!-- XXX: Property and doodads are broken, which renders SetGeometry useless
1928 <request name="SetGeometry" opcode="20">
1929 <field name="deviceSpec" type="DeviceSpec" />
1930 <field name="nShapes" type="CARD8" />
1931 <field name="nSections" type="CARD8" />
1932 <field name="name" type="ATOM" />
1933 <field name="widthMM" type="CARD16" />
1934 <field name="heightMM" type="CARD16" />
1935 <field name="nProperties" type="CARD16" />
1936 <field name="nColors" type="CARD16" />
1937 <field name="nDoodads" type="CARD16" />
1938 <field name="nKeyAliases" type="CARD16" />
1939 <field name="baseColorNdx" type="CARD8" />
1940 <field name="labelColorNdx" type="CARD8" />
1942 <field name="labelFont" type="CountedString16" />
1943 <list name="properties" type="Property">
1944 <fieldref>nProperties</fieldref>
1946 <list name="colors" type="CountedString16">
1947 <fieldref>nColors</fieldref>
1949 <list name="shapes" type="Shape">
1950 <fieldref>nShapes</fieldref>
1952 <list name="sections" type="Section">
1953 <fieldref>nSections</fieldref>
1955 <list name="doodads" type="Doodad">
1956 <fieldref>nDoodads</fieldref>
1958 <list name="keyAliases" type="KeyAlias">
1959 <fieldref>nKeyAliases</fieldref>
1964 <request name="PerClientFlags" opcode="21">
1965 <field name="deviceSpec" type="DeviceSpec" />
1967 <field name="change" type="CARD32" mask="PerClientFlag" />
1968 <field name="value" type="CARD32" mask="PerClientFlag" />
1969 <field name="ctrlsToChange" type="CARD32" mask="BoolCtrl" />
1970 <field name="autoCtrls" type="CARD32" mask="BoolCtrl" />
1971 <field name="autoCtrlsValues" type="CARD32" mask="BoolCtrl" />
1973 <field name="deviceID" type="CARD8"/>
1974 <field name="supported" type="CARD32" mask="PerClientFlag" />
1975 <field name="value" type="CARD32" mask="PerClientFlag" />
1976 <field name="autoCtrls" type="CARD32" mask="BoolCtrl" />
1977 <field name="autoCtrlsValues" type="CARD32" mask="BoolCtrl" />
1982 <request name="ListComponents" opcode="22">
1983 <field name="deviceSpec" type="DeviceSpec" />
1984 <field name="maxNames" type="CARD16" />
1985 <!-- XXX: Intermixed fixed size fields and lists are broken
1986 <field name="keymapsSpecLen" type="CARD8" />
1987 <list name="keymapsSpec" type="STRING8">
1988 <fieldref>keymapsSpecLen</fieldref>
1990 <field name="keycodesSpecLen" type="CARD8" />
1991 <list name="keycodesSpec" type="STRING8">
1992 <fieldref>keycodesSpecLen</fieldref>
1994 <field name="typesSpecLen" type="CARD8" />
1995 <list name="typesSpec" type="STRING8">
1996 <fieldref>typesSpecLen</fieldref>
1998 <field name="compatMapSpecLen" type="CARD8" />
1999 <list name="compatMapSpec" type="STRING8">
2000 <fieldref>compatMapSpecLen</fieldref>
2002 <field name="symbolsSpecLen" type="CARD8" />
2003 <list name="symbolsSpec" type="STRING8">
2004 <fieldref>symbolsSpecLen</fieldref>
2006 <field name="geometrySpecLen" type="CARD8" />
2007 <list name="geometrySpec" type="STRING8">
2008 <fieldref>geometrySpecLen</fieldref>
2012 <field name="deviceID" type="CARD8" />
2013 <field name="nKeymaps" type="CARD16" />
2014 <field name="nKeycodes" type="CARD16" />
2015 <field name="nTypes" type="CARD16" />
2016 <field name="nCompatMaps" type="CARD16" />
2017 <field name="nSymbols" type="CARD16" />
2018 <field name="nGeometries" type="CARD16" />
2019 <field name="extra" type="CARD16" />
2021 <list name="keymaps" type="Listing">
2022 <fieldref>nKeymaps</fieldref>
2024 <list name="keycodes" type="Listing">
2025 <fieldref>nKeycodes</fieldref>
2027 <list name="types" type="Listing">
2028 <fieldref>nTypes</fieldref>
2030 <list name="compatMaps" type="Listing">
2031 <fieldref>nCompatMaps</fieldref>
2033 <list name="symbols" type="Listing">
2034 <fieldref>nSymbols</fieldref>
2036 <list name="geometries" type="Listing">
2037 <fieldref>nGeometries</fieldref>
2042 <request name="GetKbdByName" opcode="23">
2043 <field name="deviceSpec" type="DeviceSpec" />
2044 <field name="need" type="CARD16" mask="GBNDetail" />
2045 <field name="want" type="CARD16" mask="GBNDetail" />
2046 <field name="load" type="BOOL" />
2048 <!-- XXX: Intermixed fixed size fields and lists are broken
2049 <field name="keymapsSpecLen" type="CARD8" />
2050 <list name="keymapsSpec" type="STRING8">
2051 <fieldref>keymapsSpecLen</fieldref>
2053 <field name="keycodesSpecLen" type="CARD8" />
2054 <list name="keycodesSpec" type="STRING8">
2055 <fieldref>keycodesSpecLen</fieldref>
2057 <field name="typesSpecLen" type="CARD8" />
2058 <list name="typesSpec" type="STRING8">
2059 <fieldref>typesSpecLen</fieldref>
2061 <field name="compatMapSpecLen" type="CARD8" />
2062 <list name="compatMapSpec" type="STRING8">
2063 <fieldref>compatMapSpecLen</fieldref>
2065 <field name="symbolsSpecLen" type="CARD8" />
2066 <list name="symbolsSpec" type="STRING8">
2067 <fieldref>symbolsSpecLen</fieldref>
2069 <field name="geometrySpecLen" type="CARD8" />
2070 <list name="geometrySpec" type="STRING8">
2071 <fieldref>geometrySpecLen</fieldref>
2075 <field name="deviceID" type="CARD8" />
2076 <field name="minKeyCode" type="KEYCODE" />
2077 <field name="maxKeyCode" type="KEYCODE" />
2078 <field name="loaded" type="BOOL" />
2079 <field name="newKeyboard" type="BOOL" />
2080 <field name="found" type="CARD16" mask="GBNDetail" />
2081 <field name="reported" type="CARD16" mask="GBNDetail" />
2083 <switch name="replies">
2084 <fieldref>reported</fieldref>
2085 <bitcase name="types">
2086 <enumref ref="GBNDetail">Types</enumref>
2087 <enumref ref="GBNDetail">ClientSymbols</enumref>
2088 <enumref ref="GBNDetail">ServerSymbols</enumref>
2089 <!-- from the spec, this has to be a GetMap reply -->
2090 <field name="getmap_type" type="CARD8" />
2091 <!-- done 'emulating' GetMap reply header-->
2092 <field name="typeDeviceID" type="CARD8" />
2093 <!-- from the spec, this has to be a GetMap reply -->
2094 <field name="getmap_sequence" type="CARD16" />
2095 <field name="getmap_length" type="CARD32" />
2096 <!-- done 'emulating' GetMap reply header-->
2098 <field name="typeMinKeyCode" type="KEYCODE" />
2099 <field name="typeMaxKeyCode" type="KEYCODE" />
2100 <field name="present" type="CARD16" mask="MapPart" />
2101 <field name="firstType" type="CARD8" />
2102 <field name="nTypes" type="CARD8" />
2103 <field name="totalTypes" type="CARD8" />
2104 <field name="firstKeySym" type="KEYCODE" />
2105 <field name="totalSyms" type="CARD16" />
2106 <field name="nKeySyms" type="CARD8" />
2107 <field name="firstKeyAction" type="KEYCODE" />
2108 <field name="totalActions" type="CARD16" />
2109 <field name="nKeyActions" type="CARD8" />
2110 <field name="firstKeyBehavior" type="KEYCODE" />
2111 <field name="nKeyBehaviors" type="CARD8" />
2112 <field name="totalKeyBehaviors" type="CARD8" />
2113 <field name="firstKeyExplicit" type="KEYCODE" />
2114 <field name="nKeyExplicit" type="CARD8" />
2115 <field name="totalKeyExplicit" type="CARD8" />
2116 <field name="firstModMapKey" type="KEYCODE" />
2117 <field name="nModMapKeys" type="CARD8" />
2118 <field name="totalModMapKeys" type="CARD8" />
2119 <field name="firstVModMapKey" type="KEYCODE" />
2120 <field name="nVModMapKeys" type="CARD8" />
2121 <field name="totalVModMapKeys" type="CARD8" />
2123 <field name="virtualMods" type="CARD16" mask="VMod" />
2125 <fieldref>present</fieldref>
2127 <enumref ref="MapPart">KeyTypes</enumref>
2128 <list name="types_rtrn" type="KeyType">
2129 <fieldref>nTypes</fieldref>
2133 <enumref ref="MapPart">KeySyms</enumref>
2134 <list name="syms_rtrn" type="KeySymMap">
2135 <fieldref>nKeySyms</fieldref>
2139 <enumref ref="MapPart">KeyActions</enumref>
2140 <list name="acts_rtrn_count" type="CARD8">
2141 <fieldref>nKeyActions</fieldref>
2143 <list name="acts_rtrn_acts" type="Action">
2144 <fieldref>totalActions</fieldref>
2148 <enumref ref="MapPart">KeyBehaviors</enumref>
2149 <list name="behaviors_rtrn" type="SetBehavior">
2150 <fieldref>totalKeyBehaviors</fieldref>
2154 <enumref ref="MapPart">VirtualMods</enumref>
2155 <list name="vmods_rtrn" type="CARD8" mask="ModMask">
2156 <popcount><fieldref>virtualMods</fieldref></popcount>
2160 <enumref ref="MapPart">ExplicitComponents</enumref>
2161 <list name="explicit_rtrn" type="SetExplicit">
2162 <fieldref>totalKeyExplicit</fieldref>
2166 <enumref ref="MapPart">ModifierMap</enumref>
2167 <list name="modmap_rtrn" type="KeyModMap">
2168 <fieldref>totalModMapKeys</fieldref>
2172 <enumref ref="MapPart">VirtualModMap</enumref>
2173 <list name="vmodmap_rtrn" type="KeyVModMap">
2174 <fieldref>totalVModMapKeys</fieldref>
2179 <bitcase name="compat_map">
2180 <enumref ref="GBNDetail">CompatMap</enumref>
2181 <!-- from the spec, this has to include a reply header -->
2182 <field name="compatmap_type" type="CARD8" />
2183 <field name="compatDeviceID" type="CARD8" />
2184 <field name="compatmap_sequence" type="CARD16" />
2185 <field name="compatmap_length" type="CARD32" />
2186 <!-- done 'emulating' reply header -->
2187 <field name="groupsRtrn" type="CARD8" mask="SetOfGroup" />
2189 <field name="firstSIRtrn" type="CARD16" />
2190 <field name="nSIRtrn" type="CARD16" />
2191 <field name="nTotalSI" type="CARD16" />
2193 <list name="si_rtrn" type="SymInterpret">
2194 <fieldref>nSIRtrn</fieldref>
2196 <list name="group_rtrn" type="ModDef">
2198 <fieldref>groupsRtrn</fieldref>
2202 <bitcase name="indicator_maps">
2203 <enumref ref="GBNDetail">IndicatorMaps</enumref>
2204 <!-- from the spec, this has to include a reply header -->
2205 <field name="indicatormap_type" type="CARD8" />
2206 <field name="indicatorDeviceID" type="CARD8" />
2207 <field name="indicatormap_sequence" type="CARD16" />
2208 <field name="indicatormap_length" type="CARD32" />
2209 <!-- done 'emulating' reply header -->
2210 <field name="which" type="CARD32" />
2211 <field name="realIndicators" type="CARD32" />
2212 <field name="nIndicators" type="CARD8" />
2214 <list name="maps" type="IndicatorMap">
2215 <fieldref>nIndicators</fieldref>
2218 <bitcase name="key_names">
2219 <enumref ref="GBNDetail">KeyNames</enumref>
2220 <enumref ref="GBNDetail">OtherNames</enumref>
2221 <!-- from the spec, this has to include a reply header -->
2222 <field name="keyname_type" type="CARD8" />
2223 <field name="keyDeviceID" type="CARD8" />
2224 <field name="keyname_sequence" type="CARD16" />
2225 <field name="keyname_length" type="CARD32" />
2226 <!-- done 'emulating' reply header -->
2227 <field name="which" type="CARD32" mask="NameDetail" />
2228 <field name="keyMinKeyCode" type="KEYCODE" />
2229 <field name="keyMaxKeyCode" type="KEYCODE" />
2230 <field name="nTypes" type="CARD8" />
2231 <field name="groupNames" type="CARD8" mask="SetOfGroup" />
2232 <field name="virtualMods" type="CARD16" mask="VMod" />
2233 <field name="firstKey" type="KEYCODE" />
2234 <field name="nKeys" type="CARD8" />
2235 <field name="indicators" type="CARD32" />
2236 <field name="nRadioGroups" type="CARD8" />
2237 <field name="nKeyAliases" type="CARD8" />
2238 <field name="nKTLevels" type="CARD16" />
2240 <switch name="valueList">
2241 <fieldref>which</fieldref>
2243 <enumref ref="NameDetail">Keycodes</enumref>
2244 <field name="keycodesName" type="ATOM" />
2247 <enumref ref="NameDetail">Geometry</enumref>
2248 <field name="geometryName" type="ATOM" />
2251 <enumref ref="NameDetail">Symbols</enumref>
2252 <field name="symbolsName" type="ATOM" />
2255 <enumref ref="NameDetail">PhysSymbols</enumref>
2256 <field name="physSymbolsName" type="ATOM" />
2259 <enumref ref="NameDetail">Types</enumref>
2260 <field name="typesName" type="ATOM" />
2263 <enumref ref="NameDetail">Compat</enumref>
2264 <field name="compatName" type="ATOM" />
2267 <enumref ref="NameDetail">KeyTypeNames</enumref>
2268 <list name="typeNames" type="ATOM">
2269 <fieldref>nTypes</fieldref>
2273 <enumref ref="NameDetail">KTLevelNames</enumref>
2274 <list name="nLevelsPerType" type="CARD8">
2275 <fieldref>nKTLevels</fieldref>
2277 <list name="ktLevelNames" type="ATOM">
2278 <sumof ref="nLevelsPerType" />
2282 <enumref ref="NameDetail">IndicatorNames</enumref>
2283 <list name="indicatorNames" type="ATOM">
2285 <fieldref>indicators</fieldref>
2290 <enumref ref="NameDetail">VirtualModNames</enumref>
2291 <list name="virtualModNames" type="ATOM">
2293 <fieldref>virtualMods</fieldref>
2298 <enumref ref="NameDetail">GroupNames</enumref>
2299 <list name="groups" type="ATOM">
2301 <fieldref>groupNames</fieldref>
2306 <enumref ref="NameDetail">KeyNames</enumref>
2307 <list name="keyNames" type="KeyName">
2308 <fieldref>nKeys</fieldref>
2312 <enumref ref="NameDetail">KeyAliases</enumref>
2313 <list name="keyAliases" type="KeyAlias">
2314 <fieldref>nKeyAliases</fieldref>
2318 <enumref ref="NameDetail">RGNames</enumref>
2319 <list name="radioGroupNames" type="ATOM">
2320 <fieldref>nRadioGroups</fieldref>
2325 <bitcase name="geometry">
2326 <enumref ref="GBNDetail">Geometry</enumref>
2327 <!-- from the spec, this has to include a reply header -->
2328 <field name="geometry_type" type="CARD8" />
2329 <field name="geometryDeviceID" type="CARD8" />
2330 <field name="geometry_sequence" type="CARD16" />
2331 <field name="geometry_length" type="CARD32" />
2332 <!-- done 'emulating' reply header -->
2333 <field name="name" type="ATOM" />
2334 <field name="geometryFound" type="BOOL" />
2336 <field name="widthMM" type="CARD16" />
2337 <field name="heightMM" type="CARD16" />
2338 <field name="nProperties" type="CARD16" />
2339 <field name="nColors" type="CARD16" />
2340 <field name="nShapes" type="CARD16" />
2341 <field name="nSections" type="CARD16" />
2342 <field name="nDoodads" type="CARD16" />
2343 <field name="nKeyAliases" type="CARD16" />
2344 <field name="baseColorNdx" type="CARD8" />
2345 <field name="labelColorNdx" type="CARD8" />
2346 <field name="labelFont" type="CountedString16" />
2347 <!-- XXX: Property is broken
2348 <list name="properties" type="Property">
2349 <fieldref>nProperties</fieldref>
2351 <list name="colors" type="CountedString16">
2352 <fieldref>nColors</fieldref>
2354 <list name="shapes" type="Shape">
2355 <fieldref>nShapes</fieldref>
2358 <!-- XXX: doodads are broken
2359 <list name="sections" type="Section">
2360 <fieldref>nSections</fieldref>
2362 <list name="doodads" type="Doodad">
2363 <fieldref>nDoodads</fieldref>
2365 <list name="keyAliases" type="KeyAlias">
2366 <fieldref>nKeyAliases</fieldref>
2374 <request name="GetDeviceInfo" opcode="24">
2375 <field name="deviceSpec" type="DeviceSpec" />
2376 <field name="wanted" type="CARD16" mask="XIFeature" />
2377 <field name="allButtons" type="BOOL" />
2378 <field name="firstButton" type="CARD8" />
2379 <field name="nButtons" type="CARD8" />
2381 <field name="ledClass" type="LedClassSpec" enum="LedClass" />
2382 <field name="ledID" type="IDSpec" altenum="ID" />
2384 <field name="deviceID" type="CARD8" />
2385 <field name="present" type="CARD16" mask="XIFeature" />
2386 <field name="supported" type="CARD16" mask="XIFeature" />
2387 <field name="unsupported" type="CARD16" mask="XIFeature" />
2388 <field name="nDeviceLedFBs" type="CARD16" />
2389 <field name="firstBtnWanted" type="CARD8" />
2390 <field name="nBtnsWanted" type="CARD8" />
2391 <field name="firstBtnRtrn" type="CARD8" />
2392 <field name="nBtnsRtrn" type="CARD8" />
2393 <field name="totalBtns" type="CARD8" />
2394 <field name="hasOwnState" type="BOOL" />
2395 <field name="dfltKbdFB" type="CARD16" altenum="ID" />
2396 <field name="dfltLedFB" type="CARD16" altenum="ID" />
2398 <field name="devType" type="ATOM" />
2399 <field name="nameLen" type="CARD16" />
2400 <list name="name" type="STRING8">
2401 <fieldref>nameLen</fieldref>
2403 <list name="btnActions" type="Action">
2404 <fieldref>nBtnsRtrn</fieldref>
2406 <list name="leds" type="DeviceLedInfo">
2407 <fieldref>nDeviceLedFBs</fieldref>
2413 <request name="SetDeviceInfo" opcode="25">
2414 <field name="deviceSpec" type="DeviceSpec" />
2415 <field name="firstBtn" type="CARD8" />
2416 <field name="nBtns" type="CARD8" />
2417 <field name="change" type="CARD16" mask="XIFeature" />
2418 <field name="nDeviceLedFBs" type="CARD16" />
2419 <list name="btnActions" type="Action">
2420 <fieldref>nBtns</fieldref>
2422 <list name="leds" type="DeviceLedInfo">
2423 <fieldref>nDeviceLedFBs</fieldref>
2427 <request name="SetDebuggingFlags" opcode="101">
2428 <field name="msgLength" type="CARD16" />
2430 <field name="affectFlags" type="CARD32" />
2431 <field name="flags" type="CARD32" />
2432 <field name="affectCtrls" type="CARD32" />
2433 <field name="ctrls" type="CARD32" />
2434 <list name="message" type="STRING8">
2435 <fieldref>msgLength</fieldref>
2439 <field name="currentFlags" type="CARD32" />
2440 <field name="currentCtrls" type="CARD32" />
2441 <field name="supportedFlags" type="CARD32" />
2442 <field name="supportedCtrls" type="CARD32" />
2449 <event name="NewKeyboardNotify" number="0">
2450 <field name="xkbType" type="CARD8" />
2451 <field name="time" type="TIMESTAMP" />
2452 <field name="deviceID" type="CARD8" />
2453 <field name="oldDeviceID" type="CARD8" />
2454 <field name="minKeyCode" type="KEYCODE" />
2455 <field name="maxKeyCode" type="KEYCODE" />
2456 <field name="oldMinKeyCode" type="KEYCODE" />
2457 <field name="oldMaxKeyCode" type="KEYCODE" />
2458 <field name="requestMajor" type="CARD8" />
2459 <field name="requestMinor" type="CARD8" />
2460 <field name="changed" type="CARD16" mask="NKNDetail" />
2464 <event name="MapNotify" number="1">
2465 <field name="xkbType" type="CARD8" />
2466 <field name="time" type="TIMESTAMP" />
2467 <field name="deviceID" type="CARD8" />
2468 <field name="ptrBtnActions" type="CARD8" />
2469 <field name="changed" type="CARD16" mask="MapPart" />
2470 <field name="minKeyCode" type="KEYCODE" />
2471 <field name="maxKeyCode" type="KEYCODE" />
2472 <field name="firstType" type="CARD8" />
2473 <field name="nTypes" type="CARD8" />
2474 <field name="firstKeySym" type="KEYCODE" />
2475 <field name="nKeySyms" type="CARD8" />
2476 <field name="firstKeyAct" type="KEYCODE" />
2477 <field name="nKeyActs" type="CARD8" />
2478 <field name="firstKeyBehavior" type="KEYCODE" />
2479 <field name="nKeyBehavior" type="CARD8" />
2480 <field name="firstKeyExplicit" type="KEYCODE" />
2481 <field name="nKeyExplicit" type="CARD8" />
2482 <field name="firstModMapKey" type="KEYCODE" />
2483 <field name="nModMapKeys" type="CARD8" />
2484 <field name="firstVModMapKey" type="KEYCODE" />
2485 <field name="nVModMapKeys" type="CARD8" />
2486 <field name="virtualMods" type="CARD16" mask="VMod" />
2490 <event name="StateNotify" number="2">
2491 <field name="xkbType" type="CARD8" />
2492 <field name="time" type="TIMESTAMP" />
2493 <field name="deviceID" type="CARD8" />
2494 <field name="mods" type="CARD8" mask="ModMask" />
2495 <field name="baseMods" type="CARD8" mask="ModMask" />
2496 <field name="latchedMods" type="CARD8" mask="ModMask" />
2497 <field name="lockedMods" type="CARD8" mask="ModMask" />
2498 <field name="group" type="CARD8" enum="Group" />
2499 <field name="baseGroup" type="INT16" />
2500 <field name="latchedGroup" type="INT16" />
2501 <field name="lockedGroup" type="CARD8" enum="Group" />
2502 <field name="compatState" type="CARD8" mask="ModMask" />
2503 <field name="grabMods" type="CARD8" mask="ModMask" />
2504 <field name="compatGrabMods" type="CARD8" mask="ModMask" />
2505 <field name="lookupMods" type="CARD8" mask="ModMask" />
2506 <field name="compatLoockupMods" type="CARD8" mask="ModMask" />
2507 <field name="ptrBtnState" type="CARD16" mask="KeyButMask" />
2508 <field name="changed" type="CARD16" mask="StatePart" />
2509 <field name="keycode" type="KEYCODE" />
2510 <field name="eventType" type="CARD8" />
2511 <field name="requestMajor" type="CARD8" />
2512 <field name="requestMinor" type="CARD8" />
2515 <event name="ControlsNotify" number="3">
2516 <field name="xkbType" type="CARD8" />
2517 <field name="time" type="TIMESTAMP" />
2518 <field name="deviceID" type="CARD8" />
2519 <field name="numGroups" type="CARD8" />
2521 <field name="changedControls" type="CARD32" mask="Control" />
2522 <field name="enabledControls" type="CARD32" mask="BoolCtrl" />
2523 <field name="enabledControlChanges" type="CARD32" mask="BoolCtrl" />
2524 <field name="keycode" type="KEYCODE" />
2525 <field name="eventType" type="CARD8" />
2526 <field name="requestMajor" type="CARD8" />
2527 <field name="requestMinor" type="CARD8" />
2531 <event name="IndicatorStateNotify" number="4">
2532 <field name="xkbType" type="CARD8" />
2533 <field name="time" type="TIMESTAMP" />
2534 <field name="deviceID" type="CARD8" />
2536 <field name="state" type="CARD32" />
2537 <field name="stateChanged" type="CARD32" />
2541 <event name="IndicatorMapNotify" number="5">
2542 <field name="xkbType" type="CARD8" />
2543 <field name="time" type="TIMESTAMP" />
2544 <field name="deviceID" type="CARD8" />
2546 <field name="state" type="CARD32" />
2547 <field name="mapChanged" type="CARD32" />
2551 <event name="NamesNotify" number="6">
2552 <field name="xkbType" type="CARD8" />
2553 <field name="time" type="TIMESTAMP" />
2554 <field name="deviceID" type="CARD8" />
2556 <field name="changed" type="CARD16" mask="NameDetail" />
2557 <field name="firstType" type="CARD8" />
2558 <field name="nTypes" type="CARD8" />
2559 <field name="firstLevelName" type="CARD8" />
2560 <field name="nLevelNames" type="CARD8" />
2562 <field name="nRadioGroups" type="CARD8" />
2563 <field name="nKeyAliases" type="CARD8" />
2564 <field name="changedGroupNames" type="CARD8" mask="SetOfGroup" />
2565 <field name="changedVirtualMods" type="CARD16" mask="VMod" />
2566 <field name="firstKey" type="KEYCODE" />
2567 <field name="nKeys" type="CARD8" />
2568 <field name="changedIndicators" type="CARD32" />
2572 <event name="CompatMapNotify" number="7">
2573 <field name="xkbType" type="CARD8" />
2574 <field name="time" type="TIMESTAMP" />
2575 <field name="deviceID" type="CARD8" />
2576 <field name="changedGroups" type="CARD8" mask="SetOfGroup" />
2577 <field name="firstSI" type="CARD16" />
2578 <field name="nSI" type="CARD16" />
2579 <field name="nTotalSI" type="CARD16" />
2583 <event name="BellNotify" number="8">
2584 <field name="xkbType" type="CARD8" />
2585 <field name="time" type="TIMESTAMP" />
2586 <field name="deviceID" type="CARD8" />
2587 <field name="bellClass" type="CARD8" enum="BellClassResult" />
2588 <field name="bellID" type="CARD8" />
2589 <field name="percent" type="CARD8" />
2590 <field name="pitch" type="CARD16" />
2591 <field name="duration" type="CARD16" />
2592 <field name="name" type="ATOM" />
2593 <field name="window" type="WINDOW" />
2594 <field name="eventOnly" type="BOOL" />
2598 <event name="ActionMessage" number="9">
2599 <field name="xkbType" type="CARD8" />
2600 <field name="time" type="TIMESTAMP" />
2601 <field name="deviceID" type="CARD8" />
2602 <field name="keycode" type="KEYCODE" />
2603 <field name="press" type="BOOL" />
2604 <field name="keyEventFollows" type="BOOL" />
2605 <field name="mods" type="CARD8" mask="ModMask" />
2606 <field name="group" type="CARD8" enum="Group" />
2607 <list name="message" type="STRING8">
2613 <event name="AccessXNotify" number="10">
2614 <field name="xkbType" type="CARD8" />
2615 <field name="time" type="TIMESTAMP" />
2616 <field name="deviceID" type="CARD8" />
2617 <field name="keycode" type="KEYCODE" />
2618 <field name="detailt" type="CARD16" mask="AXNDetail" />
2619 <field name="slowKeysDelay" type="CARD16" />
2620 <field name="debounceDelay" type="CARD16" />
2624 <event name="ExtensionDeviceNotify" number="11">
2625 <field name="xkbType" type="CARD8" />
2626 <field name="time" type="TIMESTAMP" />
2627 <field name="deviceID" type="CARD8" />
2629 <field name="reason" type="CARD16" mask="XIFeature" />
2630 <field name="ledClass" type="CARD16" enum="LedClassResult" />
2631 <field name="ledID" type="CARD16" />
2632 <field name="ledsDefined" type="CARD32" />
2633 <field name="ledState" type="CARD32" />
2634 <field name="firstButton" type="CARD8" />
2635 <field name="nButtons" type="CARD8" />
2636 <field name="supported" type="CARD16" mask="XIFeature" />
2637 <field name="unsupported" type="CARD16" mask="XIFeature" />