aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-03-04 17:10:26 -0500
committerJiri Kosina <jkosina@suse.cz>2015-03-04 17:31:36 -0500
commitf3dddf2432e3123ef34b470129295641f7513d26 (patch)
tree566ea08d262f831f2eb66b651416ada0816f82db /include/uapi/linux
parent68c18c61b23c28d4741fda0df81bc6ec40bfd14b (diff)
HID: map telephony usage page
Currently HID code maps usages from telephony page into BTN_0, BTN_1, etc keys which get interpreted by mousedev and userspace as left/right/middle button clicks, which is not really helpful. This change adds mappings for usages that have corresponding input event definitions, and leaves the rest unmapped. This can be changed when there are userspace consumers for more telephony usages. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/input.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h
index b0a813079852..2b628c316882 100644
--- a/include/uapi/linux/input.h
+++ b/include/uapi/linux/input.h
@@ -702,6 +702,10 @@ struct input_keymap_entry {
702#define KEY_NUMERIC_9 0x209 702#define KEY_NUMERIC_9 0x209
703#define KEY_NUMERIC_STAR 0x20a 703#define KEY_NUMERIC_STAR 0x20a
704#define KEY_NUMERIC_POUND 0x20b 704#define KEY_NUMERIC_POUND 0x20b
705#define KEY_NUMERIC_A 0x20c /* Phone key A - HUT Telephony 0xb9 */
706#define KEY_NUMERIC_B 0x20d
707#define KEY_NUMERIC_C 0x20e
708#define KEY_NUMERIC_D 0x20f
705 709
706#define KEY_CAMERA_FOCUS 0x210 710#define KEY_CAMERA_FOCUS 0x210
707#define KEY_WPS_BUTTON 0x211 /* WiFi Protected Setup key */ 711#define KEY_WPS_BUTTON 0x211 /* WiFi Protected Setup key */