Closed unrealtz closed 1 year ago
Did you set the UseLogitechPlugin
flag to true
before you make package
again? You'll need to rebuild in order to add this functionality.
thank you, I have solved the problem by installing "Logitech G HUB". I have another question, can I add "manual gear shift" to the car or it should be "Automatic gear"?
best regards
We have only programmed it to be in automatic gear.
hi, dear I have a question, I would be appreciate if you answer me. we run your DReyeVR project correctly using "Logitech G HUB". currently, we use the button on the wheel for driving (D) and Reversing (R). how can we use "Logitech G Driving Force Shifter" for driving (D) and Reversing (R)?
best regards
You'll first need to figure out what the shifter inputs correspond to in the UE4 Logitech plugin, I currently don't know of a great way to do this than enabling (in configs) the debugging/logging system and brute-force trying all the inputs until finding a match.
Then you'll want to map them to these inputs. but rather than PressReverse and ReleaseReverse you'll probably want a function that directly sets the target gear to some setting (D, N, P, R, etc.) using SetTargetGear like in EgoInputs.cpp.
// example
EgoVehicle->GetVehicleMovementComponent()->SetTargetGear(NewGear, true);
I have install DReyeVR from "https://github.com/HARPLab/DReyeVR/blob/main/Docs/Install.md" instructor. I use "Logitech G923 Racing Wheel & Pedals" and add it to the project by running the following lines:
I set the following flag to true ////////////////////////////////////////////////////////////// // Edit these variables to enable/disable features of DReyeVR bool UseSRanipalPlugin = false; bool UseLogitechPlugin = true; ... ////////////////////////////////////////////////////////////// but when running the following command LogitechWheel is not activate and I can run the car just by keyboard: