| 138 | } |
| 139 | |
| 140 | void SampleInputMappingAsset::loadData(ODBlock* odsSettings) |
| 141 | { |
| 142 | odsSettings->reset(); |
| 143 | while (odsSettings->moreSubBlocks()) |
| 144 | { |
| 145 | ODBlock* subBlock = odsSettings->nextSubBlock(); |
| 146 | subBlock->reset(); |
| 147 | |
| 148 | SampleInputData inputData; |
| 149 | if (!strcmp(subBlock->ident(), "Map")) |
| 150 | { |
| 151 | if (subBlock->moreTerminals()) |
| 152 | { |
| 153 | const char* p = subBlock->nextTerminal(); |
| 154 | strcpy(inputData.m_UserInputName, p); |
| 155 | } |
| 156 | if (subBlock->moreTerminals()) |
| 157 | { |
| 158 | const char* p = subBlock->nextTerminal(); |
| 159 | strcpy(inputData.m_InputEventName, p); |
| 160 | } |
| 161 | |
| 162 | mSampleInputData.push_back(inputData); |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | void SampleInputMappingAsset::addMapping(const char* uiName, const char* ieName) |
| 168 | { |
nothing calls this directly
no test coverage detected