src/gamepad.cpp
void Disconnect(const Sint32& pWhich)
	{
		if (m_arrayControllers[pWhich].controller != nullptr)
		{
			printf("Disconnecting GamePad %d.\n", pWhich);
			Flush(pWhich);

			SDL_GameControllerClose(m_arrayControllers[pWhich].controller);
			m_arrayControllers[pWhich].pszDeviceName = "";
			m_arrayControllers[pWhich].bEnabled = false;
		}
	}
//-----------------------------------------------------------------------------
// Purpose: Disconnect the device from a port.
//-----------------------------------------------------------------------------
Disconnect the device from a port.
Disconnect the device from a port .
void Disconnect(const Sint32& pWhich)
	{
		if (m_arrayControllers[pWhich].controller != nullptr)
		{
			printf("Disconnecting GamePad %d.\n", pWhich);
			Flush(pWhich);
			SDL_GameControllerClose(m_arrayControllers[pWhich].controller);
			m_arrayControllers[pWhich].pszDeviceName = "";
			m_arrayControllers[pWhich].bEnabled = false;
		}
	}
void Disconnect ( const Sint32 & pWhich ) { if ( m_arrayControllers [ pWhich ] . controller != nullptr ) { printf ( " \n " , pWhich ) ; Flush ( pWhich ) ; SDL_GameControllerClose ( m_arrayControllers [ pWhich ] . controller ) ; m_arrayControllers [ pWhich ] . pszDeviceName = " " ; m_arrayControllers [ pWhich ] . bEnabled = false ; } }
Purpose: Disconnect the device from a port.
Purpose : Disconnect the device from a port .