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

Method buildVirtualMap

Engine/source/platform/input/event.cpp:432–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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