| 99 | } |
| 100 | |
| 101 | bool 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 | |
| 118 | bool InputEventManager::isRegisteredDevice(U32 type) |
| 119 | { |
no test coverage detected