diff options
| author | David Edmundson <kde@davidedmundson.co.uk> | 2023-08-18 09:03:18 +0100 |
|---|---|---|
| committer | David Edmundson <kde@davidedmundson.co.uk> | 2023-08-23 11:54:48 +0100 |
| commit | b959deebd764b59410418dda7e457e18d57e48da (patch) | |
| tree | f0d6ad2921472a6cb240521d44e3ec58a8c55f8c /hid-tmff2.c | |
| parent | 010c0d986d8d75ff2727d164c8c41b08b33549a9 (diff) | |
| download | hid-tmff2-b959deebd764b59410418dda7e457e18d57e48da.tar.gz hid-tmff2-b959deebd764b59410418dda7e457e18d57e48da.zip | |
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.
Diffstat (limited to 'hid-tmff2.c')
| -rw-r--r-- | hid-tmff2.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |
