1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2006 Peter Hutterer
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in all
14 copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 Except as contained in this notice, the names of the authors or their
24 institutions shall not be used in advertising or otherwise to promote the
25 sale, use or other dealings in this Software without prior written
26 authorization from the authors.
29 <!-- Spec: http://refspecs.freestandards.org/X11/Xinput.pdf -->
31 <xcb header="xinput" extension-xname="XInputExtension" extension-name="Input"
32 major-version="1" minor-version="4">
33 <import>xproto</import>
35 <typedef oldname="CARD8" newname="KeyCode" />
36 <typedef oldname="CARD32" newname="EventClass" />
38 <enum name="ValuatorMode">
39 <item name="Relative"> <value>0</value></item>
40 <item name="Absolute"> <value>1</value></item>
43 <enum name="PropagateMode">
44 <item name="AddToList"> <value>0</value></item>
45 <item name="DeleteFromList"> <value>1</value></item>
48 <!-- GetExtensionVersion -->
50 <request name="GetExtensionVersion" opcode="1">
51 <field type="CARD16" name="name_len" />
53 <list type="char" name="name">
54 <fieldref>name_len</fieldref>
58 <field type="CARD16" name="server_major" />
59 <field type="CARD16" name="server_minor" />
60 <field type="BOOL" name="present" />
65 <!-- ListInputDevices -->
67 <enum name="DeviceUse">
68 <item name="IsXPointer"><value>0</value></item>
69 <item name="IsXKeyboard"><value>1</value></item>
70 <item name="IsXExtensionDevice"><value>2</value></item>
71 <item name="IsXExtensionKeyboard"><value>3</value></item>
72 <item name="IsXExtensionPointer"><value>4</value></item>
75 <struct name="DeviceInfo">
76 <field type="ATOM" name="device_type" />
77 <field type="CARD8" name="device_id" />
78 <field type="CARD8" name="num_class_info" />
79 <field type="CARD8" name="device_use" enum="DeviceUse" />
83 <request name="ListInputDevices" opcode="2">
86 <field type="CARD8" name="devices_len" />
88 <list type="DeviceInfo" name="devices">
89 <fieldref>devices_len</fieldref>
91 <!-- Uninterpreted: list of deviceinfo structs of 3 the subtypes -->
92 <!-- Uninterpreted: list of null-terminated strings -->
96 <enum name="InputClass">
97 <item name="Key"><value>0</value></item>
98 <item name="Button"><value>1</value></item>
99 <item name="Valuator"><value>2</value></item>
100 <item name="Feedback"><value>3</value></item>
101 <item name="Proximity"><value>4</value></item>
102 <item name="Focus"><value>5</value></item>
103 <item name="Other"><value>6</value></item>
106 <struct name="InputInfo">
107 <field type="CARD8" name="class_id" enum="InputClass" />
108 <field type="CARD8" name="len" />
111 <struct name="KeyInfo">
112 <field type="CARD8" name="class_id" enum="InputClass" />
113 <field type="CARD8" name="len" />
114 <field type="KeyCode" name="min_keycode" />
115 <field type="KeyCode" name="max_keycode" />
116 <field type="CARD16" name="num_keys" />
120 <struct name="ButtonInfo">
121 <field type="CARD8" name="class_id" enum="InputClass" />
122 <field type="CARD8" name="len" />
123 <field type="CARD16" name="num_buttons" />
126 <struct name="AxisInfo">
127 <field type="CARD32" name="resolution" />
128 <field type="INT32" name="minimum" />
129 <field type="INT32" name="maximum" />
132 <struct name="ValuatorInfo">
133 <field type="CARD8" name="class_id" enum="InputClass" />
134 <field type="CARD8" name="len" />
135 <field type="CARD8" name="axes_len" />
136 <field type="CARD8" name="mode" enum="ValuatorMode" />
137 <field type="CARD32" name="motion_size" />
138 <list type="AxisInfo" name="axes">
139 <fieldref>axes_len</fieldref>
145 <struct name="InputClassInfo">
146 <field type="CARD8" name="class_id" enum="InputClass" />
147 <field type="CARD8" name="event_type_base" />
150 <request name="OpenDevice" opcode="3">
151 <field type="CARD8" name="device_id" />
155 <field type="CARD8" name="num_classes" />
157 <list type="InputClassInfo" name="class_info">
158 <fieldref>num_classes</fieldref>
165 <request name="CloseDevice" opcode="4">
166 <field type="CARD8" name="device_id" />
170 <!-- SetDeviceMode -->
172 <request name="SetDeviceMode" opcode="5">
173 <field type="CARD8" name="device_id" />
174 <field type="CARD8" name="mode" enum="ValuatorMode" />
178 <field type="CARD8" name="status" altenum="GrabStatus" />
183 <!-- SelectExtensionEvent -->
185 <request name="SelectExtensionEvent" opcode="6">
186 <field type="WINDOW" name="window" />
187 <field type="CARD16" name="num_classes" />
189 <list type="EventClass" name="classes">
190 <fieldref>num_classes</fieldref>
194 <!-- GetSelectedExtensionEvents -->
196 <request name="GetSelectedExtensionEvents" opcode="7">
197 <field type="WINDOW" name="window" />
200 <field type="CARD16" name="num_this_classes" />
201 <field type="CARD16" name="num_all_classes" />
203 <list type="EventClass" name="this_classes">
204 <fieldref>num_this_classes</fieldref>
206 <list type="EventClass" name="all_classes">
207 <fieldref>num_all_classes</fieldref>
212 <!-- ChangeDeviceDontPropagateList -->
214 <request name="ChangeDeviceDontPropagateList" opcode="8">
215 <field type="WINDOW" name="window" />
216 <field type="CARD16" name="num_classes" />
217 <field type="CARD8" name="mode" enum="PropagateMode" />
219 <list type="EventClass" name="classes">
220 <fieldref>num_classes</fieldref>
224 <!-- GetDeviceDontPropagateList -->
226 <request name="GetDeviceDontPropagateList" opcode="9">
227 <field type="WINDOW" name="window" />
230 <field type="CARD16" name="num_classes" />
232 <list type="EventClass" name="classes">
233 <fieldref>num_classes</fieldref>
238 <!-- GetDeviceMotionEvents -->
240 <request name="GetDeviceMotionEvents" opcode="10">
241 <field type="TIMESTAMP" name="start" />
242 <field type="TIMESTAMP" name="stop" altenum="Time" />
243 <field type="CARD8" name="device_id" />
246 <field type="CARD32" name="num_coords" />
247 <field type="CARD8" name="num_axes" />
248 <field type="CARD8" name="device_mode" enum="ValuatorMode" />
250 <!-- Uninterpreted: list of DeviceTimeCoord structures -->
254 <struct name="DeviceTimeCoord">
255 <field type="TIMESTAMP" name="time" />
256 <!-- Uninterpreted: list of CARD16 -->
259 <!-- ChangeKeyboardDevice -->
260 <request name="ChangeKeyboardDevice" opcode="11">
261 <field type="CARD8" name="device_id" />
265 <field type="CARD8" name="status" altenum="GrabStatus" />
270 <!-- ChangePointerDevice -->
272 <request name="ChangePointerDevice" opcode="12">
273 <field type="CARD8" name="x_axis" />
274 <field type="CARD8" name="y_axis" />
275 <field type="CARD8" name="device_id" />
279 <field type="CARD8" name="status" altenum="GrabStatus" />
286 <request name="GrabDevice" opcode="13">
287 <field type="WINDOW" name="grab_window" />
288 <field type="TIMESTAMP" name="time" altenum="Time" />
289 <field type="CARD16" name="num_classes" />
290 <field type="CARD8" name="this_device_mode" enum="GrabMode" />
291 <field type="CARD8" name="other_device_mode" enum="GrabMode" />
292 <field type="BOOL" name="owner_events" />
293 <field type="CARD8" name="device_id" />
295 <list type="EventClass" name="classes">
296 <fieldref>num_classes</fieldref>
300 <field type="CARD8" name="status" enum="GrabStatus" />
305 <!-- UngrabDevice -->
307 <request name="UngrabDevice" opcode="14">
308 <field type="TIMESTAMP" name="time" altenum="Time" />
309 <field type="CARD8" name="device_id" />
312 <!-- GrabDeviceKey -->
314 <request name="GrabDeviceKey" opcode="15">
315 <field type="WINDOW" name="grab_window" />
316 <field type="CARD16" name="num_classes" />
317 <field type="CARD16" name="modifiers" mask="ModMask" />
318 <field type="CARD8" name="modifier_device" />
319 <field type="CARD8" name="grabbed_device" />
320 <field type="CARD8" name="key" altenum="Grab" />
321 <field type="CARD8" name="this_device_mode" enum="GrabMode" />
322 <field type="CARD8" name="other_device_mode" enum="GrabMode" />
323 <field type="BOOL" name="owner_events" />
325 <list type="EventClass" name="classes">
326 <fieldref>num_classes</fieldref>
330 <!-- UngrabDeviceKey -->
332 <request name="UngrabDeviceKey" opcode="16">
333 <field type="WINDOW" name="grabWindow" />
334 <field type="CARD16" name="modifiers" mask="ModMask" />
335 <field type="CARD8" name="modifier_device" />
336 <field type="CARD8" name="key" altenum="Grab" />
337 <field type="CARD8" name="grabbed_device" />
340 <!-- GrabDeviceButton -->
342 <request name="GrabDeviceButton" opcode="17">
343 <field type="WINDOW" name="grab_window" />
344 <field type="CARD8" name="grabbed_device" />
345 <field type="CARD8" name="modifier_device" />
346 <field type="CARD16" name="num_classes" />
347 <field type="CARD16" name="modifiers" mask="ModMask" />
348 <field type="CARD8" name="this_device_mode" enum="GrabMode" />
349 <field type="CARD8" name="other_device_mode" enum="GrabMode" />
350 <field type="CARD8" name="button" altenum="Grab" />
351 <field type="CARD8" name="owner_events" />
353 <list type="EventClass" name="classes">
354 <fieldref>num_classes</fieldref>
358 <!-- UngrabDeviceButton -->
360 <request name="UngrabDeviceButton" opcode="18">
361 <field type="WINDOW" name="grab_window" />
362 <field type="CARD16" name="modifiers" mask="ModMask" />
363 <field type="CARD8" name="modifier_device" />
364 <field type="CARD8" name="button" altenum="Grab" />
365 <field type="CARD8" name="grabbed_device" />
368 <!-- AllowDeviceEvents -->
370 <enum name="DeviceInputMode">
371 <item name="AsyncThisDevice" />
372 <item name="SyncThisDevice" />
373 <item name="ReplayThisDevice" />
374 <item name="AsyncOtherDevices" />
375 <item name="AsyncAll" />
376 <item name="SyncAll" />
379 <request name="AllowDeviceEvents" opcode="19">
380 <field type="TIMESTAMP" name="time" altenum="Time" />
381 <field type="CARD8" name="mode" enum="DeviceInputMode" />
382 <field type="CARD8" name="device_id" />
385 <!-- GetDeviceFocus -->
387 <request name="GetDeviceFocus" opcode="20">
388 <field type="CARD8" name="device_id" />
392 <field type="WINDOW" name="focus" altenum="InputFocus" />
393 <field type="TIMESTAMP" name="time" />
394 <field type="CARD8" name="revert_to" enum="InputFocus" />
399 <!-- SetDeviceFocus -->
401 <request name="SetDeviceFocus" opcode="21">
402 <field type="WINDOW" name="focus" altenum="InputFocus" />
403 <field type="TIMESTAMP" name="time" altenum="Time" />
404 <field type="CARD8" name="revert_to" enum="InputFocus" />
405 <field type="CARD8" name="device_id" />
408 <!-- GetFeedbackControl -->
410 <request name="GetFeedbackControl" opcode="22">
411 <field type="CARD8" name="device_id" />
415 <field type="CARD16" name="num_feedback" />
417 <!-- Uninterpreted: list of FeedbackState structures -->
421 <enum name="FeedbackClass">
422 <item name="Keyboard" />
423 <item name="Pointer" />
424 <item name="String" />
425 <item name="Integer" />
430 <struct name="FeedbackState">
431 <field type="CARD8" name="class_id" enum="FeedbackClass" />
432 <field type="CARD8" name="id" />
433 <field type="CARD16" name="len" />
436 <struct name="KbdFeedbackState">
437 <field type="CARD8" name="class_id" enum="FeedbackClass" />
438 <field type="CARD8" name="id" />
439 <field type="CARD16" name="len" />
440 <field type="CARD16" name="pitch" />
441 <field type="CARD16" name="duration" />
442 <field type="CARD32" name="led_mask" />
443 <field type="CARD32" name="led_values" />
444 <field type="BOOL" name="global_auto_repeat" />
445 <field type="CARD8" name="click" />
446 <field type="CARD8" name="percent" />
448 <list type="CARD8" name="auto_repeats"><value>32</value></list>
451 <struct name="PtrFeedbackState">
452 <field type="CARD8" name="class_id" enum="FeedbackClass" />
453 <field type="CARD8" name="id" />
454 <field type="CARD16" name="len" />
456 <field type="CARD16" name="accel_num" />
457 <field type="CARD16" name="accel_denom" />
458 <field type="CARD16" name="threshold" />
461 <struct name="IntegerFeedbackState">
462 <field type="CARD8" name="class_id" enum="FeedbackClass" />
463 <field type="CARD8" name="id" />
464 <field type="CARD16" name="len" />
465 <field type="CARD32" name="resolution" />
466 <field type="INT32" name="min_value" />
467 <field type="INT32" name="max_value" />
470 <struct name="StringFeedbackState">
471 <field type="CARD8" name="class_id" enum="FeedbackClass" />
472 <field type="CARD8" name="id" />
473 <field type="CARD16" name="len" />
474 <field type="CARD16" name="max_symbols" />
475 <field type="CARD16" name="num_keysyms" />
476 <list type="KEYSYM" name="keysyms">
477 <fieldref>num_keysyms</fieldref>
481 <struct name="BellFeedbackState">
482 <field type="CARD8" name="class_id" enum="FeedbackClass" />
483 <field type="CARD8" name="id" />
484 <field type="CARD16" name="len" />
485 <field type="CARD8" name="percent" />
487 <field type="CARD16" name="pitch" />
488 <field type="CARD16" name="duration" />
491 <struct name="LedFeedbackState">
492 <field type="CARD8" name="class_id" enum="FeedbackClass" />
493 <field type="CARD8" name="id" />
494 <field type="CARD16" name="len" />
495 <field type="CARD32" name="led_mask" />
496 <field type="CARD32" name="led_values" />
499 <!-- ChangeFeedbackControl
501 <request name="ChangeFeedbackControl" opcode="23">
502 <field type="CARD32" name="mask" />
503 <field type="CARD8" name="device_id" />
504 <field type="CARD8" name="feedback_id" />
505 Uninterpreted: list of FeedbackCtl structures
510 <struct name="FeedbackCtl">
511 <field type="CARD8" name="class_id" enum="FeedbackClass" />
512 <field type="CARD8" name="id" />
513 <field type="CARD16" name="len" />
516 <struct name="KbdFeedbackCtl">
517 <field type="CARD8" name="class_id" enum="FeedbackClass" />
518 <field type="CARD8" name="id" />
519 <field type="CARD16" name="len" />
520 <field type="KeyCode" name="key" />
521 <field type="CARD8" name="auto_repeat_mode" />
522 <field type="INT8" name="key_click_percent" />
523 <field type="INT8" name="bell_percent" />
524 <field type="INT16" name="bell_pitch" />
525 <field type="INT16" name="bell_duration" />
526 <field type="CARD32" name="led_mask" />
527 <field type="CARD32" name="led_values" />
530 <struct name="PtrFeedbackCtl">
531 <field type="CARD8" name="class_id" enum="FeedbackClass" />
532 <field type="CARD8" name="id" />
533 <field type="CARD16" name="len" />
535 <field type="INT16" name="num" />
536 <field type="INT16" name="denom" />
537 <field type="INT16" name="threshold" />
540 <struct name="IntegerFeedbackCtl">
541 <field type="CARD8" name="class_id" enum="FeedbackClass" />
542 <field type="CARD8" name="id" />
543 <field type="CARD16" name="len" />
544 <field type="INT32" name="int_to_display" />
547 <struct name="StringFeedbackCtl">
548 <field type="CARD8" name="class_id" enum="FeedbackClass" />
549 <field type="CARD8" name="id" />
550 <field type="CARD16" name="len" />
552 <field type="CARD16" name="num_keysyms" />
553 <list type="KEYSYM" name="keysyms">
554 <fieldref>num_keysyms</fieldref>
558 <struct name="BellFeedbackCtl">
559 <field type="CARD8" name="class_id" enum="FeedbackClass" />
560 <field type="CARD8" name="id" />
561 <field type="CARD16" name="len" />
562 <field type="INT8" name="percent" />
564 <field type="INT16" name="pitch" />
565 <field type="INT16" name="duration" />
568 <struct name="LedFeedbackCtl">
569 <field type="CARD8" name="class_id" enum="FeedbackClass" />
570 <field type="CARD8" name="id" />
571 <field type="CARD16" name="len" />
572 <field type="CARD32" name="led_mask" />
573 <field type="CARD32" name="led_values" />
576 <!-- GetDeviceKeyMapping -->
578 <request name="GetDeviceKeyMapping" opcode="24">
579 <field type="CARD8" name="device_id" />
580 <field type="KeyCode" name="first_keycode" />
581 <field type="CARD8" name="count" />
584 <field type="CARD8" name="keysyms_per_keycode" />
586 <list type="KEYSYM" name="keysyms">
587 <fieldref>length</fieldref>
592 <!-- ChangeDeviceKeyMapping -->
594 <request name="ChangeDeviceKeyMapping" opcode="25">
595 <field type="CARD8" name="device_id" />
596 <field type="KeyCode" name="first_keycode" />
597 <field type="CARD8" name="keysyms_per_keycode" />
598 <field type="CARD8" name="keycode_count" />
599 <list type="KEYSYM" name="keysyms">
601 <fieldref>keycode_count</fieldref>
602 <fieldref>keysyms_per_keycode</fieldref>
607 <!-- GetDeviceModifierMapping -->
609 <request name="GetDeviceModifierMapping" opcode="26">
610 <field type="CARD8" name="device_id" />
614 <field type="CARD8" name="keycodes_per_modifier" />
616 <list type="CARD8" name="keymaps">
618 <fieldref>keycodes_per_modifier</fieldref>
625 <!-- SetDeviceModifierMapping -->
627 <request name="SetDeviceModifierMapping" opcode="27">
628 <field type="CARD8" name="device_id" />
629 <field type="CARD8" name="keycodes_per_modifier" />
631 <list type="CARD8" name="keymaps">
633 <fieldref>keycodes_per_modifier</fieldref>
639 <field type="CARD8" name="status" enum="MappingStatus" />
644 <!-- GetDeviceButtonMapping -->
646 <request name="GetDeviceButtonMapping" opcode="28">
647 <field type="CARD8" name="device_id" />
651 <field type="CARD8" name="map_size" />
653 <list type="CARD8" name="map">
654 <fieldref>map_size</fieldref>
659 <!-- SetDeviceButtonMapping -->
661 <request name="SetDeviceButtonMapping" opcode="29">
662 <field type="CARD8" name="device_id" />
663 <field type="CARD8" name="map_size" />
665 <list type="CARD8" name="map">
666 <fieldref>map_size</fieldref>
670 <field type="CARD8" name="status" enum="MappingStatus" />
675 <!-- QueryDeviceState -->
677 <request name="QueryDeviceState" opcode="30">
678 <field type="CARD8" name="device_id" />
682 <field type="CARD8" name="num_classes" />
684 <!-- Uninterpreted: list of InputState structures -->
688 <struct name="InputState">
689 <field type="CARD8" name="class_id" enum="InputClass" />
690 <field type="CARD8" name="len" />
691 <field type="CARD8" name="num_items" />
694 <struct name="KeyState">
695 <field type="CARD8" name="class_id" enum="InputClass" />
696 <field type="CARD8" name="len" />
697 <field type="CARD8" name="num_keys" />
699 <list type="CARD8" name="keys">
704 <struct name="ButtonState">
705 <field type="CARD8" name="class_id" enum="InputClass" />
706 <field type="CARD8" name="len" />
707 <field type="CARD8" name="num_buttons" />
709 <list type="CARD8" name="buttons">
714 <struct name="ValuatorState">
715 <field type="CARD8" name="class_id" enum="InputClass" />
716 <field type="CARD8" name="len" />
717 <field type="CARD8" name="num_valuators" />
718 <field type="CARD8" name="mode" />
719 <list type="CARD32" name="valuators">
720 <fieldref>num_valuators</fieldref>
724 <!-- SendExtensionEvent -->
726 <request name="SendExtensionEvent" opcode="31">
727 <field type="WINDOW" name="destination" />
728 <field type="CARD8" name="device_id" />
729 <field type="BOOL" name="propagate" />
730 <field type="CARD16" name="num_classes" />
731 <field type="CARD8" name="num_events" />
733 <list type="char" name="events">
735 <fieldref>num_events</fieldref>
739 <list type="EventClass" name="classes">
740 <fieldref>num_classes</fieldref>
746 <request name="DeviceBell" opcode="32">
747 <field type="CARD8" name="device_id" />
748 <field type="CARD8" name="feedback_id" />
749 <field type="CARD8" name="feedback_class" />
750 <field type="INT8" name="percent" />
753 <!-- SetDeviceValuators -->
755 <request name="SetDeviceValuators" opcode="33">
756 <field type="CARD8" name="device_id" />
757 <field type="CARD8" name="first_valuator" />
758 <field type="CARD8" name="num_valuators" />
760 <list type="INT32" name="valuators">
761 <fieldref>num_valuators</fieldref>
765 <field type="CARD8" name="status" enum="GrabStatus" />
770 <!-- GetDeviceControl -->
772 <request name="GetDeviceControl" opcode="34">
773 <field type="CARD16" name="control_id" />
774 <field type="CARD8" name="device_id" />
778 <field type="CARD8" name="status" altenum="GrabStatus" />
780 <!-- Uninterpreted: list of DeviceState structures -->
784 <struct name="DeviceState">
785 <field type="CARD16" name="control_id" />
786 <field type="CARD16" name="len" />
789 <struct name="DeviceResolutionState">
790 <field type="CARD16" name="control_id" />
791 <field type="CARD16" name="len" />
792 <field type="CARD32" name="num_valuators" />
793 <list type="CARD32" name="resolution_values">
794 <fieldref>num_valuators</fieldref>
796 <list type="CARD32" name="resolution_min">
797 <fieldref>num_valuators</fieldref>
799 <list type="CARD32" name="resolution_max">
800 <fieldref>num_valuators</fieldref>
804 <struct name="DeviceAbsCalibState">
805 <field type="CARD16" name="control_id" />
806 <field type="CARD16" name="len" />
807 <field type="INT32" name="min_x" />
808 <field type="INT32" name="max_x" />
809 <field type="INT32" name="min_y" />
810 <field type="INT32" name="max_y" />
811 <field type="CARD32" name="flip_x" />
812 <field type="CARD32" name="flip_y" />
813 <field type="CARD32" name="rotation" />
814 <field type="CARD32" name="button_threshold" />
817 <struct name="DeviceAbsAreaState">
818 <field type="CARD16" name="control_id" />
819 <field type="CARD16" name="len" />
820 <field type="CARD32" name="offset_x" />
821 <field type="CARD32" name="offset_y" />
822 <field type="CARD32" name="width" />
823 <field type="CARD32" name="height" />
824 <field type="CARD32" name="screen" />
825 <field type="CARD32" name="following" />
828 <struct name="DeviceCoreState">
829 <field type="CARD16" name="control_id" />
830 <field type="CARD16" name="len" />
831 <field type="CARD8" name="status" />
832 <field type="CARD8" name="iscore" />
836 <struct name="DeviceEnableState">
837 <field type="CARD16" name="control_id" />
838 <field type="CARD16" name="len" />
839 <field type="CARD8" name="enable" />
843 <!-- ChangeDeviceControl
845 <request name="ChangeDeviceControl" opcode="35">
846 <field type="CARD16" name="control_id" />
847 <field type="CARD8" name="device_id" />
849 Uninterpreted: list of DeviceCtl structures
852 <field type="CARD8" name="status" altenum="GrabStatus" />
859 <struct name="DeviceCtl">
860 <field type="CARD16" name="control_id" />
861 <field type="CARD16" name="len" />
864 <struct name="DeviceResolutionCtl">
865 <field type="CARD16" name="control_id" />
866 <field type="CARD16" name="len" />
867 <field type="CARD8" name="first_valuator" />
868 <field type="CARD8" name="num_valuators" />
869 <list type="CARD32" name="resolution_values">
870 <fieldref>num_valuators</fieldref>
874 <struct name="DeviceAbsCalibCtl">
875 <field type="CARD16" name="control_id" />
876 <field type="CARD16" name="len" />
877 <field type="INT32" name="min_x" />
878 <field type="INT32" name="max_x" />
879 <field type="INT32" name="min_y" />
880 <field type="INT32" name="max_y" />
881 <field type="CARD32" name="flip_x" />
882 <field type="CARD32" name="flip_y" />
883 <field type="CARD32" name="rotation" />
884 <field type="CARD32" name="button_threshold" />
887 <struct name="DeviceAbsAreaCtrl">
888 <field type="CARD16" name="control_id" />
889 <field type="CARD16" name="len" />
890 <field type="CARD32" name="offset_x" />
891 <field type="CARD32" name="offset_y" />
892 <field type="INT32" name="width" />
893 <field type="INT32" name="height" />
894 <field type="INT32" name="screen" />
895 <field type="CARD32" name="following" />
898 <struct name="DeviceCoreCtrl">
899 <field type="CARD16" name="control_id" />
900 <field type="CARD16" name="len" />
901 <field type="CARD8" name="status" />
905 <struct name="DeviceEnableCtrl">
906 <field type="CARD16" name="control_id" />
907 <field type="CARD16" name="len" />
908 <field type="CARD8" name="enable" />
914 <event name="DeviceValuator" number="0">
915 <field type="CARD8" name="device_id" />
916 <field type="CARD16" name="device_state" />
917 <field type="CARD8" name="num_valuators" />
918 <field type="CARD8" name="first_valuator" />
919 <list type="INT32" name="valuators"><value>6</value></list>
922 <event name="DeviceKeyPress" number="1">
923 <field type="BYTE" name="detail" />
924 <field type="TIMESTAMP" name="time" />
925 <field type="WINDOW" name="root" />
926 <field type="WINDOW" name="event" />
927 <field type="WINDOW" name="child" altenum="Window" />
928 <field type="INT16" name="root_x" />
929 <field type="INT16" name="root_y" />
930 <field type="INT16" name="event_x" />
931 <field type="INT16" name="event_y" />
932 <field type="CARD16" name="state" />
933 <field type="BOOL" name="same_screen" />
934 <field type="CARD8" name="device_id" />
937 <eventcopy name="DeviceKeyRelease" number="2" ref="DeviceKeyPress" />
938 <eventcopy name="DeviceButtonPress" number="3" ref="DeviceKeyPress" />
939 <eventcopy name="DeviceButtonRelease" number="4" ref="DeviceKeyPress" />
940 <eventcopy name="DeviceMotionNotify" number="5" ref="DeviceKeyPress" />
941 <eventcopy name="ProximityIn" number="8" ref="DeviceKeyPress" />
942 <eventcopy name="ProximityOut" number="9" ref="DeviceKeyPress" />
944 <event name="FocusIn" number="6">
945 <field type="BYTE" name="detail" enum="NotifyDetail" />
946 <field type="TIMESTAMP" name="time" />
947 <field type="WINDOW" name="window" />
948 <field type="BYTE" name="mode" enum="NotifyMode" />
949 <field type="CARD8" name="device_id" />
953 <eventcopy name="FocusOut" number="7" ref="FocusIn" />
955 <event name="DeviceStateNotify" number="10">
956 <field type="BYTE" name="device_id" />
957 <field type="TIMESTAMP" name="time" />
958 <field type="CARD8" name="num_keys" />
959 <field type="CARD8" name="num_buttons" />
960 <field type="CARD8" name="num_valuators" />
961 <field type="CARD8" name="classes_reported" />
962 <list type="CARD8" name="buttons">
965 <list type="CARD8" name="keys">
968 <list type="CARD32" name="valuators">
973 <event name="DeviceMappingNotify" number="11">
974 <field type="BYTE" name="device_id" />
975 <field type="CARD8" name="request" />
976 <field type="KeyCode" name="first_keycode" />
977 <field type="CARD8" name="count" />
979 <field type="TIMESTAMP" name="time" />
983 <event name="ChangeDeviceNotify" number="12">
984 <field type="BYTE" name="device_id" />
985 <field type="TIMESTAMP" name="time" />
986 <field type="CARD8" name="request" />
990 <event name="DeviceKeyStateNotify" number="13">
991 <field type="BYTE" name="device_id" />
992 <list type="CARD8" name="keys">
997 <event name="DeviceButtonStateNotify" number="14">
998 <field type="BYTE" name="device_id" />
999 <list type="CARD8" name="buttons">
1004 <event name="DevicePresenceNotify" number="15">
1006 <field type="TIMESTAMP" name="time" />
1007 <field type="BYTE" name="devchange" />
1008 <field type="BYTE" name="device_id" />
1009 <field type="CARD16" name="control" />
1014 <error name="Device" number="0" />
1015 <error name="Event" number="1" />
1016 <error name="Mode" number="2" />
1017 <error name="DeviceBusy" number="3" />
1018 <error name="Class" number="4" />