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

Method activate

Engine/source/platformWin32/winInput.cpp:416–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414//------------------------------------------------------------------------------
415
416void Input::activate()
417{
418#ifdef UNICODE
419 //winState.imeHandle = ImmGetContext( getWin32WindowHandle() );
420 //ImmReleaseContext( getWin32WindowHandle(), winState.imeHandle );
421#endif
422
423 if ( !Con::getBoolVariable( "$enableDirectInput" ) )
424 return;
425
426 if ( smManager && smManager->isEnabled() && !smActive )
427 {
428 Con::printf( "Activating DirectInput..." );
429#ifdef LOG_INPUT
430 Input::log( "Activating DirectInput...\n" );
431#endif
432 smActive = true;
433 DInputManager* dInputManager = dynamic_cast<DInputManager*>( smManager );
434 if ( dInputManager )
435 {
436 if ( dInputManager->isJoystickEnabled() && smLastJoystickActivated )
437 dInputManager->activateJoystick();
438 }
439 }
440}
441
442//------------------------------------------------------------------------------
443void Input::deactivate()

Callers

nothing calls this directly

Calls 6

getBoolVariableFunction · 0.85
printfFunction · 0.85
isJoystickEnabledMethod · 0.80
activateJoystickMethod · 0.80
logFunction · 0.50
isEnabledMethod · 0.45

Tested by

no test coverage detected