Closed aravindSwamy94 closed 4 years ago
Any wheel should work as long as SDL_GAMECONTROLLERCONFIG setting is set up correctly.
You can create this setting with tools like SDL2 ControllerMap (from libSDL) or SDL2 Gamepad Tool or Steam.
Hi @martins-mozeiko : Thanks for your reply.
I tried creating SDL_GAMECONTROLLERCONFIG for logitech G29 and im unable to do that. Using the tools mentioned above, I tried to install SDL2 and SDL2 Gamepad tool onto my system , but the run- time version of the code crashes. Im getting a segementation fault , if I run SDL2 Gamepad tool . Can you please help me on this
System Used : Ubuntu 16.04 , 64-bit system
I'm also running on Ubuntu (18.04 though) and I have a logitech G27 wheel. I created the SDL_GAMECONTROLLERCONFIG environment variable. However; the simulator still wouldn't take commands from the wheel. I can use my keyboard to move the vehicle but not the wheel. Is there something missing? Is there like a guide I can follow to set it up? lastly, is there a sensor I should add to the vehicle to allow it to take commands from my Logitech G27 wheel? Thanks in advance for your help.
Are you using old simulator, or new HDRP one?
For new simulator only G920 steering wheel is supported. To support other steering wheels you'll need to modify Unity Input Systems configuration and rebuild simulator binary. We are currently creating plugin system that will allow to add this kind of functionality that will not require rebuilding simulator.
@martins-mozeiko Can you please provide further information what needs to be done? I'm currenlty having the same issue but I don't know exactly what needs to be changed to get the Logitech G29 running with the simulator. I'm currenlty using 2019.11.
I currently don't know what needs to be mapped because the names in my Unity project are not very clear to me.
Okay found it. :)
You need to do a double click on Assets/Scripts/Controllers/SimulatorControls.inputactions
Then you can change the buttons. Currently trying if it will work on my machine.
Okay it worked, I'm now able to drive with my Logitech G29 wheel. 😃
These are the changes I did: Logitech_G29_support.zip
Hi @martins-mozeiko Have you created plugin system that allow to add this kind of functionality that will not require rebuilding simulator.Now I have rebuild the simulator, but I can only rebuild the open source map and vehicle. The other map and vehicle provided by your website is not working well.
Best Regards!
We have not implemented this as plugin yet.
But rebuilding just simulator binary should work fine with our current assets - maps and vehicles. Just make sure you use source code from git tag for same version as for assets. We push weekly updates to git master that may introduce incompatibilities to assets, so don't use that if you cannot rebuild assets.
Okay it worked, I'm now able to drive with my Logitech G29 wheel. 😃
These are the changes I did: Logitech_G29_support.zip
Hi! Our team is now facing the same issue and we have tried your method. However, it does not work in our system. May I ask if you can provide the whole Build?
@ArteryLee
Are you using old simulator, or new HDRP one?
For new simulator only G920 steering wheel is supported. To support other steering wheels you'll need to modify Unity Input Systems configuration and rebuild simulator binary. We are currently creating plugin system that will allow to add this kind of functionality that will not require rebuilding simulator.
@martins-mozeiko is the plug-in system created?
We are currently working on this. We hope to release soon
Hello team, How to integrate logitech g29 steering wheel with LG simulator, already there is an interface available for G920 . will there be similar SDL_GAMECONTROLLERCONFIG for G29 steering wheel also???
Please help me on this issue
Regards, Aravind S