1 | /*
|
---|
2 | * Copyright 2008 Red Hat, Inc.
|
---|
3 | *
|
---|
4 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
5 | * copy of this software and associated documentation files (the "Software")
|
---|
6 | * to deal in the software without restriction, including without limitation
|
---|
7 | * on the rights to use, copy, modify, merge, publish, distribute, sub
|
---|
8 | * license, and/or sell copies of the Software, and to permit persons to whom
|
---|
9 | * them Software is furnished to do so, subject to the following conditions:
|
---|
10 | *
|
---|
11 | * The above copyright notice and this permission notice (including the next
|
---|
12 | * paragraph) shall be included in all copies or substantial portions of the
|
---|
13 | * Software.
|
---|
14 | *
|
---|
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTIBILITY,
|
---|
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
---|
18 | * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER
|
---|
19 | * IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
20 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
21 | */
|
---|
22 |
|
---|
23 |
|
---|
24 | /* Properties managed by the server. */
|
---|
25 |
|
---|
26 | #ifndef _XSERVER_PROPERTIES_H_
|
---|
27 | #define _XSERVER_PROPERTIES_H_
|
---|
28 |
|
---|
29 | /* Type for a 4 byte float. Storage format IEEE 754 in client's default
|
---|
30 | * byte-ordering. */
|
---|
31 | #define XATOM_FLOAT "FLOAT"
|
---|
32 |
|
---|
33 | /* STRING. Seat name of this display */
|
---|
34 | #define SEAT_ATOM_NAME "Xorg_Seat"
|
---|
35 |
|
---|
36 | /* BOOL. 0 - device disabled, 1 - device enabled */
|
---|
37 | #define XI_PROP_ENABLED "Device Enabled"
|
---|
38 | /* BOOL. If present, device is a virtual XTEST device */
|
---|
39 | #define XI_PROP_XTEST_DEVICE "XTEST Device"
|
---|
40 |
|
---|
41 | /* CARD32, 2 values, vendor, product.
|
---|
42 | * This property is set by the driver and may not be available for some
|
---|
43 | * drivers. Read-Only */
|
---|
44 | #define XI_PROP_PRODUCT_ID "Device Product ID"
|
---|
45 |
|
---|
46 | /* Coordinate transformation matrix for absolute input devices
|
---|
47 | * FLOAT, 9 values in row-major order, coordinates in 0..1 range:
|
---|
48 | * [c0 c1 c2] [x]
|
---|
49 | * [c3 c4 c5] * [y]
|
---|
50 | * [c6 c7 c8] [1] */
|
---|
51 | #define XI_PROP_TRANSFORM "Coordinate Transformation Matrix"
|
---|
52 |
|
---|
53 | /* STRING. Device node path of device */
|
---|
54 | #define XI_PROP_DEVICE_NODE "Device Node"
|
---|
55 |
|
---|
56 | /* Pointer acceleration properties */
|
---|
57 | /* INTEGER of any format */
|
---|
58 | #define ACCEL_PROP_PROFILE_NUMBER "Device Accel Profile"
|
---|
59 | /* FLOAT, format 32 */
|
---|
60 | #define ACCEL_PROP_CONSTANT_DECELERATION "Device Accel Constant Deceleration"
|
---|
61 | /* FLOAT, format 32 */
|
---|
62 | #define ACCEL_PROP_ADAPTIVE_DECELERATION "Device Accel Adaptive Deceleration"
|
---|
63 | /* FLOAT, format 32 */
|
---|
64 | #define ACCEL_PROP_VELOCITY_SCALING "Device Accel Velocity Scaling"
|
---|
65 |
|
---|
66 |
|
---|
67 | /* Axis labels */
|
---|
68 | #define AXIS_LABEL_PROP "Axis Labels"
|
---|
69 |
|
---|
70 | #define AXIS_LABEL_PROP_REL_X "Rel X"
|
---|
71 | #define AXIS_LABEL_PROP_REL_Y "Rel Y"
|
---|
72 | #define AXIS_LABEL_PROP_REL_Z "Rel Z"
|
---|
73 | #define AXIS_LABEL_PROP_REL_RX "Rel Rotary X"
|
---|
74 | #define AXIS_LABEL_PROP_REL_RY "Rel Rotary Y"
|
---|
75 | #define AXIS_LABEL_PROP_REL_RZ "Rel Rotary Z"
|
---|
76 | #define AXIS_LABEL_PROP_REL_HWHEEL "Rel Horiz Wheel"
|
---|
77 | #define AXIS_LABEL_PROP_REL_DIAL "Rel Dial"
|
---|
78 | #define AXIS_LABEL_PROP_REL_WHEEL "Rel Vert Wheel"
|
---|
79 | #define AXIS_LABEL_PROP_REL_MISC "Rel Misc"
|
---|
80 | #define AXIS_LABEL_PROP_REL_VSCROLL "Rel Vert Scroll"
|
---|
81 | #define AXIS_LABEL_PROP_REL_HSCROLL "Rel Horiz Scroll"
|
---|
82 |
|
---|
83 | /*
|
---|
84 | * Absolute axes
|
---|
85 | */
|
---|
86 |
|
---|
87 | #define AXIS_LABEL_PROP_ABS_X "Abs X"
|
---|
88 | #define AXIS_LABEL_PROP_ABS_Y "Abs Y"
|
---|
89 | #define AXIS_LABEL_PROP_ABS_Z "Abs Z"
|
---|
90 | #define AXIS_LABEL_PROP_ABS_RX "Abs Rotary X"
|
---|
91 | #define AXIS_LABEL_PROP_ABS_RY "Abs Rotary Y"
|
---|
92 | #define AXIS_LABEL_PROP_ABS_RZ "Abs Rotary Z"
|
---|
93 | #define AXIS_LABEL_PROP_ABS_THROTTLE "Abs Throttle"
|
---|
94 | #define AXIS_LABEL_PROP_ABS_RUDDER "Abs Rudder"
|
---|
95 | #define AXIS_LABEL_PROP_ABS_WHEEL "Abs Wheel"
|
---|
96 | #define AXIS_LABEL_PROP_ABS_GAS "Abs Gas"
|
---|
97 | #define AXIS_LABEL_PROP_ABS_BRAKE "Abs Brake"
|
---|
98 | #define AXIS_LABEL_PROP_ABS_HAT0X "Abs Hat 0 X"
|
---|
99 | #define AXIS_LABEL_PROP_ABS_HAT0Y "Abs Hat 0 Y"
|
---|
100 | #define AXIS_LABEL_PROP_ABS_HAT1X "Abs Hat 1 X"
|
---|
101 | #define AXIS_LABEL_PROP_ABS_HAT1Y "Abs Hat 1 Y"
|
---|
102 | #define AXIS_LABEL_PROP_ABS_HAT2X "Abs Hat 2 X"
|
---|
103 | #define AXIS_LABEL_PROP_ABS_HAT2Y "Abs Hat 2 Y"
|
---|
104 | #define AXIS_LABEL_PROP_ABS_HAT3X "Abs Hat 3 X"
|
---|
105 | #define AXIS_LABEL_PROP_ABS_HAT3Y "Abs Hat 3 Y"
|
---|
106 | #define AXIS_LABEL_PROP_ABS_PRESSURE "Abs Pressure"
|
---|
107 | #define AXIS_LABEL_PROP_ABS_DISTANCE "Abs Distance"
|
---|
108 | #define AXIS_LABEL_PROP_ABS_TILT_X "Abs Tilt X"
|
---|
109 | #define AXIS_LABEL_PROP_ABS_TILT_Y "Abs Tilt Y"
|
---|
110 | #define AXIS_LABEL_PROP_ABS_TOOL_WIDTH "Abs Tool Width"
|
---|
111 | #define AXIS_LABEL_PROP_ABS_VOLUME "Abs Volume"
|
---|
112 | #define AXIS_LABEL_PROP_ABS_MT_TOUCH_MAJOR "Abs MT Touch Major"
|
---|
113 | #define AXIS_LABEL_PROP_ABS_MT_TOUCH_MINOR "Abs MT Touch Minor"
|
---|
114 | #define AXIS_LABEL_PROP_ABS_MT_WIDTH_MAJOR "Abs MT Width Major"
|
---|
115 | #define AXIS_LABEL_PROP_ABS_MT_WIDTH_MINOR "Abs MT Width Minor"
|
---|
116 | #define AXIS_LABEL_PROP_ABS_MT_ORIENTATION "Abs MT Orientation"
|
---|
117 | #define AXIS_LABEL_PROP_ABS_MT_POSITION_X "Abs MT Position X"
|
---|
118 | #define AXIS_LABEL_PROP_ABS_MT_POSITION_Y "Abs MT Position Y"
|
---|
119 | #define AXIS_LABEL_PROP_ABS_MT_TOOL_TYPE "Abs MT Tool Type"
|
---|
120 | #define AXIS_LABEL_PROP_ABS_MT_BLOB_ID "Abs MT Blob ID"
|
---|
121 | #define AXIS_LABEL_PROP_ABS_MT_TRACKING_ID "Abs MT Tracking ID"
|
---|
122 | #define AXIS_LABEL_PROP_ABS_MT_PRESSURE "Abs MT Pressure"
|
---|
123 | #define AXIS_LABEL_PROP_ABS_MISC "Abs Misc"
|
---|
124 |
|
---|
125 | /* Button names */
|
---|
126 | #define BTN_LABEL_PROP "Button Labels"
|
---|
127 |
|
---|
128 | /* Default label */
|
---|
129 | #define BTN_LABEL_PROP_BTN_UNKNOWN "Button Unknown"
|
---|
130 | /* Wheel buttons */
|
---|
131 | #define BTN_LABEL_PROP_BTN_WHEEL_UP "Button Wheel Up"
|
---|
132 | #define BTN_LABEL_PROP_BTN_WHEEL_DOWN "Button Wheel Down"
|
---|
133 | #define BTN_LABEL_PROP_BTN_HWHEEL_LEFT "Button Horiz Wheel Left"
|
---|
134 | #define BTN_LABEL_PROP_BTN_HWHEEL_RIGHT "Button Horiz Wheel Right"
|
---|
135 |
|
---|
136 | /* The following are from linux/input.h */
|
---|
137 | #define BTN_LABEL_PROP_BTN_0 "Button 0"
|
---|
138 | #define BTN_LABEL_PROP_BTN_1 "Button 1"
|
---|
139 | #define BTN_LABEL_PROP_BTN_2 "Button 2"
|
---|
140 | #define BTN_LABEL_PROP_BTN_3 "Button 3"
|
---|
141 | #define BTN_LABEL_PROP_BTN_4 "Button 4"
|
---|
142 | #define BTN_LABEL_PROP_BTN_5 "Button 5"
|
---|
143 | #define BTN_LABEL_PROP_BTN_6 "Button 6"
|
---|
144 | #define BTN_LABEL_PROP_BTN_7 "Button 7"
|
---|
145 | #define BTN_LABEL_PROP_BTN_8 "Button 8"
|
---|
146 | #define BTN_LABEL_PROP_BTN_9 "Button 9"
|
---|
147 |
|
---|
148 | #define BTN_LABEL_PROP_BTN_LEFT "Button Left"
|
---|
149 | #define BTN_LABEL_PROP_BTN_RIGHT "Button Right"
|
---|
150 | #define BTN_LABEL_PROP_BTN_MIDDLE "Button Middle"
|
---|
151 | #define BTN_LABEL_PROP_BTN_SIDE "Button Side"
|
---|
152 | #define BTN_LABEL_PROP_BTN_EXTRA "Button Extra"
|
---|
153 | #define BTN_LABEL_PROP_BTN_FORWARD "Button Forward"
|
---|
154 | #define BTN_LABEL_PROP_BTN_BACK "Button Back"
|
---|
155 | #define BTN_LABEL_PROP_BTN_TASK "Button Task"
|
---|
156 |
|
---|
157 | #define BTN_LABEL_PROP_BTN_TRIGGER "Button Trigger"
|
---|
158 | #define BTN_LABEL_PROP_BTN_THUMB "Button Thumb"
|
---|
159 | #define BTN_LABEL_PROP_BTN_THUMB2 "Button Thumb2"
|
---|
160 | #define BTN_LABEL_PROP_BTN_TOP "Button Top"
|
---|
161 | #define BTN_LABEL_PROP_BTN_TOP2 "Button Top2"
|
---|
162 | #define BTN_LABEL_PROP_BTN_PINKIE "Button Pinkie"
|
---|
163 | #define BTN_LABEL_PROP_BTN_BASE "Button Base"
|
---|
164 | #define BTN_LABEL_PROP_BTN_BASE2 "Button Base2"
|
---|
165 | #define BTN_LABEL_PROP_BTN_BASE3 "Button Base3"
|
---|
166 | #define BTN_LABEL_PROP_BTN_BASE4 "Button Base4"
|
---|
167 | #define BTN_LABEL_PROP_BTN_BASE5 "Button Base5"
|
---|
168 | #define BTN_LABEL_PROP_BTN_BASE6 "Button Base6"
|
---|
169 | #define BTN_LABEL_PROP_BTN_DEAD "Button Dead"
|
---|
170 |
|
---|
171 | #define BTN_LABEL_PROP_BTN_A "Button A"
|
---|
172 | #define BTN_LABEL_PROP_BTN_B "Button B"
|
---|
173 | #define BTN_LABEL_PROP_BTN_C "Button C"
|
---|
174 | #define BTN_LABEL_PROP_BTN_X "Button X"
|
---|
175 | #define BTN_LABEL_PROP_BTN_Y "Button Y"
|
---|
176 | #define BTN_LABEL_PROP_BTN_Z "Button Z"
|
---|
177 | #define BTN_LABEL_PROP_BTN_TL "Button T Left"
|
---|
178 | #define BTN_LABEL_PROP_BTN_TR "Button T Right"
|
---|
179 | #define BTN_LABEL_PROP_BTN_TL2 "Button T Left2"
|
---|
180 | #define BTN_LABEL_PROP_BTN_TR2 "Button T Right2"
|
---|
181 | #define BTN_LABEL_PROP_BTN_SELECT "Button Select"
|
---|
182 | #define BTN_LABEL_PROP_BTN_START "Button Start"
|
---|
183 | #define BTN_LABEL_PROP_BTN_MODE "Button Mode"
|
---|
184 | #define BTN_LABEL_PROP_BTN_THUMBL "Button Thumb Left"
|
---|
185 | #define BTN_LABEL_PROP_BTN_THUMBR "Button Thumb Right"
|
---|
186 |
|
---|
187 | #define BTN_LABEL_PROP_BTN_TOOL_PEN "Button Tool Pen"
|
---|
188 | #define BTN_LABEL_PROP_BTN_TOOL_RUBBER "Button Tool Rubber"
|
---|
189 | #define BTN_LABEL_PROP_BTN_TOOL_BRUSH "Button Tool Brush"
|
---|
190 | #define BTN_LABEL_PROP_BTN_TOOL_PENCIL "Button Tool Pencil"
|
---|
191 | #define BTN_LABEL_PROP_BTN_TOOL_AIRBRUSH "Button Tool Airbrush"
|
---|
192 | #define BTN_LABEL_PROP_BTN_TOOL_FINGER "Button Tool Finger"
|
---|
193 | #define BTN_LABEL_PROP_BTN_TOOL_MOUSE "Button Tool Mouse"
|
---|
194 | #define BTN_LABEL_PROP_BTN_TOOL_LENS "Button Tool Lens"
|
---|
195 | #define BTN_LABEL_PROP_BTN_TOUCH "Button Touch"
|
---|
196 | #define BTN_LABEL_PROP_BTN_STYLUS "Button Stylus"
|
---|
197 | #define BTN_LABEL_PROP_BTN_STYLUS2 "Button Stylus2"
|
---|
198 | #define BTN_LABEL_PROP_BTN_TOOL_DOUBLETAP "Button Tool Doubletap"
|
---|
199 | #define BTN_LABEL_PROP_BTN_TOOL_TRIPLETAP "Button Tool Tripletap"
|
---|
200 |
|
---|
201 | #define BTN_LABEL_PROP_BTN_GEAR_DOWN "Button Gear down"
|
---|
202 | #define BTN_LABEL_PROP_BTN_GEAR_UP "Button Gear up"
|
---|
203 |
|
---|
204 | #endif
|
---|