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

Method activateJoystick

Engine/source/platformWin32/winDirectInput.cpp:352–362  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

350
351//------------------------------------------------------------------------------
352bool DInputManager::activateJoystick()
353{
354 if ( !mEnabled || !Input::isActive() || !smJoystickEnabled )
355 return( false );
356
357 mJoystickActive = acquire( JoystickDeviceType, SI_ANY );
358#ifdef LOG_INPUT
359 Input::log( mJoystickActive ? "Joystick activated.\n" : "Joystick failed to activate!\n" );
360#endif
361 return( mJoystickActive );
362}
363
364//------------------------------------------------------------------------------
365void DInputManager::deactivateJoystick()

Callers 2

enableJoystickMethod · 0.80
activateMethod · 0.80

Calls 2

isActiveFunction · 0.50
logFunction · 0.50

Tested by

no test coverage detected