Skip to contentSkip to conversation

Input: add short note about ABS_MISC+<n> axes

PATCH In review David Herrmann 1 participant 2 messages Dec 16, 2013 – Jan 23, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: add short note about ABS_MISC+<n> axes

We must not reassign those axes or we will break backwards-compat. Add a small note for that so we don't accidentally some day reuse these.

---
 include/uapi/linux/input.h | 4 ++++
 1 file changed, 4 insertions(+)
include/uapi/linux/input.h +4 -0
index a372627..da1125e 100644
@@ -816,6 +816,10 @@ struct input_keymap_entry {
 
 #define ABS_MISC		0x28
 
+/* ABS_MISC+x is used by HID to assign to unknown axes. Note that they used to
+ * flow over into the MT definitions. For backwards-compatibility, we must
+ * not reassign [0x29-0x2e] */
+
 #define ABS_MT_SLOT		0x2f	/* MT slot being modified */
 #define ABS_MT_TOUCH_MAJOR	0x30	/* Major axis of touching ellipse */
 #define ABS_MT_TOUCH_MINOR	0x31	/* Minor axis (omit if circular) */
Signature · 1 line
1.8.5.1
#1 lore raw

Hi Dmitry

ping?

David

Quoted 26 lines · David Herrmann

We must not reassign those axes or we will break backwards-compat. Add a small note for that so we don't accidentally some day reuse these.

---
 include/uapi/linux/input.h | 4 ++++
 1 file changed, 4 insertions(+)
include/uapi/linux/input.h +4 -1
index a372627..da1125e 100644
@@ -816,6 +816,10 @@ struct input_keymap_entry {
 
 #define ABS_MISC               0x28
 
+/* ABS_MISC+x is used by HID to assign to unknown axes. Note that they used to
+ * flow over into the MT definitions. For backwards-compatibility, we must
+ * not reassign [0x29-0x2e] */
+
 #define ABS_MT_SLOT            0x2f    /* MT slot being modified */
 #define ABS_MT_TOUCH_MAJOR     0x30    /* Major axis of touching ellipse */
 #define ABS_MT_TOUCH_MINOR     0x31    /* Minor axis (omit if circular) */
--

1.8.5.1