From b959deebd764b59410418dda7e457e18d57e48da Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 18 Aug 2023 09:03:18 +0100 Subject: Add support for Thrustmaster TX This utilises most of the same logic as the T300, but with a separate sequences for the range, open and close. This is based on a device with an F1 wheel attachment, this might need extending in the future. --- hid-tmff2.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hid-tmff2.c') diff --git a/hid-tmff2.c b/hid-tmff2.c index 1d00303..cf805d7 100644 --- a/hid-tmff2.c +++ b/hid-tmff2.c @@ -633,6 +633,11 @@ static int tmff2_probe(struct hid_device *hdev, const struct hid_device_id *id) goto wheel_err; break; + case TX_ACTIVE: + if ((ret = tx_populate_api(tmff2))) + goto wheel_err; + break; + default: ret = -ENODEV; goto wheel_err; @@ -725,6 +730,9 @@ static const struct hid_device_id tmff2_devices[] = { {HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, TMT300RS_PS4_NORM_ID)}, /* t248 PC*/ {HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, TMT248_PC_ID)}, + /* tx */ + {HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, TX_ACTIVE)}, + {} }; MODULE_DEVICE_TABLE(hid, tmff2_devices); -- cgit v1.3