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

Method isRegisteredDevice

Engine/source/platform/input/event.cpp:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool InputEventManager::isRegisteredDevice(const char* name)
102{
103 for(Vector<IInputDevice*>::iterator itr = mDeviceList.begin(); itr != mDeviceList.end(); ++itr)
104 {
105 if((*itr)->isEnabled())
106 {
107 const char* deviceName = (*itr)->getDeviceName();
108 if(dStrnicmp(name, deviceName, dStrlen(deviceName)) == 0)
109 {
110 return true;
111 }
112 }
113 }
114
115 return false;
116}
117
118bool InputEventManager::isRegisteredDevice(U32 type)
119{

Callers 1

processActionMethod · 0.80

Calls 7

dStrnicmpFunction · 0.85
dStrlenFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
isEnabledMethod · 0.45
getDeviceNameMethod · 0.45
getDeviceTypeMethod · 0.45

Tested by

no test coverage detected