Skip to contentSkip to conversation

HID: rapoo: Add support for side buttons on RAPOO 0x2015 mouse

PATCH In review Nguyen Dinh Dang Duong 2 participants 2 messages Jun 27, 2025 – Jan 10 HID

lore
Share & tools
lore
#0 lore raw

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
index 43859fc75..cf58e811e 100644
@@ -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
index 10ae5dedb..4a1944184 100644
@@ -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
index c6468568a..abfa62041 100644
@@ -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
maintainer
#1 lore raw
Quoted 5 lines · Nguyen Dinh Dang Duong

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.

Quoted 7 lines

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.

Sorry, this fell in betwwen cracks. Now applied.

Signature · 2 lines
Jiri Kosina
SUSE Labs