hid: enhance hid-saitek for use with R.A.T.5 and similar
PATCH v2 1/1 hid: enhance hid-saitek for use with R.A.T.5 and similar
added support for my pid so I can test the changes:
3 events were mapped to one, this allows discerning which is which. on my mouse there is a button with a 3 colour-led.
I can now determine in user-space which colour is visible. this patch replaces my previous ones.
if you use an older kernel than Dec 28th 2015, use previous patch!
Signed-off-by Piotr Sawuk <[email protected]>
---
add support for mad catz r.a.t.5
add a file in sysfs called "mode" exposing the integer of that name.
drivers/hid/hid-core.c +1 -0
@@ -1958,6 +1958,7 @@ static const struct hid_device_id hid_ha { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RAT7_OLD) }, { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RAT7) }, { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_MMO7) }, + { HID_USB_DEVICE(USB_VENDOR_ID_MADCATZ, USB_DEVICE_ID_MADCATZ_RAT5) }, { HID_USB_DEVICE(USB_VENDOR_ID_MADCATZ, USB_DEVICE_ID_MADCATZ_RAT9) }, #endif { HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) },
drivers/hid/hid-ids.h +1 -0
@@ -634,6 +634,7 @@#define USB_VENDOR_ID_MADCATZ 0x0738#define USB_DEVICE_ID_MADCATZ_BEATPAD 0x4540 +#define USB_DEVICE_ID_MADCATZ_RAT5 0x1705#define USB_DEVICE_ID_MADCATZ_RAT9 0x1709#define USB_VENDOR_ID_MCC 0x09db
drivers/hid/hid-saitek.c +45 -1
82 lines not on this page · raw message
drivers/hid/Kconfig +1 -0
@@ -665,6 +665,7 @@ config HID_SAITEK Supported devices: - PS1000 Dual Analog Pad + - R.A.T.5 Gaming Mouse - R.A.T.9 Gaming Mouse - R.A.T.7 Gaming Mouse - M.M.O.7 Gaming Mouse
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html