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

Method activateXInput

Engine/source/platformWin32/winDirectInput.cpp:496–506  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

494
495//------------------------------------------------------------------------------
496bool DInputManager::activateXInput()
497{
498 if ( !mEnabled || !Input::isActive())
499 return( false );
500
501 mXInputActive = true; //acquire( GamepadDeviceType, SI_ANY );
502#ifdef LOG_INPUT
503 Input::log( mXInputActive ? "XInput activated.\n" : "XInput failed to activate!\n" );
504#endif
505 return( mXInputActive );
506}
507
508//------------------------------------------------------------------------------
509void DInputManager::deactivateXInput()

Callers 1

enableXInputMethod · 0.80

Calls 2

isActiveFunction · 0.50
logFunction · 0.50

Tested by

no test coverage detected