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 /* Properties managed by the server. */
24 
25 #ifndef _XSERVER_PROPERTIES_H_
26 #define _XSERVER_PROPERTIES_H_
27 
28 /* Type for a 4 byte float. Storage format IEEE 754 in client's default
29  * byte-ordering. */
30 #define XATOM_FLOAT "FLOAT"
31 
32 /* STRING. Seat name of this display */
33 #define SEAT_ATOM_NAME "Xorg_Seat"
34 
35 /* BOOL. 0 - device disabled, 1 - device enabled */
36 #define XI_PROP_ENABLED      "Device Enabled"
37 /* BOOL. If present, device is a virtual XTEST device */
38 #define XI_PROP_XTEST_DEVICE  "XTEST Device"
39 
40 /* CARD32, 2 values, vendor, product.
41  * This property is set by the driver and may not be available for some
42  * drivers. Read-Only */
43 #define XI_PROP_PRODUCT_ID "Device Product ID"
44 
45 /* Coordinate transformation matrix for absolute input devices
46  * FLOAT, 9 values in row-major order, coordinates in 0..1 range:
47  * [c0 c1 c2]   [x]
48  * [c3 c4 c5] * [y]
49  * [c6 c7 c8]   [1] */
50 #define XI_PROP_TRANSFORM "Coordinate Transformation Matrix"
51 
52 /* STRING. Device node path of device */
53 #define XI_PROP_DEVICE_NODE "Device Node"
54 
55 /* Pointer acceleration properties */
56 /* INTEGER of any format */
57 #define ACCEL_PROP_PROFILE_NUMBER "Device Accel Profile"
58 /* FLOAT, format 32 */
59 #define ACCEL_PROP_CONSTANT_DECELERATION "Device Accel Constant Deceleration"
60 /* FLOAT, format 32 */
61 #define ACCEL_PROP_ADAPTIVE_DECELERATION "Device Accel Adaptive Deceleration"
62 /* FLOAT, format 32 */
63 #define ACCEL_PROP_VELOCITY_SCALING "Device Accel Velocity Scaling"
64 
65 /* Axis labels */
66 #define AXIS_LABEL_PROP "Axis Labels"
67 
68 #define AXIS_LABEL_PROP_REL_X           "Rel X"
69 #define AXIS_LABEL_PROP_REL_Y           "Rel Y"
70 #define AXIS_LABEL_PROP_REL_Z           "Rel Z"
71 #define AXIS_LABEL_PROP_REL_RX          "Rel Rotary X"
72 #define AXIS_LABEL_PROP_REL_RY          "Rel Rotary Y"
73 #define AXIS_LABEL_PROP_REL_RZ          "Rel Rotary Z"
74 #define AXIS_LABEL_PROP_REL_HWHEEL      "Rel Horiz Wheel"
75 #define AXIS_LABEL_PROP_REL_DIAL        "Rel Dial"
76 #define AXIS_LABEL_PROP_REL_WHEEL       "Rel Vert Wheel"
77 #define AXIS_LABEL_PROP_REL_MISC        "Rel Misc"
78 #define AXIS_LABEL_PROP_REL_VSCROLL     "Rel Vert Scroll"
79 #define AXIS_LABEL_PROP_REL_HSCROLL     "Rel Horiz Scroll"
80 
81 /*
82  * Absolute axes
83  */
84 
85 #define AXIS_LABEL_PROP_ABS_X           "Abs X"
86 #define AXIS_LABEL_PROP_ABS_Y           "Abs Y"
87 #define AXIS_LABEL_PROP_ABS_Z           "Abs Z"
88 #define AXIS_LABEL_PROP_ABS_RX          "Abs Rotary X"
89 #define AXIS_LABEL_PROP_ABS_RY          "Abs Rotary Y"
90 #define AXIS_LABEL_PROP_ABS_RZ          "Abs Rotary Z"
91 #define AXIS_LABEL_PROP_ABS_THROTTLE    "Abs Throttle"
92 #define AXIS_LABEL_PROP_ABS_RUDDER      "Abs Rudder"
93 #define AXIS_LABEL_PROP_ABS_WHEEL       "Abs Wheel"
94 #define AXIS_LABEL_PROP_ABS_GAS         "Abs Gas"
95 #define AXIS_LABEL_PROP_ABS_BRAKE       "Abs Brake"
96 #define AXIS_LABEL_PROP_ABS_HAT0X       "Abs Hat 0 X"
97 #define AXIS_LABEL_PROP_ABS_HAT0Y       "Abs Hat 0 Y"
98 #define AXIS_LABEL_PROP_ABS_HAT1X       "Abs Hat 1 X"
99 #define AXIS_LABEL_PROP_ABS_HAT1Y       "Abs Hat 1 Y"
100 #define AXIS_LABEL_PROP_ABS_HAT2X       "Abs Hat 2 X"
101 #define AXIS_LABEL_PROP_ABS_HAT2Y       "Abs Hat 2 Y"
102 #define AXIS_LABEL_PROP_ABS_HAT3X       "Abs Hat 3 X"
103 #define AXIS_LABEL_PROP_ABS_HAT3Y       "Abs Hat 3 Y"
104 #define AXIS_LABEL_PROP_ABS_PRESSURE    "Abs Pressure"
105 #define AXIS_LABEL_PROP_ABS_DISTANCE    "Abs Distance"
106 #define AXIS_LABEL_PROP_ABS_TILT_X      "Abs Tilt X"
107 #define AXIS_LABEL_PROP_ABS_TILT_Y      "Abs Tilt Y"
108 #define AXIS_LABEL_PROP_ABS_TOOL_WIDTH  "Abs Tool Width"
109 #define AXIS_LABEL_PROP_ABS_VOLUME      "Abs Volume"
110 #define AXIS_LABEL_PROP_ABS_MT_TOUCH_MAJOR "Abs MT Touch Major"
111 #define AXIS_LABEL_PROP_ABS_MT_TOUCH_MINOR "Abs MT Touch Minor"
112 #define AXIS_LABEL_PROP_ABS_MT_WIDTH_MAJOR "Abs MT Width Major"
113 #define AXIS_LABEL_PROP_ABS_MT_WIDTH_MINOR "Abs MT Width Minor"
114 #define AXIS_LABEL_PROP_ABS_MT_ORIENTATION "Abs MT Orientation"
115 #define AXIS_LABEL_PROP_ABS_MT_POSITION_X  "Abs MT Position X"
116 #define AXIS_LABEL_PROP_ABS_MT_POSITION_Y  "Abs MT Position Y"
117 #define AXIS_LABEL_PROP_ABS_MT_TOOL_TYPE   "Abs MT Tool Type"
118 #define AXIS_LABEL_PROP_ABS_MT_BLOB_ID     "Abs MT Blob ID"
119 #define AXIS_LABEL_PROP_ABS_MT_TRACKING_ID "Abs MT Tracking ID"
120 #define AXIS_LABEL_PROP_ABS_MT_PRESSURE    "Abs MT Pressure"
121 #define AXIS_LABEL_PROP_ABS_MT_DISTANCE    "Abs MT Distance"
122 #define AXIS_LABEL_PROP_ABS_MT_TOOL_X      "Abs MT Tool X"
123 #define AXIS_LABEL_PROP_ABS_MT_TOOL_Y      "Abs MT Tool Y"
124 #define AXIS_LABEL_PROP_ABS_MISC        "Abs Misc"
125 
126 /* Button names */
127 #define BTN_LABEL_PROP "Button Labels"
128 
129 /* Default label */
130 #define BTN_LABEL_PROP_BTN_UNKNOWN      "Button Unknown"
131 /* Wheel buttons */
132 #define BTN_LABEL_PROP_BTN_WHEEL_UP     "Button Wheel Up"
133 #define BTN_LABEL_PROP_BTN_WHEEL_DOWN   "Button Wheel Down"
134 #define BTN_LABEL_PROP_BTN_HWHEEL_LEFT  "Button Horiz Wheel Left"
135 #define BTN_LABEL_PROP_BTN_HWHEEL_RIGHT "Button Horiz Wheel Right"
136 
137 /* The following are from linux/input.h */
138 #define BTN_LABEL_PROP_BTN_0            "Button 0"
139 #define BTN_LABEL_PROP_BTN_1            "Button 1"
140 #define BTN_LABEL_PROP_BTN_2            "Button 2"
141 #define BTN_LABEL_PROP_BTN_3            "Button 3"
142 #define BTN_LABEL_PROP_BTN_4            "Button 4"
143 #define BTN_LABEL_PROP_BTN_5            "Button 5"
144 #define BTN_LABEL_PROP_BTN_6            "Button 6"
145 #define BTN_LABEL_PROP_BTN_7            "Button 7"
146 #define BTN_LABEL_PROP_BTN_8            "Button 8"
147 #define BTN_LABEL_PROP_BTN_9            "Button 9"
148 
149 #define BTN_LABEL_PROP_BTN_LEFT         "Button Left"
150 #define BTN_LABEL_PROP_BTN_RIGHT        "Button Right"
151 #define BTN_LABEL_PROP_BTN_MIDDLE       "Button Middle"
152 #define BTN_LABEL_PROP_BTN_SIDE         "Button Side"
153 #define BTN_LABEL_PROP_BTN_EXTRA        "Button Extra"
154 #define BTN_LABEL_PROP_BTN_FORWARD      "Button Forward"
155 #define BTN_LABEL_PROP_BTN_BACK         "Button Back"
156 #define BTN_LABEL_PROP_BTN_TASK         "Button Task"
157 
158 #define BTN_LABEL_PROP_BTN_TRIGGER      "Button Trigger"
159 #define BTN_LABEL_PROP_BTN_THUMB        "Button Thumb"
160 #define BTN_LABEL_PROP_BTN_THUMB2       "Button Thumb2"
161 #define BTN_LABEL_PROP_BTN_TOP          "Button Top"
162 #define BTN_LABEL_PROP_BTN_TOP2         "Button Top2"
163 #define BTN_LABEL_PROP_BTN_PINKIE       "Button Pinkie"
164 #define BTN_LABEL_PROP_BTN_BASE         "Button Base"
165 #define BTN_LABEL_PROP_BTN_BASE2        "Button Base2"
166 #define BTN_LABEL_PROP_BTN_BASE3        "Button Base3"
167 #define BTN_LABEL_PROP_BTN_BASE4        "Button Base4"
168 #define BTN_LABEL_PROP_BTN_BASE5        "Button Base5"
169 #define BTN_LABEL_PROP_BTN_BASE6        "Button Base6"
170 #define BTN_LABEL_PROP_BTN_DEAD         "Button Dead"
171 
172 #define BTN_LABEL_PROP_BTN_A            "Button A"
173 #define BTN_LABEL_PROP_BTN_B            "Button B"
174 #define BTN_LABEL_PROP_BTN_C            "Button C"
175 #define BTN_LABEL_PROP_BTN_X            "Button X"
176 #define BTN_LABEL_PROP_BTN_Y            "Button Y"
177 #define BTN_LABEL_PROP_BTN_Z            "Button Z"
178 #define BTN_LABEL_PROP_BTN_TL           "Button T Left"
179 #define BTN_LABEL_PROP_BTN_TR           "Button T Right"
180 #define BTN_LABEL_PROP_BTN_TL2          "Button T Left2"
181 #define BTN_LABEL_PROP_BTN_TR2          "Button T Right2"
182 #define BTN_LABEL_PROP_BTN_SELECT       "Button Select"
183 #define BTN_LABEL_PROP_BTN_START        "Button Start"
184 #define BTN_LABEL_PROP_BTN_MODE         "Button Mode"
185 #define BTN_LABEL_PROP_BTN_THUMBL       "Button Thumb Left"
186 #define BTN_LABEL_PROP_BTN_THUMBR       "Button Thumb Right"
187 
188 #define BTN_LABEL_PROP_BTN_TOOL_PEN             "Button Tool Pen"
189 #define BTN_LABEL_PROP_BTN_TOOL_RUBBER          "Button Tool Rubber"
190 #define BTN_LABEL_PROP_BTN_TOOL_BRUSH           "Button Tool Brush"
191 #define BTN_LABEL_PROP_BTN_TOOL_PENCIL          "Button Tool Pencil"
192 #define BTN_LABEL_PROP_BTN_TOOL_AIRBRUSH        "Button Tool Airbrush"
193 #define BTN_LABEL_PROP_BTN_TOOL_FINGER          "Button Tool Finger"
194 #define BTN_LABEL_PROP_BTN_TOOL_MOUSE           "Button Tool Mouse"
195 #define BTN_LABEL_PROP_BTN_TOOL_LENS            "Button Tool Lens"
196 #define BTN_LABEL_PROP_BTN_TOUCH                "Button Touch"
197 #define BTN_LABEL_PROP_BTN_STYLUS               "Button Stylus"
198 #define BTN_LABEL_PROP_BTN_STYLUS2              "Button Stylus2"
199 #define BTN_LABEL_PROP_BTN_TOOL_DOUBLETAP       "Button Tool Doubletap"
200 #define BTN_LABEL_PROP_BTN_TOOL_TRIPLETAP       "Button Tool Tripletap"
201 
202 #define BTN_LABEL_PROP_BTN_GEAR_DOWN            "Button Gear down"
203 #define BTN_LABEL_PROP_BTN_GEAR_UP              "Button Gear up"
204 
205 #endif
206