MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / loadData

Method loadData

physx/samples/samplebase/SampleInputMappingAsset.cpp:140–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void 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
167void SampleInputMappingAsset::addMapping(const char* uiName, const char* ieName)
168{

Callers

nothing calls this directly

Calls 7

strcmpFunction · 0.85
moreSubBlocksMethod · 0.80
nextSubBlockMethod · 0.80
identMethod · 0.80
moreTerminalsMethod · 0.80
nextTerminalMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected