Skip to content

Commit

Permalink
add T248 to known wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimplul authored and berarma committed Apr 11, 2022
1 parent 20dd5cf commit bd4ffa4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/udev/99-thrustmaster-wheel-perms.rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ SUBSYSTEMS=="hid", KERNELS=="0003:044F:B65E.????", DRIVERS=="t500rs", RUN+="/bin
# Thrustmaster T300RS Racing Wheel (USB)
SUBSYSTEMS=="hid", KERNELS=="0003:044F:B66E.????", DRIVERS=="t300rs", RUN+="/bin/sh -c 'cd %S%p/../../../; chmod 666 range spring_level damper_level friction_level'"

# Thrustmaster T248 Racing Wheel (USB)
SUBSYSTEMS=="hid", KERNELS=="0003:044F:B696.????", RUN+="/bin/sh -c 'cd %S%p/../../../; chmod 666 range spring_level damper_level friction_level'"

# Thrustmaster T150 Racing Wheel (USB)
SUBSYSTEMS=="hid", KERNELS=="0003:044F:B677.????", DRIVERS=="t150", RUN+="/bin/sh -c 'cd %S%p/../../../; chmod 666 range gain autocenter'"
7 changes: 7 additions & 0 deletions oversteer/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,11 @@ def normalize_event(self, event):
event.code = ecodes.ABS_RZ
elif event.code == ecodes.ABS_RZ:
event.code = ecodes.ABS_Y
elif self.usb_id in [wid.TM_T248]:
if event.code == ecodes.ABS_RZ:
event.code = ecodes.ABS_Z
elif event.code == ecodes.ABS_Y:
event.code = ecodes.ABS_RZ
elif event.code == ecodes.ABS_THROTTLE:
event.code = ecodes.ABS_Y
return event
1 change: 1 addition & 0 deletions oversteer/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def __init__(self):
wid.LG_WFG: 180,
wid.LG_WFFG: 180,
wid.TM_T150: 1080,
wid.TM_T248: 900,
wid.TM_T300RS: 1080,
wid.TM_T500RS: 1080,
wid.FT_CSL_ELITE: 1080,
Expand Down
1 change: 1 addition & 0 deletions oversteer/wheel_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
LG_WFG = '046d:c20e'
LG_WFFG = '046d:c293'
TM_T150 = '044f:b677'
TM_T248 = '044f:b696'
TM_T300RS = '044f:b66e'
TM_T500RS = '044f:b65e'
FT_CSL_ELITE = '0eb7:0e03'
Expand Down

0 comments on commit bd4ffa4

Please sign in to comment.