Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for TS-XW Racer #94

Merged
merged 1 commit into from
Apr 21, 2024
Merged

Conversation

yassineimounachen
Copy link

@yassineimounachen yassineimounachen commented Apr 21, 2024

Hi, I pretty much copied exactly the commit for TX support and replaced occurrences of TX with TS-XW, 900° with 1080° and that was it. I didn't expect it to work at all but here we are, haha. Thank you so much, you can't imagine how happy I am. You just saved me from going back to my G27.
I used fftest and SuperTuxKart and they seemed to work alright. I am waiting for other proton games to download and I will test some more.
One caveat is (just like for the TX) initializing the wheel with tmdrv is needed beforehand.
Let me know if I need to add adjustments or if there are any ways to mitigate code duplication.
Thanks again @Kimplul and @davidedmundson.

EDIT I tried the wheel on EA WRC and it works perfectly minus some pedal mapping I had to perform in game settings

@Kimplul
Copy link
Owner

Kimplul commented Apr 21, 2024

Fantastic, nice work!

You may still want to patch Oversteer to add support for the wheel, you can see an example of what needs to be changed here: https://github.com/berarma/oversteer/pull/169/files

Additionally, some games use SDL's internal list of wheels to enable certain features, I think the F1 series does it, so you might also want to add the wheel to https://github.com/libsdl-org/SDL/blob/c623bd2fdcca29c513f5b68e7bd89368929ee564/src/joystick/SDL_joystick.c#L340

Don't really know what happened to the plans for getting the TX to work with hid-tminit, @davidedmundson any updates?

@davidedmundson
Copy link
Contributor

@yassineimounachen for Proton games you sometimes need to proxy it through protopedal to get support.
./protopedal --name 'Daves wheel' --vendor 046d --product c262 /dev/input/by-id/usb-Thrustmaster_Thrustmaster_TX_Racing_Wheel-event-joystick

Don't really know what happened to the plans for getting the TX to work with hid-tminit, @davidedmundson any updates?

Being honest, once I was able to play my games and I forgot all about it. But now I'm reminded I'll try and get back to upstreaming something. Sorry!

yassineimounachen added a commit to yassineimounachen/SDL that referenced this pull request Apr 21, 2024
@Kimplul Kimplul merged commit e0d3308 into Kimplul:master Apr 21, 2024
slouken pushed a commit to libsdl-org/SDL that referenced this pull request Apr 22, 2024
slouken pushed a commit to libsdl-org/SDL that referenced this pull request Apr 22, 2024
slouken pushed a commit to libsdl-org/SDL that referenced this pull request Apr 22, 2024
To be of use, this depends on berarma/oversteer#200 and Kimplul/hid-tmff2#94.

(cherry picked from commit 5ffb2f4)
(cherry picked from commit 8f18e2f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants