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

Method unacquire

Engine/source/platformWin32/winDInputDevice.cpp:356–385  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

354
355//------------------------------------------------------------------------------
356bool DInputDevice::unacquire()
357{
358 if ( mDevice )
359 {
360 if ( !mAcquired )
361 return( true );
362
363 bool result = false;
364 result = SUCCEEDED( mDevice->Unacquire() );
365 if ( result )
366 {
367 Con::printf( "%s input device unacquired.", mName );
368#ifdef LOG_INPUT
369 Input::log( "%s unacquired.\n", mName );
370#endif
371 mAcquired = false;
372 }
373 else
374 {
375 Con::warnf( ConsoleLogEntry::General, "%s input device NOT unacquired.", mName );
376#ifdef LOG_INPUT
377 Input::log( "Failed to unacquire %s!\n", mName );
378#endif
379 }
380
381 return( result );
382 }
383
384 return( false );
385}
386
387//------------------------------------------------------------------------------
388BOOL CALLBACK DInputDevice::EnumObjectsProc( const DIDEVICEOBJECTINSTANCE* doi, LPVOID pvRef )

Callers

nothing calls this directly

Calls 3

printfFunction · 0.85
logFunction · 0.50
warnfFunction · 0.50

Tested by

no test coverage detected