Skip to content

Commit

Permalink
Adding support of T500RS using modified TM driver (#61)
Browse files Browse the repository at this point in the history
Co-authored-by: cazzoo <caz.san@gmail.com>
  • Loading branch information
cazzoo and cazzoo authored Jun 1, 2021
1 parent 06b47f0 commit f30af89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ This software supports the following Logitech wheels:
These other wheels are getting suppport as their drivers mature:

- Thrustmaster T300RS with [https://github.com/Kimplul/hid-tmff2].
- Thrustmaster T500RS with [https://github.com/Kimplul/hid-tmff2].
- FANATEC CSL Elite Wheel Base with [https://github.com/gotzl/hid-fanatecff].
- FANATEC CSL Elite Wheel Base PS4 with [https://github.com/gotzl/hid-fanatecff].
- FANATEC ClubSport Wheel Base V2 with [https://github.com/gotzl/hid-fanatecff].
Expand Down
4 changes: 2 additions & 2 deletions oversteer/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ def normalize_event(self, event):
if event.code == ecodes.ABS_X:
if self.usb_id in [self.device_manager.LG_WFG, self.device_manager.LG_WFFG]:
event.value = event.value * 64
elif self.usb_id not in [self.device_manager.LG_G29, self.device_manager.TM_T300RS] and self.vendor_id != self.device_manager.VENDOR_FANATEC:
elif self.usb_id not in [self.device_manager.LG_G29, self.device_manager.TM_T300RS, self.device_manager.TM_T500RS] and self.vendor_id != self.device_manager.VENDOR_FANATEC:
event.value = event.value * 4
elif self.usb_id in [self.device_manager.LG_G25, self.device_manager.LG_G27, self.device_manager.LG_G29, self.device_manager.TM_T300RS]:
elif self.usb_id in [self.device_manager.LG_G25, self.device_manager.LG_G27, self.device_manager.LG_G29, self.device_manager.TM_T300RS, self.device_manager.TM_T500RS]:
if event.code == ecodes.ABS_Y:
event.code = ecodes.ABS_RZ
elif event.code == ecodes.ABS_Z:
Expand Down

0 comments on commit f30af89

Please sign in to comment.