HID: rapoo: Add support for side buttons on RAPOO 0x2015 mouse
PATCH 1/1 HID: rapoo: Add support for side buttons on RAPOO 0x2015 mouse
This patch adds support for handling the side buttons on the RAPOO 0x2015 wireless mouse. These buttons were previously not generating input events due to missing driver logic.
The new code handles raw HID input report with Report ID 1 and maps the side buttons to KEY_BACK and KEY_FORWARD using the input subsystem.
Tested on a RAPOO mouse with USB ID 24AE:2015.
--- drivers/hid/Kconfig | 6 +++ drivers/hid/Makefile | 1 + drivers/hid/hid-ids.h | 3 ++ drivers/hid/hid-rapoo.c | 101 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 drivers/hid/hid-rapoo.c
drivers/hid/Kconfig +6 -0
@@ -1004,6 +1004,12 @@ config HID_PXRC To compile this driver as a module, choose M here: the module will be called hid-pxrc. +config HID_RAPOO + tristate "Rapoo non-fully HID-compliant devices" + help + Support for Rapoo devices that are not fully compliant with the + HID standard. + config HID_RAZER tristate "Razer non-fully HID-compliant devices" help
drivers/hid/Makefile +1 -0
@@ -112,6 +112,7 @@ obj-$(CONFIG_HID_PLANTRONICS) += hid-plantronics.o obj-$(CONFIG_HID_PLAYSTATION) += hid-playstation.o obj-$(CONFIG_HID_PRIMAX) += hid-primax.o obj-$(CONFIG_HID_PXRC) += hid-pxrc.o +obj-$(CONFIG_HID_RAPOO) += hid-rapoo.o obj-$(CONFIG_HID_RAZER) += hid-razer.o obj-$(CONFIG_HID_REDRAGON) += hid-redragon.o obj-$(CONFIG_HID_RETRODE) += hid-retrode.o
drivers/hid/hid-ids.h +3 -0
@@ -1144,6 +1144,9 @@#define I2C_PRODUCT_ID_RAYDIUM_4B33 0x4b33#define I2C_PRODUCT_ID_RAYDIUM_3118 0x3118 +#define USB_VENDOR_ID_RAPOO 0x24ae +#define USB_DEVICE_ID_RAPOO_2_4G_RECEIVER 0x2015 +#define USB_VENDOR_ID_RAZER 0x1532#define USB_DEVICE_ID_RAZER_BLACKWIDOW_ULTIMATE 0x010D#define USB_DEVICE_ID_RAZER_BLACKWIDOW 0x010e
drivers/hid/hid-rapoo.c new file +101 -0
101 lines not on this page · raw message
Signature · 1 line
2.50.0
Jiri Kosina
maintainerQuoted 5 lines · Nguyen Dinh Dang Duong
This patch adds support for handling the side buttons on the RAPOO
0x2015wireless mouse. These buttons were previously not generating input events due to missing driver logic.
Quoted 7 lines
The new code handles raw HID input report with Report ID 1 and maps the side buttons to
KEY_BACKandKEY_FORWARDusing the input subsystem.Tested on a RAPOO mouse with USB ID 24AE:2015.
Signed-off-by Nguyen Dinh Dang Duong <[email protected]>
Sorry, this fell in betwwen cracks. Now applied.
Signature · 2 lines
Jiri Kosina SUSE Labs