mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
Reduce controller log spam
This commit is contained in:
parent
85019b2b5e
commit
d8310cc6b1
2 changed files with 3 additions and 1 deletions
|
@ -33,8 +33,10 @@ static QVariantMap createDeviceMap(const controller::InputDevice::Pointer device
|
|||
for (const auto& inputMapping : userInputMapper->getAvailableInputs(device->getDeviceID())) {
|
||||
const auto& input = inputMapping.first;
|
||||
const auto inputName = QString(inputMapping.second).remove(SANITIZE_NAME_EXPRESSION);
|
||||
#ifdef DEBUG
|
||||
qCDebug(controllers) << "\tInput " << input.getChannel() << (int)input.getType()
|
||||
<< QString::number(input.getID(), 16) << ": " << inputName;
|
||||
#endif
|
||||
deviceMap.insert(inputName, input.getID());
|
||||
}
|
||||
return deviceMap;
|
||||
|
|
|
@ -28,7 +28,7 @@ void StateController::setStateVariables(const QStringList& newStateVariables) {
|
|||
StateController::StateController() : InputDevice("Application") {
|
||||
_deviceID = UserInputMapper::STANDARD_DEVICE;
|
||||
for (const auto& variable : stateVariables) {
|
||||
_namedReadLambdas[variable] = [] { return 0; };
|
||||
_namedReadLambdas[variable] = []()->float{ return 0; };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue