From 96088a6c5641beec4dc41ea2fea808d51261ea4a Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 15 Jul 2024 04:47:12 +0300 Subject: [PATCH 1/3] Added Cammus C5 wheelbase ID --- hid-ids.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hid-ids.h b/hid-ids.h index 1115543..bc39628 100644 --- a/hid-ids.h +++ b/hid-ids.h @@ -9,4 +9,7 @@ #define USB_DEVICE_ID_MOZA_R12 0x0006 #define USB_DEVICE_ID_MOZA_R16_R21 0x0000 +#define USB_VENDOR_ID_CAMMUS 0x3416 +#define USB_DEVICE_ID_CAMMUS_C5 0x0301 + #endif From 776dccf8f995100eb698a4688d103351c2d65033 Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 15 Jul 2024 04:48:39 +0300 Subject: [PATCH 2/3] Added Cammus wheel to the list with NO_DELAY quirk --- hid-pidff-wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hid-pidff-wrapper.c b/hid-pidff-wrapper.c index ab53744..5ba2b9f 100644 --- a/hid-pidff-wrapper.c +++ b/hid-pidff-wrapper.c @@ -23,6 +23,8 @@ static const struct hid_device_id pidff_wheel_devices[] = { .driver_data = PIDFF_QUIRK_FIX_WHEEL_DIRECTION | PIDFF_QUIRK_FIX_PERIODIC_ENVELOPE }, { HID_USB_DEVICE(USB_VENDOR_ID_MOZA, USB_DEVICE_ID_MOZA_R16_R21), .driver_data = PIDFF_QUIRK_FIX_WHEEL_DIRECTION | PIDFF_QUIRK_FIX_PERIODIC_ENVELOPE }, + { HID_USB_DEVICE(USB_VENDOR_ID_CAMMUS, USB_DEVICE_ID_CAMMUS_C5), + .driver_data = PIDFF_QUIRK_NO_DELAY_EFFECT }, { } }; MODULE_DEVICE_TABLE(hid, pidff_wheel_devices); From 02a07521ae3ee38c5cf5e482f92a0ffc4b500600 Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 15 Jul 2024 04:54:18 +0300 Subject: [PATCH 3/3] Add Cammus C5 to README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 24542e2..7c1651d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,8 @@ And that's basically it ## What devices are supported? ### Bases: 1. MOZA R3, R5, R9, R12, R16, R21 -2. ... +2. Cammus C5 +3. ... ## What works? 1. FFB (all effects from device descriptor) @@ -59,6 +60,9 @@ To unload module: **[Android App](https://play.google.com/store/apps/details?id=com.gudsen.mozapithouse)** +### Cammus +**[Android App](https://play.google.com/store/apps/details?id=com.cammus.simulator)** + ## Known issues with the driver - Buttons above 80 simply don't show up. This is a Linux limitation and we're trying to fix that in the upstream