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

Method deactivate

Engine/source/platformWin32/winInput.cpp:443–461  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

441
442//------------------------------------------------------------------------------
443void Input::deactivate()
444{
445 if ( smManager && smManager->isEnabled() && smActive )
446 {
447#ifdef LOG_INPUT
448 Input::log( "Deactivating DirectInput...\n" );
449#endif
450 DInputManager* dInputManager = dynamic_cast<DInputManager*>( smManager );
451
452 if ( dInputManager )
453 {
454 smLastJoystickActivated = dInputManager->isJoystickActive();
455 dInputManager->deactivateJoystick();
456 }
457
458 smActive = false;
459 Con::printf( "DirectInput deactivated." );
460 }
461}
462
463//------------------------------------------------------------------------------
464bool Input::isEnabled()

Callers

nothing calls this directly

Calls 5

printfFunction · 0.85
isJoystickActiveMethod · 0.80
deactivateJoystickMethod · 0.80
logFunction · 0.50
isEnabledMethod · 0.45

Tested by

no test coverage detected