Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Add Logitech wheel debug text
Browse files Browse the repository at this point in the history
  • Loading branch information
ikt32 committed May 25, 2016
1 parent 4bf876d commit d8945b2
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Gears/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,17 +353,21 @@ void showDebugInfo() {
const char *infoc = infos.str().c_str();
showText(0.01f, 0.5f, 0.4f, (char *)infoc);

/*if (logiWheel.IsActive(settings)) {
if (logiWheel.IsActive(settings)) {
std::stringstream throttleDisplay;
throttleDisplay << "TVal: " << logiWheel.GetLogiThrottleVal();
throttleDisplay << "ThrottleVal: " << logiWheel.GetLogiThrottleVal() << std::endl <<
"ThrottleRaw: " << LogiGetState(0)->lY;
std::stringstream brakeDisplay;
brakeDisplay << "BVal: " << logiWheel.GetLogiBrakeVal();
brakeDisplay << "Brake Value: " << logiWheel.GetLogiBrakeVal() << std::endl <<
"Brake Raw: " << LogiGetState(0)->lRz;
std::stringstream clutchDisplay;
clutchDisplay << "CVal: " << logiWheel.GetLogiClutchVal();
showText(0.01, 0.04, 0.4, (char *)throttleDisplay.str().c_str());
showText(0.01, 0.06, 0.4, (char *)brakeDisplay.str().c_str());
showText(0.01, 0.08, 0.4, (char *)clutchDisplay.str().c_str());
}*/
clutchDisplay << "ClutchValue: " << logiWheel.GetLogiClutchVal() << std::endl <<
"Clutch Raw: " << LogiGetState(0)->rglSlider[1];

showText(0.85, 0.04, 0.4, (char *)throttleDisplay.str().c_str());
showText(0.85, 0.10, 0.4, (char *)brakeDisplay.str().c_str());
showText(0.85, 0.16, 0.4, (char *)clutchDisplay.str().c_str());
}
}

// Limitations: Detects on pressing throttle on any of the 3 input methods
Expand Down

0 comments on commit d8945b2

Please sign in to comment.