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="AXFBOpt">
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="SKReleaseFB"> <bit>6</bit> </item>
141 <item name="SKRejectFB"> <bit>7</bit> </item>
142 <item name="BKRejectFB"> <bit>8</bit> </item>
143 <item name="DumbBell"> <bit>9</bit> </item>
146 <enum name="AXSKOpt">
147 <item name="TwoKeys"> <bit>6</bit> </item>
148 <item name="LatchToLock"> <bit>7</bit> </item>
151 <union name="AXOption">
152 <field name="fbopt" type="CARD16" enum="AXFBOpt" />
153 <field name="skopt" type="CARD16" enum="AXSKOpt" />
156 <typedef oldname="CARD16" newname="DeviceSpec" />
158 <enum name="LedClassResult">
159 <item name="KbdFeedbackClass"> <value>0</value> </item>
160 <item name="LedFeedbackClass"> <value>4</value> </item>
163 <enum name="LedClass">
164 <item name="DfltXIClass"> <value>768</value> </item> <!--0x300-->
165 <item name="AllXIClasses"> <value>1280</value> </item> <!--0x500-->
167 <typedef oldname="CARD16" newname="LedClassSpec" />
169 <enum name="BellClassResult">
170 <item name="KbdFeedbackClass"> <value>0</value> </item>
171 <item name="BellFeedbackClass"> <value>5</value> </item>
174 <enum name="BellClass">
175 <item name="DfltXIClass"> <value>768</value> </item> <!--0x300-->
177 <typedef oldname="CARD16" newname="BellClassSpec" />
180 <item name="UseCoreKbd"> <value>256</value> </item> <!-- 0x100 -->
181 <item name="UseCorePtr"> <value>512</value> </item> <!-- 0x200 -->
182 <item name="DfltXIClass"> <value>768</value> </item> <!-- 0x300 -->
183 <item name="DfltXIId"> <value>1024</value> </item> <!-- 0x400 -->
184 <item name="AllXIClass"> <value>1280</value> </item> <!-- 0x500 -->
185 <item name="AllXIId"> <value>1536</value> </item> <!-- 0x600 -->
186 <item name="XINone"> <value>65280</value> </item> <!--0xff00-->
188 <typedef oldname="CARD16" newname="IDSpec" />
191 <item name="1"> <value>0</value> </item>
192 <item name="2"> <value>1</value> </item>
193 <item name="3"> <value>2</value> </item>
194 <item name="4"> <value>3</value> </item>
198 <item name="Any"> <value>254</value> </item>
199 <item name="All"> <value>255</value> </item>
202 <enum name="SetOfGroup">
203 <item name="Group1"> <bit>0</bit> </item>
204 <item name="Group2"> <bit>1</bit> </item>
205 <item name="Group3"> <bit>2</bit> </item>
206 <item name="Group4"> <bit>3</bit> </item>
209 <enum name="SetOfGroups">
210 <item name="Any"> <bit>7</bit> </item>
213 <enum name="GroupsWrap">
214 <item name="WrapIntoRange"> <value>0</value> </item>
215 <item name="ClampIntoRange"> <bit>6</bit> </item>
216 <item name="RedirectIntoRange"> <bit>7</bit> </item>
219 <enum name="VModsHigh">
220 <item name="15"> <bit>7</bit> </item>
221 <item name="14"> <bit>6</bit> </item>
222 <item name="13"> <bit>5</bit> </item>
223 <item name="12"> <bit>4</bit> </item>
224 <item name="11"> <bit>3</bit> </item>
225 <item name="10"> <bit>2</bit> </item>
226 <item name="9"> <bit>1</bit> </item>
227 <item name="8"> <bit>0</bit> </item>
230 <enum name="VModsLow">
231 <item name="7"> <bit>7</bit> </item>
232 <item name="6"> <bit>6</bit> </item>
233 <item name="5"> <bit>5</bit> </item>
234 <item name="4"> <bit>4</bit> </item>
235 <item name="3"> <bit>3</bit> </item>
236 <item name="2"> <bit>2</bit> </item>
237 <item name="1"> <bit>1</bit> </item>
238 <item name="0"> <bit>0</bit> </item>
242 <item name="15"> <bit>15</bit> </item>
243 <item name="14"> <bit>14</bit> </item>
244 <item name="13"> <bit>13</bit> </item>
245 <item name="12"> <bit>12</bit> </item>
246 <item name="11"> <bit>11</bit> </item>
247 <item name="10"> <bit>10</bit> </item>
248 <item name="9"> <bit>9</bit> </item>
249 <item name="8"> <bit>8</bit> </item>
250 <item name="7"> <bit>7</bit> </item>
251 <item name="6"> <bit>6</bit> </item>
252 <item name="5"> <bit>5</bit> </item>
253 <item name="4"> <bit>4</bit> </item>
254 <item name="3"> <bit>3</bit> </item>
255 <item name="2"> <bit>2</bit> </item>
256 <item name="1"> <bit>1</bit> </item>
257 <item name="0"> <bit>0</bit> </item>
260 <enum name="Explicit">
261 <item name="VModMap"> <bit>7</bit> </item>
262 <item name="Behavior"> <bit>6</bit> </item>
263 <item name="AutoRepeat"> <bit>5</bit> </item>
264 <item name="Interpret"> <bit>4</bit> </item>
265 <item name="KeyType4"> <bit>3</bit> </item>
266 <item name="KeyType3"> <bit>2</bit> </item>
267 <item name="KeyType2"> <bit>1</bit> </item>
268 <item name="KeyType1"> <bit>0</bit> </item>
271 <enum name="SymInterpretMatch">
272 <item name="NoneOf"> <value>0</value> </item>
273 <item name="AnyOfOrNone"> <value>1</value> </item>
274 <item name="AnyOf"> <value>2</value> </item>
275 <item name="AllOf"> <value>3</value> </item>
276 <item name="Exactly"> <value>4</value> </item>
279 <enum name="SymInterpMatch">
280 <item name="LevelOneOnly"> <bit>7</bit> </item>
281 <item name="OpMask"> <value>127</value> </item> <!--0x7f-->
285 <item name="NoExplicit"> <bit>7</bit> </item>
286 <item name="NoAutomatic"> <bit>6</bit> </item>
287 <item name="LEDDrivesKB"> <bit>5</bit> </item>
290 <enum name="IMModsWhich">
291 <item name="UseCompat"> <bit>4</bit> </item>
292 <item name="UseEffective"> <bit>3</bit> </item>
293 <item name="UseLocked"> <bit>2</bit> </item>
294 <item name="UseLatched"> <bit>1</bit> </item>
295 <item name="UseBase"> <bit>0</bit> </item>
298 <enum name="IMGroupsWhich">
299 <item name="UseCompat"> <bit>4</bit> </item>
300 <item name="UseEffective"> <bit>3</bit> </item>
301 <item name="UseLocked"> <bit>2</bit> </item>
302 <item name="UseLatched"> <bit>1</bit> </item>
303 <item name="UseBase"> <bit>0</bit> </item>
306 <struct name="IndicatorMap">
307 <field name="flags" type="CARD8" enum="IMFlag" />
308 <field name="whichGroups" type="CARD8" enum="IMGroupsWhich" />
309 <field name="groups" type="CARD8" enum="SetOfGroup" />
310 <field name="whichMods" type="CARD8" enum="IMModsWhich" />
311 <field name="mods" type="CARD8" mask="ModMask" />
312 <field name="realMods" type="CARD8" mask="ModMask" />
313 <field name="vmods" type="CARD16" mask="VMod" />
314 <field name="ctrls" type="CARD32" enum="BoolCtrl" />
317 <enum name="CMDetail">
318 <item name="SymInterp"> <bit>0</bit> </item>
319 <item name="GroupCompat"> <bit>1</bit> </item>
322 <enum name="NameDetail">
323 <item name="Keycodes"> <bit>0</bit> </item>
324 <item name="Geometry"> <bit>1</bit> </item>
325 <item name="Symbols"> <bit>2</bit> </item>
326 <item name="PhysSymbols"> <bit>3</bit> </item>
327 <item name="Types"> <bit>4</bit> </item>
328 <item name="Compat"> <bit>5</bit> </item>
329 <item name="KeyTypeNames"> <bit>6</bit> </item>
330 <item name="KTLevelNames"> <bit>7</bit> </item>
331 <item name="IndicatorNames"> <bit>8</bit> </item>
332 <item name="KeyNames"> <bit>9</bit> </item>
333 <item name="KeyAliases"> <bit>10</bit> </item>
334 <item name="VirtualModNames"> <bit>11</bit> </item>
335 <item name="GroupNames"> <bit>12</bit> </item>
336 <item name="RGNames"> <bit>13</bit> </item>
339 <enum name="GBNDetail">
340 <item name="Types"> <bit>0</bit> </item>
341 <item name="CompatMap"> <bit>1</bit> </item>
342 <item name="ClientSymbols"> <bit>2</bit> </item>
343 <item name="ServerSymbols"> <bit>3</bit> </item>
344 <item name="IndicatorMaps"> <bit>4</bit> </item>
345 <item name="KeyNames"> <bit>5</bit> </item>
346 <item name="Geometry"> <bit>6</bit> </item>
347 <item name="OtherNames"> <bit>7</bit> </item>
350 <enum name="XIFeature">
351 <item name="Keyboards"> <bit>0</bit> </item>
352 <item name="ButtonActions"> <bit>1</bit> </item>
353 <item name="IndicatorNames"> <bit>2</bit> </item>
354 <item name="IndicatorMaps"> <bit>3</bit> </item>
355 <item name="IndicatorState"> <bit>4</bit> </item>
358 <enum name="PerClientFlag">
359 <item name="DetectableAutoRepeat"> <bit>0</bit> </item>
360 <item name="GrabsUseXKBState"> <bit>1</bit> </item>
361 <item name="AutoResetControls"> <bit>2</bit> </item>
362 <item name="LookupStateWhenGrabbed"> <bit>3</bit> </item>
363 <item name="SendEventUsesXKBState"> <bit>4</bit> </item>
366 <struct name="ModDef">
367 <field name="mask" type="CARD8" mask="ModMask" />
368 <field name="realMods" type="CARD8" mask="ModMask" />
369 <field name="vmods" type="CARD16" mask="VMod" />
372 <struct name="KeyName">
373 <list name="name" type="char">
378 <struct name="KeyAlias">
379 <list name="real" type="char">
382 <list name="alias" type="char">
387 <struct name="CountedString16">
388 <field name="length" type="CARD16" />
389 <list name="string" type="char">
390 <fieldref>length</fieldref>
392 <list type="void" name="alignment_pad">
396 <fieldref>length</fieldref>
404 <fieldref>length</fieldref>
411 <struct name="KTMapEntry">
412 <field name="active" type="BOOL" />
413 <!-- Xlib uses a different arrangement of fields
414 <field name="mods_mask" type="CARD8" mask="ModMask" />
415 <field name="level" type="CARD8" />
417 <field name="level" type="CARD8" />
418 <field name="mods_mask" type="CARD8" mask="ModMask" />
419 <field name="mods_mods" type="CARD8" mask="ModMask" />
420 <field name="mods_vmods" type="CARD16" mask="VMod" />
424 <struct name="KeyType">
425 <field name="mods_mask" type="CARD8" mask="ModMask" />
426 <field name="mods_mods" type="CARD8" mask="ModMask" />
427 <field name="mods_vmods" type="CARD16" mask="VMod" />
428 <field name="numLevels" type="CARD8" />
429 <field name="nMapEntries" type="CARD8" />
430 <field name="hasPreserve" type="BOOL" />
432 <list name="map" type="KTMapEntry">
433 <fieldref>nMapEntries</fieldref>
435 <list name="preserve" type="ModDef">
437 <fieldref>hasPreserve</fieldref>
438 <fieldref>nMapEntries</fieldref>
443 <struct name="KeySymMap">
444 <list name="kt_index" type="CARD8">
447 <field name="groupInfo" type="CARD8" />
448 <field name="width" type="CARD8" />
449 <field name="nSyms" type="CARD16" />
450 <list name="syms" type="KEYSYM">
451 <fieldref>nSyms</fieldref>
455 <!-- Key Behaviors -->
457 <struct name="CommonBehavior">
458 <field name="type" type="CARD8" />
459 <field name="data" type="CARD8" />
462 <struct name="DefaultBehavior">
463 <field name="type" type="CARD8" />
467 <typedef oldname="DefaultBehavior" newname="LockBehavior" />
469 <struct name="RadioGroupBehavior">
470 <field name="type" type="CARD8" />
471 <field name="group" type="CARD8" />
474 <struct name="Overlay1Behavior">
475 <field name="type" type="CARD8" />
476 <field name="key" type="KEYCODE" />
479 <struct name="Overlay2Behavior">
480 <field name="type" type="CARD8" />
481 <field name="key" type="CARD8" />
484 <typedef oldname="LockBehavior" newname="PermamentLockBehavior" />
485 <typedef oldname="RadioGroupBehavior" newname="PermamentRadioGroupBehavior" />
486 <typedef oldname="Overlay1Behavior" newname="PermamentOverlay1Behavior" />
487 <typedef oldname="Overlay2Behavior" newname="PermamentOverlay2Behavior" />
489 <union name="Behavior">
490 <field name="common" type="CommonBehavior" />
491 <field name="default" type="DefaultBehavior" />
492 <field name="lock" type="LockBehavior" />
493 <field name="radioGroup" type="RadioGroupBehavior" />
494 <field name="overlay1" type="Overlay1Behavior" />
495 <field name="overlay2" type="Overlay2Behavior" />
496 <field name="permamentLock" type="PermamentLockBehavior" />
497 <field name="permamentRadioGroup" type="PermamentRadioGroupBehavior" />
498 <field name="permamentOverlay1" type="PermamentOverlay1Behavior" />
499 <field name="permamentOverlay2" type="PermamentOverlay2Behavior" />
500 <field name="type" type="CARD8" />
503 <enum name="BehaviorType">
504 <item name="Default"> <value>0</value> </item> <!--0x00-->
505 <item name="Lock"> <value>1</value> </item> <!--0x01-->
506 <item name="RadioGroup"> <value>2</value> </item> <!--0x02-->
507 <item name="Overlay1"> <value>3</value> </item> <!--0x03-->
508 <item name="Overlay2"> <value>4</value> </item> <!--0x04-->
509 <item name="PermamentLock"> <value>129</value> </item> <!--0x81-->
510 <item name="PermamentRadioGroup"> <value>130</value> </item> <!--0x82-->
511 <item name="PermamentOverlay1"> <value>131</value> </item> <!--0x83-->
512 <item name="PermamentOverlay2"> <value>132</value> </item> <!--0x84-->
515 <struct name="SetBehavior">
516 <field name="keycode" type="KEYCODE" />
517 <field name="behavior" type="Behavior" />
521 <struct name="SetExplicit">
522 <field name="keycode" type="KEYCODE" />
523 <field name="explicit" type="CARD8" mask="Explicit" />
526 <struct name="KeyModMap">
527 <field name="keycode" type="KEYCODE" />
528 <field name="mods" type="CARD8" mask="ModMask" />
531 <struct name="KeyVModMap">
532 <field name="keycode" type="KEYCODE" />
534 <field name="vmods" type="CARD16" mask="VMod" />
537 <struct name="KTSetMapEntry">
538 <field name="level" type="CARD8" />
539 <field name="realMods" type="CARD8" mask="ModMask" />
540 <field name="virtualMods" type="CARD16" mask="VMod" />
543 <struct name="SetKeyType">
544 <field name="mask" type="CARD8" mask="ModMask" />
545 <field name="realMods" type="CARD8" mask="ModMask" />
546 <field name="virtualMods" type="CARD16" mask="VMod" />
547 <field name="numLevels" type="CARD8" />
548 <field name="nMapEntries" type="CARD8" />
549 <field name="preserve" type="BOOL" />
551 <list name="entries" type="KTSetMapEntry">
552 <fieldref>nMapEntries</fieldref>
554 <list name="preserve_entries" type="KTSetMapEntry">
556 <fieldref>preserve</fieldref>
557 <fieldref>nMapEntries</fieldref>
562 <typedef oldname="char" newname="STRING8" />
564 <struct name="Property">
565 <field name="nameLength" type="CARD16" />
566 <list name="name" type="STRING8">
567 <fieldref>nameLength</fieldref>
569 <field name="valueLength" type="CARD16" />
570 <list name="value" type="STRING8">
571 <fieldref>valueLength</fieldref>
575 <struct name="Outline">
576 <field name="nPoints" type="CARD8" />
577 <field name="cornerRadius" type="CARD8" />
579 <list name="points" type="POINT">
580 <fieldref>nPoints</fieldref>
584 <struct name="Shape">
585 <field name="name" type="ATOM" />
586 <field name="nOutlines" type="CARD8" />
587 <field name="primaryNdx" type="CARD8" />
588 <field name="approxNdx" type="CARD8" />
590 <list name="outlines" type="Outline">
591 <fieldref>nOutlines</fieldref>
596 <list name="name" type="STRING8">
599 <field name="gap" type="INT16" />
600 <field name="shapeNdx" type="CARD8" />
601 <field name="colorNdx" type="CARD8" />
604 <struct name="OverlayKey">
605 <list name="over" type="STRING8">
608 <list name="under" type="STRING8">
613 <struct name="OverlayRow">
614 <field name="rowUnder" type="CARD8" />
615 <field name="nKeys" type="CARD8" />
617 <list name="keys" type="OverlayKey">
618 <fieldref>nKeys</fieldref>
622 <struct name="Overlay">
623 <field name="name" type="ATOM" />
624 <field name="nRows" type="CARD8" />
626 <list name="rows" type="OverlayRow">
627 <fieldref>nRows</fieldref>
632 <field name="top" type="INT16" />
633 <field name="left" type="INT16" />
634 <field name="nKeys" type="CARD8" />
635 <field name="vertical" type="BOOL" />
637 <list name="keys" type="Key">
638 <fieldref>nKeys</fieldref>
642 <enum name="DoodadType">
643 <item name="Outline"> <value>1</value> </item>
644 <item name="Solid"> <value>2</value> </item>
645 <item name="Text"> <value>3</value> </item>
646 <item name="Indicator"> <value>4</value> </item>
647 <item name="Logo"> <value>5</value> </item>
650 <struct name="CommonDoodad">
651 <field name="name" type="ATOM" />
652 <field name="type" type="CARD8" enum="DoodadType" />
653 <field name="priority" type="CARD8" />
654 <field name="top" type="INT16" />
655 <field name="left" type="INT16" />
656 <field name="angle" type="INT16" />
659 <struct name="ShapeDoodad">
660 <field name="name" type="ATOM" />
661 <field name="type" type="CARD8" enum="DoodadType" />
662 <field name="priority" type="CARD8" />
663 <field name="top" type="INT16" />
664 <field name="left" type="INT16" />
665 <field name="angle" type="INT16" />
666 <field name="colorNdx" type="CARD8" />
667 <field name="shapeNdx" type="CARD8" />
671 <struct name="TextDoodad">
672 <field name="name" type="ATOM" />
673 <field name="type" type="CARD8" enum="DoodadType" />
674 <field name="priority" type="CARD8" />
675 <field name="top" type="INT16" />
676 <field name="left" type="INT16" />
677 <field name="angle" type="INT16" />
678 <field name="width" type="CARD16" />
679 <field name="height" type="CARD16" />
680 <field name="colorNdx" type="CARD8" />
682 <field name="text" type="CountedString16" />
683 <field name="font" type="CountedString16" />
686 <struct name="IndicatorDoodad">
687 <field name="name" type="ATOM" />
688 <field name="type" type="CARD8" enum="DoodadType" />
689 <field name="priority" type="CARD8" />
690 <field name="top" type="INT16" />
691 <field name="left" type="INT16" />
692 <field name="angle" type="INT16" />
693 <field name="shapeNdx" type="CARD8" />
694 <field name="onColorNdx" type="CARD8" />
695 <field name="offColorNdx" type="CARD8" />
699 <struct name="LogoDoodad">
700 <field name="name" type="ATOM" />
701 <field name="type" type="CARD8" enum="DoodadType" />
702 <field name="priority" type="CARD8" />
703 <field name="top" type="INT16" />
704 <field name="left" type="INT16" />
705 <field name="angle" type="INT16" />
706 <field name="colorNdx" type="CARD8" />
707 <field name="shapeNdx" type="CARD8" />
709 <field name="logoName" type="CountedString16" />
712 <union name="Doodad">
713 <field name="common" type="CommonDoodad" />
714 <field name="shape" type="ShapeDoodad" />
715 <field name="text" type="TextDoodad" />
716 <field name="indicator" type="IndicatorDoodad" />
717 <field name="logo" type="LogoDoodad" />
720 <struct name="Section">
721 <field name="name" type="ATOM" />
722 <field name="top" type="INT16" />
723 <field name="left" type="INT16" />
724 <field name="width" type="CARD16" />
725 <field name="height" type="CARD16" />
726 <field name="angle" type="INT16" />
727 <field name="priority" type="CARD8" />
728 <field name="nRows" type="CARD8" />
729 <field name="nDoodads" type="CARD8" />
730 <field name="nOverlays" type="CARD8" />
732 <list name="rows" type="Row">
733 <fieldref>nRows</fieldref>
735 <list name="doodads" type="Doodad">
736 <fieldref>nDoodads</fieldref>
738 <list name="overlays" type="Overlay">
739 <fieldref>nOverlays</fieldref>
743 <struct name="Listing">
744 <field name="flags" type="CARD16" />
745 <field name="length" type="CARD16" />
746 <list name="string" type="STRING8">
747 <fieldref>length</fieldref>
751 <struct name="DeviceLedInfo">
752 <field name="ledClass" type="LedClassSpec" enum="LedClass" />
753 <field name="ledID" type="IDSpec" altenum="ID" />
754 <field name="namesPresent" type="CARD32" />
755 <field name="mapsPresent" type="CARD32" />
756 <field name="physIndicators" type="CARD32" />
757 <field name="state" type="CARD32" />
758 <list name="names" type="ATOM">
760 <fieldref>namesPresent</fieldref>
763 <list name="maps" type="IndicatorMap">
765 <fieldref>mapsPresent</fieldref>
773 <item name="BadDevice"> <value>255</value> </item> <!--0xff-->
774 <item name="BadClass"> <value>254</value> </item> <!--0xfe-->
775 <item name="BadId"> <value>253</value> </item> <!--0xfd-->
778 <error name="Keyboard" number="0">
779 <field name="value" type="CARD32" />
780 <field name="minorOpcode" type="CARD16" />
781 <field name="majorOpcode" type="CARD8" />
788 <item name="ClearLocks"> <bit>0</bit> </item>
789 <item name="LatchToLock"> <bit>1</bit> </item>
790 <item name="UseModMapMods"> <bit>2</bit> </item>
791 <item name="GroupAbsolute"> <bit>2</bit> </item>
795 <item name="NoAction"> <value>0</value> </item>
796 <item name="SetMods"> <value>1</value> </item>
797 <item name="LatchMods"> <value>2</value> </item>
798 <item name="LockMods"> <value>3</value> </item>
799 <item name="SetGroup"> <value>4</value> </item>
800 <item name="LatchGroup"> <value>5</value> </item>
801 <item name="LockGroup"> <value>6</value> </item>
802 <item name="MovePtr"> <value>7</value> </item>
803 <item name="PtrBtn"> <value>8</value> </item>
804 <item name="LockPtrBtn"> <value>9</value> </item>
805 <item name="SetPtrDflt"> <value>10</value> </item>
806 <item name="ISOLock"> <value>11</value> </item>
807 <item name="Terminate"> <value>12</value> </item>
808 <item name="SwitchScreen"> <value>13</value> </item>
809 <item name="SetControls"> <value>14</value> </item>
810 <item name="LockControls"> <value>15</value> </item>
811 <item name="ActionMessage"> <value>16</value> </item>
812 <item name="RedirectKey"> <value>17</value> </item>
813 <item name="DeviceBtn"> <value>18</value> </item>
814 <item name="LockDeviceBtn"> <value>19</value> </item>
815 <item name="DeviceValuator"> <value>20</value> </item>
818 <struct name="SANoAction">
819 <field name="type" type="CARD8" enum="SAType" />
823 <struct name="SASetMods">
824 <field name="type" type="CARD8" enum="SAType" />
825 <field name="flags" type="CARD8" mask="SA" />
826 <field name="mask" type="CARD8" mask="ModMask" />
827 <field name="realMods" type="CARD8" mask="ModMask" />
828 <field name="vmodsHigh" type="CARD8" mask="VModsHigh" />
829 <field name="vmodsLow" type="CARD8" mask="VModsLow" />
833 <typedef oldname="SASetMods" newname="SALatchMods" />
835 <typedef oldname="SASetMods" newname="SALockMods" />
837 <struct name="SASetGroup">
838 <field name="type" type="CARD8" enum="SAType" />
839 <field name="flags" type="CARD8" mask="SA" />
840 <field name="group" type="INT8" />
844 <typedef oldname="SASetGroup" newname="SALatchGroup" />
846 <typedef oldname="SASetGroup" newname="SALockGroup" />
848 <enum name="SAMovePtrFlag">
849 <item name="NoAcceleration"> <bit>0</bit> </item>
850 <item name="MoveAbsoluteX"> <bit>1</bit> </item>
851 <item name="MoveAbsoluteY"> <bit>2</bit> </item>
854 <struct name="SAMovePtr">
855 <field name="type" type="CARD8" enum="SAType" />
856 <field name="flags" type="CARD8" mask="SAMovePtrFlag" />
857 <field name="xHigh" type="INT8" />
858 <field name="xLow" type="CARD8" />
859 <field name="yHigh" type="INT8" />
860 <field name="yLow" type="CARD8" />
864 <struct name="SAPtrBtn">
865 <field name="type" type="CARD8" enum="SAType" />
866 <field name="flags" type="CARD8" />
867 <field name="count" type="CARD8" />
868 <field name="button" type="CARD8" />
872 <struct name="SALockPtrBtn">
873 <field name="type" type="CARD8" enum="SAType" />
874 <field name="flags" type="CARD8" />
876 <field name="button" type="CARD8" />
880 <enum name="SASetPtrDfltFlag">
881 <item name="DfltBtnAbsolute"> <bit>1</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" />
1012 <enum name="SAValWhat">
1013 <item name="IgnoreVal"> <value>0</value> </item>
1014 <item name="SetValMin"> <value>1</value> </item>
1015 <item name="SetValCenter"> <value>2</value> </item>
1016 <item name="SetValMax"> <value>3</value> </item>
1017 <item name="SetValRelative"> <value>4</value> </item>
1018 <item name="SetValAbsolute"> <value>5</value> </item>
1021 <struct name="SADeviceValuator">
1022 <field name="type" type="CARD8" enum="SAType" />
1023 <field name="device" type="CARD8" />
1024 <field name="val1what" type="CARD8" enum="SAValWhat" />
1025 <field name="val1index" type="CARD8" />
1026 <field name="val1value" type="CARD8" />
1027 <field name="val2what" type="CARD8" enum="SAValWhat" />
1028 <field name="val2index" type="CARD8" />
1029 <field name="val2value" type="CARD8" />
1032 <struct name="SIAction">
1033 <field name="type" type="CARD8" enum="SAType" />
1034 <list name="data" type="CARD8">
1039 <struct name="SymInterpret">
1040 <field name="sym" type="KEYSYM" />
1041 <field name="mods" type="CARD8" mask="ModMask" />
1042 <!-- "match" may also have XkbSI_LevelOneOnly (0x80) or'd into it -->
1043 <field name="match" type="CARD8" altenum="SymInterpretMatch" />
1044 <field name="virtualMod" type="CARD8" mask="VModsLow" />
1045 <field name="flags" type="CARD8" />
1046 <field name="action" type="SIAction" />
1049 <union name="Action">
1050 <field name="noaction" type="SANoAction" />
1051 <field name="setmods" type="SASetMods" />
1052 <field name="latchmods" type="SALatchMods" />
1053 <field name="lockmods" type="SALockMods" />
1054 <field name="setgroup" type="SASetGroup" />
1055 <field name="latchgroup" type="SALatchGroup" />
1056 <field name="lockgroup" type="SALockGroup" />
1057 <field name="moveptr" type="SAMovePtr" />
1058 <field name="ptrbtn" type="SAPtrBtn" />
1059 <field name="lockptrbtn" type="SALockPtrBtn" />
1060 <field name="setptrdflt" type="SASetPtrDflt" />
1061 <field name="isolock" type="SAIsoLock" />
1062 <field name="terminate" type="SATerminate" />
1063 <field name="switchscreen" type="SASwitchScreen" />
1064 <field name="setcontrols" type="SASetControls" />
1065 <field name="lockcontrols" type="SALockControls" />
1066 <field name="message" type="SAActionMessage" />
1067 <field name="redirect" type="SARedirectKey" />
1068 <field name="devbtn" type="SADeviceBtn" />
1069 <field name="lockdevbtn" type="SALockDeviceBtn" />
1070 <field name="devval" type="SADeviceValuator" />
1071 <field name="type" type="CARD8" enum="SAType" />
1076 <request name="UseExtension" opcode="0">
1077 <field name="wantedMajor" type="CARD16" />
1078 <field name="wantedMinor" type="CARD16" />
1080 <field name="supported" type="BOOL" />
1081 <field name="serverMajor" type="CARD16" />
1082 <field name="serverMinor" type="CARD16" />
1087 <request name="SelectEvents" opcode="1">
1088 <field name="deviceSpec" type="DeviceSpec" />
1089 <field name="affectWhich" type="CARD16" enum="EventType" />
1090 <field name="clear" type="CARD16" enum="EventType" />
1091 <field name="selectAll" type="CARD16" enum="EventType" />
1092 <field name="affectMap" type="CARD16" enum="MapPart" />
1093 <field name="map" type="CARD16" enum="MapPart" />
1094 <switch name="details">
1096 <fieldref>affectWhich</fieldref>
1098 <unop op="~"><fieldref>clear</fieldref></unop>
1099 <unop op="~"><fieldref>selectAll</fieldref></unop>
1103 <enumref ref="EventType">NewKeyboardNotify</enumref>
1104 <field name="affectNewKeyboard" type="CARD16" mask="NKNDetail" />
1105 <field name="newKeyboardDetails" type="CARD16" mask="NKNDetail" />
1108 <enumref ref="EventType">StateNotify</enumref>
1109 <field name="affectState" type="CARD16" mask="StatePart" />
1110 <field name="stateDetails" type="CARD16" mask="StatePart" />
1113 <enumref ref="EventType">ControlsNotify</enumref>
1114 <field name="affectCtrls" type="CARD32" mask="Control" />
1115 <field name="ctrlDetails" type="CARD32" mask="Control" />
1118 <enumref ref="EventType">IndicatorStateNotify</enumref>
1119 <field name="affectIndicatorState" type="CARD32" />
1120 <field name="indicatorStateDetails" type="CARD32" />
1123 <enumref ref="EventType">IndicatorMapNotify</enumref>
1124 <field name="affectIndicatorMap" type="CARD32" />
1125 <field name="indicatorMapDetails" type="CARD32" />
1128 <enumref ref="EventType">NamesNotify</enumref>
1129 <field name="affectNames" type="CARD16" mask="NameDetail" />
1130 <field name="namesDetails" type="CARD16" mask="NameDetail" />
1133 <enumref ref="EventType">CompatMapNotify</enumref>
1134 <field name="affectCompat" type="CARD8" mask="CMDetail" />
1135 <field name="compatDetails" type="CARD8" mask="CMDetail" />
1138 <enumref ref="EventType">BellNotify</enumref>
1139 <field name="affectBell" type="CARD8" />
1140 <field name="bellDetails" type="CARD8" />
1143 <enumref ref="EventType">ActionMessage</enumref>
1144 <field name="affectMsgDetails" type="CARD8" />
1145 <field name="msgDetails" type="CARD8" />
1148 <enumref ref="EventType">AccessXNotify</enumref>
1149 <field name="affectAccessX" type="CARD16" mask="AXNDetail" />
1150 <field name="accessXDetails" type="CARD16" mask="AXNDetail" />
1153 <enumref ref="EventType">ExtensionDeviceNotify</enumref>
1154 <field name="affectExtDev" type="CARD16" mask="XIFeature" />
1155 <field name="extdevDetails" type="CARD16" mask="XIFeature" />
1160 <request name="Bell" opcode="3">
1161 <field name="deviceSpec" type="DeviceSpec" />
1162 <field name="bellClass" type="BellClassSpec" />
1163 <field name="bellID" type="IDSpec" />
1164 <field name="percent" type="INT8" />
1165 <field name="forceSound" type="BOOL" />
1166 <field name="eventOnly" type="BOOL" />
1168 <field name="pitch" type="INT16" />
1169 <field name="duration" type="INT16" />
1171 <field name="name" type="ATOM" />
1172 <field name="window" type="WINDOW" />
1175 <request name="GetState" opcode="4">
1176 <field name="deviceSpec" type="DeviceSpec" />
1179 <field name="deviceID" type="CARD8" />
1180 <field name="mods" type="CARD8" mask="ModMask" />
1181 <field name="baseMods" type="CARD8" mask="ModMask" />
1182 <field name="latchedMods" type="CARD8" mask="ModMask" />
1183 <field name="lockedMods" type="CARD8" mask="ModMask" />
1184 <field name="group" type="CARD8" enum="Group" />
1185 <field name="lockedGroup" type="CARD8" enum="Group" />
1186 <field name="baseGroup" type="INT16" />
1187 <field name="latchedGroup" type="INT16" />
1188 <field name="compatState" type="CARD8" mask="ModMask" />
1189 <field name="grabMods" type="CARD8" mask="ModMask" />
1190 <field name="compatGrabMods" type="CARD8" mask="ModMask" />
1191 <field name="lookupMods" type="CARD8" mask="ModMask" />
1192 <field name="compatLookupMods" type="CARD8" mask="ModMask" />
1194 <field name="ptrBtnState" type="CARD16" mask="KeyButMask" />
1199 <request name="LatchLockState" opcode="5">
1200 <field name="deviceSpec" type="DeviceSpec" />
1201 <field name="affectModLocks" type="CARD8" mask="ModMask" />
1202 <field name="modLocks" type="CARD8" mask="ModMask" />
1203 <field name="lockGroup" type="BOOL" />
1204 <field name="groupLock" type="CARD8" enum="Group" />
1205 <field name="affectModLatches" type="CARD8" mask="ModMask" />
1207 <field name="latchGroup" type="BOOL" />
1208 <field name="groupLatch" type="CARD16" />
1211 <request name="GetControls" opcode="6">
1212 <field name="deviceSpec" type="DeviceSpec" />
1215 <field name="deviceID" type="CARD8" />
1216 <field name="mouseKeysDfltBtn" type="CARD8" />
1217 <field name="numGroups" type="CARD8" />
1218 <field name="groupsWrap" type="CARD8" />
1219 <field name="internalModsMask" type="CARD8" mask="ModMask" />
1220 <field name="ignoreLockModsMask" type="CARD8" mask="ModMask" />
1221 <field name="internalModsRealMods" type="CARD8" mask="ModMask" />
1222 <field name="ignoreLockModsRealMods" type="CARD8" mask="ModMask" />
1224 <field name="internalModsVmods" type="CARD16" mask="VMod" />
1225 <field name="ignoreLockModsVmods" type="CARD16" mask="VMod" />
1226 <field name="repeatDelay" type="CARD16" />
1227 <field name="repeatInterval" type="CARD16" />
1228 <field name="slowKeysDelay" type="CARD16" />
1229 <field name="debounceDelay" type="CARD16" />
1230 <field name="mouseKeysDelay" type="CARD16" />
1231 <field name="mouseKeysInterval" type="CARD16" />
1232 <field name="mouseKeysTimeToMax" type="CARD16" />
1233 <field name="mouseKeysMaxSpeed" type="CARD16" />
1234 <field name="mouseKeysCurve" type="INT16" />
1235 <field name="accessXOption" type="AXOption" />
1236 <field name="accessXTimeout" type="CARD16" />
1237 <field name="accessXTimeoutOptionsMask" type="AXOption" />
1238 <field name="accessXTimeoutOptionsValues" type="AXOption" />
1240 <field name="accessXTimeoutMask" type="CARD32" enum="BoolCtrl" />
1241 <field name="accessXTimeoutValues" type="CARD32" enum="BoolCtrl" />
1242 <field name="enabledControls" type="CARD32" enum="BoolCtrl" />
1243 <list name="perKeyRepeat" type="CARD8">
1249 <request name="SetControls" opcode="7">
1250 <field name="deviceSpec" type="DeviceSpec" />
1251 <field name="affectInternalRealMods" type="CARD8" mask="ModMask" />
1252 <field name="internalRealMods" type="CARD8" mask="ModMask" />
1253 <field name="affectIgnoreLockRealMods" type="CARD8" mask="ModMask" />
1254 <field name="ignoreLockRealMods" type="CARD8" mask="ModMask" />
1255 <field name="affectInternalVirtualMods" type="CARD16" mask="VMod" />
1256 <field name="internalVirtualMods" type="CARD16" mask="VMod" />
1257 <field name="affectIgnoreLockVirtualMods" type="CARD16" mask="VMod" />
1258 <field name="ignoreLockVirtualMods" type="CARD16" mask="VMod" />
1259 <field name="mouseKeysDfltBtn" type="CARD8" />
1260 <field name="groupsWrap" type="CARD8" />
1261 <field name="accessXOptions" type="AXOption" />
1263 <field name="affectEnabledControls" type="CARD32" enum="BoolCtrl" />
1264 <field name="enabledControls" type="CARD32" enum="BoolCtrl" />
1265 <field name="changeControls" type="CARD32" mask="Control" />
1266 <field name="repeatDelay" type="CARD16" />
1267 <field name="repeatInterval" type="CARD16" />
1268 <field name="slowKeysDelay" type="CARD16" />
1269 <field name="debounceDelay" type="CARD16" />
1270 <field name="mouseKeysDelay" type="CARD16" />
1271 <field name="mouseKeysInterval" type="CARD16" />
1272 <field name="mouseKeysTimeToMax" type="CARD16" />
1273 <field name="mouseKeysMaxSpeed" type="CARD16" />
1274 <field name="mouseKeysCurve" type="INT16" />
1275 <field name="accessXTimeout" type="CARD16" />
1276 <field name="accessXTimeoutMask" type="CARD32" enum="BoolCtrl" />
1277 <field name="accessXTimeoutValues" type="CARD32" enum="BoolCtrl" />
1278 <field name="accessXTimeoutOptionsMask" type="AXOption" />
1279 <field name="accessXTimeoutOptionsValues" type="AXOption" />
1280 <list name="perKeyRepeat" type="CARD8">
1285 <request name="GetMap" opcode="8">
1286 <field name="deviceSpec" type="DeviceSpec" />
1287 <field name="full" type="CARD16" enum="MapPart" />
1288 <field name="partial" type="CARD16" enum="MapPart" />
1289 <field name="firstType" type="CARD8" />
1290 <field name="nTypes" type="CARD8" />
1291 <field name="firstKeySym" type="KEYCODE" />
1292 <field name="nKeySyms" type="CARD8" />
1293 <field name="firstKeyAction" type="KEYCODE" />
1294 <field name="nKeyActions" type="CARD8" />
1295 <field name="firstKeyBehavior" type="KEYCODE" />
1296 <field name="nKeyBehaviors" type="CARD8" />
1297 <field name="virtualMods" type="CARD16" mask="VMod" />
1298 <field name="firstKeyExplicit" type="KEYCODE" />
1299 <field name="nKeyExplicit" type="CARD8" />
1300 <field name="firstModMapKey" type="KEYCODE" />
1301 <field name="nModMapKeys" type="CARD8" />
1302 <field name="firstVModMapKey" type="KEYCODE" />
1303 <field name="nVModMapKeys" type="CARD8" />
1306 <field name="deviceID" type="CARD8" />
1308 <field name="minKeyCode" type="KEYCODE" />
1309 <field name="maxKeyCode" type="KEYCODE" />
1310 <field name="present" type="CARD16" enum="MapPart" />
1311 <field name="firstType" type="CARD8" />
1312 <field name="nTypes" type="CARD8" />
1313 <field name="totalTypes" type="CARD8" />
1314 <field name="firstKeySym" type="KEYCODE" />
1315 <field name="totalSyms" type="CARD16" />
1316 <field name="nKeySyms" type="CARD8" />
1317 <field name="firstKeyAction" type="KEYCODE" />
1318 <field name="totalActions" type="CARD16" />
1319 <field name="nKeyActions" type="CARD8" />
1320 <field name="firstKeyBehavior" type="KEYCODE" />
1321 <field name="nKeyBehaviors" type="CARD8" />
1322 <field name="totalKeyBehaviors" type="CARD8" />
1323 <field name="firstKeyExplicit" type="KEYCODE" />
1324 <field name="nKeyExplicit" type="CARD8" />
1325 <field name="totalKeyExplicit" type="CARD8" />
1326 <field name="firstModMapKey" type="KEYCODE" />
1327 <field name="nModMapKeys" type="CARD8" />
1328 <field name="totalModMapKeys" type="CARD8" />
1329 <field name="firstVModMapKey" type="KEYCODE" />
1330 <field name="nVModMapKeys" type="CARD8" />
1331 <field name="totalVModMapKeys" type="CARD8" />
1333 <field name="virtualMods" type="CARD16" mask="VMod" />
1335 <fieldref>present</fieldref>
1337 <enumref ref="MapPart">KeyTypes</enumref>
1338 <list name="types_rtrn" type="KeyType">
1339 <fieldref>nTypes</fieldref>
1343 <enumref ref="MapPart">KeySyms</enumref>
1344 <list name="syms_rtrn" type="KeySymMap">
1345 <fieldref>nKeySyms</fieldref>
1349 <enumref ref="MapPart">KeyActions</enumref>
1350 <list name="acts_rtrn_count" type="CARD8">
1351 <fieldref>nKeyActions</fieldref>
1353 <list name="acts_rtrn_acts" type="Action">
1354 <fieldref>totalActions</fieldref>
1358 <enumref ref="MapPart">KeyBehaviors</enumref>
1359 <list name="behaviors_rtrn" type="SetBehavior">
1360 <fieldref>totalKeyBehaviors</fieldref>
1364 <enumref ref="MapPart">VirtualMods</enumref>
1365 <list name="vmods_rtrn" type="CARD8" mask="ModMask">
1366 <popcount><fieldref>virtualMods</fieldref></popcount>
1370 <enumref ref="MapPart">ExplicitComponents</enumref>
1371 <list name="explicit_rtrn" type="SetExplicit">
1372 <fieldref>totalKeyExplicit</fieldref>
1376 <enumref ref="MapPart">ModifierMap</enumref>
1377 <list name="modmap_rtrn" type="KeyModMap">
1378 <fieldref>totalModMapKeys</fieldref>
1382 <enumref ref="MapPart">VirtualModMap</enumref>
1383 <list name="vmodmap_rtrn" type="KeyVModMap">
1384 <fieldref>totalVModMapKeys</fieldref>
1391 <request name="SetMap" opcode="9">
1392 <field name="deviceSpec" type="DeviceSpec" />
1393 <field name="present" type="CARD16" enum="MapPart" />
1394 <field name="flags" type="CARD16" mask="SetMapFlags" />
1395 <field name="minKeyCode" type="KEYCODE" />
1396 <field name="maxKeyCode" type="KEYCODE" />
1397 <field name="firstType" type="CARD8" />
1398 <field name="nTypes" type="CARD8" />
1399 <field name="firstKeySym" type="KEYCODE" />
1400 <field name="nKeySyms" type="CARD8" />
1401 <field name="totalSyms" type="CARD16" />
1402 <field name="firstKeyAction" type="KEYCODE" />
1403 <field name="nKeyActions" type="CARD8" />
1404 <field name="totalActions" type="CARD16" />
1405 <field name="firstKeyBehavior" type="KEYCODE" />
1406 <field name="nKeyBehaviors" type="CARD8" />
1407 <field name="totalKeyBehaviors" type="CARD8" />
1408 <field name="firstKeyExplicit" type="KEYCODE" />
1409 <field name="nKeyExplicit" type="CARD8" />
1410 <field name="totalKeyExplicit" type="CARD8" />
1411 <field name="firstModMapKey" type="KEYCODE" />
1412 <field name="nModMapKeys" type="CARD8" />
1413 <field name="totalModMapKeys" type="CARD8" />
1414 <field name="firstVModMapKey" type="KEYCODE" />
1415 <field name="nVModMapKeys" type="CARD8" />
1416 <field name="totalVModMapKeys" type="CARD8" />
1417 <field name="virtualMods" type="CARD16" mask="VMod" />
1418 <switch name="values">
1419 <fieldref>present</fieldref>
1421 <enumref ref="MapPart">KeyTypes</enumref>
1422 <list name="types" type="SetKeyType">
1423 <fieldref>nTypes</fieldref>
1427 <enumref ref="MapPart">KeySyms</enumref>
1428 <list name="syms" type="KeySymMap">
1429 <fieldref>nKeySyms</fieldref>
1433 <enumref ref="MapPart">KeyActions</enumref>
1434 <list name="actionsCount" type="CARD8">
1435 <fieldref>nKeyActions</fieldref>
1437 <list name="actions" type="Action">
1438 <fieldref>totalActions</fieldref>
1442 <enumref ref="MapPart">KeyBehaviors</enumref>
1443 <list name="behaviors" type="SetBehavior">
1444 <fieldref>totalKeyBehaviors</fieldref>
1448 <enumref ref="MapPart">VirtualMods</enumref>
1449 <list name="vmods" type="CARD8">
1450 <popcount><fieldref>virtualMods</fieldref></popcount>
1454 <enumref ref="MapPart">ExplicitComponents</enumref>
1455 <list name="explicit" type="SetExplicit">
1456 <fieldref>totalKeyExplicit</fieldref>
1460 <enumref ref="MapPart">ModifierMap</enumref>
1461 <list name="modmap" type="KeyModMap">
1462 <fieldref>totalModMapKeys</fieldref>
1466 <enumref ref="MapPart">VirtualModMap</enumref>
1467 <list name="vmodmap" type="KeyVModMap">
1468 <fieldref>totalVModMapKeys</fieldref>
1474 <request name="GetCompatMap" opcode="10">
1475 <field name="deviceSpec" type="DeviceSpec" />
1476 <field name="groups" type="CARD8" mask="SetOfGroup" />
1477 <field name="getAllSI" type="BOOL" />
1478 <field name="firstSI" type="CARD16" />
1479 <field name="nSI" type="CARD16" />
1481 <field name="deviceID" type="CARD8" />
1482 <field name="groupsRtrn" type="CARD8" mask="SetOfGroup" />
1484 <field name="firstSIRtrn" type="CARD16" />
1485 <field name="nSIRtrn" type="CARD16" />
1486 <field name="nTotalSI" type="CARD16" />
1488 <list name="si_rtrn" type="SymInterpret">
1489 <fieldref>nSIRtrn</fieldref>
1491 <list name="group_rtrn" type="ModDef">
1493 <fieldref>groupsRtrn</fieldref>
1499 <request name="SetCompatMap" opcode="11">
1500 <field name="deviceSpec" type="DeviceSpec" />
1502 <field name="recomputeActions" type="BOOL" />
1503 <field name="truncateSI" type="BOOL" />
1504 <field name="groups" type="CARD8" mask="SetOfGroup" />
1505 <field name="firstSI" type="CARD16" />
1506 <field name="nSI" type="CARD16" />
1508 <list name="si" type="SymInterpret">
1509 <fieldref>nSI</fieldref>
1511 <list name="groupMaps" type="ModDef">
1513 <fieldref>groups</fieldref>
1518 <request name="GetIndicatorState" opcode="12">
1519 <field name="deviceSpec" type="DeviceSpec" />
1522 <field name="deviceID" type="CARD8" />
1523 <field name="state" type="CARD32" />
1528 <request name="GetIndicatorMap" opcode="13">
1529 <field name="deviceSpec" type="DeviceSpec" />
1531 <field name="which" type="CARD32" />
1533 <field name="deviceID" type="CARD8" />
1534 <field name="which" type="CARD32" />
1535 <field name="realIndicators" type="CARD32" />
1536 <field name="nIndicators" type="CARD8" />
1538 <list name="maps" type="IndicatorMap">
1539 <fieldref>nIndicators</fieldref>
1544 <request name="SetIndicatorMap" opcode="14">
1545 <field name="deviceSpec" type="DeviceSpec" />
1547 <field name="which" type="CARD32" />
1548 <list name="maps" type="IndicatorMap">
1550 <fieldref>which</fieldref>
1555 <request name="GetNamedIndicator" opcode="15">
1556 <field name="deviceSpec" type="DeviceSpec" />
1557 <field name="ledClass" type="LedClassSpec" enum="LedClass" />
1558 <field name="ledID" type="IDSpec" altenum="ID" />
1560 <field name="indicator" type="ATOM" />
1562 <field name="deviceID" type="CARD8" />
1563 <field name="indicator" type="ATOM" />
1564 <field name="found" type="BOOL" />
1565 <field name="on" type="BOOL" />
1566 <field name="realIndicator" type="BOOL" />
1567 <field name="ndx" type="CARD8" />
1568 <field name="map_flags" type="CARD8" mask="IMFlag" />
1569 <field name="map_whichGroups" type="CARD8" mask="IMGroupsWhich" />
1570 <field name="map_groups" type="CARD8" mask="SetOfGroups" />
1571 <field name="map_whichMods" type="CARD8" mask="IMModsWhich" />
1572 <field name="map_mods" type="CARD8" mask="ModMask" />
1573 <field name="map_realMods" type="CARD8" mask="ModMask" />
1574 <field name="map_vmod" type="CARD16" mask="VMod" />
1575 <field name="map_ctrls" type="CARD32" mask="BoolCtrl" />
1580 <request name="SetNamedIndicator" opcode="16" >
1581 <field name="deviceSpec" type="DeviceSpec" />
1582 <field name="ledClass" type="LedClassSpec" enum="LedClass" />
1583 <field name="ledID" type="IDSpec" altenum="ID" />
1585 <field name="indicator" type="ATOM" />
1586 <field name="setState" type="BOOL" />
1587 <field name="on" type="BOOL" />
1588 <field name="setMap" type="BOOL" />
1589 <field name="createMap" type="BOOL" />
1591 <field name="map_flags" type="CARD8" mask="IMFlag" />
1592 <field name="map_whichGroups" type="CARD8" mask="IMGroupsWhich" />
1593 <field name="map_groups" type="CARD8" mask="SetOfGroups" />
1594 <field name="map_whichMods" type="CARD8" mask="IMModsWhich" />
1595 <field name="map_realMods" type="CARD8" mask="ModMask" />
1596 <field name="map_vmods" type="CARD16" mask="VMod" />
1597 <field name="map_ctrls" type="CARD32" mask="BoolCtrl" />
1600 <request name="GetNames" opcode="17">
1601 <field name="deviceSpec" type="DeviceSpec" />
1603 <field name="which" type="CARD32" mask="NameDetail" />
1605 <field name="deviceID" type="CARD8" />
1606 <field name="which" type="CARD32" mask="NameDetail" />
1607 <field name="minKeyCode" type="KEYCODE" />
1608 <field name="maxKeyCode" type="KEYCODE" />
1609 <field name="nTypes" type="CARD8" />
1610 <field name="groupNames" type="CARD8" mask="SetOfGroup" />
1611 <field name="virtualMods" type="CARD16" mask="VMod" />
1612 <field name="firstKey" type="KEYCODE" />
1613 <field name="nKeys" type="CARD8" />
1614 <field name="indicators" type="CARD32" />
1615 <field name="nRadioGroups" type="CARD8" />
1616 <field name="nKeyAliases" type="CARD8" />
1617 <field name="nKTLevels" type="CARD16" />
1619 <switch name="valueList">
1620 <fieldref>which</fieldref>
1622 <enumref ref="NameDetail">Keycodes</enumref>
1623 <field name="keycodesName" type="ATOM" />
1626 <enumref ref="NameDetail">Geometry</enumref>
1627 <field name="geometryName" type="ATOM" />
1630 <enumref ref="NameDetail">Symbols</enumref>
1631 <field name="symbolsName" type="ATOM" />
1634 <enumref ref="NameDetail">PhysSymbols</enumref>
1635 <field name="physSymbolsName" type="ATOM" />
1638 <enumref ref="NameDetail">Types</enumref>
1639 <field name="typesName" type="ATOM" />
1642 <enumref ref="NameDetail">Compat</enumref>
1643 <field name="compatName" type="ATOM" />
1646 <enumref ref="NameDetail">KeyTypeNames</enumref>
1647 <list name="typeNames" type="ATOM">
1648 <fieldref>nTypes</fieldref>
1652 <enumref ref="NameDetail">KTLevelNames</enumref>
1653 <list name="nLevelsPerType" type="CARD8">
1654 <!-- Xlib uses NTypes here -
1655 the spec says nKTLevels is correct, but
1656 it does not work in reality
1657 <fieldref>nKTLevels</fieldref> -->
1658 <fieldref>nTypes</fieldref>
1660 <list name="ktLevelNames" type="ATOM">
1661 <sumof ref="nLevelsPerType" />
1665 <enumref ref="NameDetail">IndicatorNames</enumref>
1666 <list name="indicatorNames" type="ATOM">
1668 <fieldref>indicators</fieldref>
1673 <enumref ref="NameDetail">VirtualModNames</enumref>
1674 <list name="virtualModNames" type="ATOM">
1676 <fieldref>virtualMods</fieldref>
1681 <enumref ref="NameDetail">GroupNames</enumref>
1682 <list name="groups" type="ATOM">
1684 <fieldref>groupNames</fieldref>
1689 <enumref ref="NameDetail">KeyNames</enumref>
1690 <list name="keyNames" type="KeyName">
1691 <fieldref>nKeys</fieldref>
1695 <enumref ref="NameDetail">KeyAliases</enumref>
1696 <list name="keyAliases" type="KeyAlias">
1697 <fieldref>nKeyAliases</fieldref>
1701 <enumref ref="NameDetail">RGNames</enumref>
1702 <list name="radioGroupNames" type="ATOM">
1703 <fieldref>nRadioGroups</fieldref>
1710 <request name="SetNames" opcode="18">
1711 <field name="deviceSpec" type="DeviceSpec" />
1712 <field name="virtualMods" type="CARD16" mask="VMod" />
1713 <field name="which" type="CARD32" mask="NameDetail" />
1714 <field name="firstType" type="CARD8" />
1715 <field name="nTypes" type="CARD8" />
1716 <field name="firstKTLevelt" type="CARD8" />
1717 <field name="nKTLevels" type="CARD8" />
1718 <field name="indicators" type="CARD32" />
1719 <field name="groupNames" type="CARD8" mask="SetOfGroup" />
1720 <field name="nRadioGroups" type="CARD8" />
1721 <field name="firstKey" type="KEYCODE" />
1722 <field name="nKeys" type="CARD8" />
1723 <field name="nKeyAliases" type="CARD8"/>
1725 <field name="totalKTLevelNames" type="CARD16" />
1726 <switch name="values">
1727 <fieldref>which</fieldref>
1729 <enumref ref="NameDetail">Keycodes</enumref>
1730 <field name="keycodesName" type="ATOM" />
1733 <enumref ref="NameDetail">Geometry</enumref>
1734 <field name="geometryName" type="ATOM" />
1737 <enumref ref="NameDetail">Symbols</enumref>
1738 <field name="symbolsName" type="ATOM" />
1741 <enumref ref="NameDetail">PhysSymbols</enumref>
1742 <field name="physSymbolsName" type="ATOM" />
1745 <enumref ref="NameDetail">Types</enumref>
1746 <field name="typesName" type="ATOM" />
1749 <enumref ref="NameDetail">Compat</enumref>
1750 <field name="compatName" type="ATOM" />
1753 <enumref ref="NameDetail">KeyTypeNames</enumref>
1754 <list name="typeNames" type="ATOM">
1755 <fieldref>nTypes</fieldref>
1759 <enumref ref="NameDetail">KTLevelNames</enumref>
1760 <list name="nLevelsPerType" type="CARD8">
1761 <fieldref>nKTLevels</fieldref>
1763 <list name="ktLevelNames" type="ATOM">
1764 <sumof ref="nLevelsPerType" />
1768 <enumref ref="NameDetail">IndicatorNames</enumref>
1769 <list name="indicatorNames" type="ATOM">
1771 <fieldref>indicators</fieldref>
1776 <enumref ref="NameDetail">VirtualModNames</enumref>
1777 <list name="virtualModNames" type="ATOM">
1779 <fieldref>virtualMods</fieldref>
1784 <enumref ref="NameDetail">GroupNames</enumref>
1785 <list name="groups" type="ATOM">
1787 <fieldref>groupNames</fieldref>
1792 <enumref ref="NameDetail">KeyNames</enumref>
1793 <list name="keyNames" type="KeyName">
1794 <fieldref>nKeys</fieldref>
1798 <enumref ref="NameDetail">KeyAliases</enumref>
1799 <list name="keyAliases" type="KeyAlias">
1800 <fieldref>nKeyAliases</fieldref>
1804 <enumref ref="NameDetail">RGNames</enumref>
1805 <list name="radioGroupNames" type="ATOM">
1806 <fieldref>nRadioGroups</fieldref>
1812 <request name="GetGeometry" opcode="19">
1813 <field name="deviceSpec" type="DeviceSpec" />
1815 <field name="name" type="ATOM" />
1817 <field name="deviceID" type="CARD8" />
1818 <field name="name" type="ATOM" />
1819 <field name="found" type="BOOL" />
1821 <field name="widthMM" type="CARD16" />
1822 <field name="heightMM" type="CARD16" />
1823 <field name="nProperties" type="CARD16" />
1824 <field name="nColors" type="CARD16" />
1825 <field name="nShapes" type="CARD16" />
1826 <field name="nSections" type="CARD16" />
1827 <field name="nDoodads" type="CARD16" />
1828 <field name="nKeyAliases" type="CARD16" />
1829 <field name="baseColorNdx" type="CARD8" />
1830 <field name="labelColorNdx" type="CARD8" />
1831 <field name="labelFont" type="CountedString16" />
1832 <list name="properties" type="Property">
1833 <fieldref>nProperties</fieldref>
1835 <list name="colors" type="CountedString16">
1836 <fieldref>nColors</fieldref>
1838 <list name="shapes" type="Shape">
1839 <fieldref>nShapes</fieldref>
1841 <list name="sections" type="Section">
1842 <fieldref>nSections</fieldref>
1844 <list name="doodads" type="Doodad">
1845 <fieldref>nDoodads</fieldref>
1847 <list name="keyAliases" type="KeyAlias">
1848 <fieldref>nKeyAliases</fieldref>
1853 <request name="SetGeometry" opcode="20">
1854 <field name="deviceSpec" type="DeviceSpec" />
1855 <field name="nShapes" type="CARD8" />
1856 <field name="nSections" type="CARD8" />
1857 <field name="name" type="ATOM" />
1858 <field name="widthMM" type="CARD16" />
1859 <field name="heightMM" type="CARD16" />
1860 <field name="nProperties" type="CARD16" />
1861 <field name="nColors" type="CARD16" />
1862 <field name="nDoodads" type="CARD16" />
1863 <field name="nKeyAliases" type="CARD16" />
1864 <field name="baseColorNdx" type="CARD8" />
1865 <field name="labelColorNdx" type="CARD8" />
1867 <field name="labelFont" type="CountedString16" />
1868 <list name="properties" type="Property">
1869 <fieldref>nProperties</fieldref>
1871 <list name="colors" type="CountedString16">
1872 <fieldref>nColors</fieldref>
1874 <list name="shapes" type="Shape">
1875 <fieldref>nShapes</fieldref>
1877 <list name="sections" type="Section">
1878 <fieldref>nSections</fieldref>
1880 <list name="doodads" type="Doodad">
1881 <fieldref>nDoodads</fieldref>
1883 <list name="keyAliases" type="KeyAlias">
1884 <fieldref>nKeyAliases</fieldref>
1888 <request name="PerClientFlags" opcode="21">
1889 <field name="deviceSpec" type="DeviceSpec" />
1891 <field name="change" type="CARD32" mask="PerClientFlag" />
1892 <field name="value" type="CARD32" mask="PerClientFlag" />
1893 <field name="ctrlsToChange" type="CARD32" mask="BoolCtrl" />
1894 <field name="autoCtrls" type="CARD32" mask="BoolCtrl" />
1895 <field name="autoCtrlsValues" type="CARD32" mask="BoolCtrl" />
1897 <field name="deviceID" type="CARD8"/>
1898 <field name="supported" type="CARD32" mask="PerClientFlag" />
1899 <field name="value" type="CARD32" mask="PerClientFlag" />
1900 <field name="autoCtrls" type="CARD32" mask="BoolCtrl" />
1901 <field name="autoCtrlsValues" type="CARD32" mask="BoolCtrl" />
1906 <request name="ListComponents" opcode="22">
1907 <field name="deviceSpec" type="DeviceSpec" />
1908 <field name="maxNames" type="CARD16" />
1909 <field name="keymapsSpecLen" type="CARD8" />
1910 <list name="keymapsSpec" type="STRING8">
1911 <fieldref>keymapsSpecLen</fieldref>
1913 <field name="keycodesSpecLen" type="CARD8" />
1914 <list name="keycodesSpec" type="STRING8">
1915 <fieldref>keycodesSpecLen</fieldref>
1917 <field name="typesSpecLen" type="CARD8" />
1918 <list name="typesSpec" type="STRING8">
1919 <fieldref>typesSpecLen</fieldref>
1921 <field name="compatMapSpecLen" type="CARD8" />
1922 <list name="compatMapSpec" type="STRING8">
1923 <fieldref>compatMapSpecLen</fieldref>
1925 <field name="symbolsSpecLen" type="CARD8" />
1926 <list name="symbolsSpec" type="STRING8">
1927 <fieldref>symbolsSpecLen</fieldref>
1929 <field name="geometrySpecLen" type="CARD8" />
1930 <list name="geometrySpec" type="STRING8">
1931 <fieldref>geometrySpecLen</fieldref>
1934 <field name="deviceID" type="CARD8" />
1935 <field name="nKeymaps" type="CARD16" />
1936 <field name="nKeycodes" type="CARD16" />
1937 <field name="nTypes" type="CARD16" />
1938 <field name="nCompatMaps" type="CARD16" />
1939 <field name="nSymbols" type="CARD16" />
1940 <field name="nGeometries" type="CARD16" />
1941 <field name="extra" type="CARD16" />
1943 <list name="keymaps" type="Listing">
1944 <fieldref>nKeymaps</fieldref>
1946 <list name="keycodes" type="Listing">
1947 <fieldref>nKeycodes</fieldref>
1949 <list name="types" type="Listing">
1950 <fieldref>nTypes</fieldref>
1952 <list name="compatMaps" type="Listing">
1953 <fieldref>nCompatMaps</fieldref>
1955 <list name="symbols" type="Listing">
1956 <fieldref>nSymbols</fieldref>
1958 <list name="geometries" type="Listing">
1959 <fieldref>nGeometries</fieldref>
1964 <request name="GetKbdByName" opcode="23">
1965 <field name="deviceSpec" type="DeviceSpec" />
1966 <field name="need" type="CARD16" mask="GBNDetail" />
1967 <field name="want" type="CARD16" mask="GBNDetail" />
1968 <field name="load" type="BOOL" />
1970 <field name="keymapsSpecLen" type="CARD8" />
1971 <list name="keymapsSpec" type="STRING8">
1972 <fieldref>keymapsSpecLen</fieldref>
1974 <field name="keycodesSpecLen" type="CARD8" />
1975 <list name="keycodesSpec" type="STRING8">
1976 <fieldref>keycodesSpecLen</fieldref>
1978 <field name="typesSpecLen" type="CARD8" />
1979 <list name="typesSpec" type="STRING8">
1980 <fieldref>typesSpecLen</fieldref>
1982 <field name="compatMapSpecLen" type="CARD8" />
1983 <list name="compatMapSpec" type="STRING8">
1984 <fieldref>compatMapSpecLen</fieldref>
1986 <field name="symbolsSpecLen" type="CARD8" />
1987 <list name="symbolsSpec" type="STRING8">
1988 <fieldref>symbolsSpecLen</fieldref>
1990 <field name="geometrySpecLen" type="CARD8" />
1991 <list name="geometrySpec" type="STRING8">
1992 <fieldref>geometrySpecLen</fieldref>
1995 <field name="deviceID" type="CARD8" />
1996 <field name="minKeyCode" type="KEYCODE" />
1997 <field name="maxKeyCode" type="KEYCODE" />
1998 <field name="loaded" type="BOOL" />
1999 <field name="newKeyboard" type="BOOL" />
2000 <field name="found" type="CARD16" mask="GBNDetail" />
2001 <field name="reported" type="CARD16" mask="GBNDetail" />
2003 <switch name="replies">
2004 <fieldref>reported</fieldref>
2005 <bitcase name="types">
2006 <enumref ref="GBNDetail">Types</enumref>
2007 <!-- from the spec, this has to be a GetMap reply -->
2008 <field name="getmap_type" type="CARD8" />
2009 <!-- done 'emulating' GetMap reply header-->
2010 <field name="typeDeviceID" type="CARD8" />
2011 <!-- from the spec, this has to be a GetMap reply -->
2012 <field name="getmap_sequence" type="CARD16" />
2013 <field name="getmap_length" type="CARD32" />
2014 <!-- done 'emulating' GetMap reply header-->
2016 <field name="typeMinKeyCode" type="KEYCODE" />
2017 <field name="typeMaxKeyCode" type="KEYCODE" />
2018 <field name="present" type="CARD16" enum="MapPart" />
2019 <field name="firstType" type="CARD8" />
2020 <field name="nTypes" type="CARD8" />
2021 <field name="totalTypes" type="CARD8" />
2022 <field name="firstKeySym" type="KEYCODE" />
2023 <field name="totalSyms" type="CARD16" />
2024 <field name="nKeySyms" type="CARD8" />
2025 <field name="firstKeyAction" type="KEYCODE" />
2026 <field name="totalActions" type="CARD16" />
2027 <field name="nKeyActions" type="CARD8" />
2028 <field name="firstKeyBehavior" type="KEYCODE" />
2029 <field name="nKeyBehaviors" type="CARD8" />
2030 <field name="totalKeyBehaviors" type="CARD8" />
2031 <field name="firstKeyExplicit" type="KEYCODE" />
2032 <field name="nKeyExplicit" type="CARD8" />
2033 <field name="totalKeyExplicit" type="CARD8" />
2034 <field name="firstModMapKey" type="KEYCODE" />
2035 <field name="nModMapKeys" type="CARD8" />
2036 <field name="totalModMapKeys" type="CARD8" />
2037 <field name="firstVModMapKey" type="KEYCODE" />
2038 <field name="nVModMapKeys" type="CARD8" />
2039 <field name="totalVModMapKeys" type="CARD8" />
2041 <field name="virtualMods" type="CARD16" mask="VMod" />
2043 <fieldref>present</fieldref>
2045 <enumref ref="MapPart">KeyTypes</enumref>
2046 <list name="types_rtrn" type="KeyType">
2047 <fieldref>nTypes</fieldref>
2051 <enumref ref="MapPart">KeySyms</enumref>
2052 <list name="syms_rtrn" type="KeySymMap">
2053 <fieldref>nKeySyms</fieldref>
2057 <enumref ref="MapPart">KeyActions</enumref>
2058 <list name="acts_rtrn_count" type="CARD8">
2059 <fieldref>nKeyActions</fieldref>
2061 <list name="acts_rtrn_acts" type="Action">
2062 <fieldref>totalActions</fieldref>
2066 <enumref ref="MapPart">KeyBehaviors</enumref>
2067 <list name="behaviors_rtrn" type="SetBehavior">
2068 <fieldref>totalKeyBehaviors</fieldref>
2072 <enumref ref="MapPart">VirtualMods</enumref>
2073 <list name="vmods_rtrn" type="CARD8" mask="ModMask">
2074 <popcount><fieldref>virtualMods</fieldref></popcount>
2078 <enumref ref="MapPart">ExplicitComponents</enumref>
2079 <list name="explicit_rtrn" type="SetExplicit">
2080 <fieldref>totalKeyExplicit</fieldref>
2084 <enumref ref="MapPart">ModifierMap</enumref>
2085 <list name="modmap_rtrn" type="KeyModMap">
2086 <fieldref>totalModMapKeys</fieldref>
2090 <enumref ref="MapPart">VirtualModMap</enumref>
2091 <list name="vmodmap_rtrn" type="KeyVModMap">
2092 <fieldref>totalVModMapKeys</fieldref>
2097 <bitcase name="compat_map">
2098 <enumref ref="GBNDetail">CompatMap</enumref>
2099 <field name="compatDeviceID" type="CARD8" />
2100 <field name="groupsRtrn" type="CARD8" mask="SetOfGroup" />
2102 <field name="firstSIRtrn" type="CARD16" />
2103 <field name="nSIRtrn" type="CARD16" />
2104 <field name="nTotalSI" type="CARD16" />
2106 <list name="si_rtrn" type="SymInterpret">
2107 <fieldref>nSIRtrn</fieldref>
2109 <list name="group_rtrn" type="ModDef">
2111 <fieldref>groupsRtrn</fieldref>
2115 <bitcase name="client_symbols">
2116 <enumref ref="GBNDetail">ClientSymbols</enumref>
2117 <field name="clientDeviceID" type="CARD8" />
2119 <field name="clientMinKeyCode" type="KEYCODE" />
2120 <field name="clientMaxKeyCode" type="KEYCODE" />
2121 <field name="present" type="CARD16" enum="MapPart" />
2122 <field name="firstType" type="CARD8" />
2123 <field name="nTypes" type="CARD8" />
2124 <field name="totalTypes" type="CARD8" />
2125 <field name="firstKeySym" type="KEYCODE" />
2126 <field name="totalSyms" type="CARD16" />
2127 <field name="nKeySyms" type="CARD8" />
2128 <field name="firstKeyAction" type="KEYCODE" />
2129 <field name="totalActions" type="CARD16" />
2130 <field name="nKeyActions" type="CARD8" />
2131 <field name="firstKeyBehavior" type="KEYCODE" />
2132 <field name="nKeyBehaviors" type="CARD8" />
2133 <field name="totalKeyBehaviors" type="CARD8" />
2134 <field name="firstKeyExplicit" type="KEYCODE" />
2135 <field name="nKeyExplicit" type="CARD8" />
2136 <field name="totalKeyExplicit" type="CARD8" />
2137 <field name="firstModMapKey" type="KEYCODE" />
2138 <field name="nModMapKeys" type="CARD8" />
2139 <field name="totalModMapKeys" type="CARD8" />
2140 <field name="firstVModMapKey" type="KEYCODE" />
2141 <field name="nVModMapKeys" type="CARD8" />
2142 <field name="totalVModMapKeys" type="CARD8" />
2144 <field name="virtualMods" type="CARD16" mask="VMod" />
2146 <fieldref>present</fieldref>
2148 <enumref ref="MapPart">KeyTypes</enumref>
2149 <list name="types_rtrn" type="KeyType">
2150 <fieldref>nTypes</fieldref>
2154 <enumref ref="MapPart">KeySyms</enumref>
2155 <list name="syms_rtrn" type="KeySymMap">
2156 <fieldref>nKeySyms</fieldref>
2160 <enumref ref="MapPart">KeyActions</enumref>
2161 <list name="acts_rtrn_count" type="CARD8">
2162 <fieldref>nKeyActions</fieldref>
2164 <list name="acts_rtrn_acts" type="Action">
2165 <fieldref>totalActions</fieldref>
2169 <enumref ref="MapPart">KeyBehaviors</enumref>
2170 <list name="behaviors_rtrn" type="SetBehavior">
2171 <fieldref>totalKeyBehaviors</fieldref>
2175 <enumref ref="MapPart">VirtualMods</enumref>
2176 <list name="vmods_rtrn" type="CARD8" mask="ModMask">
2177 <fieldref>nVModMapKeys</fieldref>
2181 <enumref ref="MapPart">ExplicitComponents</enumref>
2182 <list name="explicit_rtrn" type="SetExplicit">
2183 <fieldref>totalKeyExplicit</fieldref>
2187 <enumref ref="MapPart">ModifierMap</enumref>
2188 <list name="modmap_rtrn" type="KeyModMap">
2189 <fieldref>totalModMapKeys</fieldref>
2193 <enumref ref="MapPart">VirtualModMap</enumref>
2194 <list name="vmodmap_rtrn" type="KeyVModMap">
2195 <fieldref>totalVModMapKeys</fieldref>
2200 <bitcase name="server_symbols">
2201 <enumref ref="GBNDetail">ServerSymbols</enumref>
2202 <field name="serverDeviceID" type="CARD8" />
2204 <field name="serverMinKeyCode" type="KEYCODE" />
2205 <field name="serverMaxKeyCode" type="KEYCODE" />
2206 <field name="present" type="CARD16" enum="MapPart" />
2207 <field name="firstType" type="CARD8" />
2208 <field name="nTypes" type="CARD8" />
2209 <field name="totalTypes" type="CARD8" />
2210 <field name="firstKeySym" type="KEYCODE" />
2211 <field name="totalSyms" type="CARD16" />
2212 <field name="nKeySyms" type="CARD8" />
2213 <field name="firstKeyAction" type="KEYCODE" />
2214 <field name="totalActions" type="CARD16" />
2215 <field name="nKeyActions" type="CARD8" />
2216 <field name="firstKeyBehavior" type="KEYCODE" />
2217 <field name="nKeyBehaviors" type="CARD8" />
2218 <field name="totalKeyBehaviors" type="CARD8" />
2219 <field name="firstKeyExplicit" type="KEYCODE" />
2220 <field name="nKeyExplicit" type="CARD8" />
2221 <field name="totalKeyExplicit" type="CARD8" />
2222 <field name="firstModMapKey" type="KEYCODE" />
2223 <field name="nModMapKeys" type="CARD8" />
2224 <field name="totalModMapKeys" type="CARD8" />
2225 <field name="firstVModMapKey" type="KEYCODE" />
2226 <field name="nVModMapKeys" type="CARD8" />
2227 <field name="totalVModMapKeys" type="CARD8" />
2229 <field name="virtualMods" type="CARD16" mask="VMod" />
2231 <fieldref>present</fieldref>
2233 <enumref ref="MapPart">KeyTypes</enumref>
2234 <list name="types_rtrn" type="KeyType">
2235 <fieldref>nTypes</fieldref>
2239 <enumref ref="MapPart">KeySyms</enumref>
2240 <list name="syms_rtrn" type="KeySymMap">
2241 <fieldref>nKeySyms</fieldref>
2245 <enumref ref="MapPart">KeyActions</enumref>
2246 <list name="acts_rtrn_count" type="CARD8">
2247 <fieldref>nKeyActions</fieldref>
2249 <list name="acts_rtrn_acts" type="Action">
2250 <fieldref>totalActions</fieldref>
2254 <enumref ref="MapPart">KeyBehaviors</enumref>
2255 <list name="behaviors_rtrn" type="SetBehavior">
2256 <fieldref>totalKeyBehaviors</fieldref>
2260 <enumref ref="MapPart">VirtualMods</enumref>
2261 <list name="vmods_rtrn" type="CARD8" mask="ModMask">
2262 <fieldref>nVModMapKeys</fieldref>
2266 <enumref ref="MapPart">ExplicitComponents</enumref>
2267 <list name="explicit_rtrn" type="SetExplicit">
2268 <fieldref>totalKeyExplicit</fieldref>
2272 <enumref ref="MapPart">ModifierMap</enumref>
2273 <list name="modmap_rtrn" type="KeyModMap">
2274 <fieldref>totalModMapKeys</fieldref>
2278 <enumref ref="MapPart">VirtualModMap</enumref>
2279 <list name="vmodmap_rtrn" type="KeyVModMap">
2280 <fieldref>totalVModMapKeys</fieldref>
2285 <bitcase name="indicator_maps">
2286 <enumref ref="GBNDetail">IndicatorMaps</enumref>
2287 <field name="indicatorDeviceID" type="CARD8" />
2288 <field name="which" type="CARD32" />
2289 <field name="realIndicators" type="CARD32" />
2290 <field name="nIndicators" type="CARD8" />
2292 <list name="maps" type="IndicatorMap">
2293 <fieldref>nIndicators</fieldref>
2296 <bitcase name="key_names">
2297 <enumref ref="GBNDetail">KeyNames</enumref>
2298 <field name="keyDeviceID" type="CARD8" />
2299 <field name="which" type="CARD32" mask="NameDetail" />
2300 <field name="keyMinKeyCode" type="KEYCODE" />
2301 <field name="keyMaxKeyCode" type="KEYCODE" />
2302 <field name="nTypes" type="CARD8" />
2303 <field name="groupNames" type="CARD8" mask="SetOfGroup" />
2304 <field name="virtualMods" type="CARD16" mask="VMod" />
2305 <field name="firstKey" type="KEYCODE" />
2306 <field name="nKeys" type="CARD8" />
2307 <field name="indicators" type="CARD32" />
2308 <field name="nRadioGroups" type="CARD8" />
2309 <field name="nKeyAliases" type="CARD8" />
2310 <field name="nKTLevels" type="CARD16" />
2312 <switch name="valueList">
2313 <fieldref>which</fieldref>
2315 <enumref ref="NameDetail">Keycodes</enumref>
2316 <field name="keycodesName" type="ATOM" />
2319 <enumref ref="NameDetail">Geometry</enumref>
2320 <field name="geometryName" type="ATOM" />
2323 <enumref ref="NameDetail">Symbols</enumref>
2324 <field name="symbolsName" type="ATOM" />
2327 <enumref ref="NameDetail">PhysSymbols</enumref>
2328 <field name="physSymbolsName" type="ATOM" />
2331 <enumref ref="NameDetail">Types</enumref>
2332 <field name="typesName" type="ATOM" />
2335 <enumref ref="NameDetail">Compat</enumref>
2336 <field name="compatName" type="ATOM" />
2339 <enumref ref="NameDetail">KeyTypeNames</enumref>
2340 <list name="typeNames" type="ATOM">
2341 <fieldref>nTypes</fieldref>
2345 <enumref ref="NameDetail">KTLevelNames</enumref>
2346 <list name="nLevelsPerType" type="CARD8">
2347 <fieldref>nKTLevels</fieldref>
2349 <list name="ktLevelNames" type="ATOM">
2350 <sumof ref="nLevelsPerType" />
2354 <enumref ref="NameDetail">IndicatorNames</enumref>
2355 <list name="indicatorNames" type="ATOM">
2357 <fieldref>indicators</fieldref>
2362 <enumref ref="NameDetail">VirtualModNames</enumref>
2363 <list name="virtualModNames" type="ATOM">
2365 <fieldref>virtualMods</fieldref>
2370 <enumref ref="NameDetail">GroupNames</enumref>
2371 <list name="groups" type="ATOM">
2373 <fieldref>groupNames</fieldref>
2378 <enumref ref="NameDetail">KeyNames</enumref>
2379 <list name="keyNames" type="KeyName">
2380 <fieldref>nKeys</fieldref>
2384 <enumref ref="NameDetail">KeyAliases</enumref>
2385 <list name="keyAliases" type="KeyAlias">
2386 <fieldref>nKeyAliases</fieldref>
2390 <enumref ref="NameDetail">RGNames</enumref>
2391 <list name="radioGroupNames" type="ATOM">
2392 <fieldref>nRadioGroups</fieldref>
2397 <bitcase name="other_names">
2398 <enumref ref="GBNDetail">OtherNames</enumref>
2399 <field name="otherDeviceID" type="CARD8" />
2400 <field name="which" type="CARD32" mask="NameDetail" />
2401 <field name="otherMinKeyCode" type="KEYCODE" />
2402 <field name="otherMaxKeyCode" type="KEYCODE" />
2403 <field name="nTypes" type="CARD8" />
2404 <field name="groupNames" type="CARD8" mask="SetOfGroup" />
2405 <field name="virtualMods" type="CARD16" mask="VMod" />
2406 <field name="firstKey" type="KEYCODE" />
2407 <field name="nKeys" type="CARD8" />
2408 <field name="indicators" type="CARD32" />
2409 <field name="nRadioGroups" type="CARD8" />
2410 <field name="nKeyAliases" type="CARD8" />
2411 <field name="nKTLevels" type="CARD16" />
2413 <switch name="valueList">
2414 <fieldref>which</fieldref>
2416 <enumref ref="NameDetail">Keycodes</enumref>
2417 <field name="keycodesName" type="ATOM" />
2420 <enumref ref="NameDetail">Geometry</enumref>
2421 <field name="geometryName" type="ATOM" />
2424 <enumref ref="NameDetail">Symbols</enumref>
2425 <field name="symbolsName" type="ATOM" />
2428 <enumref ref="NameDetail">PhysSymbols</enumref>
2429 <field name="physSymbolsName" type="ATOM" />
2432 <enumref ref="NameDetail">Types</enumref>
2433 <field name="typesName" type="ATOM" />
2436 <enumref ref="NameDetail">Compat</enumref>
2437 <field name="compatName" type="ATOM" />
2440 <enumref ref="NameDetail">KeyTypeNames</enumref>
2441 <list name="typeNames" type="ATOM">
2442 <fieldref>nTypes</fieldref>
2446 <enumref ref="NameDetail">KTLevelNames</enumref>
2447 <list name="nLevelsPerType" type="CARD8">
2448 <fieldref>nKTLevels</fieldref>
2450 <list name="ktLevelNames" type="ATOM">
2451 <sumof ref="nLevelsPerType" />
2455 <enumref ref="NameDetail">IndicatorNames</enumref>
2456 <list name="indicatorNames" type="ATOM">
2458 <fieldref>indicators</fieldref>
2463 <enumref ref="NameDetail">VirtualModNames</enumref>
2464 <list name="virtualModNames" type="ATOM">
2466 <fieldref>virtualMods</fieldref>
2471 <enumref ref="NameDetail">GroupNames</enumref>
2472 <list name="groups" type="ATOM">
2474 <fieldref>groupNames</fieldref>
2479 <enumref ref="NameDetail">KeyNames</enumref>
2480 <list name="keyNames" type="KeyName">
2481 <fieldref>nKeys</fieldref>
2485 <enumref ref="NameDetail">KeyAliases</enumref>
2486 <list name="keyAliases" type="KeyAlias">
2487 <fieldref>nKeyAliases</fieldref>
2491 <enumref ref="NameDetail">RGNames</enumref>
2492 <list name="radioGroupNames" type="ATOM">
2493 <fieldref>nRadioGroups</fieldref>
2498 <bitcase name="geometry">
2499 <enumref ref="GBNDetail">Geometry</enumref>
2500 <field name="geometryDeviceID" type="CARD8" />
2501 <field name="name" type="ATOM" />
2502 <field name="geometryFound" type="BOOL" />
2504 <field name="widthMM" type="CARD16" />
2505 <field name="heightMM" type="CARD16" />
2506 <field name="nProperties" type="CARD16" />
2507 <field name="nColors" type="CARD16" />
2508 <field name="nShapes" type="CARD16" />
2509 <field name="nSections" type="CARD16" />
2510 <field name="nDoodads" type="CARD16" />
2511 <field name="nKeyAliases" type="CARD16" />
2512 <field name="baseColorNdx" type="CARD8" />
2513 <field name="labelColorNdx" type="CARD8" />
2514 <field name="labelFont" type="CountedString16" />
2515 <list name="properties" type="Property">
2516 <fieldref>nProperties</fieldref>
2518 <list name="colors" type="CountedString16">
2519 <fieldref>nColors</fieldref>
2521 <list name="shapes" type="Shape">
2522 <fieldref>nShapes</fieldref>
2524 <list name="sections" type="Section">
2525 <fieldref>nSections</fieldref>
2527 <list name="doodads" type="Doodad">
2528 <fieldref>nDoodads</fieldref>
2530 <list name="keyAliases" type="KeyAlias">
2531 <fieldref>nKeyAliases</fieldref>
2538 <request name="GetDeviceInfo" opcode="24">
2539 <field name="deviceSpec" type="DeviceSpec" />
2540 <field name="wanted" type="CARD16" mask="XIFeature" />
2541 <field name="allButtons" type="BOOL" />
2542 <field name="firstButton" type="CARD8" />
2543 <field name="nButtons" type="CARD8" />
2545 <field name="ledClass" type="LedClassSpec" enum="LedClass" />
2546 <field name="ledID" type="IDSpec" altenum="ID" />
2548 <field name="deviceID" type="CARD8" />
2549 <field name="present" type="CARD16" mask="XIFeature" />
2550 <field name="supported" type="CARD16" mask="XIFeature" />
2551 <field name="unsupported" type="CARD16" mask="XIFeature" />
2552 <field name="nDeviceLedFBs" type="CARD16" />
2553 <field name="firstBtnWanted" type="CARD8" />
2554 <field name="nBtnsWanted" type="CARD8" />
2555 <field name="firstBtnRtrn" type="CARD8" />
2556 <field name="nBtnsRtrn" type="CARD8" />
2557 <field name="totalBtns" type="CARD8" />
2558 <field name="hasOwnState" type="BOOL" />
2559 <field name="dfltKbdFB" type="CARD16" altenum="ID" />
2560 <field name="dfltLedFB" type="CARD16" altenum="ID" />
2562 <field name="devType" type="ATOM" />
2563 <field name="nameLen" type="CARD16" />
2564 <list name="name" type="STRING8">
2565 <fieldref>nameLen</fieldref>
2567 <list name="btnActions" type="Action">
2568 <fieldref>nBtnsRtrn</fieldref>
2570 <list name="leds" type="DeviceLedInfo">
2571 <fieldref>nDeviceLedFBs</fieldref>
2577 <request name="SetDeviceInfo" opcode="25">
2578 <field name="deviceSpec" type="DeviceSpec" />
2579 <field name="firstBtn" type="CARD8" />
2580 <field name="nBtns" type="CARD8" />
2581 <field name="change" type="CARD16" mask="XIFeature" />
2582 <field name="nDeviceLedFBs" type="CARD16" />
2583 <list name="btnActions" type="Action">
2584 <fieldref>nBtns</fieldref>
2586 <list name="leds" type="DeviceLedInfo">
2587 <fieldref>nDeviceLedFBs</fieldref>
2591 <request name="SetDebuggingFlags" opcode="101">
2592 <field name="msgLength" type="CARD16" />
2594 <field name="affectFlags" type="CARD32" />
2595 <field name="flags" type="CARD32" />
2596 <field name="affectCtrls" type="CARD32" />
2597 <field name="ctrls" type="CARD32" />
2598 <list name="message" type="STRING8">
2599 <fieldref>msgLength</fieldref>
2603 <field name="currentFlags" type="CARD32" />
2604 <field name="currentCtrls" type="CARD32" />
2605 <field name="supportedFlags" type="CARD32" />
2606 <field name="supportedCtrls" type="CARD32" />
2613 <event name="NewKeyboardNotify" number="0">
2614 <field name="xkbType" type="CARD8" />
2615 <field name="time" type="TIMESTAMP" />
2616 <field name="deviceID" type="CARD8" />
2617 <field name="oldDeviceID" type="CARD8" />
2618 <field name="minKeyCode" type="KEYCODE" />
2619 <field name="maxKeyCode" type="KEYCODE" />
2620 <field name="oldMinKeyCode" type="KEYCODE" />
2621 <field name="oldMaxKeyCode" type="KEYCODE" />
2622 <field name="requestMajor" type="CARD8" />
2623 <field name="requestMinor" type="CARD8" />
2624 <field name="changed" type="CARD16" mask="NKNDetail" />
2628 <event name="MapNotify" number="1">
2629 <field name="xkbType" type="CARD8" />
2630 <field name="time" type="TIMESTAMP" />
2631 <field name="deviceID" type="CARD8" />
2632 <field name="ptrBtnActions" type="CARD8" />
2633 <field name="changed" type="CARD16" mask="MapPart" />
2634 <field name="minKeyCode" type="KEYCODE" />
2635 <field name="maxKeyCode" type="KEYCODE" />
2636 <field name="firstType" type="CARD8" />
2637 <field name="nTypes" type="CARD8" />
2638 <field name="firstKeySym" type="KEYCODE" />
2639 <field name="nKeySyms" type="CARD8" />
2640 <field name="firstKeyAct" type="KEYCODE" />
2641 <field name="nKeyActs" type="CARD8" />
2642 <field name="firstKeyBehavior" type="KEYCODE" />
2643 <field name="nKeyBehavior" type="CARD8" />
2644 <field name="firstKeyExplicit" type="KEYCODE" />
2645 <field name="nKeyExplicit" type="CARD8" />
2646 <field name="firstModMapKey" type="KEYCODE" />
2647 <field name="nModMapKeys" type="CARD8" />
2648 <field name="firstVModMapKey" type="KEYCODE" />
2649 <field name="nVModMapKeys" type="CARD8" />
2650 <field name="virtualMods" type="CARD16" mask="VMod" />
2654 <event name="StateNotify" number="2">
2655 <field name="xkbType" type="CARD8" />
2656 <field name="time" type="TIMESTAMP" />
2657 <field name="deviceID" type="CARD8" />
2658 <field name="mods" type="CARD8" mask="ModMask" />
2659 <field name="baseMods" type="CARD8" mask="ModMask" />
2660 <field name="latchedMods" type="CARD8" mask="ModMask" />
2661 <field name="lockedMods" type="CARD8" mask="ModMask" />
2662 <field name="group" type="CARD8" enum="Group" />
2663 <field name="baseGroup" type="INT16" />
2664 <field name="latchedGroup" type="INT16" />
2665 <field name="lockedGroup" type="CARD8" enum="Group" />
2666 <field name="compatState" type="CARD8" mask="ModMask" />
2667 <field name="grabMods" type="CARD8" mask="ModMask" />
2668 <field name="compatGrabMods" type="CARD8" mask="ModMask" />
2669 <field name="lookupMods" type="CARD8" mask="ModMask" />
2670 <field name="compatLoockupMods" type="CARD8" mask="ModMask" />
2671 <field name="ptrBtnState" type="CARD16" mask="KeyButMask" />
2672 <field name="changed" type="CARD16" mask="StatePart" />
2673 <field name="keycode" type="KEYCODE" />
2674 <field name="eventType" type="CARD8" />
2675 <field name="requestMajor" type="CARD8" />
2676 <field name="requestMinor" type="CARD8" />
2679 <event name="ControlsNotify" number="3">
2680 <field name="xkbType" type="CARD8" />
2681 <field name="time" type="TIMESTAMP" />
2682 <field name="deviceID" type="CARD8" />
2683 <field name="numGroups" type="CARD8" />
2685 <field name="changedControls" type="CARD32" mask="Control" />
2686 <field name="enabledControls" type="CARD32" mask="BoolCtrl" />
2687 <field name="enabledControlChanges" type="CARD32" mask="BoolCtrl" />
2688 <field name="keycode" type="KEYCODE" />
2689 <field name="eventType" type="CARD8" />
2690 <field name="requestMajor" type="CARD8" />
2691 <field name="requestMinor" type="CARD8" />
2695 <event name="IndicatorStateNotify" number="4">
2696 <field name="xkbType" type="CARD8" />
2697 <field name="time" type="TIMESTAMP" />
2698 <field name="deviceID" type="CARD8" />
2700 <field name="state" type="CARD32" />
2701 <field name="stateChanged" type="CARD32" />
2705 <event name="IndicatorMapNotify" number="5">
2706 <field name="xkbType" type="CARD8" />
2707 <field name="time" type="TIMESTAMP" />
2708 <field name="deviceID" type="CARD8" />
2710 <field name="state" type="CARD32" />
2711 <field name="mapChanged" type="CARD32" />
2715 <event name="NamesNotify" number="6">
2716 <field name="xkbType" type="CARD8" />
2717 <field name="time" type="TIMESTAMP" />
2718 <field name="deviceID" type="CARD8" />
2720 <field name="changed" type="CARD16" mask="NameDetail" />
2721 <field name="firstType" type="CARD8" />
2722 <field name="nTypes" type="CARD8" />
2723 <field name="firstLevelName" type="CARD8" />
2724 <field name="nLevelNames" type="CARD8" />
2726 <field name="nRadioGroups" type="CARD8" />
2727 <field name="nKeyAliases" type="CARD8" />
2728 <field name="changedGroupNames" type="CARD8" mask="SetOfGroup" />
2729 <field name="changedVirtualMods" type="CARD16" mask="VMod" />
2730 <field name="firstKey" type="KEYCODE" />
2731 <field name="nKeys" type="CARD8" />
2732 <field name="changedIndicators" type="CARD32" />
2736 <event name="CompatMapNotify" number="7">
2737 <field name="xkbType" type="CARD8" />
2738 <field name="time" type="TIMESTAMP" />
2739 <field name="deviceID" type="CARD8" />
2740 <field name="changedGroups" type="CARD8" mask="SetOfGroup" />
2741 <field name="firstSI" type="CARD16" />
2742 <field name="nSI" type="CARD16" />
2743 <field name="nTotalSI" type="CARD16" />
2747 <event name="BellNotify" number="8">
2748 <field name="xkbType" type="CARD8" />
2749 <field name="time" type="TIMESTAMP" />
2750 <field name="deviceID" type="CARD8" />
2751 <field name="bellClass" type="CARD8" enum="BellClassResult" />
2752 <field name="bellID" type="CARD8" />
2753 <field name="percent" type="CARD8" />
2754 <field name="pitch" type="CARD16" />
2755 <field name="duration" type="CARD16" />
2756 <field name="name" type="ATOM" />
2757 <field name="window" type="WINDOW" />
2758 <field name="eventOnly" type="BOOL" />
2762 <event name="ActionMessage" number="9">
2763 <field name="xkbType" type="CARD8" />
2764 <field name="time" type="TIMESTAMP" />
2765 <field name="deviceID" type="CARD8" />
2766 <field name="keycode" type="KEYCODE" />
2767 <field name="press" type="BOOL" />
2768 <field name="keyEventFollows" type="BOOL" />
2769 <field name="mods" type="CARD8" mask="ModMask" />
2770 <field name="group" type="CARD8" enum="Group" />
2771 <list name="message" type="STRING8">
2777 <event name="AccessXNotify" number="10">
2778 <field name="xkbType" type="CARD8" />
2779 <field name="time" type="TIMESTAMP" />
2780 <field name="deviceID" type="CARD8" />
2781 <field name="keycode" type="KEYCODE" />
2782 <field name="detailt" type="CARD16" mask="AXNDetail" />
2783 <field name="slowKeysDelay" type="CARD16" />
2784 <field name="debounceDelay" type="CARD16" />
2788 <event name="ExtensionDeviceNotify" number="11">
2789 <field name="xkbType" type="CARD8" />
2790 <field name="time" type="TIMESTAMP" />
2791 <field name="deviceID" type="CARD8" />
2793 <field name="reason" type="CARD16" mask="XIFeature" />
2794 <field name="ledClass" type="CARD16" enum="LedClassResult" />
2795 <field name="ledID" type="CARD8" />
2796 <field name="ledsDefined" type="CARD32" />
2797 <field name="ledState" type="CARD32" />
2798 <field name="firstButton" type="CARD8" />
2799 <field name="nButtons" type="CARD8" />
2800 <field name="supported" type="CARD16" mask="XIFeature" />
2801 <field name="unsupported" type="CARD16" mask="XIFeature" />