Added support for recording multiple GameCube controllers at once.

Fixed recording playback to automatically enable/disable the correct controllers.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6188 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
baby.lueshi
2010-09-06 21:41:01 +00:00
parent c710ae7529
commit dee24e5695
4 changed files with 57 additions and 8 deletions

View File

@ -628,8 +628,18 @@ void CFrame::OnChangeDisc(wxCommandEvent& WXUNUSED (event))
void CFrame::OnRecord(wxCommandEvent& WXUNUSED (event))
{
// TODO: Take controller settings from Gamecube Configuration menu
if(Frame::BeginRecordingInput(1))
int controllers = 0;
if (SConfig::GetInstance().m_SIDevice[0] == SI_GC_CONTROLLER)
controllers |= 0x01;
if (SConfig::GetInstance().m_SIDevice[1] == SI_GC_CONTROLLER)
controllers |= 0x02;
if (SConfig::GetInstance().m_SIDevice[2] == SI_GC_CONTROLLER)
controllers |= 0x04;
if (SConfig::GetInstance().m_SIDevice[3] == SI_GC_CONTROLLER)
controllers |= 0x08;
if(Frame::BeginRecordingInput(controllers))
BootGame(std::string(""));
}