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

Method EnumDevicesProc

Engine/source/platformWin32/winDirectInput.cpp:284–296  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

282
283//------------------------------------------------------------------------------
284BOOL CALLBACK DInputManager::EnumDevicesProc( const DIDEVICEINSTANCE* pddi, LPVOID pvRef )
285{
286 DInputManager* manager = (DInputManager*) pvRef;
287 DInputDevice* newDevice = new DInputDevice( pddi );
288 manager->addObject( newDevice );
289 if ( !newDevice->create() )
290 {
291 manager->removeObject( newDevice );
292 delete newDevice;
293 }
294
295 return (DIENUM_CONTINUE);
296}
297
298//------------------------------------------------------------------------------
299bool DInputManager::enableJoystick()

Callers

nothing calls this directly

Calls 3

addObjectMethod · 0.45
createMethod · 0.45
removeObjectMethod · 0.45

Tested by

no test coverage detected