Initialize Tizen 2.3
[adaptation/xorg/driver/xserver-xorg-input-evdev.git] / include / evdev-properties.h
1 /*
2  * Copyright © 2008 Red Hat, Inc.
3  *
4  * Permission to use, copy, modify, distribute, and sell this software
5  * and its documentation for any purpose is hereby granted without
6  * fee, provided that the above copyright notice appear in all copies
7  * and that both that copyright notice and this permission notice
8  * appear in supporting documentation, and that the name of Red Hat
9  * not be used in advertising or publicity pertaining to distribution
10  * of the software without specific, written prior permission.  Red
11  * Hat makes no representations about the suitability of this software
12  * for any purpose.  It is provided "as is" without express or implied
13  * warranty.
14  *
15  * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17  * NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
21  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22  *
23  * Authors:
24  *      Peter Hutterer (peter.hutterer@redhat.com)
25  */
26
27
28 #ifndef _EVDEV_PROPERTIES_H_
29 #define _EVDEV_PROPERTIES_H_
30
31 /* Middle mouse button emulation */
32 /* BOOL */
33 #define EVDEV_PROP_MIDBUTTON "Evdev Middle Button Emulation"
34 /* CARD32 */
35 #define EVDEV_PROP_MIDBUTTON_TIMEOUT "Evdev Middle Button Timeout"
36
37 /* Wheel emulation */
38 /* BOOL */
39 #define EVDEV_PROP_WHEEL "Evdev Wheel Emulation"
40 /* CARD8, 4 values [x up, x down, y up, y down], 0 to disable a value*/
41 #define EVDEV_PROP_WHEEL_AXES "Evdev Wheel Emulation Axes"
42 /* CARD16 */
43 #define EVDEV_PROP_WHEEL_INERTIA "Evdev Wheel Emulation Inertia"
44 /* CARD16 */
45 #define EVDEV_PROP_WHEEL_TIMEOUT "Evdev Wheel Emulation Timeout"
46 /* CARD8, value range 0-32, 0 to always scroll */
47 #define EVDEV_PROP_WHEEL_BUTTON "Evdev Wheel Emulation Button"
48
49 /* Drag lock */
50 /* CARD8, either 1 value or pairs, value range 0-32, 0 to disable a value*/
51 #define EVDEV_PROP_DRAGLOCK "Evdev Drag Lock Buttons"
52
53 /* Axis inversion */
54 /* BOOL, 2 values [x, y], 1 inverts axis */
55 #define EVDEV_PROP_INVERT_AXES "Evdev Axis Inversion"
56
57 /* Reopen attempts. */
58 /* CARD8 */
59 #define EVDEV_PROP_REOPEN "Evdev Reopen Attempts" /* OBSOLETE */
60
61 /* Run-time calibration */
62 /* CARD32, 4 values [minx, maxx, miny, maxy], or no values for unset */
63 #define EVDEV_PROP_CALIBRATION "Evdev Axis Calibration"
64
65 /* Swap x and y axis. */
66 /* BOOL */
67 #define EVDEV_PROP_SWAP_AXES "Evdev Axes Swap"
68
69 /* BOOL */
70 #define EVDEV_PROP_THIRDBUTTON "Evdev Third Button Emulation"
71 /* CARD32 */
72 #define EVDEV_PROP_THIRDBUTTON_TIMEOUT "Evdev Third Button Emulation Timeout"
73 /* CARD8 */
74 #define EVDEV_PROP_THIRDBUTTON_BUTTON "Evdev Third Button Emulation Button"
75 /* CARD32 */
76 #define EVDEV_PROP_THIRDBUTTON_THRESHOLD "Evdev Third Button Emulation Threshold"
77
78 /* CARD8, 1 value,
79    This property is initialized on devices that have multimedia keys on the
80    function keys. The value of the property selects the default behaviour
81    for the function keys. The behaviour of the fn key (if any exists) is
82    hardware specific. On some hardware, fn may toggle the other set of
83    functions available on the keys.
84
85    0 send functions keys by default, fn may toggle to multimedia keys
86    1 send multimedia keys by default, fn may toggle to function keys
87 */
88 #define EVDEV_PROP_FUNCTION_KEYS "Evdev Function Keys"
89
90 #ifdef _F_EVDEV_CONFINE_REGION_
91 /* Confine region in which relative and absolute devices can be moved */
92 #define EVDEV_PROP_CONFINE_REGION "Evdev Confine Region"
93 #endif /* #ifdef _F_EVDEV_CONFINE_REGION_*/
94
95 #ifdef _F_TOUCH_TRANSFORM_MATRIX_
96 #define EVDEV_PROP_TOUCH_TRANSFORM_MATRIX "Evdev Touch Transform Matrix"
97 #endif /* #ifdef _F_TOUCH_TRANSFORM_MATRIX_ */
98
99 #endif