src/gamepad.cpp
void SimulateButton(const Sint32& pWhich, const Uint8& pButton, bool bDown)
	{
		if (m_arrayControllers[pWhich].controller != nullptr && m_arrayControllers[pWhich].bEnabled == true)
		{
			m_arrayControllers[pWhich].mControllerButtons[pButton] = bDown;
		}
	}
//-----------------------------------------------------------------------------
// Purpose: Record the state of the button.
//-----------------------------------------------------------------------------
Record the state of the button.
Record the state of the button .
void SimulateButton(const Sint32& pWhich, const Uint8& pButton, bool bDown)
	{
		if (m_arrayControllers[pWhich].controller != nullptr && m_arrayControllers[pWhich].bEnabled == true)
		{
			m_arrayControllers[pWhich].mControllerButtons[pButton] = bDown;
		}
	}
void SimulateButton ( const Sint32 & pWhich , const Uint8 & pButton , bool bDown ) { if ( m_arrayControllers [ pWhich ] . controller != nullptr && m_arrayControllers [ pWhich ] . bEnabled == true ) { m_arrayControllers [ pWhich ] . mControllerButtons [ pButton ] = bDown ; } }
Purpose: Record the state of the button.
Purpose : Record the state of the button .