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

Method registerDevice

Engine/source/platform/input/event.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void InputEventManager::registerDevice(IInputDevice* device)
76{
77 // Make sure the device is not already registered
78 for(U32 i=0; i<mDeviceList.size(); ++i)
79 {
80 if(mDeviceList[i] == device)
81 return;
82 }
83
84 // Add the new device to the list
85 mDeviceList.push_back(device);
86}
87
88void InputEventManager::unregisterDevice(IInputDevice* device)
89{

Callers 4

oculusVRDevice.cppFile · 0.80
OpenVRProviderMethod · 0.80

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected