Skip to content

Commit

Permalink
Define TS-PC device ID and add to devices struct
Browse files Browse the repository at this point in the history
Based on the work of svenliekens in this comment:
Kimplul#65 (comment)
  • Loading branch information
adam820 committed Jul 4, 2024
1 parent 58b0d47 commit 0d66680
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hid-tmff2.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ static int tmff2_probe(struct hid_device *hdev, const struct hid_device_id *id)
hid_set_drvdata(tmff2->hdev, tmff2);

switch (tmff2->hdev->product) {
case TMTS_PC_RACER_ID:
case TMT300RS_PS3_NORM_ID:
case TMT300RS_PS3_ADV_ID:
case TMT300RS_PS4_NORM_ID:
Expand Down Expand Up @@ -775,6 +776,9 @@ static const struct hid_device_id tmff2_devices[] = {
/* tsxw */
{HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, TSXW_ACTIVE)},

/* TS-PC RACER */
{HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, TMTS_PC_RACER_ID)},

{}
};
MODULE_DEVICE_TABLE(hid, tmff2_devices);
Expand Down
2 changes: 2 additions & 0 deletions src/hid-tmff2.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ int tsxw_populate_api(struct tmff2_device_entry *tmff2);

#define TSXW_ACTIVE 0xb692

#define TMTS_PC_RACER_ID 0xb689

/* APIs to different wheel families */
/* T248 and TX at least uses the T300RS api, not sure if there are other wheels
* but that's why these functions are given global linkage */
Expand Down

0 comments on commit 0d66680

Please sign in to comment.