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

Use pedals separately #33

Closed
hodasemi opened this issue Jan 15, 2022 · 10 comments
Closed

Use pedals separately #33

hodasemi opened this issue Jan 15, 2022 · 10 comments

Comments

@hodasemi
Copy link

Hi,

I got an G29 wheel base and wanted to use the T-LCM pedals separately via USB. Is there a way to do it?

@Kimplul
Copy link
Owner

Kimplul commented Jan 15, 2022

Hi, don't have the pedals myself so I don't know for sure, but if they're halfway sensibly made they should be able to report their axes etc. through standard HID protocols. Did you already try just plugging them in and seeing what happens?

@hodasemi
Copy link
Author

hodasemi commented Jan 15, 2022

Yea, I tried it.
Oversteer doesn't report any input. I tried it in F1 2021, there is also no input recorded.
Made a quick test in a native game: DRAG does also not recognize any input from the pedals.

@Kimplul
Copy link
Owner

Kimplul commented Jan 15, 2022

Do the pedals show up as a joystick? If you run jstest-gtk, does it show anything?

@hodasemi
Copy link
Author

Yes, the pedals show up. Input is also recorded correctly.

@Kimplul
Copy link
Owner

Kimplul commented Jan 15, 2022

In that case I suspect that the games don't know how to handle input from two separate sources. Not sure how Thrustmaster does it on Windows, maybe they somehow pipe the input from the pedals to the wheel's driver?

@hodasemi
Copy link
Author

So I would close this issue since the device is actually recognized by the system.

@berarma
Copy link

berarma commented Jan 15, 2022

Let me chime in. There's currently an issue in SDL that doesn't report devices with only axes as joysticks because it guesses they're accelerometers.

You could create a virtual device that added a fake button and it would work. There's an open issue in Proton's Github related to this.

@hodasemi
Copy link
Author

How do I create such a virtual device and connect the necessary parts to my actual pedal? I wouldn't call me a beginner, but I never toyed with devices at all.

@Kimplul
Copy link
Owner

Kimplul commented Jan 19, 2022

I think this is the issue berarma mentioned:
ValveSoftware/Proton#5126

In the thread, berarma also linked a file that shows how to tell SDL to treat the device as a joystick:
https://github.com/libsdl-org/SDL/blob/d4f2f01580454deef8ac43d8939ebc907d4ad759/README-linux.txt

@berarma
Copy link

berarma commented Jan 19, 2022

Yes, we followed the conversation in an Oversteer issue and forgot to update the thread here.

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

No branches or pull requests

3 participants