diff options
| author | Yassine Imounachen <yassine.imounachen@gmail.com> | 2024-04-29 03:01:57 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2024-04-29 03:03:29 +0100 |
| commit | 3c604578073aa04c86119bbf17eb4e2b515ed592 (patch) | |
| tree | 2dc32ef7fb49ad9d2317fb4179276ebfaa8b7d0d /tminit.c | |
| parent | 031ef062ac01af9f2ff4b41dde9a89e460f8168d (diff) | |
| download | hid-tminit-3c604578073aa04c86119bbf17eb4e2b515ed592.tar.gz hid-tminit-3c604578073aa04c86119bbf17eb4e2b515ed592.zip | |
add support for TS-XW initialization
Diffstat (limited to 'tminit.c')
| -rw-r--r-- | tminit.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -72,11 +72,12 @@ static const struct tm_wheel_info tm_wheels_infos[] = { {0x02, 0x06, 0x0005, "Thrustmaster T300RS"}, {0x02, 0x09, 0x0005, "Thrustmaster T300RS (Open Wheel Attachment)"}, {0x03, 0x06, 0x0006, "Thrustmaster T150RS"}, - {0x00, 0x09, 0x000b, "Thrustmaster T128"} + {0x00, 0x09, 0x000b, "Thrustmaster T128"}, + {0x07, 0x0a, 0x000a, "Thrustmaster TS-XW"} //{0x04, 0x07, 0x0001, "Thrustmaster TMX"} }; -static const uint8_t tm_wheels_infos_length = 8; +static const uint8_t tm_wheels_infos_length = 9; /* The control packet to send to wheel */ @@ -214,7 +215,7 @@ static void thrustmaster_model_handler(struct urb *urb) tm_wheel->response->type); return; } - + for (i = 0; i < tm_wheels_infos_length && !twi; i++) if (tm_wheels_infos[i].model == model) twi = tm_wheels_infos + i; |
