------------------------------------------------------------------------------
| 329 | |
| 330 | //------------------------------------------------------------------------------ |
| 331 | void 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 | //------------------------------------------------------------------------------ |
| 346 | bool DInputManager::isJoystickEnabled() |
nothing calls this directly
no test coverage detected