MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / buildVirtualMap

Method buildVirtualMap

Engine/source/platform/input/event.cpp:430–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428};
429
430void InputEventManager::buildVirtualMap()
431{
432 char desc[256];
433 VirtualMapData* data;
434
435 for (U32 j = 0; gVirtualMap[j].code != 0xFFFFFFFF; j++)
436 {
437 // Make sure the description is lower case
438 desc[0] = 0;
439 dStrncpy(desc, gVirtualMap[j].pDescription, 255);
440 dStrlwr(desc);
441
442 data = new VirtualMapData();
443 data->type = gVirtualMap[j].type;
444 data->code = gVirtualMap[j].code;
445 data->desc = StringTable->insert(desc);
446
447 mVirtualMap.insert(data, desc);
448 mActionCodeMap.insertUnique(data->code, *data);
449 }
450}
451
452void InputEventManager::addVirtualMap(const char* description, InputEventType type, InputObjectInstances code)
453{

Callers

nothing calls this directly

Calls 4

dStrncpyFunction · 0.85
dStrlwrFunction · 0.85
insertUniqueMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected