diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-01-27 15:45:41 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-01-27 15:45:41 +0200 |
| commit | 4503f35397f24623ecb286dbea6685a9be67b7d9 (patch) | |
| tree | 2fa6091c9222621184cbb4233fd0674999b5d08b | |
| parent | 6435ec299af7caedca4f0e648b122b52e76f34fb (diff) | |
| download | hid-tmff2-4503f35397f24623ecb286dbea6685a9be67b7d9.tar.gz hid-tmff2-4503f35397f24623ecb286dbea6685a9be67b7d9.zip | |
add in stick shifter to T300RS PS4 rdesc
| -rw-r--r-- | hid-tmt300rs.c | 1 | ||||
| -rw-r--r-- | hid-tmt300rs.h | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/hid-tmt300rs.c b/hid-tmt300rs.c index 4bd8bc3..36df5ee 100644 --- a/hid-tmt300rs.c +++ b/hid-tmt300rs.c @@ -1621,6 +1621,7 @@ static void t300rs_remove(struct hid_device *hdev) } hrtimer_cancel(&t300rs->hrtimer); + drv_data->device_props = NULL; device_remove_file(&hdev->dev, &dev_attr_range); device_remove_file(&hdev->dev, &dev_attr_adv_mode); diff --git a/hid-tmt300rs.h b/hid-tmt300rs.h index 114cafd..d811b90 100644 --- a/hid-tmt300rs.h +++ b/hid-tmt300rs.h @@ -337,10 +337,19 @@ static u8 t300rs_rdesc_ps4_fixed[] = { /* clutch */ 0x09, 0x35, /* Usage (Rz) */ 0x81, 0x02, /* Input (Variable, Absolute) */ + /* stick shifter (check model no) */ + 0x05, 0x09, /* Usage page (Button) */ + 0x19, 0x0f, /* Usage minimum (15) */ + 0x29, 0x17, /* Usage maximum (23) */ + 0x15, 0x00, /* Logical minimum (1) */ + 0x25, 0x01, /* Logical maximum (1) */ + 0x75, 0x01, /* Report size (1) */ + 0x95, 0x08, /* Report count (8) */ + 0x81, 0x02, /* Input (Variable, Absolute) */ /* no clue */ 0x09, 0x00, /* Usage (U) */ 0x75, 0x08, /* Report size (8) */ - 0x95, 0x0d, /* Report count (13) */ + 0x95, 0x0c, /* Report count (12) */ 0x81, 0x02, /* Input (Variable, Absolute) */ /* continue unmodified */ 0x06, 0x00, 0xff, /* Usage page (Vendor defined 1) */ |
