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

Method enumerateDevices

Engine/source/platformWin32/winDirectInput.cpp:267–281  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

265
266//------------------------------------------------------------------------------
267void DInputManager::enumerateDevices()
268{
269 if ( mDInputInterface )
270 {
271#ifdef LOG_INPUT
272 Input::log( "Enumerating input devices...\n" );
273#endif
274
275 DInputDevice::init();
276 DInputDevice::smDInputInterface = mDInputInterface;
277 mDInputInterface->EnumDevices( DI8DEVTYPE_KEYBOARD, EnumDevicesProc, this, DIEDFL_ATTACHEDONLY );
278 mDInputInterface->EnumDevices( DI8DEVTYPE_MOUSE, EnumDevicesProc, this, DIEDFL_ATTACHEDONLY );
279 mDInputInterface->EnumDevices( DI8DEVCLASS_GAMECTRL, EnumDevicesProc, this, DIEDFL_ATTACHEDONLY );
280 }
281}
282
283//------------------------------------------------------------------------------
284BOOL CALLBACK DInputManager::EnumDevicesProc( const DIDEVICEINSTANCE* pddi, LPVOID pvRef )

Callers

nothing calls this directly

Calls 2

logFunction · 0.50
initFunction · 0.50

Tested by

no test coverage detected