| 2076 | } |
| 2077 | |
| 2078 | void MidiController::TextEntryComplete(TextEntry* entry) |
| 2079 | { |
| 2080 | for (auto iter = mConnections.begin(); iter != mConnections.end(); ++iter) |
| 2081 | { |
| 2082 | UIControlConnection* connection = *iter; |
| 2083 | if (entry == connection->mUIControlPathEntry) |
| 2084 | connection->SetUIControl(connection->mUIControlPathInput); |
| 2085 | if (entry == connection->mValueEntry) |
| 2086 | { |
| 2087 | if (mShouldSendControllerInfoStrings) |
| 2088 | { |
| 2089 | if (connection->mType == kControlType_SetValue || |
| 2090 | connection->mType == kControlType_SetValueOnRelease) |
| 2091 | { |
| 2092 | SendControllerInfoString(connection->mControl, 1, connection->mUIControl->GetDisplayValue(connection->mValue)); |
| 2093 | } |
| 2094 | } |
| 2095 | } |
| 2096 | } |
| 2097 | |
| 2098 | if (entry == mOscInPortEntry) |
| 2099 | { |
| 2100 | OscController* osc = dynamic_cast<OscController*>(mNonstandardController); |
| 2101 | if (osc != nullptr) |
| 2102 | osc->SetInPort(mOscInPort); |
| 2103 | } |
| 2104 | } |
| 2105 | |
| 2106 | void MidiController::PreRepatch(PatchCableSource* cableSource) |
| 2107 | { |
nothing calls this directly
no test coverage detected