Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -390,9 +390,6 @@ QString ControllerScriptingInterface::sanatizeName(const QString& name) { · 389 unmodified lines | ||
| 390 | 390 | } |
| 391 | 391 | |
| 392 | 392 | void ControllerScriptingInterface::wireUpControllers(ScriptEngine* engine) { |
| 393 | − | |
| 394 | − qDebug() << "------------------- wire up controllers --------------------------"; | |
| 395 | − | |
| 396 | 393 | auto devices = DependencyManager::get<UserInputMapper>()->getDevices(); |
| 397 | 394 | |
| 398 | 395 | for(const auto& deviceMapping : devices) { |
| @@ -402,13 +399,10 @@ void ControllerScriptingInterface::wireUpControllers(ScriptEngine* engine) { · 3 unmodified lines | ||
| 402 | 399 | for (const auto& inputMapping : deviceInputs) { |
| 403 | 400 | auto input = inputMapping.first; |
| 404 | 401 | auto inputName = sanatizeName(inputMapping.second); |
| 405 | − inputName.replace(QString(" "), QString("")); | |
| 406 | 402 | QString deviceInputName { "Controller.Hardware." + deviceName + "." + inputName }; |
| 407 | 403 | engine->registerValue(deviceInputName, input.getID()); |
| 408 | − qDebug() << deviceInputName << "[" << input.getID() << "]"; | |
| 409 | 404 | } |
| 410 | 405 | } |
| 411 | − qDebug() << "------------------- DONE wire up controllers --------------------------"; | |
| 412 | 406 | } |
| 413 | 407 | |
| 414 | 408 | AbstractInputController* ControllerScriptingInterface::createInputController(const QString& deviceName, const QString& tracker) { |