Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -89,8 +89,7 @@ controller::InputController* ControllerScriptingInterface::createInputController · 88 unmodified lines | ||
| 89 | 89 | auto icIt = _inputControllers.find(0); |
| 90 | 90 | if (icIt != _inputControllers.end()) { |
| 91 | 91 | return (*icIt).second.get(); |
| 92 | − } | |
| 93 | − | |
| 92 | + } | |
| 94 | 93 | |
| 95 | 94 | // Look for device |
| 96 | 95 | DeviceTracker::ID deviceID = DeviceTracker::getDeviceID(deviceName.toStdString()); |
| @@ -122,6 +121,12 @@ void ControllerScriptingInterface::releaseInputController(controller::InputContr · 25 unmodified lines | ||
| 122 | 121 | _inputControllers.erase(input->getKey()); |
| 123 | 122 | } |
| 124 | 123 | |
| 124 | +void ControllerScriptingInterface::updateInputControllers() { | |
| 125 | + for (auto it = _inputControllers.begin(); it != _inputControllers.end(); it++) { | |
| 126 | + (*it).second->update(); | |
| 127 | + } | |
| 128 | +} | |
| 129 | + | |
| 125 | 130 | InputController::InputController(int deviceTrackerId, int subTrackerId, QObject* parent) : |
| 126 | 131 | _deviceTrackerId(deviceTrackerId), |
| 127 | 132 | _subTrackerId(subTrackerId), |