aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-10-30 16:55:29 +1030
committerPeter Hutterer <peter.hutterer@redhat.com>2008-11-03 13:46:39 +1030
commit67c0ea6c9421a5226c1b8bc3a198b1cb01f6b355 (patch)
treeb24ff84db1a30c564f94be69d18db424b59dc085 /include
parentTreat BTN_[0-2] as LMR buttons if necessary. (diff)
downloadxf86-input-evdev-67c0ea6c9421a5226c1b8bc3a198b1cb01f6b355.tar.gz
xf86-input-evdev-67c0ea6c9421a5226c1b8bc3a198b1cb01f6b355.tar.bz2
xf86-input-evdev-67c0ea6c9421a5226c1b8bc3a198b1cb01f6b355.zip
Add support for run-time calibration.
Some devices require run-time axis calibration. We can't change the min/max ranges once we've initialised the valuator structs though, so in-driver run-time calibration is required. If the property is set, the driver scales from the calibrated range to the values reported to the X server (which then may scale to screen coordinates). If the property is not set (i.e. zero items) no scaling is performed. (cherry picked from commit 33eb36f26663c09c873acede1b35e91ef4c64479)
Diffstat (limited to 'include')
-rw-r--r--include/evdev-properties.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/evdev-properties.h b/include/evdev-properties.h
index 89f25f1..be4307b 100644
--- a/include/evdev-properties.h
+++ b/include/evdev-properties.h
@@ -58,4 +58,8 @@
/* CARD8 */
#define EVDEV_PROP_REOPEN "Evdev Reopen Attempts"
+/* Run-time calibration */
+/* CARD32, 4 values [minx, maxx, miny, maxy], or no values for unset */
+#define EVDEV_PROP_CALIBRATION "Evdev Axis Calibration"
+
#endif