doc: move relative motion normalization page over to doc/
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 22 Dec 2014 00:08:13 +0000 (10:08 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 22 Dec 2014 02:53:23 +0000 (12:53 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/Makefile.am
doc/normalization-of-relative-motion.dox [new file with mode: 0644]
src/libinput.h

index 30f60895603aa2abad3ce69380a4133b524b674d..3feeb07de905634c7d8f954e6ace637625db350f 100644 (file)
@@ -9,6 +9,7 @@ header_files = \
        $(top_srcdir)/README.txt \
        $(srcdir)/absolute-axes.dox \
        $(srcdir)/clickpad-softbuttons.dox \
+       $(srcdir)/normalization-of-relative-motion.dox \
        $(srcdir)/seats.dox \
        $(srcdir)/t440-support.dox
 
diff --git a/doc/normalization-of-relative-motion.dox b/doc/normalization-of-relative-motion.dox
new file mode 100644 (file)
index 0000000..ce266e3
--- /dev/null
@@ -0,0 +1,52 @@
+/**
+@page motion_normalization Normalization of relative motion
+
+Most relative input devices generate input in so-called "mickeys". A
+mickey is in device-specific units that depend on the resolution
+of the sensor. Most optical mice use sensors with 1000dpi resolution, but
+some devices range from 100dpi to well above 8000dpi.
+
+Without a physical reference point, a relative coordinate cannot be
+interpreted correctly. A delta of 10 mickeys may be a millimeter of
+physical movement or 10 millimeters, depending on the sensor. This
+affects pointer acceleration in libinput and interpretation of relative
+coordinates in callers.
+
+libinput normalizes all relative input to a physical resolution of
+1000dpi, the same delta from two different devices thus represents the
+same physical movement of those two devices (within sensor error
+margins).
+
+Devices usually do not advertise their resolution and libinput relies on
+the udev property MOUSE_DPI for this information.
+
+The format of the property for single-resolution mice is:
+@code
+     MOUSE_DPI=resolution@frequency
+@endcode
+
+The resolution is in dots per inch, the frequency in Hz.
+The format of the property for multi-resolution mice may list multiple
+resolutions and frequencies:
+@code
+     MOUSE_DPI=r1@f1 *r2@f2 r3@f3
+@endcode
+
+The default frequency must be pre-fixed with an asterisk.
+
+For example, these two properties are valid:
+@code
+     MOUSE_DPI=800@125
+     MOUSE_DPI=400@125 800@125 *1000@500 5500@500
+@endcode
+
+The behavior for a malformed property is undefined.
+
+If the property is unset, libinput assumes the resolution is 1000dpi.
+
+Note that HW does not usually provide information about run-time
+resolution changes, libinput will thus not detect when a resolution
+changes to the non-default value.
+
+*/
+
index d62516d1c7a1bff397b545f80999c8cd3638d4e8..4adf2177af64da0f75ed41dfb2f8657ec1a99263 100644 (file)
@@ -132,57 +132,6 @@ extern "C" {
  *
  */
 
-/**
- * @page motion_normalization Normalization of relative motion
- *
- * Most relative input devices generate input in so-called "mickeys". A
- * mickey is in device-specific units that depend on the resolution
- * of the sensor. Most optical mice use sensors with 1000dpi resolution, but
- * some devices range from 100dpi to well above 8000dpi.
- *
- * Without a physical reference point, a relative coordinate cannot be
- * interpreted correctly. A delta of 10 mickeys may be a millimeter of
- * physical movement or 10 millimeters, depending on the sensor. This
- * affects pointer acceleration in libinput and interpretation of relative
- * coordinates in callers.
- *
- * libinput normalizes all relative input to a physical resolution of
- * 1000dpi, the same delta from two different devices thus represents the
- * same physical movement of those two devices (within sensor error
- * margins).
- *
- * Devices usually do not advertise their resolution and libinput relies on
- * the udev property MOUSE_DPI for this information.
- *
- * The format of the property for single-resolution mice is:
- * @code
- *      MOUSE_DPI=resolution@frequency
- * @endcode
- *
- * The resolution is in dots per inch, the frequency in Hz.
- * The format of the property for multi-resolution mice may list multiple
- * resolutions and frequencies:
- * @code
- *      MOUSE_DPI=r1@f1 *r2@f2 r3@f3
- * @endcode
- *
- * The default frequency must be pre-fixed with an asterisk.
- *
- * For example, these two properties are valid:
- * @code
- *      MOUSE_DPI=800@125
- *      MOUSE_DPI=400@125 800@125 *1000@500 5500@500
- * @endcode
- *
- * The behavior for a malformed property is undefined.
- *
- * If the property is unset, libinput assumes the resolution is 1000dpi.
- *
- * Note that HW does not usually provide information about run-time
- * resolution changes, libinput will thus not detect when a resolution
- * changes to the non-default value.
- */
-
 /**
  * Log priority for internal logging messages.
  */