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

Method disableJoystick

Engine/source/platformWin32/winDirectInput.cpp:331–343  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

329
330//------------------------------------------------------------------------------
331void DInputManager::disableJoystick()
332{
333 DInputManager* mgr = dynamic_cast<DInputManager*>( Input::getManager() );
334 if ( !mgr || !mgr->isEnabled() || !smJoystickEnabled )
335 return;
336
337 mgr->deactivateJoystick();
338 smJoystickEnabled = false;
339 Con::printf( "DirectInput joystick disabled." );
340#ifdef LOG_INPUT
341 Input::log( "Joystick disabled.\n" );
342#endif
343}
344
345//------------------------------------------------------------------------------
346bool DInputManager::isJoystickEnabled()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected